/* =================================================================
   PNL Sector 1 — Rally Theme (Digital Civic 2026)
   Dark navy background, bright yellow accents, bold Archivo uppercase.
   Pastreaza clasele existente (.card, .grid, .btn, .person, .section,
   .container, formulare, etc.) pentru compatibilitate cu paginile
   interioare.
   ================================================================= */

:root {
  /* Rally palette */
  --bg:        #0b1f4a;
  --bg-2:      #0a1a3e;
  --bg-3:      #081530;
  --bg-deep:   #050d22;

  --ink:       #f4f1e6;
  --ink-2:     #cfd4e4;
  --ink-3:     #8b95b3;

  --line:      rgba(244,241,230,.10);
  --line-2:    rgba(244,241,230,.18);
  --line-3:    rgba(244,241,230,.30);

  --y:         #ffd400;
  --y-2:       #ffe04d;
  --y-soft:    #fff3a0;
  --y-dim:     rgba(255,212,0,.18);
  --r:         #ff5430;

  /* PNL accents (legacy) */
  --pnl-blue:   #003894;
  --pnl-yellow: #ffd400;
  --pnl-red:    #c8102e;

  /* Aliasuri pentru compatibilitate */
  --paper:     var(--bg);
  --bone:      var(--bg);
  --bone-2:    var(--bg-2);
  --bone-3:    var(--bg-3);
  --white:     #ffffff;
  --ink-mid:   var(--ink-2);
  --ink-soft:  var(--ink-3);
  --muted:     var(--ink-3);
  --text-muted:var(--ink-3);
  --line-strong: var(--line-2);
  --pnl-blue-deep: var(--bg-deep);
  --pnl-blue-mid:  var(--bg-2);
  --pnl-blue-soft: var(--bg);
  --pnl-yellow-warm: var(--y-2);
  --pnl-red-deep:  #8e0b20;
  --navy-950:  var(--bg-deep);
  --navy-900:  var(--bg-2);
  --navy-800:  var(--bg);
  --gold-500:  var(--y);
  --gold-600:  var(--y-2);
  --gold-300:  var(--y-soft);
  --ivory:     var(--bg-2);
  --ok:        #7be8a4;
  --warn:      var(--y);
  --err:       #ff5430;

  /* Layout */
  --max:   1360px;
  --r-sm:  0;
  --r:     0;
  --r-lg:  0;

  /* Shadow */
  --sh-1: 0 8px 24px rgba(0,0,0,.25);
  --sh-2: 0 20px 50px rgba(0,0,0,.35);
  --sh-3: 0 30px 80px -20px rgba(0,0,0,.5);

  /* Typography */
  --f-display: 'Archivo', 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-serif:   'Archivo', system-ui, sans-serif;
  --f-sans:    'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-narrow:  'Archivo Narrow', 'Archivo', sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'IBM Plex Mono', Menlo, monospace;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
/* Map grid pattern background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0/64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, rgba(0,0,0,.4) 60%, transparent 100%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, rgba(0,0,0,.4) 60%, transparent 100%);
  opacity: .55;
}
body > * { position: relative; z-index: 1; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--y); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--y); color: var(--bg-2); }

/* ---------- Tipografie ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .96;
  margin: 0 0 18px;
  color: var(--ink);
}
h1 {
  font-size: clamp(48px, 9vw, 160px);
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(34px, 5.5vw, 78px);
  font-weight: 800;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
h3 {
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 700;
  letter-spacing: -.015em;
}
h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
p { margin: 0 0 1em; color: var(--ink-2); }
p.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
  border-left: 3px solid var(--y);
  padding-left: 20px;
}
em.y, .em-y {
  font-style: italic;
  color: var(--y);
  font-weight: 900;
}
.strike {
  position: relative;
  display: inline-block;
}
.strike::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 55%;
  height: 5px;
  background: var(--y);
  transform: rotate(-2deg);
}

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.narrow { font-family: var(--f-narrow); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--y);
  display: inline-block;
}

/* Pill (legacy compat) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bg-2);
  padding: 8px 14px;
  background: var(--y);
  font-weight: 700;
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg-2);
  animation: pulseBlink 1.6s infinite;
}
@keyframes pulseBlink { 50% { opacity: .4; } }

/* ---------- Container ---------- */
.container, .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) {
  .container, .wrap, .container-sm { padding: 0 20px; }
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.topbar .container, .topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  gap: 20px;
}
.topbar .live, .topbar > .container > div:first-child {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--y);
  font-family: var(--f-mono);
  letter-spacing: .1em;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
}
.topbar a { color: var(--ink-3); transition: color .2s; }
.topbar a:hover { color: var(--y); }
.topbar .socials { display: flex; gap: 18px; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 31, 74, .85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.logo:hover .logo-img { transform: rotate(-6deg) scale(1.04); }
.logo-img-footer { filter: none; opacity: .85; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo-text small {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 5px;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 10px 14px;
  position: relative;
  transition: color .2s ease;
}
.nav-links a::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: 0;
  height: 2px;
  background: var(--y);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--y); }
.nav-links a:hover::before { transform: scaleX(1); }
.nav-links .nav-spacer { margin-left: auto; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  display: block;
}

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    background: var(--bg-2);
    padding: 24px 32px;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    display: none;
    z-index: 40;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::before { display: none; }
  .nav-links .nav-spacer { margin-left: 0; }
  .nav-links .btn { width: 100%; justify-content: center; height: 48px; }
}

