@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Onest:wght@300;400;500;600;700;800&display=swap');

/* ===== VARIABLES ===== */
:root {
  --parchment: #F8F4EF;
  --parchment-dark: #EDE7DC;
  --ink: #1A1F2E;
  --ink-muted: #4A5168;
  --ink-faint: #8891A4;
  --red: #C83232;
  --red-dark: #A12828;
  --red-light: #FDF0F0;
  --blue: #1C3B6A;
  --blue-light: #EBF0F8;
  --gold: #B8861E;
  --gold-light: #FDF6E3;
  --border: #DDD6CA;
  --border-dark: #C2BAB0;
  --white: #FFFFFF;
  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body: 'Onest', system-ui, -apple-system, sans-serif;
  --max-width: 1320px;
  --nav-height: 64px;
  --radius-sm: 3px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(26,31,46,0.07);
  --shadow-md: 0 4px 16px rgba(26,31,46,0.09);
  --shadow-lg: 0 8px 32px rgba(26,31,46,0.13);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { line-height: 1.7; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 96px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 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: 20px; }
.grid-main { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }

/* ===== TRICOLOR DIVIDER ===== */
.tricolor {
  display: flex;
  height: 3px;
  width: 100%;
}
.tricolor span:nth-child(1) { flex: 1; background: #C83232; }
.tricolor span:nth-child(2) { flex: 1; background: #1C3B6A; }
.tricolor span:nth-child(3) { flex: 1; background: #F8F4EF; border: 1px solid var(--border-dark); }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}
.section-header__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-header__count {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink-faint);
  font-weight: 500;
}
.section-header__link {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}
.section-header__link:hover { gap: 8px; }

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(26,31,46,0.05);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 40px;
  flex-shrink: 0;
}
.nav-logo__monogram {
  width: 36px;
  height: 36px;
  background: transparent;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.03em;
  border-radius: var(--radius-sm);
}
.nav-logo__name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 0.65;
  max-width: 120px;
}
.nav-logo__name strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--parchment); }
.nav-link.active { color: var(--red); font-weight: 600; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-script-toggle {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-faint);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  transition: all 0.15s;
  background: none;
  cursor: pointer;
}
.nav-script-toggle:hover { color: var(--ink); border-color: var(--border-dark); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-secondary:hover { border-color: white; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-dark);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border-color: transparent;
  padding-left: 0;
}
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ===== TAGS / BADGES ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--parchment-dark);
  color: var(--ink-muted);
  white-space: nowrap;
}
.tag--red { background: var(--red-light); color: var(--red-dark); }
.tag--blue { background: var(--blue-light); color: var(--blue); }
.tag--gold { background: var(--gold-light); color: var(--gold); }
.tag--green { background: #E8F5ED; color: #1A7A3D; }

/* ===== STATUS BADGE ===== */
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.status--active::before { background: #22A855; }
.status--pending::before { background: var(--gold); }
.status--adopted::before { background: var(--blue); }
.status--rejected::before { background: var(--red); }

/* ===== PROPOSAL CARD ===== */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-md);
}
.card-header { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  flex: 1;
}
.card-title:hover { color: var(--red); }
.card-excerpt {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}
.card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.card-meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.card-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.card-vote__count {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.card-vote__label { font-size: 0.65rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.card-vote__btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  background: white;
  font-size: 1rem;
}
.card-vote__btn:hover { border-color: var(--red); background: var(--red-light); }
.card-vote__btn.voted { border-color: var(--red); background: var(--red); color: white; }

/* ===== HERO ===== */
.hero {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(200,50,50,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 30% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hero-stat {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.hero-stat__number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ===== THEME GRID ===== */
.theme-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.15s;
  cursor: pointer;
}
.theme-card:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.theme-card__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--parchment-dark);
  border-radius: var(--radius-sm);
}
.theme-card__name {
  font-weight: 600;
  font-size: 0.925rem;
  line-height: 1.3;
}
.theme-card__count {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 2px;
}

/* ===== FILTERS ===== */
.filters {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.filter-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.filter-select {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  -webkit-appearance: none;
}
.filter-select:focus { outline: 2px solid var(--red); outline-offset: 1px; }

/* ===== VOTE BLOCK (detail page) ===== */
.vote-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.vote-block__count {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.vote-block__label {
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.vote-block__bar {
  height: 4px;
  background: var(--parchment-dark);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  overflow: hidden;
}
.vote-block__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), #E05050);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.vote-block__btn {
  width: 100%;
  padding: 14px;
  background: var(--red);
  color: white;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vote-block__btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.vote-block__btn.voted { background: var(--blue); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-widget__header {
  padding: 14px 20px;
  background: var(--parchment-dark);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.sidebar-widget__body { padding: 20px; }
.sidebar-list { display: flex; flex-direction: column; }
.sidebar-list-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
}
.sidebar-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list-item__title { color: var(--ink); line-height: 1.4; flex: 1; }
.sidebar-list-item__count { font-weight: 700; color: var(--ink-muted); flex-shrink: 0; font-size: 0.8rem; }

/* ===== PROPOSAL DETAIL ===== */
.proposal-header {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.proposal-header__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.proposal-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.proposal-body {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink-muted);
}
.proposal-body p + p { margin-top: 1.2em; }

/* ===== COMMENTS ===== */
.comment {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}
.comment__content { flex: 1; }
.comment__author { font-weight: 600; font-size: 0.875rem; margin-bottom: 4px; }
.comment__time { font-size: 0.75rem; color: var(--ink-faint); margin-left: 8px; }
.comment__body { font-size: 0.9rem; line-height: 1.65; }
.comment--reply { padding-left: 50px; }

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.form-input, .form-textarea, .form-select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color 0.15s;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--red);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.78rem; color: var(--ink-faint); }
.form-error { font-size: 0.78rem; color: var(--red); }

/* ===== AUTH CARD ===== */
.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-card__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-card__subtitle { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 28px; }
.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.google-btn {
  width: 100%;
  padding: 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--font-body);
  cursor: pointer;
}
.google-btn:hover { border-color: var(--border-dark); box-shadow: var(--shadow-sm); }

/* ===== LEADERBOARD ===== */
.rank-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.rank-row:hover { background: var(--parchment-dark); }
.rank-row__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-faint);
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.rank-row--gold .rank-row__num { color: var(--gold); }
.rank-row--silver .rank-row__num { color: #8899AA; }
.rank-row--bronze .rank-row__num { color: #A87652; }
.rank-row__content { flex: 1; }
.rank-row__title { font-weight: 600; font-size: 0.95rem; margin-bottom: 3px; }
.rank-row__meta { font-size: 0.78rem; color: var(--ink-faint); display: flex; gap: 12px; }
.rank-row__votes {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
}

/* ===== PLACE CARD ===== */
.place-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.15s;
}
.place-card:hover { border-color: var(--border-dark); box-shadow: var(--shadow-sm); }
.place-card__region {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.place-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.place-card__stats { display: flex; gap: 16px; }
.place-card__stat { font-size: 0.8rem; color: var(--ink-muted); }
.place-card__stat strong { color: var(--ink); font-weight: 700; }

/* ===== SURVEY CARD ===== */
.survey-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.15s;
}
.survey-card:hover { border-color: var(--border-dark); box-shadow: var(--shadow-sm); }
.survey-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.35;
}
.survey-card__desc { font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 16px; line-height: 1.6; }
.progress-bar {
  height: 5px;
  background: var(--parchment-dark);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 6px;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), #E05050);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}
