/* =====================================================
   PM2.0 - Partido Missão 2.0 — Design System
   ===================================================== */

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

/* =====================================================
   CSS VARIABLES
   ===================================================== */
:root {
  --primary: #FFD700;
  --primary-dark: #E6C200;
  --primary-light: #FFE566;
  --primary-glow: rgba(255, 215, 0, 0.12);
  --bg-base: #090909;
  --bg-surface: #111111;
  --bg-card: #161616;
  --bg-card-alt: #1c1c1c;
  --bg-hover: #202020;
  --bg-input: #1a1a1a;
  --text-primary: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-muted: #888888;
  --text-subtle: #444444;
  --border: #2a2a2a;
  --border-hover: #444444;
  --border-accent: #FFD700;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --nav-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-primary: 0 4px 24px rgba(255,215,0,0.2);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.6);
  --transition: all 0.2s ease;
  --transition-slow: all 0.4s ease;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-sans);
}

::selection {
  background: var(--primary);
  color: #000;
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface);
}
::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-primary-color { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary-color { color: var(--text-secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }

.font-serif { font-family: var(--font-serif); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-lg {
  padding: 120px 0;
}

/* Grid */
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* Flex */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* Spacing */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(9, 9, 9, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(9, 9, 9, 0.98);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #000;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(255,215,0,0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-glow);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-search {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-search:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-glow);
}

.btn-search svg {
  width: 16px;
  height: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 9, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav .nav-link {
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.mobile-nav .nav-link:hover {
  border-color: var(--border);
}

.mobile-nav .nav-link.active {
  border-color: var(--primary-glow);
}

/* =====================================================
   SEARCH OVERLAY
   ===================================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 9, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  width: 100%;
  margin: 80px auto 0;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px 16px 52px;
  font-size: 1.1rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.search-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.search-close:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.search-results {
  max-width: 720px;
  width: 100%;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  max-height: calc(100vh - 240px);
}

.search-result-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:hover {
  border-color: var(--primary);
  background: var(--bg-card-alt);
}

.search-result-category {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 4px;
}

.search-result-title {
  font-weight: 600;
  color: var(--text-primary);
}

.search-result-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.search-hint {
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.875rem;
  margin-top: 48px;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-glow);
  box-shadow: 0 0 0 1px var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 16px rgba(239,68,68,0.3);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.card-accent:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(255,215,0,0.1);
}

.card-body {
  padding: 24px;
}

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

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-card-alt);
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-primary {
  background: rgba(255,215,0,0.15);
  color: var(--primary);
  border: 1px solid rgba(255,215,0,0.25);
}

.badge-success {
  background: rgba(34,197,94,0.12);
  color: var(--success);
  border: 1px solid rgba(34,197,94,0.2);
}

.badge-warning {
  background: rgba(245,158,11,0.12);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,0.2);
}

.badge-danger {
  background: rgba(239,68,68,0.12);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.2);
}

.badge-info {
  background: rgba(59,130,246,0.12);
  color: var(--info);
  border: 1px solid rgba(59,130,246,0.2);
}

.badge-muted {
  background: rgba(136,136,136,0.1);
  color: var(--text-muted);
  border: 1px solid rgba(136,136,136,0.15);
}

.badge-dot::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-input,
.form-textarea,
.form-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-group {
  position: relative;
}

.input-group .form-input {
  padding-left: 44px;
}

.input-group-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

/* =====================================================
   TABLES
   ===================================================== */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--bg-card-alt);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: var(--bg-hover);
}

tbody tr:hover {
  background: var(--bg-hover);
}

/* =====================================================
   SECTION HEADER
   ===================================================== */
.section-header {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-tag {
  justify-content: center;
}

.section-header.centered .section-tag::before {
  display: none;
}

.section-header.centered .section-desc {
  margin: 0 auto;
}

/* =====================================================
   HERO SECTION (Homepage)
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-base);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,215,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(255,215,0,0.08) 0%, transparent 70%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  max-width: 700px;
}

.hero h1 span {
  color: var(--primary);
  display: block;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  max-width: 640px;
}

.hero-stat {
  flex: 1;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}

.hero-stat:first-child {
  padding-left: 0;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =====================================================
   PAGE HERO (Inner pages)
   ===================================================== */
.page-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 48px;
  margin-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.page-hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero .breadcrumb {
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: var(--text-subtle);
}

.breadcrumb-current {
  color: var(--text-secondary);
}

/* =====================================================
   POLITICIAN CARDS
   ===================================================== */
.politician-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.politician-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(255,215,0,0.12);
}

.politician-card-top {
  background: linear-gradient(135deg, #141414, #1e1e1e);
  padding: 28px 24px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.politician-card-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.politician-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  transition: var(--transition);
}

.politician-card:hover .politician-avatar {
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(255,215,0,0.2);
}

.politician-avatar.sm { width: 40px; height: 40px; font-size: 0.8rem; }
.politician-avatar.md { width: 56px; height: 56px; font-size: 1rem; }
.politician-avatar.lg { width: 80px; height: 80px; font-size: 1.3rem; }
.politician-avatar.xl { width: 120px; height: 120px; font-size: 2rem; }

.politician-card-info {
  flex: 1;
}

.politician-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.politician-card-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.politician-card-body {
  padding: 16px 24px;
}

.politician-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.politician-stat {
  text-align: center;
}

.politician-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.politician-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =====================================================
   NEWS CARDS
   ===================================================== */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.news-card-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.news-card-image .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-image .img-placeholder {
  transform: scale(1.05);
}

.news-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.news-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}

.news-card-summary {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

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

/* News card featured */
.news-card-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 320px;
}

.news-card-featured .news-card-image {
  height: 100%;
}

/* =====================================================
   PROJECT CARDS
   ===================================================== */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.project-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: monospace;
  margin-bottom: 8px;
}

.project-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.project-authors {
  display: flex;
  align-items: center;
  gap: -8px;
}

.project-authors .politician-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.6rem;
  border: 2px solid var(--bg-card);
  margin-left: -8px;
}

.project-authors .politician-avatar:first-child {
  margin-left: 0;
}

/* =====================================================
   STAT CARDS
   ===================================================== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(255,215,0,0.08);
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  border: 1px solid rgba(255,215,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-card-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-card-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.stat-card-change {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-card-change.positive { color: var(--success); }
.stat-card-change.negative { color: var(--danger); }

/* =====================================================
   CHART CONTAINERS
   ===================================================== */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.chart-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.chart-wrapper {
  position: relative;
  width: 100%;
}

.chart-wrapper canvas {
  max-width: 100%;
}

/* =====================================================
   TIMELINE
   ===================================================== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-hover);
  border: 2px solid var(--bg-base);
  z-index: 1;
}

.timeline-dot.active {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(255,215,0,0.5);
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-event {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =====================================================
   TABS
   ===================================================== */
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 0;
}