/* ---------- Zones strip ---------- */
.zones-strip {
  background: var(--bg-3);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.zones-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto repeat(5, 1fr);
  align-items: stretch;
  min-height: 56px;
}
.zones-strip-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.zones-label-text {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--y);
  font-weight: 700;
}
.zones-label-date {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .15em;
  color: var(--ink-3);
  margin-top: 2px;
}
.zones-strip-inner > a {
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--ink);
  transition: all .2s ease;
}
.zones-strip-inner > a:last-child { border-right: 0; }
.zones-strip-inner > a:hover {
  background: var(--y);
  color: var(--bg-2);
}
.zones-strip-num {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.zones-strip-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 2px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.zones-strip-inner > a:hover .zones-strip-sub { color: var(--bg-2); opacity: .7; }
@media (max-width: 880px) { .zones-strip { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--y);
  color: var(--bg-2);
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  transform: translateX(-101%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  z-index: 0;
}
.btn > * { position: relative; z-index: 1; transition: color .25s ease .05s; }
.btn:hover::after { transform: translateX(0); }
.btn:hover { color: var(--y); }
.btn .arr { font-size: 16px; transition: transform .3s ease; }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary, .btn-yellow, .btn-gold {
  background: var(--y); color: var(--bg-2);
}
.btn-primary::after { background: var(--bg-2); }
.btn-primary:hover, .btn-yellow:hover, .btn-gold:hover { color: var(--y); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-ghost::after { background: var(--y); }
.btn-ghost:hover { color: var(--bg-2); border-color: var(--y); }

.btn-light {
  background: var(--ink);
  color: var(--bg-2);
}
.btn-light::after { background: var(--y); }
.btn-light:hover { color: var(--bg-2); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-3);
}
.btn-outline::after { background: var(--y); }
.btn-outline:hover { color: var(--bg-2); border-color: var(--y); }

.btn-red {
  background: var(--r);
  color: #fff;
}
.btn-red::after { background: var(--bg-2); }
.btn-red:hover { color: var(--y); }

.btn-lg { height: 58px; padding: 0 30px; font-size: 14px; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 12px; }

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
  position: relative;
}
.section-tight { padding: 60px 0; }
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-dark {
  background: var(--bg-3);
}
.section-bright {
  background: var(--y);
  color: var(--bg-2);
}
.section-bright h2, .section-bright h3 { color: var(--bg-2); }
.section-bright p { color: rgba(10,26,62,.78); }

.section-header {
  margin-bottom: 56px;
  max-width: 800px;
}
.section-header .eyebrow { margin-bottom: 18px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--ink-2); font-size: 17px; max-width: 640px; }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.section-num {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--y);
  letter-spacing: .2em;
  font-weight: 600;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border-left: 1px solid var(--y);
  padding: 0 0 0 16px;
  height: fit-content;
  text-transform: uppercase;
}
.section-head .lede {
  max-width: 540px;
  font-size: 17px;
  margin-top: 18px;
  color: var(--ink-2);
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .section-num { writing-mode: horizontal-tb; transform: none; border-left: 0; border-top: 1px solid var(--y); padding: 12px 0 0; }
  .section { padding: 70px 0; }
}

/* ---------- Page header (legacy) ---------- */
.page-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 70px 0 50px;
}
.page-header h1 {
  font-size: clamp(40px, 6vw, 80px);
  margin: 16px 0 16px;
  text-transform: uppercase;
}
.page-header p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0;
}
.breadcrumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--y); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 780px; height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,212,0,.18), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero .container, .hero .wrap { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: end;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--y);
  color: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  padding: 8px 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-tag .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg-2);
  animation: pulseBlink 1.6s infinite;
}
.hero h1 .l1, .hero h1 .l2, .hero h1 .l3 { display: block; }
.hero h1 .l2 {
  color: var(--y);
  font-style: italic;
  font-weight: 900;
}
.hero h1 .l3 {
  font-size: .62em;
  letter-spacing: -.03em;
  color: var(--ink-2);
  margin-top: .18em;
  font-weight: 700;
}
.hero-lede {
  margin: 40px 0 36px;
  max-width: 560px;
  font-size: 19px;
  color: var(--ink-2);
  border-left: 3px solid var(--y);
  padding-left: 20px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-side, .hero-data {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-data .head, .hero-side h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
  color: var(--y);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 600;
  text-transform: uppercase;
}
.hero-data table { width: 100%; border-collapse: collapse; }
.hero-data td {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-2);
}
.hero-data tr:last-child td { border-bottom: 0; }
.hero-data td.n {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  text-align: right;
  letter-spacing: -.02em;
}
.hero-data td.n .delta {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  color: #7be8a4;
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: .05em;
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Stat row ---------- */
.stat-row, .stats {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  transition: background .3s ease;
}
.stat:hover { background: rgba(255,255,255,.03); }
.stat:last-child { border-right: 0; }
.stat .v, .stat .num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(40px, 4.5vw, 64px);
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink);
}
.stat .l, .stat .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
  font-weight: 600;
}
@media (max-width: 880px) { .stat-row, .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Tools band (legacy 3-col) ---------- */
.tools-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.tool {
  background: var(--bg-2);
  padding: 32px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: all .3s ease;
  position: relative;
}
.tool::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 3px;
  background: var(--y);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.tool:hover { background: var(--bg); color: var(--y); }
.tool:hover::before { transform: scaleX(1); }
.tool-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.tool h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.tool p {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 18px;
  flex: 1;
}
.tool-link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--y);
  font-weight: 700;
}
@media (max-width: 880px) { .tools-band { grid-template-columns: 1fr; } }

/* ---------- Despre / Pillars ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.quote, .quote-hero {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.quote .y, .quote-hero .y { color: var(--y); }
.quote .mark { color: var(--y); font-style: italic; }
.signature {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.signature .ph, .ph-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: repeating-linear-gradient(45deg, rgba(255,212,0,.2) 0 6px, rgba(255,212,0,.05) 6px 12px);
  border: 2px solid var(--y);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--y);
  letter-spacing: .15em;
  overflow: hidden;
}
.signature .ph img, .ph-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.signature b {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  display: block;
  color: var(--ink);
}
.signature span {
  color: var(--ink-3);
  font-size: 13px;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.pillar {
  background: var(--bg);
  padding: 28px;
  transition: background .3s;
}
.pillar:hover { background: var(--bg-3); }
.pillar .n {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 48px;
  color: var(--y);
  line-height: 1;
  letter-spacing: -.04em;
  display: block;
}
.pillar h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  margin: 14px 0 8px;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--ink);
}
.pillar p { font-size: 14px; color: var(--ink-3); margin: 0; }
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

/* Priorities (legacy) */
.priorities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.p-item {
  background: var(--bg);
  padding: 32px 28px;
  transition: background .3s ease;
}
.p-item:hover { background: var(--bg-3); }
.p-num {
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--y);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -.04em;
}
.p-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.p-item p {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
}
@media (max-width: 880px) { .priorities { grid-template-columns: 1fr; } }

/* ---------- Grids generic ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Cards (news, projects, generic) ---------- */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  position: relative;
  color: var(--ink);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--y);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.card:hover {
  border-color: var(--y);
  transform: translateY(-4px);
}
.card:hover::before { transform: scaleX(1); }
.card-img {
  display: block;
  aspect-ratio: 16/10;
  background: repeating-linear-gradient(135deg, rgba(255,212,0,.06) 0 10px, transparent 10px 20px), var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.card-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -.01em;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--y); }
.card-excerpt { font-size: 14px; color: var(--ink-3); margin: 0; flex: 1; }
.card-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--y);
  background: rgba(255,212,0,.12);
  padding: 4px 10px;
  margin-bottom: 14px;
  align-self: flex-start;
  font-weight: 600;
}

