/* ══════════════════════════════════════════════════════════════
   4ASSO — GLOBAL STYLESHEET
   ══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --bg:           #0c0f0a;
  --surface:      #13170f;
  --surface2:     #1a1f14;
  --surface3:     #20271a;
  --border:       rgba(180, 220, 100, 0.12);
  --border-hover: rgba(180, 220, 100, 0.28);
  --accent:       #b4dc46;
  --accent2:      #6fcf97;
  --accent3:      #f2994a;
  --text:         #eef2e6;
  --text-muted:   #8a9278;
  --radius:       16px;
  --radius-sm:    10px;
  --radius-xs:    6px;
  --nav-h:        68px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --shadow:       0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-sm:    0 4px 16px rgba(0, 0, 0, 0.3);
  --glow:         0 0 40px rgba(180, 220, 70, 0.15);
  --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(111,207,151,0.055) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 85% 90%, rgba(180,220,70,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 45%, rgba(242,153,74,0.025) 0%, transparent 60%);
}
body > * { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px;
  height: var(--nav-h);
  background: rgba(12, 15, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.navbar-compact { height: 60px; }

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 14px; color: #0c0f0a;
  letter-spacing: -0.5px; flex-shrink: 0;
}
.logo-mark.sm { width: 28px; height: 28px; font-size: 11px; border-radius: 7px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  color: var(--text); letter-spacing: -0.5px;
}
.logo-text.sm { font-size: 17px; }
.logo-text span { color: var(--accent); }

.nav-center {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 14px; color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--accent); background: rgba(180,220,70,0.1); }

.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-stats {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  font-size: 13px; color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-stats:hover { border-color: var(--accent); color: var(--text); }
.stat-dot {
  width: 8px; height: 8px;
  background: var(--accent2); border-radius: 50%;
  animation: pulse-dot 2.4s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}
.stat-amount { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--accent2); }

.avatar-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #0c0f0a;
  transition: all var(--transition); flex-shrink: 0;
}
.avatar-btn:hover { transform: scale(1.08); box-shadow: 0 0 18px rgba(180,220,70,0.35); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 38px; height: 38px; padding: 8px;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  transition: all var(--transition);
}
.hamburger span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.25s;
  transform-origin: center;
}
.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 {
  display: none;
  flex-direction: column;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(13,17,10,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 99; padding: 12px 16px 20px;
  transform: translateY(-4px); opacity: 0;
  transition: all 0.25s;
  pointer-events: none;
}
.mobile-nav.open { display: flex; transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-link {
  padding: 14px 16px;
  font-size: 16px; color: var(--text-muted);
  background: none; border: none; text-align: left;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.mobile-link:hover, .mobile-link.active { color: var(--accent); background: rgba(180,220,70,0.08); }
.mobile-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* Navbar search (search page) */
.navbar-search-wrap {
  flex: 1; max-width: 480px;
  display: flex; align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.navbar-search-wrap:focus-within { border-color: var(--accent); }
.navbar-search {
  flex: 1; padding: 9px 16px;
  background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-body); font-size: 14px;
  min-width: 0;
}
.navbar-search::placeholder { color: var(--text-muted); }
.navbar-search-btn {
  width: 36px; height: 36px; margin: 2px;
  background: var(--accent); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity var(--transition);
}
.navbar-search-btn svg { width: 15px; height: 15px; color: #0c0f0a; }
.navbar-search-btn:hover { opacity: 0.85; }

/* ── PROFILE PANEL ──────────────────────────────────────────── */
.profile-panel {
  position: fixed;
  top: calc(var(--nav-h) + 10px); right: 20px;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  z-index: 200;
  display: none;
}
.profile-panel.open { display: block; animation: panel-in 0.2s ease; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.profile-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.profile-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #0c0f0a;
}
.profile-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.profile-email { font-size: 12px; color: var(--text-muted); }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.pstat { background: var(--surface2); border-radius: var(--radius-sm); padding: 10px 12px; text-align: center; }
.pstat-val { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--accent); }
.pstat-lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.profile-history { margin-bottom: 14px; }
.profile-history h4 { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.history-item { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.history-item:last-child { border-bottom: none; }
.history-asso { color: var(--text-muted); }
.history-amount { color: var(--accent2); font-weight: 500; font-family: var(--font-display); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-full { display: block; width: 100%; padding: 11px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; text-align: center; transition: all var(--transition); border: none; }
.btn-accent { background: var(--accent); color: #0c0f0a; font-family: var(--font-display); font-weight: 700; margin-bottom: 8px; }
.btn-accent:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(180,220,70,0.3); }
.btn-outline { background: transparent; border: 1px solid var(--border) !important; color: var(--text-muted); }
.btn-outline:hover { border-color: var(--accent) !important; color: var(--text); }
.btn-cta {
  display: inline-flex; align-items: center;
  padding: 14px 28px;
  background: var(--accent); color: #0c0f0a;
  border-radius: 99px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  transition: all var(--transition);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(180,220,70,0.35); }
.btn-cta-outline {
  display: inline-flex; align-items: center;
  padding: 13px 28px;
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  transition: all var(--transition);
}
.btn-cta-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px 60px;
  min-height: calc(100vh - var(--nav-h));
}
.hero-inner { width: 100%; max-width: 760px; }

.eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; font-weight: 600;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05; letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-title .accent, .accent { color: var(--accent); }
.accent2 { color: var(--accent2); }
.hero-sub {
  font-size: clamp(16px, 2vw, 18px); color: var(--text-muted);
  font-weight: 300; margin-bottom: 40px; line-height: 1.7;
}
.search-hint { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* ── SEARCH BOX ─────────────────────────────────────────────── */
.search-wrap { width: 100%; max-width: 680px; position: relative; margin-bottom: 12px; }
.search-box {
  width: 100%; padding: 20px 152px 20px 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px; color: var(--text);
  font-family: var(--font-body); font-size: 16px;
  outline: none; transition: all 0.3s;
  box-shadow: var(--shadow);
}
.search-box::placeholder { color: var(--text-muted); }
.search-box:focus { border-color: var(--accent); box-shadow: var(--shadow), var(--glow); background: var(--surface2); }
.search-actions {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 6px; align-items: center;
}
.btn-ai {
  display: flex; align-items: center; gap: 5px; padding: 8px 13px;
  background: rgba(180,220,70,0.12); border: 1px solid rgba(180,220,70,0.25);
  border-radius: 999px; color: var(--accent);
  font-size: 12px; font-weight: 500;
  transition: all var(--transition); white-space: nowrap;
}
.btn-ai:hover { background: rgba(180,220,70,0.2); }
.btn-ai[aria-pressed="false"] { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--text-muted); }
.btn-search {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); border: none;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.btn-search svg { width: 17px; height: 17px; }
.btn-search:hover { transform: scale(1.06); box-shadow: 0 0 20px rgba(180,220,70,0.4); }

/* ── COUNTERS ───────────────────────────────────────────────── */
.counter-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.counter-strip {
  display: flex; justify-content: center; align-items: center;
  gap: 0; flex-wrap: wrap;
  max-width: 900px; margin: 0 auto;
}
.counter-item { text-align: center; padding: 28px 48px; }
.counter-divider { width: 1px; height: 40px; background: var(--border); }
.counter-val {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 4vw, 40px); letter-spacing: -1px;
  color: var(--accent); line-height: 1;
}
.counter-lbl { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

/* ── SECTIONS ───────────────────────────────────────────────── */
.section-inner { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.how-section { padding: 80px 24px; }
.section-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px,4vw,44px); letter-spacing: -1px; margin-bottom: 12px; }
.section-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 48px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin-top: 48px; }
.step { }
.step-num { font-family: var(--font-display); font-size: 60px; font-weight: 800; color: rgba(180,220,70,0.07); line-height: 1; margin-bottom: -14px; }
.step-icon { font-size: 28px; margin-bottom: 12px; }
.step-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── ASSOC PREVIEW ─────────────────────────────────────────── */
.assos-section { padding: 80px 24px; }
.assos-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 40px; }
.asso-preview-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: all var(--transition);
}
.asso-preview-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.asso-emoji { display: block; font-size: 32px; margin-bottom: 12px; }
.asso-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; font-weight: 600;
}
.badge-env   { background: rgba(180,220,70,0.15);  color: var(--accent);  border: 1px solid rgba(180,220,70,0.2); }
.badge-social{ background: rgba(111,207,151,0.15); color: var(--accent2); border: 1px solid rgba(111,207,151,0.2); }
.badge-sante { background: rgba(242,153,74,0.15);  color: var(--accent3); border: 1px solid rgba(242,153,74,0.2); }
.asso-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.asso-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.asso-bar-wrap { display: flex; align-items: center; gap: 8px; }
.asso-pct { font-family: var(--font-display); font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

.cta-center { text-align: center; }

/* ── VOTE BAR ───────────────────────────────────────────────── */
.vote-bar { height: 4px; background: var(--surface3); border-radius: 99px; overflow: hidden; flex: 1; }
.vote-bar.large { height: 6px; }
.vote-fill { height: 100%; border-radius: 99px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.fill-1 { background: var(--accent); }
.fill-2 { background: var(--accent2); }
.fill-3 { background: var(--accent3); }

/* ── SEARCH PAGE ────────────────────────────────────────────── */
.search-page { }
.search-main { min-height: calc(100vh - 60px - 60px); padding: 0; }

.search-filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 60px; z-index: 90;
}
.filter-chip {
  padding: 6px 16px; border-radius: 99px; font-size: 13px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); transition: all var(--transition);
}
.filter-chip:hover { border-color: var(--border-hover); color: var(--text); }
.filter-chip.active { background: rgba(180,220,70,0.12); border-color: rgba(180,220,70,0.3); color: var(--accent); }
.ai-toggle-wrap { margin-left: auto; }

