/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary:      #0a7d3e;
  --primary-dark: #065c2c;
  --accent:       #f4a72c;
  --bg:           #ffffff;
  --bg-alt:       #f6f8f7;
  --bg-dark:      #14201a;
  --text:         #1a2620;
  --text-light:   #6b7a72;
  --border:       #e1e6e3;
  --red:          #d4392b;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --radius:       12px;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,.08);
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-alt);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; }
input, select, textarea { font-family: var(--font); }

/* ===== TOPBAR / NAVBAR ===== */
#topbar {
  background: linear-gradient(90deg, #009246, #f4f4f4 50%, #ce2b37);
  height: 4px;
}
#navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand .logo {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 18px;
}
.nav-brand-text strong {
  display: block;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .5px;
  color: var(--text);
}
.nav-brand-text span {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.nav-links a:hover { border-color: var(--primary); }

/* ===== HERO ===== */
.hero {
  background:
    linear-gradient(180deg, rgba(10,22,15,.20) 0%, rgba(10,22,15,.40) 100%),
    linear-gradient(110deg,
      #009246 0%,
      #009246 18%,
      #f4f4f1 40%,
      #f4f4f1 60%,
      #ce2b37 82%,
      #ce2b37 100%);
  color: #fff;
  padding: 64px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10,22,15,.35) 100%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.7);
}
.hero p {
  font-size: 17px;
  opacity: .95;
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 1px 6px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.7);
}
.hero-teaser {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 16px 28px;
  background: rgba(8,16,12,.45);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: 640px;
}
.hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent, #f4a72c);
  color: #1a1208;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(244,167,44,.4);
}
.hero-teaser strong {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -.3px;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.hero-teaser-sub {
  font-size: 14px;
  opacity: .9;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,.55);
}

/* ===== RANKING PAGE ===== */
.ranking-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.ranking-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.ranking-block h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--bg-dark);
  letter-spacing: -.3px;
}
.ranking-block p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.6;
}
.ranking-block p:last-child { margin-bottom: 0; }
.ranking-steps {
  list-style: none;
  counter-reset: rank-step;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.ranking-steps li {
  counter-increment: rank-step;
  position: relative;
  padding: 14px 18px 14px 56px;
  background: var(--bg-alt);
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.ranking-steps li::before {
  content: counter(rank-step);
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 14px;
}
.ranking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) {
  .ranking-grid { grid-template-columns: 1fr; }
}
.ranking-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ranking-card-head { display: flex; flex-direction: column; gap: 8px; }
.ranking-card-tag {
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 999px;
}
.ranking-card-tag.female { background: #c2185b; }
.ranking-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--bg-dark);
}
.ranking-card-empty {
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 8px;
  border: 1px dashed var(--border);
}
.ranking-card-empty p {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.ranking-card-empty-sub {
  font-weight: 400 !important;
  font-size: 13px;
  color: var(--text-light) !important;
  line-height: 1.5;
}
.ranking-cta {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1f3a2c 100%);
  color: #fff;
  padding: 36px 32px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.ranking-cta h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}
.ranking-cta p {
  font-size: 15px;
  opacity: .9;
  margin-bottom: 22px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.ranking-cta-btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #1a1208;
  font-weight: 800;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: .3px;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(244,167,44,.35);
}
.ranking-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244,167,44,.5);
}
.ranking-levels-intro {
  margin-top: 18px !important;
  font-weight: 600;
  color: var(--text-light) !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ranking-levels {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin: 14px 0 18px;
}
@media (max-width: 900px) {
  .ranking-levels { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .ranking-levels { grid-template-columns: repeat(2, 1fr); }
}
.lvl-card {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 14px 8px 10px;
  text-align: center;
  border: 1px solid #2a2a2a;
  transition: transform .2s;
}
.lvl-card:hover { transform: translateY(-3px); }
.lvl-card svg { width: 56px; height: 56px; }
.lvl-name {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #f0f0f0;
}
.lvl-card-legend {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a1010 100%);
  border-color: #5a1818;
}
.lvl-card-legend .lvl-name { color: #f5b800; }
.ranking-levels-foot {
  font-size: 14px !important;
  color: var(--text-light) !important;
  font-style: italic;
  margin-top: 4px !important;
}

/* ===== LEGAL PAGES (privacy / terms / cookie) ===== */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: var(--text);
}
.legal-page h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--bg-dark);
  letter-spacing: -.5px;
}
.legal-page h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 32px 0 12px;
  color: var(--bg-dark);
}
.legal-page h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text);
}
.legal-page p { margin: 0 0 12px; line-height: 1.65; font-size: 15px; }
.legal-page ul { margin: 0 0 16px 20px; padding: 0; }
.legal-page ul li { margin-bottom: 8px; line-height: 1.6; font-size: 15px; }
.legal-page a { color: var(--primary); text-decoration: underline; }
.legal-page a:hover { color: var(--primary-dark); }
.legal-intro { font-size: 16px; color: var(--text-light); margin-bottom: 4px; }
.legal-update { font-size: 13px; color: var(--text-light); font-style: italic; margin-bottom: 28px; }