/* ---------- Person (team) ---------- */
.person {
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.person::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--y);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.person:hover {
  border-color: var(--y);
  transform: translateY(-6px);
}
.person:hover::before { transform: scaleX(1); }
.person .photo, .person .avatar {
  aspect-ratio: 1/1;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,212,0,.06) 0 12px, transparent 12px 24px),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 56px;
  color: var(--ink-3);
  font-weight: 900;
}
.person .photo img, .person .avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.person .body, .person > .name + .role {
  padding: 0;
}
.person > .photo + .name, .person .body {
  padding: 20px 22px 22px;
}
.person .name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--ink);
  text-transform: uppercase;
  padding: 18px 22px 4px;
  margin: 0;
}
.person .role {
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 22px 22px;
}
.person a { color: inherit; text-decoration: none; }

/* ---------- Projects ---------- */
.projects-band, .projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project, .project-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 32px;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.project::after, .project-item::after {
  content: "";
  position: absolute;
  right: -20px; bottom: -20px;
  width: 120px; height: 120px;
  background: var(--y);
  transform: rotate(45deg) translate(20%, 20%);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  opacity: 0;
}
.project:hover, .project-item:hover {
  border-color: var(--y);
  color: var(--ink);
}
.project:hover::after, .project-item:hover::after {
  opacity: .08;
  transform: rotate(45deg) translate(0, 0);
}
.project .meta, .project-item .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.project .cat, .project-item .cat {
  background: rgba(255,212,0,.12);
  color: var(--y);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  padding: 4px 10px;
  text-transform: uppercase;
  font-weight: 600;
}
.project .yr, .project-item .stat-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .1em;
}
.project h3, .project-item h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-transform: none;
  margin: 8px 0 12px;
  color: var(--ink);
}
.project p, .project-item p {
  color: var(--ink-3);
  font-size: 14px;
  margin: 0 0 22px;
  flex: 1;
}
.progress {
  display: flex;
  align-items: center;
  gap: 14px;
}
.progress .bar, .project-item .meter {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.progress .bar b, .project-item .meter b {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--y);
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.progress .pct {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--y);
  letter-spacing: -.02em;
}
.project-item .meter-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@media (max-width: 980px) { .projects-band, .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .projects-band, .projects { grid-template-columns: 1fr; } }

/* ---------- News ---------- */
.news-grid, .news-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}
@media (max-width: 980px) { .news-grid, .news-row { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; }
.news-card .img {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,212,0,.08) 0 10px, transparent 10px 20px),
    var(--bg-2);
  border: 1px solid var(--line);
  transition: all .5s cubic-bezier(.2,.8,.2,1);
}
.news-card .img img { width: 100%; height: 100%; object-fit: cover; }
.news-card:hover .img { transform: scale(1.02); border-color: var(--y); }
.news-card .meta {
  display: flex;
  gap: 14px;
  margin: 16px 0 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.news-card .cat { color: var(--y); font-weight: 600; }
.news-card .date { color: var(--ink-3); }
.news-card h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-transform: none;
  transition: color .25s;
  color: var(--ink);
}
.news-card:hover h3 { color: var(--y); }
.news-feature h3 { font-size: 26px; }
.news-card p { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.news-card a { color: inherit; }

/* ---------- Forms ---------- */
.form-row, .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) {
  .form-row, .field-row { grid-template-columns: 1fr; }
}
.form-group, .field { margin-bottom: 16px; }
.form-group label, .field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group .req, label .req { color: var(--r); }
.input, .select, .textarea,
.field input, .field select, .field textarea,
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 15px;
  border-radius: 0;
  outline: none;
  transition: all .2s;
}
.textarea, .field textarea, .form-group textarea {
  height: auto;
  padding: 12px 14px;
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}
.input:focus, .select:focus, .textarea:focus,
.field input:focus, .field select:focus, .field textarea:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--y);
  background: rgba(0,0,0,.4);
}
.form-hint {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 6px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--ink-3);
  margin: 6px 0 18px;
}
.check input { margin-top: 3px; accent-color: var(--y); }
.check a { color: var(--y); border-bottom: 1px solid var(--y); }

form.card {
  padding: 36px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  position: relative;
}
form.card::before { display: none; }
form.card h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 24px;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

/* ---------- Dues / cotizatie ---------- */
.dues-grid, .dues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.dues-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.dues-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--y);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.dues-card:hover {
  border-color: var(--y);
  transform: translateY(-4px);
}
.dues-card:hover::before { transform: scaleX(1); }
.dues-card.featured {
  background: var(--y);
  color: var(--bg-2);
  border-color: var(--y);
}
.dues-card.featured h3, .dues-card.featured .price { color: var(--bg-2); }
.dues-card.featured p { color: rgba(10,26,62,.78); }
.dues-card.featured .lvl { color: rgba(10,26,62,.6); }
.dues-card.featured::before { display: none; }
.dues-card .ribbon-tag {
  align-self: flex-start;
  background: var(--bg-2);
  color: var(--y);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 5px 9px;
  font-weight: 700;
}
.dues-card .lvl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.dues-card .price {
  font-family: var(--f-display);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.04em;
}
.dues-card .price small {
  font-size: 16px;
  color: var(--ink-3);
  margin-left: 4px;
  font-weight: 500;
}

/* ---------- Contact info / map ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-info, .ci {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.ci-cell, .contact-info > div, .ci > div {
  background: var(--bg-2);
  padding: 22px;
}
.ci-cell .lab, .contact-info .lab, .ci .lab {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--y);
  margin-bottom: 10px;
  font-weight: 600;
}
.ci-cell .val, .contact-info .val, .ci .val {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.ci-cell .val a, .contact-info .val a { color: var(--ink); }
.ci-cell .val a:hover, .contact-info .val a:hover { color: var(--y); }

/* ---------- CTA strip ---------- */
.cta-strip, .strip {
  background: var(--y);
  color: var(--bg-2);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before, .strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(10,26,62,.04) 0 12px, transparent 12px 36px);
  pointer-events: none;
}
.cta-strip .container, .strip .container, .strip .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
}
.cta-strip h2, .cta-strip h3, .strip h2, .strip h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
  color: var(--bg-2);
  max-width: 760px;
}
.cta-strip p { color: rgba(10,26,62,.78); margin: 8px 0 0; }
.cta-strip .btn, .strip .btn {
  background: var(--bg-2);
  color: var(--y);
}
.cta-strip .btn::after, .strip .btn::after { background: #fff; }
.cta-strip .btn:hover, .strip .btn:hover { color: var(--bg-2); }

.cta-strip .btn-light, .strip .btn-light {
  background: var(--bg-2);
  color: var(--y);
}

/* ---------- Footer ---------- */
.footer, footer {
  background: var(--bg-3);
  color: var(--ink-2);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-grid, .foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
@media (max-width: 880px) { .footer-grid, .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid, .foot-grid { grid-template-columns: 1fr; } }
.footer h4, .foot-grid h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--y);
  font-weight: 600;
  margin: 0 0 18px;
}
.footer ul, .foot-grid ul { list-style: none; margin: 0; padding: 0; }
.footer li, .foot-grid li { margin-bottom: 10px; }
.footer a, .foot-grid a {
  color: var(--ink-2);
  font-size: 14px;
  transition: color .2s ease;
}
.footer a:hover, .foot-grid a:hover { color: var(--y); }
.footer .logo-text strong { color: var(--ink); }
.footer .logo-text small { color: var(--ink-3); }
.footer-bottom, .foot-bottom {
  margin-top: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--ink-3);
}
.footer-bottom a { color: var(--ink-3); font-size: 11px; }
.footer-bottom a:hover { color: var(--y); }