.search-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 32px; max-width: 1100px; margin: 0 auto;
  padding: 28px 24px;
}
.results-column { min-width: 0; }

.ai-panel {
  background: var(--surface);
  border: 1px solid rgba(180,220,70,0.2);
  border-radius: var(--radius); padding: 18px 20px;
  margin-bottom: 24px; display: none;
  animation: panel-in 0.3s ease;
}
.ai-panel.open { display: block; }
.ai-panel-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ai-spark { width: 22px; height: 22px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-label { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--accent); }
.ai-loading { display: flex; gap: 4px; align-items: center; }
.ai-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: ai-bounce 1.2s infinite; }
.ai-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-bounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
.ai-text { font-size: 14px; line-height: 1.75; color: var(--text); display: none; }
.ai-sources { display: none; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ai-source-chip { font-size: 11px; background: var(--surface2); border: 1px solid var(--border); border-radius: 99px; padding: 3px 10px; color: var(--text-muted); }

.results-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.result-card { padding: 16px 0; border-bottom: 1px solid var(--border); }
.result-url { font-size: 12px; color: var(--accent2); margin-bottom: 3px; }
.result-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--text); margin-bottom: 5px; cursor: pointer; transition: color var(--transition); }
.result-title:hover { color: var(--accent); }
.result-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); }