/* ===== FOOTER LEGAL LINKS ===== */
.footer-legal {
  margin-top: 12px;
  font-size: 13px;
  opacity: .9;
}
.footer-legal a {
  color: inherit;
  text-decoration: underline;
  margin: 0 2px;
}
.footer-legal a:hover { opacity: .7; }

/* ===== COOKIE BANNER ===== */
.cc-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #14201a;
  color: #fff;
  padding: 18px 22px;
  z-index: 9998;
  box-shadow: 0 -6px 24px rgba(0,0,0,.3);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.cc-banner.cc-visible { transform: translateY(0); }
.cc-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.cc-text { flex: 1 1 420px; }
.cc-text strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.cc-text p { font-size: 13px; line-height: 1.5; opacity: .9; margin: 0; }
.cc-text a { color: #f4a72c; text-decoration: underline; }
.cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cc-btn {
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: filter .15s, transform .15s;
  white-space: nowrap;
}
.cc-btn:hover { filter: brightness(1.1); }
.cc-btn-ghost {
  background: transparent;
  color: #fff;
  text-decoration: underline;
  padding: 11px 8px;
}
.cc-btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.cc-btn-primary {
  background: var(--primary, #0a7d3e);
  color: #fff;
}

/* ===== COOKIE PREFS MODAL ===== */
.cc-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8,16,12,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  padding: 16px;
  opacity: 0; transition: opacity .2s ease;
}
.cc-modal-overlay.cc-visible { opacity: 1; }
.cc-modal {
  background: #fff;
  border-radius: 14px;
  padding: 28px 26px 22px;
  max-width: 540px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.cc-modal h3 {
  font-size: 20px; font-weight: 800;
  color: var(--bg-dark, #14201a);
  margin: 0 0 6px;
}
.cc-modal-sub {
  font-size: 13px; color: #666;
  margin: 0 0 18px; line-height: 1.5;
}
.cc-modal-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none;
  font-size: 26px; line-height: 1;
  color: #999; cursor: pointer; padding: 4px 8px;
}
.cc-modal-close:hover { color: #333; }
.cc-cat {
  border: 1px solid #e1e6e3;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.cc-cat-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 6px;
}
.cc-cat-head strong { font-size: 14px; color: var(--bg-dark, #14201a); }
.cc-cat p {
  font-size: 12px; color: #666;
  margin: 0; line-height: 1.5;
}
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 40px; height: 22px;
  flex-shrink: 0;
}
.cc-toggle input { opacity: 0; width: 0; height: 0; }
.cc-toggle span {
  position: absolute; inset: 0;
  background: #ccc;
  border-radius: 22px;
  transition: background .2s;
  cursor: pointer;
}
.cc-toggle span::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.cc-toggle input:checked + span { background: var(--primary, #0a7d3e); }
.cc-toggle input:checked + span::before { transform: translateX(18px); }
.cc-toggle-locked span {
  background: var(--primary, #0a7d3e);
  opacity: .6;
  cursor: not-allowed;
}
.cc-toggle-locked span::before { transform: translateX(18px); }
.cc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.cc-modal-actions .cc-btn-outline {
  color: var(--text);
  border-color: #ccc;
}

@media (max-width: 600px) {
  .cc-actions { width: 100%; justify-content: stretch; }
  .cc-actions .cc-btn { flex: 1; text-align: center; }
}

/* ===== FILTRI ===== */
.filters {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filters select, .filters input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.filters input { flex: 1; min-width: 200px; }
.filters .count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

/* ===== GRID GARE ===== */
.gare-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gara-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.gara-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.gara-locandina {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-alt);
  object-fit: cover;
}
.gara-locandina-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--bg-alt), #e8ede9);
  display: grid;
  place-items: center;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 600;
}
.gara-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.gara-data {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.gara-nome {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.gara-info {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gara-info .row { display: flex; gap: 6px; align-items: center; }
.gara-fed {
  display: inline-block;
  margin-top: auto;
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .6px;
  width: fit-content;
}
.gara-status {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  background: rgba(0,0,0,.7);
  color: #fff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.gara-card { position: relative; }
.gara-status.completed { background: var(--primary); }
.gara-status.cancelled { background: var(--red); }

.gare-empty, .gare-loading {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 24px;
  color: var(--text-light);
  font-size: 15px;
}

/* ===== DETTAGLIO GARA ===== */
.gara-detail {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.gara-detail-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
}
@media (max-width: 768px) {
  .gara-detail-grid { grid-template-columns: 1fr; }
}
.gara-detail .locandina {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.gara-detail h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -.5px;
}
.gara-detail .data-luogo {
  font-size: 16px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}
.info-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.info-block h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.info-block p, .info-block a { font-size: 15px; color: var(--text); }
.info-block a { color: var(--primary); text-decoration: underline; }
.categorie { display: flex; flex-wrap: wrap; gap: 6px; }
.categorie span {
  padding: 4px 10px;
  background: var(--bg-alt);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  opacity: .9;
}
footer a { color: var(--accent); text-decoration: underline; }

/* ===== ADMIN ===== */
.admin-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px;
}
.admin-login {
  max-width: 420px;
  margin: 80px auto;
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  border: none;
  transition: background .15s;
}
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: var(--red); }
.btn.small { padding: 6px 12px; font-size: 12px; }

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-toolbar h2 { font-size: 22px; font-weight: 800; }

table.gare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.gare-table th, .gare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.gare-table th {
  background: var(--bg-alt);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-light);
}
.gare-table tr:last-child td { border-bottom: none; }
.gare-table .actions { display: flex; gap: 6px; }

.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-bg.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}
.modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
.form-row textarea { min-height: 80px; resize: vertical; }
.form-row .help { font-size: 11px; color: var(--text-light); margin-top: 4px; }
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

/* ===== NEWSLETTER POPUP ===== */
.nl-overlay {
  position: fixed; inset: 0;
  background: rgba(8,16,12,.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; transition: opacity .25s ease;
  padding: 16px;
}
.nl-overlay.nl-visible { opacity: 1; }
.nl-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 440px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  position: relative;
  transform: translateY(8px);
  transition: transform .25s ease;
}
.nl-overlay.nl-visible .nl-modal { transform: translateY(0); }
.nl-modal h3 {
  font-size: 22px; font-weight: 800;
  margin: 0 0 10px; color: var(--bg-dark, #0f1e16);
}
.nl-modal p {
  font-size: 14px; line-height: 1.5;
  color: #555; margin: 0 0 18px;
}
.nl-form {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.nl-form input {
  flex: 1 1 200px;
  padding: 12px 14px;
  border: 1px solid #d0d4d2;
  border-radius: 8px;
  font-size: 14px;
}
.nl-form input:focus { outline: 2px solid var(--primary, #0a7a3b); border-color: transparent; }
.nl-form button {
  padding: 12px 20px;
  background: var(--primary, #0a7a3b);
  color: #fff; border: none; border-radius: 8px;
  font-weight: 700; cursor: pointer;
  font-size: 14px;
}
.nl-form button:hover { filter: brightness(1.08); }
.nl-form button:disabled { opacity: .6; cursor: wait; }
.nl-msg { min-height: 18px; font-size: 13px; margin: 10px 0 0; }
.nl-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px;
  color: #aaa; font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px;
}
.nl-divider::before, .nl-divider::after {
  content: ""; flex: 1; height: 1px; background: #e1e6e3;
}
.nl-cta-secondary {
  display: block; text-align: center;
  padding: 12px 20px;
  border: 1.5px solid var(--primary, #0a7d3e);
  color: var(--primary, #0a7d3e);
  background: #fff;
  border-radius: 8px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nl-cta-secondary:hover {
  background: var(--primary, #0a7d3e);
  color: #fff;
}
.nl-skip {
  display: block; margin: 14px auto 0;
  background: none; border: none;
  color: #888; font-size: 12px;
  text-decoration: underline; cursor: pointer;
}
.nl-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none;
  font-size: 28px; line-height: 1;
  color: #999; cursor: pointer; padding: 4px 8px;
}
.nl-close:hover { color: #333; }