/* Big footer brand block */
.big-mark {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(80px, 15vw, 220px);
  letter-spacing: -.06em;
  line-height: .85;
  color: rgba(255,212,0,.04);
  text-transform: uppercase;
  padding: 60px 0 0;
  user-select: none;
  text-align: center;
}

/* ---------- Alerts ---------- */
.alert {
  padding: 16px 18px;
  border: 1px solid;
  margin-bottom: 24px;
  font-size: 14px;
}
.alert-info { background: var(--bg-2); border-color: var(--line-2); color: var(--ink-2); }
.alert-success { background: rgba(123,232,164,.1); border-color: rgba(123,232,164,.3); color: #7be8a4; }
.alert-error { background: rgba(255,84,48,.1); border-color: rgba(255,84,48,.3); color: var(--r); }
.alert-warn { background: rgba(255,212,0,.1); border-color: rgba(255,212,0,.3); color: var(--y); }

/* ---------- Map shell ---------- */
.map-shell {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  overflow: hidden;
  position: relative;
}
.map-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,212,0,.04) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, rgba(255,212,0,.04) 1px, transparent 1px) 0 0/40px 40px;
  z-index: 1;
}
.map-shell > div { position: relative; z-index: 2; }

/* ---------- Article ---------- */
.article {
  max-width: 820px;
  margin: 64px auto;
  padding: 0 32px;
  background: transparent;
}
.article .meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
  display: flex;
  gap: 18px;
}
.article h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 24px;
  text-transform: uppercase;
  color: var(--ink);
}
.article .lead, .article-body .lead {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 32px;
  border-left: 3px solid var(--y);
  padding-left: 20px;
}
.article .content,
.article-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.article .content h2, .article .content h3,
.article-body h2, .article-body h3 {
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
}
.article .content p, .article-body p { margin-bottom: 18px; }
.article .content a, .article-body a {
  color: var(--y);
  border-bottom: 1px solid var(--y);
}
.article .content a:hover, .article-body a:hover { color: var(--y-2); }
.article .content blockquote, .article-body blockquote {
  border-left: 4px solid var(--y);
  padding: 12px 0 12px 22px;
  margin: 24px 0;
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Stat grid (legacy) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.stat-card {
  background: var(--bg-2);
  padding: 32px 28px;
}
.stat-card .n {
  font-family: var(--f-display);
  font-size: clamp(40px, 4.5vw, 64px);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}
.stat-card .l {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
  font-weight: 600;
}
@media (max-width: 880px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding: 32px 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 100px; top: 0; bottom: 0;
  width: 1px;
  background: var(--line-2);
}
@media (max-width: 768px) { .timeline::before { left: 12px; } }
.tl-item {
  position: relative;
  padding-left: 140px;
  padding-bottom: 36px;
}
@media (max-width: 768px) { .tl-item { padding-left: 40px; } }
.tl-date {
  position: absolute;
  left: 0; top: 4px;
  width: 90px;
  text-align: right;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
@media (max-width: 768px) {
  .tl-date { position: static; width: auto; text-align: left; margin-bottom: 6px; }
}
.tl-dot {
  position: absolute;
  left: 96px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--y);
  box-shadow: 0 0 0 4px var(--bg);
}
@media (max-width: 768px) { .tl-dot { left: 8px; } }
.tl-content h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
  text-transform: uppercase;
}
.tl-content p { color: var(--ink-3); font-size: 15px; }

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 40px; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
[data-animate].in { opacity: 1; transform: none; }

/* Hero kicker (legacy) */
.hero-kicker {
  display: flex;
  gap: 14px;
  margin: 18px 0 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--y);
  font-weight: 600;
}
.accent-yellow { color: var(--y); }
.accent-red { color: var(--r); }
.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ---------- Leaflet override on dark theme ---------- */
.leaflet-container { background: var(--bg-3) !important; }
.leaflet-popup-content-wrapper {
  background: var(--bg-2);
  color: var(--ink);
  border-radius: 0;
}
.leaflet-popup-tip { background: var(--bg-2); }
.leaflet-control-attribution {
  background: rgba(8,21,48,.85) !important;
  color: var(--ink-3) !important;
}
.leaflet-control-attribution a { color: var(--ink-3) !important; }

/* =================================================================
   FIX-URI POST-FEEDBACK
   ================================================================= */

/* ---------- Topbar mobile ---------- */
@media (max-width: 880px) {
  .topbar .container, .topbar .wrap {
    height: auto;
    padding: 8px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .topbar .socials {
    display: none !important;
  }
  .topbar > .container > div:first-child,
  .topbar .live {
    font-size: 10px;
    letter-spacing: .12em;
  }
}
@media (max-width: 640px) {
  .topbar { font-size: 11px; }
}

/* ---------- Logo mai mare ---------- */
.logo-img {
  width: 52px;
  height: 52px;
}
.logo-text strong { font-size: 24px; }
.logo-text small { font-size: 11px; }

@media (max-width: 640px) {
  .logo-img { width: 48px; height: 48px; }
  .logo-text strong { font-size: 22px; }
  .logo-text small { font-size: 10px; }
}

.navbar .container { gap: 16px; }

/* ---------- Hero h1 — mai mic pe mobile ---------- */
.hero h1 {
  font-size: clamp(40px, 7.6vw, 150px);
}
@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(38px, 7.2vw, 56px);
    line-height: .98;
  }
  .hero h1 .l1, .hero h1 .l2 { word-break: keep-all; }
  .hero h1 .l3 {
    font-size: .54em;
    margin-top: .22em;
  }
  .hero { padding: 40px 0 60px; }
}

/* ---------- FIX: text inchis pe carduri albe (zone-show, consilier) ---------- */

/* Card-uri cu fundal alb hard-coded */
.councilor-card,
.zone-info-card,
.map-shell-zone,
[style*="background: #fff"],
[style*="background:#fff"],
[style*="background: white"],
[style*="background:white"] {
  color: #13182a;
}

.councilor-card h3,
.councilor-card h4,
.zone-info-card h3,
.zone-info-card h4 {
  color: #13182a !important;
}
.councilor-card .role {
  color: #c8102e !important;
}
.councilor-card .bio,
.councilor-card p:not(.role),
.zone-info-card p {
  color: #3a4257 !important;
}