.progress-label { font-size: 0.75rem; color: var(--ink-faint); display: flex; justify-content: space-between; }

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}
.footer-brand__desc { font-size: 0.875rem; line-height: 1.7; max-width: 260px; }
.footer-col__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link { font-size: 0.875rem; transition: color 0.15s; }
.footer-link:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 20px; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
}
.page-hero__breadcrumb {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.page-hero__desc { font-size: 1rem; color: var(--ink-muted); max-width: 600px; }

/* ===== DIASPORA BANNER ===== */
.diaspora-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #0D2952 100%);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 48px 0;
}
.diaspora-banner__text { color: white; }
.diaspora-banner__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.diaspora-banner__desc { font-size: 0.9rem; opacity: 0.75; max-width: 400px; line-height: 1.65; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--ink-faint);
}
.empty-state__icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state__title { font-size: 1.1rem; font-weight: 600; color: var(--ink-muted); margin-bottom: 8px; }
.empty-state__desc { font-size: 0.875rem; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 0;
}
.pagination__btn {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  padding: 0 10px;
}
.pagination__btn:hover { border-color: var(--ink); color: var(--ink); }
.pagination__btn.active { background: var(--ink); border-color: var(--ink); color: white; }
.pagination__ellipsis { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); font-size: 0.85rem; }

/* ===== ALERT ===== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  border-left: 3px solid;
  margin-bottom: 16px;
}
.alert--success { background: #EBF7F1; color: #1A6B3E; border-color: #22A855; }
.alert--error { background: var(--red-light); color: var(--red-dark); border-color: var(--red); }
.alert--info { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-main { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .diaspora-banner { flex-direction: column; }
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 48px 0; }
  .section { padding: 48px 0; }
  .auth-card { padding: 28px 20px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.1s; }
.fade-up-3 { animation-delay: 0.15s; }
.fade-up-4 { animation-delay: 0.2s; }

/* ===== CONSENT BANNER ===== */
.consent-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 480px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.consent-banner p { font-size: 0.85rem; opacity: 0.8; flex: 1; line-height: 1.5; }
.consent-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent-btn-accept {
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.consent-btn-reject {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
}