.tab-btn {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: var(--transition);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

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

/* =====================================================
   FILTER BAR
   ===================================================== */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.filter-btn.active {
  color: #000;
  background: var(--primary);
  border-color: var(--primary);
}

.filter-select {
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  outline: none;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23888' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-select option {
  background: var(--bg-card);
}

/* =====================================================
   PROGRESS BARS
   ===================================================== */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.progress-fill.success { background: var(--success); }
.progress-fill.danger { background: var(--danger); }
.progress-fill.info { background: var(--info); }
.progress-fill.warning { background: var(--warning); }

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

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

.progress-label strong {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* =====================================================
   VOTE BAR
   ===================================================== */
.vote-bar {
  display: flex;
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 12px;
  gap: 2px;
}

.vote-bar-yes {
  background: var(--success);
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  transition: width 1s ease;
}

.vote-bar-no {
  background: var(--danger);
  transition: width 1s ease;
}

.vote-bar-abstain {
  background: var(--text-subtle);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  flex: 1;
}

.vote-legend {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

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

.vote-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: auto;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: var(--text-subtle);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--text-muted);
}

/* =====================================================
   AVATAR
   ===================================================== */
.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.7rem;
}

.avatar-md {
  width: 48px;
  height: 48px;
  font-size: 0.875rem;
}

.avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 1.1rem;
}

.avatar-xl {
  width: 96px;
  height: 96px;
  font-size: 1.5rem;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255,215,0,0.3); }
  50% { box-shadow: 0 0 28px rgba(255,215,0,0.6); }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Shimmer loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 468px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-md);
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.hidden { display: none !important; }
.invisible { visibility: hidden; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.italic { font-style: italic; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }
.border { border: 1px solid var(--border); }
.border-primary { border-color: var(--primary) !important; }
.bg-card { background: var(--bg-card); }
.bg-surface { background: var(--bg-surface); }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }
.p-32 { padding: 32px; }

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* Tag chips */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  padding: 4px 10px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Alert */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.2);
  color: var(--success);
}

.alert-warning {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.2);
  color: var(--warning);
}

.alert-danger {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.2);
  color: var(--danger);
}

.alert-info {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.2);
  color: var(--info);
}

/* Vote badges */
.vote-sim { color: var(--success); font-weight: 700; font-size: 0.75rem; }
.vote-nao { color: var(--danger); font-weight: 700; font-size: 0.75rem; }
.vote-abstencao { color: var(--text-muted); font-weight: 700; font-size: 0.75rem; }

/* Matrix vote grid */
.vote-matrix {
  overflow-x: auto;
}

.vote-matrix table {
  min-width: 800px;
}

.vote-cell-sim {
  background: rgba(34,197,94,0.12);
  color: var(--success);
  font-weight: 700;
  font-size: 0.7rem;
  text-align: center;
  border-radius: 3px;
  padding: 2px 6px;
}