/* Stat-strip in zone-hero — numerele galbene si label-uri vizibile pe culoarea zonei */
.zone-hero .stat-item .num { color: #ffd400 !important; }
.zone-hero .stat-item .label { color: rgba(255,255,255,0.85) !important; }
.zone-hero .breadcrumb { color: rgba(255,255,255,0.8) !important; }
.zone-hero h1 { color: #fff !important; }

/* Pill from zone-show ramane vizibil */
.zone-hero .pill { background: rgba(255,222,0,0.18) !important; color: #ffde00 !important; border-color: rgba(255,222,0,0.5) !important; }

/* Article si page sections cu fundal alb */
section[style*="background:#fff"],
section[style*="background: #fff"] {
  color: #13182a;
}
section[style*="background:#fff"] h2,
section[style*="background:#fff"] h3,
section[style*="background:#fff"] h4,
section[style*="background: #fff"] h2,
section[style*="background: #fff"] h3,
section[style*="background: #fff"] h4 {
  color: #13182a;
}
section[style*="background:#fff"] p,
section[style*="background: #fff"] p {
  color: #3a4257;
}
section[style*="background:#fff"] .eyebrow,
section[style*="background: #fff"] .eyebrow {
  color: #6b7184;
}
section[style*="background:#fff"] .eyebrow::before,
section[style*="background: #fff"] .eyebrow::before {
  background: #6b7184;
}

/* Sectiuni cu var(--bone) — pe Rally bone = navy, deci ramane corect; dar daca au fundal alb explicit */
section[style*="background:var(--bone)"] {
  background: var(--bg-2) !important;
}

/* Portal pages — preserve dark text on white cards */
.portal-card,
.dashboard-card,
[class*="portal-"][class*="-card"] {
  color: #13182a;
}
.portal-card h2, .portal-card h3, .portal-card h4,
.dashboard-card h2, .dashboard-card h3, .dashboard-card h4 {
  color: #13182a !important;
}
.portal-card p, .dashboard-card p { color: #3a4257; }

/* Buton btn-ghost pe fundal alb sa fie vizibil */
.councilor-card .btn-ghost,
.zone-info-card .btn-ghost,
[style*="background:#fff"] .btn-ghost,
[style*="background: #fff"] .btn-ghost {
  color: #13182a;
  border-color: #13182a;
}
.councilor-card .btn-ghost:hover,
.zone-info-card .btn-ghost:hover {
  color: #ffd400;
  background: #13182a;
  border-color: #13182a;
}

/* btn-primary in card alb */
.councilor-card .btn-primary,
.zone-info-card .btn-primary {
  background: #ffd400;
  color: #0a1a3e;
}

/* Article page: fundal alb explicit cere text inchis */
section[style*="background:#fff"] .container .breadcrumb { color: #6b7184; }
section[style*="background:#fff"] .container .breadcrumb a { color: #0f2050; }
section[style*="background:#fff"] .article,
section[style*="background:#fff"] .article-body {
  color: #3a4257;
}
section[style*="background:#fff"] .article h1,
section[style*="background:#fff"] .article-body h2,
section[style*="background:#fff"] .article-body h3 {
  color: #13182a;
}

/* Map shell zone-show */
.map-shell-zone .leaflet-container { background: #f0f0f0 !important; }

/* Avatar cu initiale pe carduri albe */
.councilor-card .avatar {
  color: #fff !important;
}

/* Generic: orice element cu inline `style="color:..."` va respecta acea regula
   — deci PHP-ul cu stiluri inline e safe.
   Dar fortez si pe button containers cu fundal alb */

/* =================================================================
   FIX BURGER + TOPBAR + MENIU MOBILE (forteaza vizibilitate)
   ================================================================= */
@media (max-width: 1080px) {
  .nav-links { display: none !important; }
  .nav-links.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: var(--nav-height, 70px) !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--bg-2) !important;
    padding: 20px 24px !important;
    gap: 0 !important;
    z-index: 100 !important;
    box-shadow: 0 12px 30px rgba(0,0,0,.5) !important;
    border-bottom: 2px solid var(--y) !important;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    width: 100%;
    padding: 16px 4px !important;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    font-size: 14px;
  }
  .nav-links.open a::before { display: none !important; }
  .nav-links.open .btn {
    width: 100%;
    height: 52px;
    margin-top: 12px;
  }
  /* Burger sa fie clar vizibil si interactiv */
  .nav-toggle {
    width: 46px;
    height: 46px;
    z-index: 60;
    cursor: pointer;
    background: rgba(255,212,0,0.08);
    border-color: var(--line-2);
  }
  .nav-toggle:active { background: var(--y); }
  .nav-toggle:active span { background: var(--bg-2); }
}

/* Fix navbar height pe mobile sa fie consistent cu pozitia meniului fixed */
@media (max-width: 1080px) {
  .navbar .container { height: 70px; }
}

/* Topbar mobile — text mic, fara overflow, ascundem socials & emoji */
@media (max-width: 768px) {
  .topbar {
    font-size: 10px;
  }
  .topbar .container, .topbar .wrap {
    height: 32px !important;
    padding: 0 16px;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    overflow: hidden;
  }
  .topbar > .container > div:first-child,
  .topbar .live {
    font-size: 9.5px;
    letter-spacing: .08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }
  .topbar .socials,
  .topbar > .container > div.socials {
    display: none !important;
  }
}

/* =================================================================
   FIX v2: Devino membru in nav, numere zone vizibile, /zone page bg
   ================================================================= */

/* 1. .btn in interiorul navbar: NU mosteni culoarea de la .nav-links a */
.nav-links a.btn,
.nav-links li a.btn {
  color: var(--bg-2) !important;
  background: var(--y) !important;
  border: none !important;
  text-transform: uppercase !important;
}
.nav-links a.btn::before { display: none !important; }
.nav-links a.btn:hover {
  color: var(--y) !important;
}
.nav-links a.btn:hover::after {
  transform: translateX(0) !important;
}
.nav-links a.btn span,
.nav-links a.btn .arr {
  color: inherit !important;
}

/* 2. Zone cards de pe homepage — numerele membri/activi vizibile pe Rally
   Suprascriem inline style cu culori contrastante */
section#zone .grid .card div div span strong,
section#zone .card span strong {
  color: var(--y) !important;
}
section#zone .card span:nth-child(2) strong {
  color: #7be8a4 !important;
}

/* 3. Override pentru /zone (zone-index.php) si alte pagini cu PNL blue inline */
.zone-hero {
  background: var(--bg-2) !important;
  color: var(--ink) !important;
}
.zone-hero::before {
  background-image:
    radial-gradient(circle at 90% 10%, rgba(255, 212, 0, 0.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255, 212, 0, 0.08), transparent 50%) !important;
}
.zone-hero::after {
  background: radial-gradient(circle, rgba(255, 212, 0, 0.10) 0%, transparent 70%) !important;
}
.zone-hero h1, .zone-hero .breadcrumb { color: var(--ink) !important; }
.zone-hero .breadcrumb a { color: var(--y) !important; }
.zone-hero .pill {
  background: rgba(255,212,0,0.15) !important;
  color: var(--y) !important;
  border: 1px solid rgba(255,212,0,0.4) !important;
}
.zone-hero .neighborhoods .neighborhood-chip {
  background: rgba(255,255,255,0.08) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-2) !important;
}
.zone-hero .stat-item .num { color: var(--y) !important; }
.zone-hero .stat-item .label { color: var(--ink-3) !important; }

/* zone-cta de la fundul paginii zone-show */
.zone-cta {
  background: var(--bg-3) !important;
  border-top: 2px solid var(--y) !important;
  color: var(--ink) !important;
}
.zone-cta::before {
  background: radial-gradient(ellipse 60% 60% at 0% 0%, rgba(255,212,0,0.08) 0%, transparent 55%) !important;
}
.zone-cta h2 { color: var(--ink) !important; }
.zone-cta p { color: var(--ink-2) !important; }

/* Zona-info-card — keep WHITE bg with dark text (we already did this earlier
   but let's ensure councilor card on inner page has good contrast) */
.zone-info-card .icon { color: #fff !important; }

/* Hero pe pagini interioare: page-header sa fie dark uniform */
.page-header {
  background: var(--bg-2) !important;
  color: var(--ink) !important;
}
.page-header h1 { color: var(--ink) !important; }
.page-header p { color: var(--ink-2) !important; }
.page-header .breadcrumb { color: var(--ink-3) !important; }
.page-header .breadcrumb a { color: var(--y) !important; }

/* Sectiune cu fundal var(--bone) sau alb explicit
   pe Rally trebuie sa ramana dark (am pus deja --bone = bg, dar inline #fff/#FFFFFF) */
section[style*="background:var(--bone)"],
section[style*="background:var(--bone-2)"],
section[style*="background:var(--bone-3)"],
section[style*="background:var(--paper)"] {
  background: var(--bg-2) !important;
}

/* Card-uri din timeline / sesizari etc. cu background alb explicit
   pastram TEXT inchis (negru) cand e #fff inline */
.timeline-item[style*="background:#fff"],
.report-card[style*="background:#fff"] {
  color: #13182a;
}


/* Badge "Zona" pe homepage zone cards — fundal galben subtle, text galben */
section#zone .card .card-badge {
  background: rgba(255, 212, 0, 0.12) !important;
  color: var(--y) !important;
  border-bottom: 0;
  font-weight: 700;
}

/* Titlul zonei in card pastreaza zone-color (deja brighten by darker bg) — OK
   dar pentru Zona 1 (#003894) e prea inchis. Fortez minim brightness via opacity */
section#zone .card h3.card-title {
  filter: brightness(1.4) saturate(1.1);
}

/* Border top de la card (zone color) */
section#zone .card { border-top-width: 3px; }


/* Logo mai mare, aliniat cu textul */
.logo-img { width: 64px !important; height: 64px !important; }
@media (max-width: 640px) {
  .logo-img { width: 56px !important; height: 56px !important; }
}
.logo { gap: 16px; }

/* =================================================================
   FIX: Meniu mobile mai mare si mai misto (Rally-style numerotat)
   ================================================================= */
@media (max-width: 1080px) {
  .nav-links.open {
    padding: 12px 24px 32px !important;
    counter-reset: navnum;
  }
  .nav-links.open li {
    counter-increment: navnum;
  }
  .nav-links.open a {
    font-family: var(--f-display) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: -.015em !important;
    color: var(--ink) !important;
    padding: 18px 4px !important;
    border-bottom: 1px solid var(--line) !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    transition: color .2s ease, padding .25s ease;
  }
  /* Numar de capitol galben in stanga */
  .nav-links.open li:not(.nav-spacer) > a:not(.btn)::before {
    content: "0" counter(navnum);
    font-family: var(--f-mono) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--y) !important;
    letter-spacing: .15em !important;
    min-width: 24px;
    flex-shrink: 0;
  }
  /* Arrow in dreapta */
  .nav-links.open li:not(.nav-spacer) > a:not(.btn)::after {
    content: "→";
    margin-left: auto;
    font-family: var(--f-display);
    font-size: 20px;
    color: var(--ink-3);
    transition: transform .2s ease, color .2s ease;
    background: none !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    display: inline-block !important;
  }
  .nav-links.open li:not(.nav-spacer) > a:not(.btn):hover::after,
  .nav-links.open li:not(.nav-spacer) > a:not(.btn):active::after {
    transform: translateX(6px);
    color: var(--y);
  }
  .nav-links.open li:not(.nav-spacer) > a:not(.btn):hover,
  .nav-links.open li:not(.nav-spacer) > a:not(.btn):active {
    color: var(--y) !important;
    padding-left: 12px !important;
    background: rgba(255,212,0,0.04);
  }

  /* Login membru (nav-spacer) — separat, mai discret */
  .nav-links.open li.nav-spacer { margin-top: 14px; }
  .nav-links.open li.nav-spacer > a {
    font-family: var(--f-mono) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .15em !important;
    color: var(--ink-3) !important;
    border-bottom: 1px dashed var(--line-2) !important;
    padding: 14px 4px !important;
  }

  /* Devino membru button — mai mare, mai punchy */
  .nav-links.open a.btn {
    height: 60px !important;
    margin-top: 18px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: .1em !important;
    border-bottom: none !important;
    box-shadow: 0 8px 24px rgba(255,212,0,0.25);
  }
}


