/* ==========================================================================
   DADOSPOLITICOS.COM — DESIGN SYSTEM 2026 (CYBER OBSIDIAN / GOVTECH INTELLIGENCE)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Surface & Backgrounds */
  --bg-body: #07090e;
  --bg-surface: #0d121d;
  --bg-surface-elevated: #131a29;
  --bg-surface-hover: #1a2337;
  --bg-glass: rgba(13, 18, 29, 0.75);
  --bg-glass-card: rgba(19, 26, 41, 0.65);
  --bg-inset: #090d15;

  /* Borders & Highlights */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(0, 230, 118, 0.3);
  --glow-emerald: 0 0 25px rgba(0, 230, 118, 0.25);
  --glow-cyan: 0 0 25px rgba(0, 210, 255, 0.25);
  --glow-amber: 0 0 25px rgba(255, 179, 0, 0.25);
  --glow-crimson: 0 0 25px rgba(255, 51, 102, 0.25);

  /* Brand Accents */
  --emerald: #00e676;
  --emerald-dark: #00b359;
  --cyan: #00d2ff;
  --blue: #3b82f6;
  --amber: #ffb300;
  --crimson: #ff3366;
  --violet: #8b5cf6;

  /* Text Hierarchy */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 230, 118, 0.09), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(0, 210, 255, 0.05), transparent 60%);
  background-attachment: fixed;
}

/* Header */
#app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-emerald);
}

.logo-icon svg {
  width: 26px;
  height: 26px;
}

.logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.logo-text h1 .accent {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.header-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald);
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Main Container */
#app-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  min-height: calc(100vh - 160px);
}

/* Visibility toggles */
.hidden { display: none !important; }
.visible { display: block !important; }

/* Hero Section */
#hero-section {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 3.5rem;
}

.hero-content {
  width: 100%;
  max-width: 900px;
}

.neu-panel-inset {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.neu-panel-inset::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), var(--cyan), transparent);
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--emerald) 0%, #a7f3d0 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Tabs */
.tabs {
  display: inline-flex;
  background: var(--bg-inset);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
  gap: 0.35rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--bg-surface-elevated);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-medium);
}

/* Search Box */
.search-container {
  max-width: 740px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-inset);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.55rem 0.45rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.search-box:focus-within {
  border-color: var(--emerald);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(0, 230, 118, 0.2);
}

.search-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
}

#search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 500;
}

#search-input::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #052e16;
  border: none;
  outline: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.35);
  transition: all var(--transition-normal);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 230, 118, 0.5);
  filter: brightness(1.08);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

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

/* Quick Search Tags */
.search-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.search-tags span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}

.tag {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--bg-surface-hover);
  color: #fff;
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

/* Prefeitos Selectors */
.prefeito-selectors {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.selector-row {
  display: flex;
  gap: 1rem;
}

.selector-group {
  flex: 1;
  text-align: left;
}

.selector-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.selector-group select {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border-medium);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.selector-group select:focus {
  border-color: var(--cyan);
}

.selector-group select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.prefeito-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Sources Strip */
.sources-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.sources-strip span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.source-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.legal-disclaimer-neon {
  margin: 1.5rem auto 0;
  max-width: 600px;
  padding: 0.55rem 1rem;
  background: rgba(255, 179, 0, 0.06);
  border: 1px solid rgba(255, 179, 0, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  color: #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1.4;
}

/* Loading Section */
#loading-section {
  max-width: 600px;
  margin: 4rem auto;
  text-align: center;
}

.loading-content {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.loading-spinner {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--emerald);
  animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
  border-top-color: var(--cyan);
  animation-duration: 1.5s;
  animation-direction: reverse;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

#loading-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-inset);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.step.active {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(0, 210, 255, 0.08);
}

.step.active .step-dot {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.step.done {
  color: var(--emerald);
  border-color: rgba(0, 230, 118, 0.3);
  background: rgba(0, 230, 118, 0.05);
}

.step.done .step-dot {
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

/* Results List Grid */
#results-section {
  margin-top: 1rem;
}

#back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: all var(--transition-fast);
}

#back-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--emerald);
  color: var(--emerald);
  transform: translateX(-3px);
}

#results-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.result-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--emerald);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.result-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

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

.result-card-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-inset);
  border: 2px solid var(--border-medium);
  flex-shrink: 0;
}

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