.vote-cell-nao {
  background: rgba(239,68,68,0.12);
  color: var(--danger);
  font-weight: 700;
  font-size: 0.7rem;
  text-align: center;
  border-radius: 3px;
  padding: 2px 6px;
}

.vote-cell-abstencao {
  background: rgba(136,136,136,0.1);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.7rem;
  text-align: center;
  border-radius: 3px;
  padding: 2px 6px;
}

/* FAQ accordion */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
}

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header:hover {
  background: var(--bg-hover);
}

.accordion-icon {
  color: var(--primary);
  transition: transform 0.2s ease;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  display: none;
  padding: 0 20px 16px;
  background: var(--bg-card);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.accordion-item.open .accordion-body {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* Video cards */
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.video-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.video-thumbnail {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,215,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #000;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.video-card:hover .video-play-btn {
  transform: scale(1.1);
  background: var(--primary);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

.video-card-body {
  padding: 16px;
}

.video-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.video-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Ideology chart wrapper */
.ideology-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ideology-axes {
  width: 100%;
  max-width: 280px;
  position: relative;
}

/* Calendar */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-header {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: default;
  position: relative;
}

.calendar-day:hover {
  background: var(--bg-hover);
}

.calendar-day.today {
  background: var(--primary);
  color: #000;
  font-weight: 700;
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.calendar-day.today.has-event::after {
  background: #000;
}

.calendar-day.other-month {
  color: var(--text-subtle);
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .logo-subtitle { display: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }

  .container { padding: 0 16px; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
    border-top: none;
    padding-top: 0;
  }

  .hero-stat {
    flex: 1 1 calc(50% - 8px);
    border-right: none;
    padding: 0;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .news-card-featured {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 60px 0 32px;
  }

  .tabs {
    gap: 0;
  }

  .tab-btn {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; }
  .hero-stats { padding-top: 24px; border-top: 1px solid var(--border); }
  .section-header { margin-bottom: 32px; }
  .filter-bar { gap: 8px; }
  .logo-name { font-size: 0.8rem; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}

/* =====================================================
   SPECIFIC PAGE STYLES
   ===================================================== */

/* Politician detail page */
.politician-hero {
  background: linear-gradient(135deg, #111, #1a1a1a);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 48px;
  margin-top: var(--nav-height);
}

.politician-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 32px;
  align-items: start;
}

.politician-hero-avatar {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-xl);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  background: linear-gradient(135deg, #141414, #222);
  box-shadow: 0 8px 32px rgba(255,215,0,0.2);
  flex-shrink: 0;
}

.politician-hero-info h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.politician-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.politician-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.politician-stat-item {
  text-align: center;
}

.politician-stat-item .value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.politician-stat-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Promises tracker */
.promise-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

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

.promise-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  background: linear-gradient(135deg, #111, #141414);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,215,0,0.06) 0%, transparent 70%);
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* Newsletter section */
.newsletter-section {
  background: var(--primary-glow);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form .form-input {
  flex: 1;
}

/* Map section */
.map-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.state-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.state-item:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

.state-badge {
  width: 36px;
  height: 28px;
  background: var(--primary);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.state-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.state-rep {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Participation cards */
.participate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.participate-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(255,215,0,0.08);
}

.participate-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

/* Question cards */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 12px;
  transition: var(--transition);
}

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

.question-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.question-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

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

.upvote-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  background: none;
}

.upvote-btn:hover, .upvote-btn.voted {
  border-color: var(--primary);
  color: var(--primary);
}

/* Office cards */
.office-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

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

.office-card h4 {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.office-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.office-info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.office-info-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Pronunciation/speech cards */
.speech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: var(--transition);
}

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

.speech-date-block {
  text-align: center;
  flex-shrink: 0;
  width: 52px;
}

.speech-day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.speech-month {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.speech-content h4 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.speech-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Podcast cards */
.podcast-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.podcast-card:hover {
  border-color: var(--primary);
}

.podcast-thumbnail {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.podcast-info {
  flex: 1;
}

.podcast-episode {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.podcast-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.podcast-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Press release list */
.press-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: var(--transition);
}

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

.press-icon {
  color: var(--danger);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.press-info {
  flex: 1;
}

.press-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.press-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Activity ranking */
.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: var(--transition);
}

.ranking-item:hover {
  border-color: var(--border-hover);
}

.ranking-position {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ranking-position.top-3 {
  background: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
}

.ranking-info {
  flex: 1;
}

.ranking-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.ranking-score {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

/* Org chart */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.org-level {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.org-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  min-width: 140px;
  transition: var(--transition);
}

.org-card:hover {
  border-color: var(--primary);
}

.org-card h5 {
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.org-card p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.org-connector {
  width: 2px;
  height: 24px;
  background: var(--border);
  margin: 0 auto;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
  font-size: 0.75rem;
  z-index: 3;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--text-subtle);
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--text-subtle);
  border-radius: 2px;
  animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* Number counter */
.count-up {
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

/* Loading state */
.page-loading {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