/* =================================================================
   FIX: NU mai scrolla orizontal pe mobile
   ================================================================= */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}
html { position: relative; }
body { position: relative; min-height: 100vh; }

/* Toate sectiunile/main: contain orice overflow */
main, section, header, footer, .navbar, .topbar, .hero, .section,
.zones-strip, .cta-strip, .strip {
  max-width: 100vw;
  overflow-x: clip;
}

/* big-mark (SECTOR 1 watermark in footer) — depaseste viewport in unele cazuri */
.big-mark { overflow: hidden; max-width: 100vw; }

/* Hero gradient circle care iese in dreapta — clip-it explicit */
.hero { overflow: hidden !important; }
.hero::before {
  max-width: 100vw;
}

/* Pe mobile, elementele h1/h2 cu uppercase mari nu trebuie sa rupa layout */
@media (max-width: 640px) {
  h1, h2 { word-wrap: break-word; overflow-wrap: break-word; }
  .stat-row, .stats { margin-left: -20px; margin-right: -20px; }
}

/* Carusel/grid-uri care depasesc */
.zones-strip-inner { max-width: 100vw; }

/* tabele si cod care n-au max-width — uneori scapa */
table, pre, code {
  max-width: 100%;
  overflow-x: auto;
}

/* Menu mobile — font mai mic si compact */
@media (max-width: 1080px) {
  .nav-links.open a {
    font-size: 16px !important;
    padding: 13px 4px !important;
    letter-spacing: 0 !important;
    font-weight: 700 !important;
  }
  .nav-links.open li:not(.nav-spacer) > a:not(.btn)::before {
    font-size: 10px !important;
    min-width: 22px;
  }
  .nav-links.open li:not(.nav-spacer) > a:not(.btn)::after {
    font-size: 16px;
  }
  .nav-links.open a.btn {
    height: 50px !important;
    font-size: 13px !important;
    margin-top: 14px !important;
  }
}