.result-card-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.result-card-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.result-card-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.result-card-badge.presidenciável {
  background: rgba(0, 230, 118, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.result-card-badge.deputado {
  background: rgba(0, 210, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.result-card-badge.senador {
  background: rgba(255, 179, 0, 0.15);
  color: var(--amber);
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.result-card-badge.político, .result-card-badge.regional {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   PROFILE VIEW
   ========================================================================== */

.neu-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Profile Header Card */
.profile-header-card {
  padding: 2.25rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.profile-header-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.12), transparent 70%);
  pointer-events: none;
}

.profile-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-inset);
  border: 3px solid var(--border-medium);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(0, 230, 118, 0.15);
}

.profile-info {
  flex: 1;
}

.profile-tipo {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  margin-bottom: 0.4rem;
}

.profile-info h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.meta-tag.highlight {
  background: rgba(0, 230, 118, 0.12);
  color: var(--emerald);
  border-color: rgba(0, 230, 118, 0.3);
}

.meta-tag.party {
  background: rgba(0, 210, 255, 0.12);
  color: var(--cyan);
  border-color: rgba(0, 210, 255, 0.3);
  font-weight: 700;
}

.profile-biography {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--emerald);
}

/* Risk Score Card */
.risk-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(19, 26, 41, 0.95) 0%, rgba(13, 18, 29, 0.98) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.risk-card-main {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.risk-gauge-container {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.risk-gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.risk-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 9;
}

.risk-gauge-fill {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-out;
}

.risk-score-value {
  position: absolute;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.risk-info {
  flex: 1;
}

.risk-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.risk-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.risk-nivel-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.risk-status-tag {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.risk-summary-p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 780px;
  margin: 0;
}

/* Sub-indices Grid */
.risk-subindices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.subindex-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.subindex-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.subindex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
}

.subindex-title {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.subindex-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
}

.subindex-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.subindex-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.subindex-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Full Width Panel */
.full-width-panel {
  grid-column: 1 / -1;
}

.panel-header-titles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.panel-header-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.judicial-icon {
  color: var(--crimson) !important;
  background: rgba(255, 42, 95, 0.12) !important;
  border-color: rgba(255, 42, 95, 0.3) !important;
}

/* Judicial Cards Grid */
.judicial-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.judicial-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(22, 28, 45, 0.75) 0%, rgba(13, 18, 29, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--border-strong);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.judicial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.judicial-card.card-prison {
  border-left: 4px solid var(--crimson);
  background: linear-gradient(135deg, rgba(255, 42, 95, 0.08) 0%, rgba(13, 18, 29, 0.92) 100%);
}

.judicial-card.card-inelegivel {
  border-left: 4px solid #ff4444;
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.08) 0%, rgba(13, 18, 29, 0.92) 100%);
}

.judicial-card.card-anulado {
  border-left: 4px solid var(--cyan);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06) 0%, rgba(13, 18, 29, 0.92) 100%);
}

.judicial-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.judicial-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
}

.judicial-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.judicial-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  flex-shrink: 0;
}

.badge-crimson {
  background: rgba(255, 42, 95, 0.2);
  color: #ff2a5f;
  border: 1px solid rgba(255, 42, 95, 0.45);
}

.badge-red {
  background: rgba(255, 68, 68, 0.2);
  color: #ff5252;
  border: 1px solid rgba(255, 68, 68, 0.45);
}

.badge-amber {
  background: rgba(255, 184, 0, 0.2);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.45);
}

.badge-cyan {
  background: rgba(0, 229, 255, 0.2);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.45);
}

.badge-emerald {
  background: rgba(0, 230, 118, 0.2);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.45);
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.judicial-impact {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.impact-crimson {
  background: rgba(255, 42, 95, 0.15);
  color: #ff2a5f;
  border: 1px solid rgba(255, 42, 95, 0.35);
}

.impact-red {
  background: rgba(255, 68, 68, 0.15);
  color: #ff5252;
  border: 1px solid rgba(255, 68, 68, 0.35);
}

.impact-amber {
  background: rgba(255, 184, 0, 0.15);
  color: #ffb800;
  border: 1px solid rgba(255, 184, 0, 0.35);
}

.impact-cyan {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
}

.impact-emerald {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.judicial-meta-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.judicial-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Certidão Box (Ficha Limpa) */
.certidao-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(13, 18, 29, 0.95) 100%);
  border: 1px solid rgba(0, 230, 118, 0.35);
  box-shadow: 0 8px 24px rgba(0, 230, 118, 0.08);
}

.certidao-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.certidao-content h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.certidao-status {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}