.pagination { display: flex; gap: 6px; justify-content: flex-start; padding: 24px 0 8px; flex-wrap: wrap; }
.page-btn { width: 38px; height: 38px; border-radius: var(--radius-xs); font-size: 14px; background: var(--surface2); border: 1px solid var(--border); color: var(--text-muted); transition: all var(--transition); }
.page-btn:hover, .page-btn.active { background: rgba(180,220,70,0.12); border-color: var(--accent); color: var(--accent); }
.page-next { width: auto; padding: 0 16px; }

.search-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.sidebar-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.impact-stat { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.impact-val { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--accent); }
.impact-lbl { font-size: 12px; color: var(--text-muted); }

/* ── VOTE PAGE ──────────────────────────────────────────────── */
.page-hero { padding: 64px 24px 40px; }
.vote-meta-bar { display: inline-flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; margin-bottom: 0; }
.vote-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }

.vote-section { padding: 0 24px 80px; }
.vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 28px; }

.vote-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  cursor: pointer; transition: all 0.28s; position: relative; overflow: hidden;
}
.vote-card::after {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.vote-card:nth-child(1)::after { background: radial-gradient(ellipse at top left, rgba(180,220,70,0.07), transparent 60%); }
.vote-card:nth-child(2)::after { background: radial-gradient(ellipse at top left, rgba(111,207,151,0.07), transparent 60%); }
.vote-card:nth-child(3)::after { background: radial-gradient(ellipse at top left, rgba(242,153,74,0.07), transparent 60%); }
.vote-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow); }
.vote-card:hover::after { opacity: 1; }
.vote-card.selected:nth-child(1) { border-color: var(--accent); }
.vote-card.selected:nth-child(2) { border-color: var(--accent2); }
.vote-card.selected:nth-child(3) { border-color: var(--accent3); }
.vote-card.selected::after { opacity: 1; }
.vote-check {
  position: absolute; top: 14px; right: 14px;
  width: 26px; height: 26px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.vote-card.selected .vote-check { opacity: 1; transform: scale(1); }

.asso-impact { margin-bottom: 18px; }
.impact-chip { display: inline-block; font-size: 12px; color: var(--text-muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 99px; padding: 4px 12px; }

.vote-progress-wrap { margin-bottom: 16px; }
.vote-progress-header { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.vote-btn {
  width: 100%; padding: 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  border: 1.5px solid var(--border); background: transparent; color: var(--text-muted);
}
.vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.vote-card.selected .vote-btn { background: var(--accent); border-color: var(--accent); color: #0c0f0a; }
.vote-card:nth-child(2).selected .vote-btn { background: var(--accent2); border-color: var(--accent2); }
.vote-card:nth-child(3).selected .vote-btn { background: var(--accent3); border-color: var(--accent3); }

.voted-banner {
  background: rgba(180,220,70,0.07); border: 1px solid rgba(180,220,70,0.2);
  border-radius: var(--radius); padding: 18px 22px;
  display: none; align-items: center; gap: 14px; flex-wrap: wrap;
}
.voted-banner.show { display: flex; animation: panel-in 0.3s ease; }
.voted-emoji { font-size: 24px; flex-shrink: 0; }
.voted-banner-text { flex: 1; font-size: 14px; line-height: 1.6; }
.voted-banner-text strong { font-family: var(--font-display); color: var(--accent); }
.voted-share {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  background: rgba(180,220,70,0.12); border: 1px solid rgba(180,220,70,0.25);
  border-radius: 99px; color: var(--accent); font-size: 13px;
  transition: all var(--transition); flex-shrink: 0;
}
.voted-share:hover { background: rgba(180,220,70,0.22); }

.vote-history-section { margin-top: 48px; }
.vote-history-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 16px; }
.vote-history-grid { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.vh-item { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; background: var(--surface); transition: background var(--transition); }
.vh-item:last-child { border-bottom: none; }
.vh-item:hover { background: var(--surface2); }
.vh-month { color: var(--text-muted); font-size: 13px; min-width: 110px; }
.vh-asso { flex: 1; }
.vh-amt { font-family: var(--font-display); font-weight: 700; color: var(--accent2); }

/* ── ABOUT PAGE ─────────────────────────────────────────────── */
.about-section { padding: 60px 24px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { font-size: 15px; color: var(--text-muted); line-height: 1.8; }
.about-text p strong { color: var(--text); }
.about-visual { display: flex; justify-content: center; }
.about-stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 48px; text-align: center;
}
.about-big-num { font-family: var(--font-display); font-weight: 800; font-size: 80px; line-height: 1; margin-bottom: 12px; }
.about-stat-card p { font-size: 14px; color: var(--text-muted); max-width: 160px; line-height: 1.6; }

.values-section { padding: 60px 24px; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 40px; }
.value-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all var(--transition); }
.value-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.value-icon { font-size: 28px; margin-bottom: 12px; }
.value-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

.faq-section { padding: 60px 24px; }
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; padding: 18px 20px;
  background: var(--surface); border: none; color: var(--text);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  text-align: left; transition: background var(--transition);
}
.faq-q:hover { background: var(--surface2); }
.faq-arrow { flex-shrink: 0; transition: transform 0.25s; color: var(--text-muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.25s; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 20px 18px; font-size: 14px; color: var(--text-muted); line-height: 1.75; }

.cta-section { padding: 80px 24px; background: var(--surface); border-top: 1px solid var(--border); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 48px 24px 0; }
.footer-inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
}
.footer-brand { }
.footer-tagline { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.footer-links-group h4 { font-family: var(--font-display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; }
.footer-links-group a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; transition: color var(--transition); }
.footer-links-group a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1040px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 0; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}
.footer.footer-compact { padding-top: 0; }
.footer.footer-compact .footer-bottom { border-top: 1px solid var(--border); max-width: none; padding: 16px 24px; }

/* ── MODALS ─────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  z-index: 400; display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.overlay.open { display: flex; animation: fade-in 0.2s ease; }
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  max-width: 400px; width: 100%;
  box-shadow: var(--shadow); animation: panel-in 0.25s ease;
  position: relative;
}
.modal h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.modal p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  color: var(--text-muted); font-size: 22px; line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; font-weight: 600; }
.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-body); font-size: 14px; outline: none;
  transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--accent); }
.divider-text {
  text-align: center; font-size: 12px; color: var(--text-muted);
  margin: 14px 0; position: relative;
}
.divider-text::before, .divider-text::after {
  content: ''; position: absolute; top: 50%; height: 1px;
  background: var(--border); width: 42%;
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* ── TOAST ──────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius-sm); padding: 12px 18px;
  font-size: 14px; display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow); z-index: 999;
  transform: translateY(80px); opacity: 0;
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
  max-width: calc(100vw - 48px);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

/* ── TABLET (≤ 900px) ──── */
@media (max-width: 900px) {
  .nav-center { display: none; }
  .hamburger { display: flex; }
  .navbar { padding: 0 16px; gap: 12px; }
  .stat-label { display: none; }
  .nav-stats { padding: 6px 10px; }

  .search-layout { grid-template-columns: 1fr; }
  .search-sidebar { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-visual { display: none; }

  .counter-item { padding: 20px 28px; }
}

/* ── MOBILE (≤ 600px) ──── */
@media (max-width: 600px) {
  :root { --nav-h: 60px; }

  .navbar { padding: 0 14px; }
  .logo-text { font-size: 17px; }
  .logo-mark { width: 32px; height: 32px; font-size: 12px; }

  .hero { padding: 48px 16px 40px; min-height: auto; }
  .hero-title { font-size: clamp(34px, 9vw, 52px); }
  .search-box { padding: 16px 130px 16px 18px; font-size: 15px; }
  .btn-ai span { display: none; }

  .counter-strip { flex-direction: column; gap: 0; }
  .counter-divider { width: 80%; height: 1px; margin: 0 auto; }
  .counter-item { padding: 18px 24px; width: 100%; }

  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .assos-preview-grid { grid-template-columns: 1fr; }
  .vote-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  .vote-meta-bar { gap: 12px; }
  .page-hero { padding: 40px 16px 24px; }

  .modal { padding: 24px; }
  .toast { bottom: 16px; right: 16px; left: 16px; }

  .navbar-search-wrap { max-width: none; }

  .search-filters { padding: 10px 14px; gap: 6px; }
  .filter-chip { padding: 5px 12px; font-size: 12px; }
  .ai-toggle-wrap { width: 100%; }
  .btn-ai { width: 100%; justify-content: center; }

  .vh-month { min-width: 80px; font-size: 11px; }
  .vh-item { padding: 12px 14px; gap: 10px; }

  .faq-q { font-size: 14px; padding: 14px 16px; }
  .faq-a p { padding: 0 16px 14px; }

  .vote-card { padding: 20px; }

  .profile-panel { right: 12px; left: 12px; width: auto; }

  .btn-cta, .btn-cta-outline { padding: 12px 20px; font-size: 14px; }

  .how-section { padding: 56px 16px; }
  .assos-section { padding: 56px 16px; }
  .about-section { padding: 40px 16px; }
  .values-section { padding: 40px 16px; }
  .faq-section { padding: 40px 16px; }
  .cta-section { padding: 56px 16px; }
  .vote-section { padding: 0 16px 56px; }
}

/* ── VERY SMALL (≤ 380px) ── */
@media (max-width: 380px) {
  .hero-title { font-size: 32px; }
  .search-box { padding: 14px 112px 14px 16px; }
  .btn-search { width: 38px; height: 38px; }
  .counter-val { font-size: 26px; }
}

/* ══════════════════════════════════════════════════════════════
   DEVELOPER SECTION (about.html)
══════════════════════════════════════════════════════════════ */
.dev-section {
  padding: 72px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dev-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.dev-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
  border-radius: 20px 20px 0 0;
}

.dev-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.dev-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: #0c0f0a;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.dev-avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: ring-spin 8s linear infinite;
  opacity: 0.5;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.dev-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.dev-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.dev-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(180,220,70,0.12);
  border: 1px solid rgba(180,220,70,0.25);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.dev-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.dev-bio {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}
.dev-bio strong { color: var(--text); font-weight: 500; }

.dev-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.dev-skill {
  padding: 5px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--transition);
}
.dev-skill:hover { border-color: var(--accent); color: var(--accent); }

.dev-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.dev-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 13px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.dev-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.dev-quote {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px 24px 32px;
  position: relative;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
}

.quote-mark {
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: 52px;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  font-style: normal;
}

.dev-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
  font-family: var(--font-display);
}

/* Responsive dev card */
@media (max-width: 700px) {
  .dev-card {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 24px;
  }
  .dev-avatar-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto;
  }
  .dev-avatar { width: 88px; height: 88px; font-size: 26px; }
  .dev-avatar-ring { inset: -4px; }
  .dev-header { justify-content: center; text-align: center; flex-direction: column; gap: 8px; }
  .dev-name { font-size: 22px; }
  .dev-links { justify-content: center; }
  .dev-skills { justify-content: center; }
  .dev-bio { text-align: center; }
}

@media (max-width: 500px) {
  .dev-section { padding: 48px 16px; }
  .dev-quote { padding: 20px 16px 20px 24px; font-size: 14px; }
  .quote-mark { font-size: 40px; }
}