/* =================================================================
   FIX: Numere "MEMBRI" vizibile pe TOATE paginile (home + /zone + others)
   ================================================================= */

/* /zone page (zone-index.php) — div cu inline color:var(--pnl-blue-deep) */
.card div[style*="--pnl-blue-deep"],
.card div[style*="pnl-blue-deep"],
.card [style*="color:var(--pnl-blue-deep)"],
.card [style*="color: var(--pnl-blue-deep)"] {
  color: var(--y) !important;
}

/* /zone page — ok green is fine, just ensure visibility */
.card [style*="color:var(--ok)"],
.card [style*="color: var(--ok)"] {
  color: #7be8a4 !important;
}

/* Home page — strong cu inline color din zone-color (orice hex) */
.card div[style*="display:flex"] span:first-child strong[style*="color"],
section .grid .card div[style*="display:flex"] > span:first-of-type strong {
  color: var(--y) !important;
}

/* Si activi sa fie verde brighten */
.card div[style*="display:flex"] span:nth-child(2) strong[style*="color"],
section .grid .card div[style*="display:flex"] > span:nth-of-type(2) strong {
  color: #7be8a4 !important;
}

/* Backup: orice strong cu hex inchis in card */
.card strong[style*="color:#003894"],
.card strong[style*="color:#"] {
  color: var(--y) !important;
}
.card strong[style*="color:#7be8a4"] {
  color: #7be8a4 !important;
}

/* Detalii zona link la fundul cardului — folosim culoarea zonei (uneori invizibila) */
.card div:last-child[style*="color:#"] {
  color: var(--y) !important;
  font-weight: 700 !important;
  font-family: var(--f-mono) !important;
  font-size: 11px !important;
  letter-spacing: .15em !important;
  text-transform: uppercase !important;
}


/* =================================================================
   FIX: Meniu mobile blocat de overflow-x: clip pe navbar
   Navbar-ul are backdrop-filter (creeaza containing block) si
   overflow:clip clipeste meniul fix din interior. Override-uim.
   ================================================================= */
.navbar {
  overflow: visible !important;
  overflow-x: visible !important;
}
header.navbar { overflow: visible !important; }

/* Meniu mobile cu position absolute, pozitionat sub navbar */
@media (max-width: 1080px) {
  .nav-links {
    /* mai sigur cu absolute decat fixed cand parent are backdrop-filter */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    inset: auto !important;
  }
  .nav-links.open {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    inset: auto !important;
  }
  /* navbar trebuie sa fie pozitionata ca anchor */
  .navbar { position: sticky; }
}

/* =================================================================
   FIX FINAL: Meniu mobile — full width, fix in viewport, clean
   ================================================================= */
@media (max-width: 1080px) {
  /* Navbar fara backdrop-filter pe mobile = position:fixed merge corect */
  .navbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--bg-3) !important;
    overflow: visible !important;
    border-bottom: 1px solid var(--line) !important;
  }

  /* Menu inchis */
  .nav-links {
    position: fixed !important;
    top: 70px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    inset: 70px 0 auto 0 !important;
    flex-direction: column !important;
    background: var(--bg-2) !important;
    padding: 0 !important;
    gap: 0 !important;
    z-index: 100 !important;
    display: none !important;
    box-sizing: border-box;
    border-bottom: 2px solid var(--y);
    box-shadow: 0 16px 32px rgba(0,0,0,.5);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Menu deschis */
  .nav-links.open {
    display: flex !important;
    padding: 12px 24px 28px !important;
  }

  .nav-links li { width: 100%; margin: 0; }

  .nav-links.open a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 14px 4px !important;
    font-family: var(--f-display) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
    color: var(--ink) !important;
    border-bottom: 1px solid var(--line) !important;
    gap: 14px !important;
  }

  .nav-links.open li:not(.nav-spacer) > a:not(.btn)::before {
    content: "0" counter(navnum);
    font-family: var(--f-mono) !important;
    font-size: 10px !important;
    color: var(--y) !important;
    letter-spacing: .15em !important;
    min-width: 22px;
    flex-shrink: 0;
  }

  .nav-links.open li:not(.nav-spacer) > a:not(.btn)::after {
    content: "→" !important;
    margin-left: auto !important;
    font-family: var(--f-display) !important;
    font-size: 18px !important;
    color: var(--ink-3) !important;
    background: none !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    transform: none !important;
    transition: transform .2s ease, color .2s ease !important;
    display: inline-block !important;
    flex-shrink: 0;
  }

  .nav-links.open li:not(.nav-spacer) > a:not(.btn):hover,
  .nav-links.open li:not(.nav-spacer) > a:not(.btn):active {
    color: var(--y) !important;
  }
  .nav-links.open li:not(.nav-spacer) > a:not(.btn):hover::after,
  .nav-links.open li:not(.nav-spacer) > a:not(.btn):active::after {
    color: var(--y) !important;
    transform: translateX(4px) !important;
  }

  /* Login (nav-spacer) */
  .nav-links.open li.nav-spacer { margin-top: 14px !important; }
  .nav-links.open li.nav-spacer > a {
    font-family: var(--f-mono) !important;
    font-size: 12px !important;
    letter-spacing: .15em !important;
    color: var(--ink-3) !important;
    border-bottom: 1px dashed var(--line-2) !important;
  }
  .nav-links.open li.nav-spacer > a::before,
  .nav-links.open li.nav-spacer > a::after { display: none !important; }

  /* Devino membru button */
  .nav-links.open a.btn {
    height: 52px !important;
    margin-top: 16px !important;
    font-size: 13px !important;
    border-bottom: none !important;
    box-shadow: 0 8px 20px rgba(255,212,0,.2);
    justify-content: center !important;
  }
  .nav-links.open a.btn::before,
  .nav-links.open a.btn::after { display: none !important; }
}

/* =================================================================
   FIX: Meniu nu mai e taiat sus — navbar ramane vizibil deasupra
   ================================================================= */