.certidao-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.certidao-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.certidao-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Search Result Badge Additions */
.result-badge-judicial {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid;
  letter-spacing: 0.03em;
}

.result-badge-score {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.factor-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.panel {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.panel-body {
  flex: 1;
}

.neu-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Factor Items (Risk) */
.factor-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.factor-weight {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 51, 102, 0.15);
  color: var(--crimson);
  flex-shrink: 0;
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.factor-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* TSE Timeline Items */
.tse-item {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast);
}

.tse-item:hover {
  background: var(--bg-surface-hover);
  transform: translateX(4px);
}

.tse-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.tse-year-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 210, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.tse-cargo {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.tse-details {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.tse-situacao-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.tse-situacao-pill.eleito {
  background: rgba(0, 230, 118, 0.15);
  color: var(--emerald);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.tse-situacao-pill.nao-eleito {
  background: rgba(255, 51, 102, 0.15);
  color: var(--crimson);
  border: 1px solid rgba(255, 51, 102, 0.3);
}

.tse-situacao-pill.default {
  background: rgba(255, 179, 0, 0.15);
  color: var(--amber);
  border: 1px solid rgba(255, 179, 0, 0.3);
}

/* Assets (Bens Declarados) */
.bens-summary-box {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.bens-total-val {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan) 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.25rem;
}

.bens-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  gap: 1rem;
}

.bens-item-info {
  flex: 1;
}

.bens-item-tipo {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.bens-item-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.bens-item-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--emerald);
  white-space: nowrap;
}

/* News Items */
.news-item {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.news-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.news-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.news-item:hover .news-item-title {
  color: var(--cyan);
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.news-source-pill {
  padding: 0.15rem 0.5rem;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 4px;
  color: var(--cyan);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Expenses CEAP (Deputados) */
.expense-total-display {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 0.35rem;
}

.expense-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.expense-cat-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.expense-cat-bar {
  width: 90px;
  height: 6px;
  background: var(--bg-inset);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.expense-cat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--cyan) 100%);
  border-radius: var(--radius-full);
}

.expense-cat-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.access-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.counter-value {
  color: var(--emerald);
  font-weight: 800;
}

.footer-mission {
  max-width: 760px;
  margin: 0.5rem auto 0;
  text-align: center;
}

.footer-mission h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.footer-mission p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.footer-link-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.footer-link-btn:hover {
  color: var(--emerald);
}

.footer-sep {
  color: var(--text-dim);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.footer-credits {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.3rem;
  background: #25d366;
  color: #032b13;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition-normal);
}

.whatsapp-link:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   LEGAL PROTECTION MODALS & RECTIFICATION CHANNEL
   ========================================================================== */

.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.legal-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 230, 118, 0.08);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalSlideUp {
  from { transform: translateY(20px) scale(0.98); }
  to { transform: translateY(0) scale(1); }
}

.legal-modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.legal-modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-modal-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.legal-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: rgba(255, 51, 102, 0.2);
  color: #ff3366;
  border-color: rgba(255, 51, 102, 0.4);
}

.legal-modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.legal-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
}

.legal-section h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.legal-section p {
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.legal-section ul {
  padding-left: 1.25rem;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-section strong {
  color: var(--text-primary);
}

.legal-modal-footer {
  padding: 1.15rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

/* Retificacao Form */
.retificacao-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.retificacao-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.retificacao-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.retificacao-form label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.retificacao-form input,
.retificacao-form select,
.retificacao-form textarea {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  transition: border-color var(--transition-fast);
}

.retificacao-form input:focus,
.retificacao-form select:focus,
.retificacao-form textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.2);
}

.retificacao-status-box {
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
}

.retificacao-status-box.success {
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: #a7f3d0;
}

.retificacao-status-box.error {
  background: rgba(255, 51, 102, 0.12);
  border: 1px solid rgba(255, 51, 102, 0.35);
  color: #fecdd3;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLETS, MOBILES & ULTRA-SMALL SCREENS)
   ========================================================================== */

@media (max-width: 1024px) {
  #app-main {
    padding: 2rem 1.5rem;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .header-inner {
    padding: 0.85rem 1.5rem;
  }
}

@media (max-width: 768px) {
  #app-main {
    padding: 1.25rem 1rem;
  }

  .header-inner {
    padding: 0.75rem 1rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .neu-panel-inset {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .hero-desc {
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
  }

  .tabs {
    width: 100%;
    display: flex;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
  }

  .tab-btn {
    flex: 1;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  .search-box {
    border-radius: var(--radius-lg);
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .search-icon {
    display: none;
  }

  #search-input {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
    text-align: center;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.9rem;
  }

  .search-tags {
    gap: 0.4rem;
    margin-top: 1.1rem;
  }

  .tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .selector-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .legal-disclaimer-neon {
    font-size: 0.72rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
  }

  /* Results List */
  #results-list {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .result-card {
    padding: 1rem;
    gap: 0.85rem;
  }

  .result-card-photo {
    width: 54px;
    height: 54px;
  }

  .result-card-info h4 {
    font-size: 1rem;
  }

  /* Profile Header */
  .profile-header-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.15rem;
    gap: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .profile-photo-wrap {
    margin: 0 auto;
  }

  .profile-photo {
    width: 110px;
    height: 110px;
  }

  .profile-info h2 {
    font-size: 1.65rem;
    line-height: 1.25;
    word-break: break-word;
    margin-bottom: 0.65rem;
  }

  .profile-meta {
    justify-content: center;
    gap: 0.4rem;
  }

  .meta-tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
  }

  .profile-biography {
    text-align: left;
    font-size: 0.85rem;
    padding: 0.85rem 1rem;
  }

  /* Risk Card */
  .risk-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.15rem;
    gap: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .risk-card-main {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }

  .risk-title-row {
    justify-content: center;
  }

  .risk-status-tag {
    justify-content: center;
  }

  .risk-subindices-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .certidao-box {
    flex-direction: column;
    padding: 1.25rem;
  }

  .risk-gauge-container {
    width: 105px;
    height: 105px;
  }

  .risk-score-value {
    font-size: 2.1rem;
  }

  .risk-info {
    text-align: center;
  }

  .risk-info h3 {
    font-size: 1.2rem;
  }

  .risk-info p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* Panels & Cards */
  .panel {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }

  .panel-header {
    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
    gap: 0.65rem;
  }

  .panel-header h3 {
    font-size: 1.05rem;
  }

  .panel-icon-wrap {
    width: 36px;
    height: 36px;
  }

  /* Bens */
  .bens-summary-box {
    padding: 1.15rem 0.85rem;
    border-radius: var(--radius-md);
  }

  .bens-total-val {
    font-size: 1.75rem;
    word-break: break-word;
  }

  .bens-item {
    padding: 0.75rem 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .bens-item-val {
    font-size: 0.9rem;
  }

  /* TSE */
  .tse-item {
    padding: 0.85rem;
  }

  .tse-cargo {
    font-size: 0.88rem;
  }

  .tse-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.78rem;
  }

  /* News */
  .news-item {
    padding: 0.85rem;
  }

  .news-item-title {
    font-size: 0.88rem;
  }

  .news-item-meta {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .header-actions {
    display: none;
  }

  .legal-modal-card {
    max-height: 94vh;
    border-radius: var(--radius-lg);
  }

  .legal-modal-header,
  .legal-modal-body,
  .legal-modal-footer {
    padding: 1.15rem 1.25rem;
  }

  .retificacao-form .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .site-footer {
    padding: 2rem 1rem;
    margin-top: 3rem;
  }

  .whatsapp-link {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    padding: 0.75rem 1.2rem;
  }
}

@media (max-width: 480px) {
  #app-main {
    padding: 0.85rem 0.65rem;
  }

  .header-inner {
    padding: 0.65rem 0.75rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-icon svg {
    width: 20px;
    height: 20px;
  }

  .logo-text h1 {
    font-size: 1.15rem;
  }

  .logo-subtitle {
    display: none;
  }

  .header-badge {
    font-size: 0.68rem;
    padding: 0.25rem 0.55rem;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .profile-info h2 {
    font-size: 1.4rem;
  }

  .bens-total-val {
    font-size: 1.5rem;
  }

  .bens-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .bens-item-val {
    align-self: flex-end;
    font-size: 0.95rem;
  }

  .factor-item {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .factor-weight {
    width: 32px;
    height: 32px;
    font-size: 0.78rem;
  }

  .factor-text strong {
    font-size: 0.82rem;
  }

  .expense-cat-bar {
    width: 50px;
  }

  .news-item-title {
    font-size: 0.84rem;
  }

  .risk-subindices-grid {
    grid-template-columns: 1fr;
  }

  .judicial-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .judicial-card {
    padding: 1.15rem;
  }
}