@media (max-width: 1080px) {
  /* Navbar mereu deasupra meniului si nu mai e transparent */
  .navbar {
    z-index: 200 !important;
    background: var(--bg-3) !important;
    height: 78px;
  }
  .navbar .container { height: 78px !important; }

  /* Meniul: porneste de sub navbar cu spatiu, are padding-top extra */
  .nav-links {
    top: 78px !important;
    padding-top: 8px !important;
    z-index: 150 !important;
  }
  .nav-links.open {
    top: 78px !important;
    padding: 8px 24px 28px !important;
    max-height: calc(100vh - 78px) !important;
  }
}
@media (max-width: 640px) {
  .navbar { height: 70px !important; }
  .navbar .container { height: 70px !important; }
  .nav-links, .nav-links.open {
    top: 70px !important;
    max-height: calc(100vh - 70px) !important;
  }
}

/* =================================================================
   FIX: Meniu — fara scroll intern, navbar mereu vizibil deasupra
   ================================================================= */
@media (max-width: 1080px) {
  .nav-links,
  .nav-links.open {
    overflow: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    padding-top: 8px !important;
  }
  /* Daca meniul e foarte lung pe ecrane mici, atunci scroll PAGE behind */
  body.menu-open { overflow: hidden !important; }
}

/* =================================================================
   RESET FINAL MENIU MOBILE — full screen overlay, navbar deasupra
   ================================================================= */
@media (max-width: 1080px) {
  /* Navbar e MEREU peste meniu (z-index foarte mare) */
  .navbar {
    z-index: 1000 !important;
    background: var(--bg-3) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Meniul ocupa tot ecranul — primele iteme NU mai sunt taiate */
  .nav-links,
  .nav-links.open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    inset: 0 !important;
    z-index: 500 !important;
    background: var(--bg-2) !important;
    /* padding-top egal cu inaltimea navbar + spatiu */
    padding: 90px 24px 32px !important;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Meniul e ascuns implicit */
  .nav-links { display: none !important; }
  .nav-links.open { display: flex !important; }

  /* Border galben jos pe navbar pe mobile cand meniul e deschis */
  .nav-links.open ~ * .navbar,
  body:has(.nav-links.open) .navbar {
    border-bottom: 2px solid var(--y) !important;
  }
}

@media (max-width: 640px) {
  .nav-links, .nav-links.open {
    padding: 80px 20px 28px !important;
  }
}

/* =================================================================
   FIX v3: header simplu, fonturi zone, popup harta, meniu mobile
   ================================================================= */

/* Topbar — ascuns total (am scos din layout) */
.topbar { display: none !important; }

/* Logo subtitle mai lat (pentru "Organizatie civica · 2026") */
.logo-text small { letter-spacing: .12em !important; font-size: 9px !important; }

/* Zona 1 (sau orice zone-color albastru-inchis) — text galben pe card navy */
section#zone .card h3.card-title {
  color: var(--y) !important;
  filter: none !important;
}
/* Border-top zona pastrat la culoarea zonei */

/* Leaflet popup — dark navy peste tot, NU alb */
.leaflet-popup-content-wrapper {
  background: var(--bg-2) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(255,212,0,0.3) !important;
  border-radius: 0 !important;
  padding: 4px !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.5) !important;
}
.leaflet-popup-content {
  margin: 12px 14px !important;
  color: var(--ink) !important;
}
.leaflet-popup-tip {
  background: var(--bg-2) !important;
  border: 1px solid rgba(255,212,0,0.3) !important;
}
.leaflet-popup-close-button {
  color: var(--y) !important;
  font-size: 22px !important;
  padding: 6px 8px !important;
}

/* /zona/{slug} — fonturi mai mici pe titluri */
.zone-hero h1 {
  font-size: clamp(28px, 4vw, 48px) !important;
}
section h2 {
  font-size: clamp(28px, 3.6vw, 48px) !important;
}
@media (max-width: 768px) {
  .zone-hero h1 { font-size: 28px !important; }
  section h2 { font-size: 26px !important; }
  .quote-hero, .quote { font-size: 22px !important; }
}

/* MENIU MOBILE — logo si burger MEREU vizibili cand e deschis */
@media (max-width: 1080px) {
  .nav-links.open {
    /* meniul e overlay dar TREBUIE sa lase navbar-ul vizibil */
    top: 78px !important;
    height: calc(100vh - 78px) !important;
    height: calc(100dvh - 78px) !important;
    inset: 78px 0 0 0 !important;
    padding-top: 24px !important;
  }
  /* Navbar mereu deasupra cu z-index 1000 (deja setat dar reforce) */
  .navbar {
    z-index: 1000 !important;
    position: sticky !important;
    background: var(--bg-3) !important;
  }
  /* Burger ramane vizibil si in stare deschisa */
  .nav-toggle {
    z-index: 1001 !important;
    position: relative;
  }
  /* Logo ramane vizibil */
  .logo {
    z-index: 1001 !important;
    position: relative;
  }
}
@media (max-width: 640px) {
  .nav-links.open {
    top: 70px !important;
    height: calc(100vh - 70px) !important;
    height: calc(100dvh - 70px) !important;
    inset: 70px 0 0 0 !important;
  }
}

/* Cand meniul e deschis, burger devine X */
.nav-links.open ~ * .nav-toggle span:nth-child(1),
body:has(.nav-links.open) .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
  background: var(--y) !important;
}
body:has(.nav-links.open) .nav-toggle span:nth-child(2) {
  opacity: 0;
}
body:has(.nav-links.open) .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  background: var(--y) !important;
}

/* Show/hide mobile vs desktop nav items */
.nav-mobile-only { display: none !important; }
@media (max-width: 1080px) {
  .nav-desktop-only { display: none !important; }
  .nav-mobile-only { display: list-item !important; }
}

/* Login hint sub butonul Devino membru, doar pe mobile */
.nav-login-hint {
  list-style: none !important;
  margin-top: 12px !important;
  padding: 0 !important;
  border: none !important;
}
.nav-login-hint span {
  display: block !important;
  font-family: var(--f-mono) !important;
  font-size: 11px !important;
  letter-spacing: .08em !important;
  color: var(--ink-3) !important;
  text-align: center !important;
  font-weight: 500 !important;
  padding: 4px 0 !important;
  border: none !important;
}
@media (max-width: 1080px) {
  .nav-links.open .nav-login-hint {
    border-bottom: none !important;
  }
  .nav-links.open .nav-login-hint span {
    text-align: center !important;
    border: none !important;
  }
}

/* /doneaza — pe mobile, panoul cu transfer bancar primul */
@media (max-width: 768px) {
  section .grid.grid-2 > div:first-child { order: 2; }
  section .grid.grid-2 > div:last-child { order: 1; }
}
