﻿:root {
  --bg: #f0f5ff;
  --surface: #ffffff;
  --surface-2: #e4eeff;
  --text: #0f2140;
  --muted: #697185;
  --primary: #1565d8;
  --primary-dark: #0e50b0;
  --primary-soft: #e9f0ff;
  --border: #d7e0f3;
  --radius:    8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 4px 12px rgba(15,33,64,0.07);
  --shadow-md: 0 10px 30px rgba(15,33,64,0.09);
  --shadow-lg: 0 20px 50px rgba(15,33,64,0.11);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }
img { display: block; }
p { margin: 0 0 0.6rem; }

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  color: white;
  background:
    radial-gradient(ellipse 70% 200% at 50% -20%, rgba(99,179,237,0.10) 0%, transparent 70%),
    linear-gradient(135deg, #0b1729 0%, #14296b 35%, #1e2a72 62%, #2a1b6e 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 32px rgba(0,0,0,0.35);
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

/* Scroll effect: glassmorphism */
.site-header--scrolled {
  background: rgba(11, 23, 41, 0.82) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 2px 20px rgba(0,0,0,0.45);
}
.site-header--scrolled .nav-wrap { height: 52px; }

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 58px;
  transition: height 0.25s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  color: white;
}

.brand-icon { font-size: 1.35rem; }

/* "WEER" in sky blue accent */
.brand-name span {
  color: #60cfff;
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 1.5rem;
  flex: 1;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover { background: rgba(255,255,255,0.10); color: white; }
.main-nav a.nav-active {
  background: transparent;
  color: white;
  font-weight: 600;
}
.main-nav a.nav-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: #60cfff;
  border-radius: 2px;
}

/* ── NAV SEARCH ─────────────────────────────────────────────── */
.nav-search {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
}

.nav-search-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.nav-search-toggle:hover { background: rgba(255,255,255,0.10); color: white; }

.nav-search-form {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.2s;
}
.nav-search.is-open .nav-search-form {
  max-width: 220px;
  opacity: 1;
}

.nav-search-input {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 8px;
  color: white;
  font-size: 0.85rem;
  font-family: inherit;
  padding: 0.3rem 0.65rem;
  outline: none;
  width: 160px;
  transition: border-color 0.15s, background 0.15s;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.45); }
.nav-search-input:focus {
  border-color: #60cfff;
  background: rgba(255,255,255,0.15);
}

.nav-search-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 7px;
  color: white;
  font-size: 0.85rem;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-search-btn:hover { background: rgba(255,255,255,0.22); }

.nav-search-status {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 820px) { .nav-search { display: none; } }

/* Separator between content nav and tool nav */
.nav-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.18);
  margin: 0 0.3rem;
  flex-shrink: 0;
}

/* ── NAV DROPDOWN ───────────────────────────────────────────── */
.nav-item--drop {
  position: relative;
}

.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0.35rem 0.5rem;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  position: relative;
}
.nav-item-btn:hover,
.nav-item--drop.is-open .nav-item-btn {
  color: white;
  background: rgba(255,255,255,0.10);
}
.nav-item--active > .nav-item-btn {
  color: white;
  font-weight: 600;
}
.nav-item--active > .nav-item-btn::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: #60cfff;
  border-radius: 2px;
}

.nav-caret {
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform 0.2s;
}
.nav-item--drop.is-open .nav-caret { transform: rotate(180deg); }

/* Dropdown panel */
.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  min-width: 240px;
  padding: 0.5rem;
  z-index: 300;
  animation: dropdown-in 0.15s ease;
}
/* Small triangle pointer */
.nav-sub::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  background: #fff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: 2px 0 0 0;
  rotate: 45deg;
}

.nav-item--drop.is-open .nav-sub,
.nav-item--drop:focus-within .nav-sub { display: block; }

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
}
.nav-sub-item:hover { background: var(--bg); }
.nav-sub-item--active { background: var(--bg); }

.nav-sub-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--bg);
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-sub-item span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.nav-sub-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.nav-sub-item small {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.nav-sub-divider {
  height: 1px;
  background: var(--border);
  margin: 0.35rem 0.5rem;
}

.nav-sub-item--live .nav-sub-icon { background: #fef2f2; }
.nav-sub-item--live strong { color: #dc2626; }

.nav-live {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: nav-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes nav-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  50%       { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Base button — user avatar button (logged-in) */
.account-button {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.account-button:hover { background: rgba(255,255,255,0.17); }

/* Ghost: subtle outline (Inloggen) */
.account-button--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.28);
}
.account-button--ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.45);
}

/* CTA: solid accent (Aanmelden) */
.account-button--cta {
  background: #3b82f6;
  border-color: #2563eb;
  color: white;
}
.account-button--cta:hover {
  background: #2563eb;
  border-color: #1d4ed8;
}

.account-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.account-avatar {
  border-radius: 50%;
  object-fit: cover;
}
.account-unread-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  background: #e63946;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--header-bg, #0f172a);
  line-height: 1;
  pointer-events: none;
}

.account-name { font-size: 0.85rem; }

.account-caret {
  font-size: 0.65rem;
  opacity: 0.65;
  transition: transform 0.2s;
}
.account-menu.is-open .account-caret { transform: rotate(180deg); }

.account-menu { position: relative; }

.account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 0.4rem 0;
  z-index: 300;
  color: var(--text);
  transform-origin: top right;
  animation: dropdown-in 0.15s ease;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.account-menu.is-open .account-dropdown,
.account-menu:focus-within .account-dropdown { display: block; }

.account-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.dropdown-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.account-dropdown-header div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.88rem;
  min-width: 0;
}

.account-dropdown-header strong { font-size: 0.92rem; }
.account-dropdown-header span   { color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--text);
  transition: background 0.12s;
  text-decoration: none;
}
.dropdown-item:hover { background: var(--bg); }

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.3rem 0;
}

.dropdown-admin { font-weight: 600; color: var(--primary) !important; }

.dropdown-premium { color: #b45309 !important; }
.dropdown-premium--active { color: var(--muted) !important; font-size: 0.82rem; }
.dropdown-premium--active:hover { background: transparent !important; cursor: default; }

.dropdown-logout { color: var(--text); }
.dropdown-logout:hover { color: #dc2626; }

.nav-liveblog-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #dc2626;
  border: 1px solid #b91c1c;
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.15s;
}
.nav-liveblog-badge:hover { background: #b91c1c; }

.nav-liveblog-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: white;
  flex-shrink: 0;
  animation: nav-dot-pulse 1.5s ease-in-out infinite;
}

.alert-level-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
}

.alert-level-badge.level-1 { background: #eab308; color: #0f2140; border-color: #ca8a04; }
.alert-level-badge.level-2 { background: #f97316; color: white; border-color: #ea580c; }
.alert-level-badge.level-3 { background: #dc2626; color: white; border-color: #b91c1c; }

.nav-mobile-account { display: none; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  border-radius: 6px;
}

@media (max-width: 820px) {
  .nav-hamburger { display: flex; align-items: center; }

  .main-nav {
    display: none;
    position: fixed;        /* fixed escapes header's overflow clipping */
    top: 58px; left: 0; right: 0;
    max-height: calc(100dvh - 58px);
    overflow-y: auto;
    background: #0e1a3a;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    gap: 0;
    margin-left: 0;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  }
  .site-header.nav-open .main-nav { display: flex; }

  .main-nav a {
    padding: 0.7rem 1.25rem;
    font-size: 0.97rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: none;
  }
  .main-nav a:last-child { border-bottom: none; }

  /* Hide the nav separator on mobile */
  .nav-sep { display: none; }

  /* Dropdown becomes an inline accordion on mobile */
  .nav-item--drop { width: 100%; }
  .nav-item-btn {
    width: 100%;
    padding: 0.7rem 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.97rem;
    color: rgba(255,255,255,0.82);
    justify-content: space-between;
  }
  .nav-item--drop.is-open .nav-item-btn {
    background: rgba(255,255,255,0.06);
    color: white;
    border-bottom-color: transparent;
    box-shadow: none;
  }
  .nav-sub {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(0,0,0,0.15);
    padding: 0.25rem 0;
    animation: none;
    min-width: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-sub::before { display: none; }
  .nav-sub-item {
    padding: 0.6rem 1.5rem;
    border-radius: 0;
    color: rgba(255,255,255,0.78);
  }
  .nav-sub-item:hover { background: rgba(255,255,255,0.06); }
  .nav-sub-item strong { color: rgba(255,255,255,0.9); }
  .nav-sub-item small  { color: rgba(255,255,255,0.4); }
  .nav-sub-icon { background: rgba(255,255,255,0.08); }
  .nav-sub-divider { background: rgba(255,255,255,0.08); margin: 0.2rem 1rem; }
  .nav-item--active > .nav-item-btn { box-shadow: none; }

  /* Mobile-only account section at bottom of nav */
  .nav-mobile-account {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
  }
  .nav-mobile-account a,
  .nav-mobile-account form button {
    display: block;
    width: 100%;
    padding: 0.7rem 1.25rem;
    font-size: 0.97rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-mobile-account a:last-child,
  .nav-mobile-account form:last-child button { border-bottom: none; }
  .nav-mobile-account a:hover,
  .nav-mobile-account form button:hover { background: rgba(255,255,255,0.07); color: white; }
  .nav-mobile-account .nav-mobile-user {
    padding: 0.65rem 1.25rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-mobile-account .nav-mobile-premium { color: #fbbf24 !important; }
  .nav-mobile-account .nav-mobile-cta { color: #93c5fd !important; font-weight: 600; }

  /* Hide desktop-only elements */
  .account-name  { display: none; }
  .account-caret { display: none; }
  .nav-right .account-menu  { display: none; }
  .nav-right .account-button:not(.account-button--user) { display: none; }
}

/* ── ALERT BANNER ───────────────────────────────────────────── */
#alert-banner { display: none; }

.alert-banner--yellow { background: #fef9c3; border-bottom: 2px solid #eab308; padding: 0.6rem 1.5rem; }
.alert-banner--orange { background: #fff7ed; border-bottom: 2px solid #f97316; padding: 0.6rem 1.5rem; }
.alert-banner--red    { background: #fef2f2; border-bottom: 2px solid #dc2626; padding: 0.6rem 1.5rem; }

.alert-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.alert-banner-badge {
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(0,0,0,0.08);
  white-space: nowrap;
}

.alert-banner-event { font-weight: 600; }
.alert-banner-areas { color: var(--muted); }

.alert-banner-more {
  margin-left: auto;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}

.button:hover  { background: var(--primary-dark); }
.button:active { transform: scale(0.97); }

.button.small {
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
  border-radius: 9px;
}

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  align-items: start;
}

.hero-tab-bar {
  display: none;
  grid-column: 1 / -1;
  gap: 0.5rem;
}

.hero-tab {
  flex: 1;
  padding: 0.55rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.15s;
}

.hero-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.hero-panel { display: flex; flex-direction: column; }

.hero-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  flex: 1;
}

.hero-card h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.hero-weather-icon {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}

.hero-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.hero-author-avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-author div {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.hero-author strong { font-size: 0.88rem; font-weight: 700; }
.hero-author span   { font-size: 0.78rem; color: var(--muted); }

.meta { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 0.6rem; }

#weather-summary {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hero-now-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.hero-now-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  animation: now-pulse 2s ease-in-out infinite;
}

@keyframes now-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.6); }
  50%       { box-shadow: 0 0 0 5px rgba(22,163,74,0); }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.7rem 0.4rem;
  text-align: center;
}

.hero-stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.hero-stat-unit {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

.hero-detail-item { display: flex; flex-direction: column; gap: 0.1rem; }

.hero-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-detail-val { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* Map panel */
.weather-map {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #b5cfe0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  aspect-ratio: 612 / 744;
  position: relative;
}

.weather-map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.weather-map svg path {
  fill: #d4e4f8;
  stroke: white;
  stroke-width: 1.5;
  transition: fill 0.2s;
}

.weather-map svg path:hover { fill: #bbd4f0; cursor: pointer; }
.weather-map svg path.alert-yellow { fill: #fde047; }
.weather-map svg path.alert-orange { fill: #fb923c; }
.weather-map svg path.alert-red    { fill: #f87171; }

.weather-map svg text {
  font-size: 9px;
  pointer-events: none;
  font-family: Inter, system-ui, sans-serif;
  /* fill intentionally omitted — SVG elements carry their own fill="white" */
}

.ws-map-hint {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin: 0.5rem 0 0;
}

/* Province popup */
.province-popup {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 1rem;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  position: relative;
}

.province-popup.alert-yellow { border-color: #eab308; }
.province-popup.alert-orange { border-color: #f97316; }
.province-popup.alert-red    { border-color: #dc2626; }
.province-popup.alert-green  { border-color: #16a34a; }

.popup-close {
  position: absolute;
  top: 0.6rem; right: 0.7rem;
  background: none;
  border: none;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.popup-close:hover { background: var(--bg); }

.popup-province-name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.popup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  margin-bottom: 0.35rem;
  background: var(--bg);
  font-size: 0.85rem;
}

.popup-row.alert-yellow { background: #fef9c3; }
.popup-row.alert-orange { background: #fff7ed; }
.popup-row.alert-red    { background: #fef2f2; }

.popup-level { font-weight: 700; }
.popup-event { flex: 1; }
.popup-time  { color: var(--muted); font-size: 0.78rem; width: 100%; }
.popup-src {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}
.popup-src--auto   { background: #fef3c7; color: #92400e; }
.popup-src--manual { background: #ede9fe; color: #5b21b6; }

/* Timeline */
.tl-wrap {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.tl-top { position: relative; height: 18px; margin-bottom: 2px; }

.tl-label {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}

.tl-bar-outer {
  position: relative;
  height: 12px;
  border-radius: 4px;
  overflow: visible;
  background: #e4eeff;
}

.tl-bar {
  position: absolute;
  inset: 0;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
}

.tl-tick {
  position: absolute;
  width: 2px; height: 16px;
  background: white;
  top: -2px;
  transform: translateX(-50%);
  z-index: 1;
}

.tl-bottom { position: relative; height: 18px; margin-top: 2px; }

.tl-time {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.68rem;
  color: var(--muted);
}

/* ── FEATURES STRIP ─────────────────────────────────────────── */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 0;
  padding: 0 1.5rem 2rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: box-shadow 0.15s, transform 0.12s, border-color 0.15s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.feature-icon { font-size: 1.75rem; line-height: 1; }

.feature-card strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.feature-card span:last-child {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── POPULAR CITIES ─────────────────────────────────────────── */
.cities-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.city-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, transform 0.12s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}

.city-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.city-card-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.city-card-temp {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
  min-height: 1.5rem;
}

.city-card-icon {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  font-size: 1.6rem;
  opacity: 0.7;
}

/* ── FORECAST ───────────────────────────────────────────────── */
.forecast {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

.forecast-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.forecast-title-row h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.1rem;
  letter-spacing: -0.02em;
}

.city-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.city-search input {
  padding: 0.4rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  background: var(--surface);
  color: var(--text);
  width: 180px;
  transition: border-color 0.15s;
}

.city-search input:focus { outline: none; border-color: var(--primary); }

.search-status { font-size: 0.82rem; color: var(--muted); }

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.forecast-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.1rem 0.9rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.forecast-card.featured {
  background: linear-gradient(135deg, #1565d8 0%, #2a1b6e 100%);
  color: white;
  border-color: transparent;
}

.forecast-card .day  { font-weight: 700; font-size: 0.88rem; text-transform: capitalize; }
.forecast-card .date { font-size: 0.72rem; color: var(--muted); }
.forecast-card.featured .date { color: rgba(255,255,255,0.6); }
.forecast-card .icon { font-size: 1.8rem; line-height: 1; }
.forecast-card strong { font-size: 1.2rem; font-weight: 800; }
.forecast-card span   { font-size: 0.85rem; color: var(--muted); }
.forecast-card.featured span { color: rgba(255,255,255,0.65); }
.forecast-card p { font-size: 0.75rem; color: var(--muted); margin: 0; }
.forecast-card.featured p { color: rgba(255,255,255,0.6); }

.forecast-loading,
.forecast-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── PHOTOS ─────────────────────────────────────────────────── */
.photos {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 0.75rem;
}

.photo.large {
  grid-row: span 2;
}

.photo {
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.photo--clickable {
  cursor: zoom-in;
}

.photo--clickable::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.2s;
  border-radius: var(--radius-lg);
}

.photo--clickable:hover::after {
  background: rgba(0,0,0,0.18);
}

.photo-hover-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.photo--clickable:hover .photo-hover-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── PHOTO MODAL ──────────────────────────────────────────────── */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.photo-modal[hidden] { display: none; }

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 25, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.photo-modal-box {
  position: relative;
  z-index: 1;
  background: #0e1e3d;
  border-radius: 18px;
  overflow: hidden;
  max-width: min(900px, calc(100vw - 2rem));
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: modal-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.photo-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
}

.photo-modal-close:hover { background: rgba(0,0,0,0.75); }

.photo-modal-img {
  display: block;
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  background: #070e1c;
}

.photo-modal-info {
  padding: 1.1rem 1.4rem 1.3rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.photo-modal-info[hidden] { display: none; }

.photo-modal-caption {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  margin: 0 0 0.9rem;
  font-style: italic;
}

.photo-modal-credit {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.photo-modal-avatar {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  object-fit: cover;
}

.photo-modal-credit-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.photo-modal-credit-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
}

.photo-modal-credit-text span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 0.82rem;
}

.photo-caption-avatar {
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.photo-like-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem 0.55rem;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, color 0.15s, transform 0.12s;
  user-select: none;
}

.photo-like-btn:hover {
  background: rgba(0,0,0,0.65);
  color: #fff;
}

.photo-like-btn.liked {
  background: rgba(220,38,38,0.72);
  color: #fff;
}

.photo-like-btn:active {
  transform: scale(0.92);
}

.photo-like-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.photo-like-icon {
  font-size: 0.82rem;
  line-height: 1;
}

.photo-like-count {
  font-size: 0.75rem;
}

.photo.upload {
  background: var(--surface);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
  transition: border-color 0.15s, color 0.15s;
}

.photo.upload:hover { border-color: var(--primary); color: var(--primary); }
.photo.upload strong { font-weight: 700; }

.photo-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.photo-empty-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.photo-empty-state p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.8rem; }

/* ── BLOG SECTION (homepage grid) ──────────────────────────── */
.blog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

a.blog-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}

.blog-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.blog-item--no-img { position: relative; }

.blog-item--no-img::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, #7c3aed 100%);
}

.blog-item-img { height: 160px; background-size: cover; background-position: center; }

.blog-item-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.blog-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: capitalize;
}

.blog-item-body h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.35;
}

.blog-item-body p {
  font-size: 0.83rem;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 0.35rem;
}
a.blog-item:hover .blog-read-more { text-decoration: underline; }

/* ── BLOG PAGE (listing + single post) ─────────────────────── */
.blog-listing,
.blog-post {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.blog-back:hover { text-decoration: underline; }

.blog-post-hero {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background: #1e2a72;
  margin-bottom: 1.5rem;
}

.blog-post-hero--plain {
  min-height: 160px;
  background: linear-gradient(135deg, #0b1729 0%, #14296b 100%);
}

.blog-post-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.blog-post-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.blog-post-hero-overlay {
  position: relative;
  z-index: 1;
  padding: 1.5rem 2rem 2rem;
  color: white;
}

.blog-post-hero-date { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin: 0 0 0.5rem; }

.blog-post-hero-overlay h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.8rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.blog-post-avatar { border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); object-fit: cover; }

.blog-post-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-size: 0.85rem;
}

.blog-post-author-info strong { font-weight: 700; }
.blog-post-author-info span   { color: rgba(255,255,255,0.6); }

.blog-post-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.blog-post-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Each <hr>-separated section inside the white card */
.blog-block {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-block:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

/* Main (first) block: date badge + bold lead */
.blog-block--main > p:first-child > strong,
.blog-block--main > p:first-child > b {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 0.2em 0.8em;
  border-radius: 99px;
  margin-bottom: 0.35rem;
}

.blog-block--main > p:nth-child(2) > b,
.blog-block--main > p:nth-child(2) > strong {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text);
}

/* Section heading in non-main blocks */
.blog-block:not(.blog-block--main) > p:first-child > strong,
.blog-block:not(.blog-block--main) > p:first-child > b {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 0.5rem;
}

/* Photo block */
.blog-block--photo {
  margin: 0 -2.5rem;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.blog-post-card > .blog-post-body > .blog-block--photo:first-child {
  margin-top: -2rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}

.blog-block--photo img {
  display: block;
  width: 100%;
  max-height: 55vh;
  object-fit: cover;
}

.blog-block--photo p {
  padding: 0.6rem 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* Signature block */
.blog-block--signature {
  border-bottom: none;
  padding-bottom: 0;
  text-align: right;
  font-size: 0.88rem;
  color: var(--muted);
}

.blog-block p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
}

.blog-block p:last-child { margin-bottom: 0; }

/* ── WAARSCHUWINGEN PAGE ────────────────────────────────────── */
.waarschuwing-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.ws-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.ws-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.ws-updated { font-size: 0.78rem; color: var(--muted); }

.ws-empty {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.ws-article {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.ws-article-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.ws-article-top h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.ws-date { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

.ws-body { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.ws-body p { margin: 0 0 0.5rem; }
.ws-body strong { color: var(--text); }

.ws-latest-comment {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.ws-lc-avatar { border-radius: 50%; flex-shrink: 0; }

.ws-lc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow: hidden;
}

.ws-lc-body strong { color: var(--text); font-size: 0.83rem; }
.ws-lc-body span   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ws-article--auto {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
}

.ws-source-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.ws-lc-link {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.82rem;
  white-space: nowrap;
}

.ws-lc-link:hover { text-decoration: underline; }

.waarschuwing-map-col {
  position: sticky;
  top: 70px;
}

/* ── LIGHTNING AUTO-WARNINGS ────────────────────────────────── */
.ws-lightning-section {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.ws-lightning-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius);
}
.ws-lightning-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; margin-top: 0.1rem; }
.ws-lightning-header h3 { margin: 0 0 0.2rem; font-size: 1rem; font-weight: 700; color: #92400e; }
.ws-lightning-header p  { margin: 0; font-size: 0.82rem; color: #a16207; }
.ws-lightning-header strong { color: #92400e; }

.ws-lightning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.ws-lightning-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: var(--surface);
}
.ws-lightning-card--yellow { border-left-color: #eab308; background: #fefce8; }
.ws-lightning-card--orange { border-left-color: #f97316; background: #fff7ed; }
.ws-lightning-card--red    { border-left-color: #dc2626; background: #fef2f2; }

.ws-lightning-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.ws-lightning-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}
.ws-lightning-badge--yellow { background: #fef9c3; color: #854d0e; }
.ws-lightning-badge--orange { background: #ffedd5; color: #9a3412; }
.ws-lightning-badge--red    { background: #fee2e2; color: #991b1b; }
.ws-lightning-count { font-size: 0.78rem; color: var(--muted); }

.ws-lightning-provinces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.ws-lightning-prov {
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(0,0,0,0.04);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
}
.ws-lightning-prov em { color: var(--muted); font-style: normal; font-size: 0.75rem; }

.ws-lightning-thresholds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
}
.ws-lightning-thresholds strong { color: var(--text); }
.ws-lt-item {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}
.ws-lt-yellow { background: #fef9c3; color: #854d0e; }
.ws-lt-orange { background: #ffedd5; color: #9a3412; }
.ws-lt-red    { background: #fee2e2; color: #991b1b; }

/* ── COMMENTS ───────────────────────────────────────────────── */
.comment-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
}

.comment-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 1.25rem;
}

.comment-form-wrap {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.comment-form textarea:focus,
.comment-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,216,0.12);
}

.comment-guest-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.comment-form-who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.comment-form-who strong { font-weight: 700; }

.comment-avatar {
  border-radius: 50%;
  border: 2px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.comment-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  margin-left: 0.3rem;
}

.comment-badge--admin { background: #fef9c3; color: #92400e; }
.comment-badge--mod   { background: #ede9fe; color: #5b21b6; }

.comment-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.comment-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.comment-item--admin { border-left: 3px solid #eab308; }
.comment-item--mod   { border-left: 3px solid #7c3aed; }
.comment-item--hidden { display: none; }

.comment-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.comment-meta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.comment-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.comment-meta-top strong { font-weight: 700; }
.comment-time { font-size: 0.75rem; color: var(--muted); }
.comment-body { font-size: 0.9rem; line-height: 1.6; }

.comment-delete-form { margin-left: auto; }

.comment-delete-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 5px;
  transition: background 0.12s, color 0.12s;
}

.comment-delete-btn:hover { background: #fee2e2; color: #dc2626; }

.comment-show-all {
  display: block;
  margin: 0.75rem 0 0;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.12s;
}

.comment-show-all:hover { background: var(--primary-soft); border-color: var(--primary); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #0e1e3d 0%, #0b1729 100%);
  color: rgba(255,255,255,0.65);
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.875rem;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 2rem 2.5rem;
}

/* Brand column */
.footer-brand-col { display: flex; flex-direction: column; gap: 0; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: white;
  text-decoration: none;
  margin-bottom: 0.85rem;
}
.footer-brand-icon { font-size: 1.4rem; }
.footer-brand-name span { color: rgba(255,255,255,0.45); font-weight: 600; }

.footer-brand-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.footer-owner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  margin-top: auto;
}
.footer-owner-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-owner-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}

/* Regular footer columns */
.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: white; }

/* Bottom bar */
.footer-bar {
  background: #070e1c;
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  gap: 1rem;
}
.footer-bar-links { display: flex; gap: 1.25rem; }
.footer-bar-links a { color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bar-links a:hover { color: rgba(255,255,255,0.6); }

/* Legacy .footer-note (fallback for pages not yet updated) */
.footer-note {
  text-align: center;
  background: #070e1c;
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
  padding: 0.75rem;
  margin: 0;
}

/* ── AUTH PAGES ─────────────────────────────────────────────── */
.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem 5rem;
}

.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 2.2rem 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 420px;
}

.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 1.2rem;
  letter-spacing: -0.02em;
}

.auth-error,
.auth-success {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.auth-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.auth-success { background: #f0fdf4; color: #16a34a; border: 1px solid #86efac; }

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }

.form-group input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,216,0.12);
}

.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-submit { width: 100%; padding: 0.75rem; margin-top: 0.5rem; font-size: 1rem; border-radius: 10px; }

.auth-switch {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-switch a { color: var(--primary); font-weight: 600; }

/* ── REGENRADAR PAGINA ───────────────────────────────────────── */

/* Wider panel column than onweer (220px → 260px) for legend + controls */
.ow-layout--radar { grid-template-columns: 1fr 260px; }

#radar-map { height: 560px; width: 100%; }

.rv-slider {
  width: 100%;
  height: 4px;
  appearance: none;
  background: #dde1e7;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  display: block;
  margin-bottom: 0.2rem;
}
.rv-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 0 0 3px #2563eb;
  transition: transform 0.1s;
}
.rv-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.rv-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  border: 3px solid #2563eb;
  cursor: pointer;
}

.rv-tick-wrap {
  position: relative;
  height: 10px;
  margin: 0.25rem 0 0.75rem;
}
.rv-tick {
  position: absolute;
  width: 2px; height: 7px;
  background: #ccd0d8;
  transform: translateX(-50%);
  top: 0;
  border-radius: 1px;
}
.rv-tick--now { background: #22c55e; height: 9px; }

.rv-ctrl-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.rv-btn {
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.38rem 1rem;
  line-height: 1.3;
  background: var(--surface);
  color: #333;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex: 1;
}
.rv-btn--ctrl:hover { background: var(--bg); }
.rv-btn--ctrl.active { background: var(--primary); border-color: var(--primary); color: white; }

/* Tabs */
.rv-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 0.75rem;
  gap: 0.25rem;
  background: var(--surface);
}
.rv-tab {
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.rv-tab:hover { color: var(--text); }
.rv-tab--active { color: var(--primary); border-bottom-color: var(--primary); }
.rv-tab--locked { opacity: 0.55; cursor: default; }

.rv-panel-tab--hidden { display: none; }

/* Forecast chart */
.rv-forecast-chart {
  position: relative;
  height: 90px;
  margin-bottom: 0.5rem;
}
.rv-forecast-loading {
  color: var(--muted);
  font-size: 0.8rem;
  padding: 1rem 0;
}
.rv-fc-bars {
  display: flex;
  align-items: flex-end;
  height: 70px;
  gap: 2px;
}
.rv-fc-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
  cursor: default;
}
.rv-fc-bar {
  width: 100%;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  transition: opacity 0.15s;
}
.rv-fc-bar-wrap:hover .rv-fc-bar { opacity: 0.75; }
.rv-fc-bar-lbl {
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 2px;
  height: 12px;
  line-height: 12px;
  white-space: nowrap;
}
.rv-fc-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  right: 0; top: 0; bottom: 14px;
  font-size: 0.58rem;
  color: var(--muted);
  text-align: right;
  pointer-events: none;
}

/* Daily summary rows */
.rv-forecast-days { display: flex; flex-direction: column; gap: 0.3rem; }
.rv-fc-day {
  display: grid;
  grid-template-columns: 40px 22px 28px 36px 1fr;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
}
.rv-fc-day-name  { color: var(--text); font-weight: 600; }
.rv-fc-day-icon  { font-size: 1rem; text-align: center; }
.rv-fc-day-temp  { color: var(--text); font-weight: 700; text-align: right; }
.rv-fc-day-mm    { color: #3b82f6; font-size: 0.75rem; text-align: right; }
.rv-fc-day-bar   { height: 5px; background: #93c5fd; border-radius: 3px; min-width: 2px; max-width: 100%; }

.rv-forecast-src {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: right;
}

.rv-legend-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.45rem;
}

.rv-legend-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.rv-legend-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text);
}

.rv-legend-list li span {
  width: 20px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .ow-layout--radar { grid-template-columns: 1fr; }
  #radar-map { height: max(55vw, 260px); max-height: 380px; }
}



/* ── ONWEERRADAR PAGINA ──────────────────────────────────────── */
.ow-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.ow-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.ow-title { font-size: 2rem; font-weight: 800; margin: 0 0 0.2rem; }
.ow-subtitle { margin: 0; color: var(--muted); font-size: 0.92rem; }

.ow-conn-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15,33,64,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.ow-conn-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.ow-conn-dot--connecting  { background: #eab308; animation: ow-pulse 1.4s ease-in-out infinite; }
.ow-conn-dot--connected   { background: #22c55e; animation: ow-pulse 2s ease-in-out infinite; }
.ow-conn-dot--error       { background: #dc2626; }
.ow-conn-dot--disconnected { background: var(--muted); }

@keyframes ow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

.ow-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

.ow-map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #e8ecf0;
  line-height: 0;
}

#ow-map { height: 560px; width: 100%; }

.ow-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ow-panel-clock {
  background: #1565d8;
  color: white;
  text-align: center;
  padding: 0.7rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.ow-panel-body { padding: 0.75rem; }

.ow-filter-list { display: flex; flex-direction: column; gap: 0.05rem; }

.ow-filt-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.5rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.1s;
  user-select: none;
}

.ow-filt-row:hover { background: var(--bg); }

.ow-filt-row input[type="checkbox"] {
  width: 15px; height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.ow-filt-5  input[type="checkbox"] { accent-color: #ff1744; }
.ow-filt-15 input[type="checkbox"] { accent-color: #ff6d00; }
.ow-filt-30 input[type="checkbox"] { accent-color: #ffd600; }
.ow-filt-60 input[type="checkbox"] { accent-color: #00b0ff; }

.ow-filt-label { flex: 1; }

.ow-filt-count {
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 42px;
  text-align: right;
}

.ow-filt-5  .ow-filt-count { color: #ff1744; }
.ow-filt-15 .ow-filt-count { color: #ff6d00; }
.ow-filt-30 .ow-filt-count { color: #b8a200; }
.ow-filt-60 .ow-filt-count { color: #0080c0; }

.ow-panel-divider { height: 1px; background: var(--border); margin: 0.5rem 0; }

.ow-panel-stats {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.ow-panel-stat { display: flex; flex-direction: column; gap: 0.05rem; }
.ow-panel-stat span:first-child { font-size: 0.92rem; font-weight: 700; }
.ow-panel-stat span:last-child  { font-size: 0.78rem; color: var(--muted); }

.ow-panel-guest {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.ow-guest-link {
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 7px;
  transition: background 0.15s;
}

.ow-guest-link:hover { background: var(--primary-dark); }

.ow-cluster-icon {
  border-radius: 50%;
  background: rgba(255,23,68,0.75);
  border: 2px solid rgba(255,23,68,0.9);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.ow-legend-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-size: 0.8rem;
  padding: 0 0.25rem;
}

.ow-legend-item { font-weight: 600; }
.ow-leg-5  { color: #ff1744; }
.ow-leg-15 { color: #ff6d00; }
.ow-leg-30 { color: #b8a200; }
.ow-leg-60 { color: #0080c0; }

.ow-legend-attr { margin-left: auto; color: var(--muted); font-size: 0.75rem; }
.ow-legend-attr a { color: var(--primary); }

/* Density legend */
.ow-legend-sep   { color: var(--border); }
.ow-legend-title { color: var(--muted); font-size: 0.75rem; }
.ow-leg-dg { color: #2e7d32; font-weight: 600; }
.ow-leg-dy { color: #f9a825; font-weight: 600; }
.ow-leg-dr { color: #c62828; font-weight: 600; }
.ow-leg-dp { color: #7b1fa2; font-weight: 600; }

/* Archive section */
.ow-archive-wrap { padding: 0 0 0.25rem; }

.ow-archive-toggle {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 0.55rem 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ow-archive-toggle:hover { opacity: 0.8; }
.ow-arch-arrow { font-size: 0.9rem; }

.ow-arch-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0 0.1rem 0.25rem;
}

.ow-arch-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ow-arch-label {
  font-size: 0.75rem;
  color: var(--muted);
  min-width: 2.5rem;
}
.ow-arch-input {
  flex: 1;
  padding: 0.3rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  background: var(--surface);
  color: var(--text);
}
.ow-arch-input:focus { outline: 2px solid var(--primary); border-color: transparent; }

.ow-arch-btns {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.1rem;
}
.ow-arch-load-btn {
  flex: 1;
  padding: 0.4rem;
  font-size: 0.82rem;
}
.ow-arch-live-btn {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: transparent;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ow-arch-live-btn:hover { background: var(--primary-soft); }

.ow-arch-status {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  min-height: 1.1em;
}

/* ── PREMIUM PAGE ────────────────────────────────────────────── */
.prem-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.prem-hero {
  text-align: center;
  margin-bottom: 2rem;
}
.prem-hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f9a825, #ff8f00);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 20px;
  margin-bottom: .75rem;
}
.prem-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 .5rem;
}
.prem-hero-sub {
  color: var(--text-muted, #666);
  margin: 0;
}

.prem-error {
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  color: #c62828;
  padding: .75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

.prem-active-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border: 1px solid #ffe082;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.prem-active-icon { font-size: 2rem; }
.prem-active-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 .2rem; }
.prem-active-until { margin: 0; font-size: .85rem; color: var(--text-muted, #666); }
.prem-manage-btn   { margin-left: auto; white-space: nowrap; }

/* ── Plan comparison ── */
.prem-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.prem-plan {
  border: 1.5px solid var(--border, #ddd);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  position: relative;
  background: var(--surface, #fff);
}

.prem-plan--premium {
  border-color: #f9a825;
  box-shadow: 0 4px 20px rgba(249,168,37,.18);
}

.prem-plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f9a825, #ff8f00);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .25rem .9rem;
  border-radius: 20px;
  white-space: nowrap;
}

.prem-plan-header { margin-bottom: 1.25rem; }
.prem-plan-header h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 .4rem; }
.prem-plan-price { font-size: 2rem; font-weight: 800; color: var(--text); }
.prem-plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted, #666); }
.prem-plan-note { font-size: .78rem; color: var(--text-muted, #888); margin-top: .2rem; }

.prem-features { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.prem-feat     { padding: .4rem 0; font-size: .9rem; border-bottom: 1px solid var(--border, #f0f0f0); }
.prem-feat:last-child { border-bottom: none; }
.prem-feat--no { opacity: .4; text-decoration: line-through; }

.prem-cta-btn {
  display: block;
  text-align: center;
  padding: .75rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
}
.prem-cta-btn--outline {
  background: transparent;
  border: 1.5px solid var(--border, #ccc);
  color: var(--text);
}
.prem-current-label {
  display: block;
  text-align: center;
  color: var(--text-muted, #888);
  font-size: .85rem;
  padding: .5rem 0;
}

.prem-footer-note {
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted, #888);
}

.prem-notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #e65100;
  padding: .75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: .9rem;
}

.prem-trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1.5px solid #a5d6a7;
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.prem-trial-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.prem-trial-text strong { font-size: 1rem; }
.prem-trial-text span   { font-size: .82rem; color: var(--text-muted, #555); }
.prem-trial-form { flex-shrink: 0; }
.prem-trial-btn  {
  background: #2e7d32;
  white-space: nowrap;
  padding: .6rem 1.4rem;
  font-weight: 700;
}
.prem-trial-btn:hover { background: #1b5e20; }

/* ── Success page ── */
.prem-success-card {
  max-width: 480px;
  margin: 3rem auto;
  text-align: center;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.prem-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.prem-success-links { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* ── Archive trial welcome ── */
.arch-trial-welcome {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: #1b5e20;
}

/* ── Archive premium gate ── */
.arch-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: linear-gradient(135deg, #fffbf0, #fff8e1);
  border: 1.5px solid #ffe082;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  padding: 2rem;
}
.arch-gate-inner {
  text-align: center;
  max-width: 420px;
}
.arch-gate-icon { font-size: 3rem; margin-bottom: 1rem; }
.arch-gate-inner h2 { font-size: 1.4rem; font-weight: 700; margin: 0 0 .6rem; }
.arch-gate-inner p  { color: var(--text-muted, #555); margin: 0 0 1.5rem; line-height: 1.6; }
.arch-gate-btn  { display: inline-block; padding: .7rem 1.6rem; font-size: 1rem; font-weight: 700; }
.arch-gate-link {
  display: block;
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--text-muted, #888);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .prem-compare { grid-template-columns: 1fr; }
  .prem-manage-btn { margin-left: 0; width: 100%; }
}

/* ── ARCHIEF PAGE ────────────────────────────────────────────── */
.arch-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.arch-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.arch-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.arch-subtitle {
  color: var(--text-muted, #666);
  margin: 0;
  font-size: 0.9rem;
}

.arch-header-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.arch-date-input {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--surface, #fff);
  color: var(--text);
}

.arch-live-link {
  padding: 0.45rem 0.9rem;
  background: #ff1744;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.arch-live-link:hover { background: #d50000; }

.arch-map-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  margin-bottom: 0.75rem;
}

#arch-map {
  height: 560px;
  width: 100%;
  background: #e8edf2;
}

.arch-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.82);
  font-size: 1rem;
  color: var(--text-muted, #555);
  text-align: center;
  line-height: 1.6;
  z-index: 600;
}

/* ── Timeline bar ── */
.arch-timeline {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: 10px;
  padding: 0.75rem 1rem 2.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}

.arch-tl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.6rem;
}

.arch-tl-playback,
.arch-tl-window {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arch-tl-label {
  font-size: 0.8rem;
  color: var(--text-muted, #666);
}

.arch-play-btn {
  width: 2.2rem;
  height: 2.2rem;
  border: none;
  border-radius: 50%;
  background: #1565c0;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.arch-play-btn:hover { background: #0d47a1; }

.arch-speed-sel {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  font-size: 0.82rem;
  background: var(--surface, #fff);
  color: var(--text);
  cursor: pointer;
}

.arch-tl-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.arch-window-time {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.arch-strike-count {
  color: #ff1744;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Slider ── */
.arch-tl-slider-wrap {
  position: relative;
  padding-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
}

.arch-tl-histogram {
  display: block;
  width: 100%;
  height: 28px;
  pointer-events: none;
  border-radius: 3px;
  opacity: 0.85;
}

.arch-slider {
  position: relative;
  display: block;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: transparent;
  outline: none;
  cursor: pointer;
  margin-top: 4px;
  z-index: 1;
}
.arch-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1565c0;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.arch-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1565c0;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.arch-tl-ticks {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.2rem;
  pointer-events: none;
  z-index: 0;
}

.arch-tl-tick {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: var(--text-muted, #888);
  white-space: nowrap;
}

/* ── Full-day overview bar ── */
.arch-overview-label {
  font-size: 0.7rem;
  color: var(--text-muted, #999);
  margin-top: 0.9rem;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.arch-overview-wrap {
  position: relative;
  height: 22px;
  background: var(--border, #e8eaed);
  border-radius: 4px;
  margin-top: 0.55rem;
  cursor: pointer;
  overflow: visible;
  user-select: none;
}
.arch-overview-wrap:hover { opacity: 0.92; }

.arch-overview-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  pointer-events: none;
}

.arch-overview-window {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(21, 101, 192, 0.18);
  border-left:  2px solid rgba(21, 101, 192, 0.7);
  border-right: 2px solid rgba(21, 101, 192, 0.7);
  border-radius: 2px;
  pointer-events: none;
  min-width: 3px;
}

.arch-overview-ticks {
  position: absolute;
  bottom: -1.25rem;
  left: 0;
  right: 0;
  height: 1.1rem;
  pointer-events: none;
}

.arch-ov-tick {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--text-muted, #999);
  white-space: nowrap;
}

/* ── Legend row ── */
.arch-legend-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted, #555);
  padding: 0.1rem 0;
}

.arch-legend-item { white-space: nowrap; }

.arch-legend-sep {
  color: var(--border, #bbb);
  font-weight: 300;
}

.arch-legend-attr {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted, #777);
}

/* age-band legend colours (reused from onweer) */
.ow-leg-5  { color: #ff1744; }
.ow-leg-15 { color: #ff6d00; }
.ow-leg-30 { color: #ffd600; }
.ow-leg-60 { color: #00b0ff; }

/* ══════════════════════════════════════════════════════════════
   ADMIN — Sidebar layout
   ══════════════════════════════════════════════════════════════ */

/* Sidebar header */
.site-header--admin {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 230px;
  flex-direction: column;
  border-bottom: none;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 500;
  padding: 0;
  background: var(--surface);
  box-shadow: 2px 0 12px rgba(0,0,0,.06);
}
.site-header--admin .nav-wrap {
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  padding: 0;
  gap: 0;
}
.admin-brand-wrap {
  display: contents; /* transparent on public header */
}
.site-header--admin .admin-brand-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.1rem 1.2rem .9rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.admin-env-badge {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  padding: .18rem .45rem;
  white-space: nowrap;
}

/* Sidebar nav */
.site-header--admin .main-nav {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: .4rem 0 .5rem;
  flex: 1;
  overflow-y: auto;
}
.site-header--admin .main-nav a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .52rem 1.2rem;
  border-radius: 0;
  font-size: .855rem;
  font-weight: 500;
  color: var(--text);
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
}
.site-header--admin .main-nav a:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--accent);
  border-left-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.site-header--admin .main-nav a.nav-active {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-weight: 600;
}
.admin-nav-group {
  display: block;
  padding: .9rem 1.2rem .2rem;
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
}
.admin-nav-spacer { flex: 1; min-height: 1rem; }
.admin-nav-back {
  font-size: .82rem !important;
  color: var(--muted) !important;
  border-top: 1px solid var(--border);
  margin-top: .25rem;
  padding-top: .7rem !important;
}
.admin-nav-back:hover { color: var(--accent) !important; }

/* Sidebar user panel */
.site-header--admin .nav-right {
  border-top: 1px solid var(--border);
  padding: .85rem 1.2rem;
  flex-direction: column;
  align-items: stretch;
  gap: .6rem;
  flex-shrink: 0;
}
.admin-user-panel {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.admin-user-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.admin-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.admin-user-info strong {
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-user-info span {
  font-size: .72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-logout-btn {
  display: block;
  text-align: center;
  padding: .4rem .75rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.admin-logout-btn:hover {
  border-color: #ef4444;
  color: #dc2626;
  background: #fef2f2;
}
.site-header--admin .nav-hamburger { display: none; }

/* Push all page content right of the sidebar */
body.is-admin {
  padding-left: 230px;
}
body.is-admin .site-footer,
body.is-admin .footer-bar {
  margin-left: -230px;
  padding-left: calc(230px + 1.5rem);
  box-sizing: border-box;
  width: 100vw;
}

/* ── ADMIN page layout ─────────────────────────────────────── */
.admin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.admin-page-header > div { flex: 1; }
.admin-page-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 .25rem;
  letter-spacing: -.02em;
}
.admin-page-header p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: box-shadow .15s;
}
.admin-stat:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.admin-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: .5;
  border-radius: 12px 12px 0 0;
}
.admin-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: .3rem;
}
.admin-stat-value--warn  { color: #d97706; }
.admin-stat-value--muted { color: var(--muted); font-size: 1.6rem; }
.admin-stat-label {
  font-size: 0.775rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.admin-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 1.5rem;
  align-items: start;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
  padding: 1.5rem;
}

.admin-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.admin-card-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  flex-shrink: 0;
}

.admin-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.5rem 0 0.75rem;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-empty {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg);
  border-radius: var(--radius);
}

/* Province checkboxes */
.province-shortcuts {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.province-shortcuts span {
  font-size: 0.78rem;
  color: var(--muted);
  margin-right: 0.2rem;
}
.province-shortcuts button {
  font-size: 0.78rem;
  padding: 0.18rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.province-shortcuts button:hover { background: var(--border); color: var(--text); }

.province-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  transition: background 0.1s;
}
.check-label:hover { background: var(--bg); }
.check-label input[type=checkbox] { accent-color: var(--primary); cursor: pointer; width: 15px; height: 15px; }

/* Alert list */
.alert-table { display: flex; flex-direction: column; gap: 0.65rem; }

.alert-row {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  background: var(--bg);
}
.alert-row--yellow { border-left-color: #eab308; }
.alert-row--orange { border-left-color: #f97316; }
.alert-row--red    { border-left-color: #dc2626; }
.alert-table.expired .alert-row { opacity: 0.55; }

.alert-row-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.9rem;
}
.alert-row-main strong { font-weight: 600; }

.alert-row-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-yellow  { background: #fef9c3; color: #92400e; }
.badge-orange  { background: #ffedd5; color: #9a3412; }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-expired { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

.alert-row-areas { font-size: 0.8rem; color: var(--muted); }
.alert-row-meta  { display: flex; gap: 1rem; margin-top: 0.3rem; font-size: 0.8rem; color: var(--muted); }
.alert-row-by    { font-style: italic; }
.alert-row-msg   {
  font-size: 0.86rem;
  color: var(--text);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* Expired collapsible */
.expired-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.25rem 0 0.6rem;
  background: none;
  border: none;
  padding: 0;
}
.expired-toggle:hover { color: var(--text); }
.expired-toggle-caret { transition: transform 0.2s; font-style: normal; }
.expired-toggle.is-open .expired-toggle-caret { transform: rotate(90deg); }
.expired-body { display: none; }
.expired-body.is-open { display: block; }

/* Danger button */
.btn-danger {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 7px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  margin-top: 0.5rem;
}
.btn-danger:hover { background: #fee2e2; border-color: #f87171; }

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-row  { grid-template-columns: 1fr; }
  .province-checks { grid-template-columns: repeat(2, 1fr); }
}

/* ── Admin sidebar collapse on mobile ─────────────────────── */
@media (max-width: 820px) {
  /* Remove sidebar body offset */
  body.is-admin {
    padding-left: 0;
  }
  body.is-admin .site-footer,
  body.is-admin .footer-bar {
    margin-left: 0;
    padding-left: 1.5rem;
    width: auto;
  }

  /* Sidebar → top bar */
  .site-header--admin {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow: visible;
    flex-direction: row;
    z-index: 500;
  }
  .site-header--admin .nav-wrap {
    flex-direction: row;
    align-items: center;
    min-height: auto;
    padding: 0 1rem;
    gap: 0;
  }
  .site-header--admin .admin-brand-wrap {
    padding: .7rem 0;
    border-bottom: none;
    flex: 1;
  }
  .admin-env-badge { display: none; }

  /* Dropdown nav */
  .site-header--admin .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: .4rem 0 .75rem;
    display: none;
    z-index: 400;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
  }
  .site-header--admin.nav-open .main-nav { display: flex; }
  .site-header--admin .main-nav a {
    padding: .55rem 1.25rem;
    border-left: none;
    border-bottom: none;
  }
  .site-header--admin .main-nav a.nav-active {
    border-left: none;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }
  .admin-nav-spacer  { display: none; }
  .admin-nav-back    { border-top: 1px solid var(--border); }

  /* Right side: just logout + hamburger */
  .site-header--admin .nav-right {
    flex-direction: row;
    border-top: none;
    padding: 0;
    margin-left: 0;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
  }
  .admin-user-panel { display: none; }
  .admin-logout-btn { padding: .3rem .65rem; font-size: .78rem; }
  .site-header--admin .nav-hamburger { display: flex; }
}

/* ── Admin nav badge (contact unread count) ─────────────────── */
.admin-nav-contact { position: relative; }
.admin-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ef4444;
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 5px;
  vertical-align: middle;
  line-height: 1;
}

/* ── Contact messages inbox ─────────────────────────────────── */
.cm-filter-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cm-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.cm-filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.cm-filter-count {
  display: inline-block;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.cm-filter-count--unread {
  background: #fee2e2;
  color: #dc2626;
}

.cm-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.cm-item {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.cm-item:last-child { border-bottom: none; }

.cm-item--unread { background: var(--primary-soft); }

.cm-item--open { background: var(--surface); }

.cm-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem 0.3rem;
  flex-wrap: wrap;
}

.cm-item-who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cm-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.cm-item-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.cm-item-email {
  font-size: 0.82rem;
  color: var(--primary);
  text-decoration: none;
}

.cm-item-email:hover { text-decoration: underline; }

.cm-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cm-item-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.cm-item-toggle {
  font-size: 0.78rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.cm-item-toggle:hover { text-decoration: underline; }

.cm-item-subject {
  padding: 0 1.1rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text);
}

.cm-item--unread .cm-item-subject { font-weight: 600; }

.cm-item-body {
  border-top: 1px solid var(--border);
  padding: 1.1rem;
  background: var(--bg);
}

.cm-item-message {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 1rem;
}

.cm-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.cm-item-ip {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: monospace;
}

.cm-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── LIVEBLOG ────────────────────────────────────────────────── */
.liveblog-hero {
  background: linear-gradient(135deg, #0b1729 0%, #14296b 60%, #1e2a72 100%);
  color: white;
  padding: 2.5rem 1.5rem;
}
.liveblog-hero--live {
  background: linear-gradient(135deg, #0b1729 0%, #1a3a5c 40%, #1e3a6b 100%);
  border-bottom: 3px solid #ef4444;
}
.liveblog-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}
.liveblog-hero-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.liveblog-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ef4444;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}
.liveblog-closed-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}
.liveblog-hero-date { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.liveblog-hero-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.liveblog-hero-desc { color: rgba(255,255,255,0.7); margin: 0 0 1rem; font-size: 0.9rem; }
.liveblog-hero-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}
.liveblog-hero-refresh { color: rgba(255,255,255,0.4); }

.liveblog-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.liveblog-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}

.liveblog-add-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}
.liveblog-add-form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.liveblog-add-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}

.liveblog-no-entries {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.liveblog-no-entries-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.liveblog-no-entries p { margin: 0 0 0.35rem; font-weight: 600; color: var(--text); }

.liveblog-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  padding-left: 0;
}

.lb-entry {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0 1.25rem;
  padding: 1rem 1.1rem 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: relative;
  transition: box-shadow .15s;
}
.lb-entry:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.09); }

.lb-entry--latest .lb-entry-clock {
  color: var(--primary);
}

.lb-entry-time {
  text-align: right;
  padding-top: 0.1rem;
  flex-shrink: 0;
}
.lb-entry-clock { display: block; font-size: 1.2rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.lb-entry-date  { display: block; font-size: 0.68rem; color: var(--muted); margin-top: 0.15rem; line-height: 1.3; }

.lb-entry-body { padding-left: 0.25rem; }

.lb-entry-new-tag {
  display: inline-block;
  background: #ef4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.lb-entry-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
}
.lb-entry-content strong { font-weight: 700; }

.lb-entry-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.lb-entry-avatar { border-radius: 50%; vertical-align: middle; }

.lb-delete-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}
.lb-delete-btn:hover { background: #fee2e2; color: #dc2626; }

/* New entry slide-in animation */
.lb-entry--new {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.lb-entry--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast notification */
.lb-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1e293b;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.lb-toast--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 600px) {
  .lb-entry { grid-template-columns: 52px 1fr; gap: 0 0.85rem; }
  .lb-entry::before { left: 52px; }
  .lb-entry::after  { left: 52px; }
  .liveblog-hero-title { font-size: 1.5rem; }
}

/* ── LIVEBLOG — landing (geen actief) ───────────────────────── */
.lb-landing-outer {
  background: var(--bg);
  padding: 2.5rem 1.5rem 4rem;
}
.lb-landing {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* Intro block */
.lb-landing-intro {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.lb-landing-icon { font-size: 2.25rem; line-height: 1; }
.lb-landing-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}
.lb-landing-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

/* Why section */
.lb-why-section {
  margin-bottom: 2.5rem;
}
.lb-why-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--text);
}
.lb-why-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.7;
}
.lb-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.lb-why-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.lb-why-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.2; }
.lb-why-item strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--text); }
.lb-why-item p { margin: 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* Last liveblog preview */
.lb-last-preview {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.lb-last-preview-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.lb-last-preview-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.lb-last-preview-link {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.lb-last-preview-link:hover { text-decoration: underline; }
.lb-last-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

/* Right sidebar */
.lb-landing-aside {
  position: sticky;
  top: 1.5rem;
}
.lb-aside-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.lb-aside-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.lb-aside-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lb-aside-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.lb-aside-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}
.lb-aside-item--current {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
}
.lb-aside-item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.lb-aside-item-meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Shared badge */
.lb-archive-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.lb-archive-badge--live   { background: #16a34a; color: #fff; }
.lb-archive-badge--closed { background: var(--border); color: var(--text-muted); }

/* Archive section below full liveblog view */
.lb-archive-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
}
.lb-archive-inner { max-width: 780px; margin: 0 auto; }
.lb-archive-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.lb-archive-list { display: flex; flex-direction: column; gap: 0.6rem; }
.lb-archive-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.lb-archive-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.lb-archive-item--current {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 5%, var(--bg));
}
.lb-archive-item-title { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.lb-archive-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 860px) {
  .lb-landing { grid-template-columns: 1fr; }
  .lb-landing-aside { position: static; }
  .lb-aside-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
}
@media (max-width: 540px) {
  .lb-why-grid { grid-template-columns: 1fr; }
  .lb-aside-list { grid-template-columns: 1fr; }
  .lb-landing-intro { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ── 404 PAGE ────────────────────────────────────────────────── */
.notfound-main {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.notfound-wrap {
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.notfound-code {
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
  opacity: .15;
  letter-spacing: -.04em;
  margin-bottom: -.5rem;
}
.notfound-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 .75rem;
  color: var(--text);
}
.notfound-desc {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0 0 2rem;
}
.notfound-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.notfound-suggestions {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: left;
}
.notfound-suggestions-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 .85rem;
}
.notfound-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.notfound-links a {
  font-size: .9rem;
  color: var(--text);
  text-decoration: none;
  display: block;
  padding: .35rem .5rem;
  border-radius: 6px;
  transition: background .15s;
}
.notfound-links a:hover {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary);
}

/* ── STAD PAGES ──────────────────────────────────────────────── */
.stad-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.stad-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.stad-breadcrumb { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.35rem; }
.stad-breadcrumb a { color: var(--primary); text-decoration: none; }
.stad-breadcrumb a:hover { text-decoration: underline; }
.stad-title { font-size: 2rem; font-weight: 800; margin: 0 0 0.2rem; }
.stad-province { color: var(--muted); font-size: 0.9rem; margin: 0; }

.stad-hero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }

.stad-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.stad-share:hover { border-color: var(--primary); color: var(--primary); }

.stad-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.stad-fav-btn:hover { border-color: #f59e0b; color: #92400e; }
.stad-fav-btn--active { background: #fef9c3; border-color: #f59e0b; color: #92400e; }
.stad-fav-upsell { font-size: 0.82rem; color: var(--muted); text-decoration: none; display: block; }
.stad-fav-upsell:hover { color: var(--primary); }

.stad-alerts { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.stad-alert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  border-left: 4px solid transparent;
}
.stad-alert--yellow { background: #fef9c3; border-left-color: #eab308; }
.stad-alert--orange { background: #ffedd5; border-left-color: #f97316; }
.stad-alert--red    { background: #fee2e2; border-left-color: #dc2626; }
.stad-alert-time { margin-left: auto; color: var(--muted); font-size: 0.78rem; }

.stad-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.stad-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}
.stad-card--lightning {
  margin-top: 1rem;
  text-align: center;
  background: #fffbeb;
  border-color: #fde68a;
}
.stad-card-label    { font-size: 0.78rem; font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.stad-lightning-count { font-size: 2.5rem; font-weight: 800; color: #d97706; line-height: 1; }
.stad-card-sub      { font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }
.stad-card-loading  { color: var(--muted); font-size: 0.88rem; text-align: center; padding: 1rem 0; }

/* ── Current weather card ────────────────────── */
.stad-now-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.stad-now-icon  { font-size: 3.5rem; line-height: 1; flex-shrink: 0; }
.stad-now-main  { flex: 1; min-width: 0; }
.stad-now-temp  { font-size: 3.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.stad-now-desc  { font-size: 0.88rem; color: var(--muted); margin-top: 0.15rem; text-transform: capitalize; }
.stad-now-range { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; font-size: 0.85rem; }
.stad-now-max   { font-weight: 700; color: #dc2626; }
.stad-now-min   { color: #3b82f6; }

.stad-now-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.stad-now-stat          { display: flex; flex-direction: column; gap: 0.1rem; }
.stad-now-stat span     { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stad-now-stat strong   { font-size: 0.88rem; font-weight: 600; }

.stad-sun-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.stad-uv--low       { color: #16a34a; }
.stad-uv--moderate  { color: #ca8a04; }
.stad-uv--high      { color: #ea580c; }
.stad-uv--very-high { color: #dc2626; }
.stad-uv--extreme   { color: #7c3aed; }

/* ── Section titles ──────────────────────────── */
.stad-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--primary);
}

/* ── 7-day forecast ──────────────────────────── */
.stad-forecast-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}
.stad-fc-day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.4rem;
  text-align: center;
  transition: border-color 0.12s, transform 0.12s;
}
.stad-fc-day:hover  { border-color: var(--primary); transform: translateY(-2px); }
.stad-fc-name  { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 0.15rem; }
.stad-fc-date  { font-size: 0.65rem; color: var(--muted); margin-bottom: 0.35rem; }
.stad-fc-icon  { font-size: 1.6rem; line-height: 1; margin-bottom: 0.3rem; }
.stad-fc-desc  { font-size: 0.62rem; color: var(--muted); margin-bottom: 0.3rem; line-height: 1.2; min-height: 2.4em; }
.stad-fc-temps { display: flex; justify-content: center; gap: 0.3rem; font-size: 0.85rem; }
.stad-fc-max   { font-weight: 700; }
.stad-fc-min   { color: var(--muted); }
.stad-fc-pop   { font-size: 0.68rem; color: #3b82f6; margin-top: 0.2rem; }
.stad-fc-uv    { font-size: 0.65rem; color: var(--muted); margin-top: 0.15rem; }

/* ── Hourly ──────────────────────────────────── */
.stad-hourly-wrap { margin-bottom: 2rem; }
.stad-hourly-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.stad-hr-item {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  text-align: center;
  min-width: 60px;
  transition: border-color 0.12s;
}
.stad-hr-item--now {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.stad-hr-time  { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.stad-hr-icon  { font-size: 1.3rem; margin: 0.2rem 0; }
.stad-hr-temp  { font-size: 0.88rem; font-weight: 700; }
.stad-hr-rain  { font-size: 0.68rem; color: #3b82f6; min-height: 1em; }
.stad-hr-wind  { font-size: 0.65rem; color: var(--muted); margin-top: 0.1rem; }
.stad-hr-item--now .stad-hr-time,
.stad-hr-item--now .stad-hr-rain,
.stad-hr-item--now .stad-hr-wind { color: rgba(255,255,255,0.7); }

/* ── Rain chart ──────────────────────────────── */
.stad-rain-wrap { margin-bottom: 2rem; }
.stad-rain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem 1rem;
}
.rain-summary       { font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; }
.rain-summary--dry  { color: #16a34a; }
.rain-summary--wet  { color: #2563eb; }
.rain-bars          { display: flex; align-items: flex-end; gap: 3px; height: 60px; padding-bottom: 22px; position: relative; }
.rain-bar-wrap      { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.rain-bar           { width: 100%; border-radius: 3px 3px 0 0; transition: height 0.3s; min-height: 3px; }
.rain-bar-label     { position: absolute; bottom: -20px; font-size: 0.62rem; color: var(--muted); white-space: nowrap; left: 50%; transform: translateX(-50%); }

/* ── Other cities ────────────────────────────── */
.stad-other-wrap  { margin-bottom: 1.5rem; }
.stad-other-grid  { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.stad-other-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  transition: border-color 0.12s, color 0.12s;
}
.stad-other-item:hover { border-color: var(--primary); color: var(--primary); }
.stad-other-name  { flex: 1; }
.stad-other-icon  { font-size: 0.85rem; }
.stad-other-temp  { font-weight: 700; color: var(--primary); min-width: 2.5ch; text-align: right; font-size: 0.85rem; }

@media (max-width: 820px) {
  .stad-grid { grid-template-columns: 1fr; }
  .stad-forecast-grid { grid-template-columns: repeat(4, 1fr); }
  .stad-title { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .stad-forecast-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .forecast-grid { grid-template-columns: repeat(3, 1fr); }
  .cities-grid   { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .features-strip { grid-template-columns: repeat(2, 1fr); padding: 0 1rem 1.5rem; }
  .cities-section { padding: 0 1rem 1.5rem; }
  .cities-grid    { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding: 1.25rem 1rem; }
  .hero-tab-bar { display: flex; }
  .hero-panel { display: none; }
  .hero-panel.active { display: flex; }
  .weather-map {
    aspect-ratio: 612 / 744;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
  }
  .weather-map svg { height: 100%; }
  .waarschuwing-layout { grid-template-columns: 1fr; }
  .waarschuwing-map-col { order: -1; position: static; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .photo { height: 180px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .forecast { padding: 0 1rem 2rem; }
  .photos, .blog { padding: 0 1rem 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .ow-main    { padding: 1.25rem 1rem 2rem; }
  #ow-map     { height: 420px; }
  .ow-layout  { grid-template-columns: 1fr 200px; }
  .arch-main  { padding: 1.25rem 1rem 2rem; }
  #arch-map   { height: 420px; }
  .arch-page-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .features-strip { grid-template-columns: repeat(2, 1fr); padding: 0 1rem 1.25rem; }
  .cities-grid    { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 0.4rem; }
  .hero-stat strong { font-size: 1.2rem; }
  .forecast-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: 1fr; }
  .blog-grid  { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bar   { flex-direction: column; text-align: center; gap: 0.5rem; }
  .comment-guest-fields { grid-template-columns: 1fr; }
  .blog-post-card { padding: 1.25rem 1rem; }
  .blog-block--photo { margin: 0 -1rem; }
  .blog-block--photo p { padding: 0.5rem 1rem; }
  .blog-post-hero-overlay h1 { font-size: 1.4rem; }
  .ow-layout  { grid-template-columns: 1fr; }
  #ow-map     { height: 340px; }
  .ow-title   { font-size: 1.5rem; }
  #arch-map   { height: 320px; }
  .arch-title { font-size: 1.5rem; }
  .arch-tl-top { flex-direction: column; align-items: flex-start; }
  .arch-tl-info { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════
   Register CTA banner
   ═══════════════════════════════════════════════════════ */
.cta-register {
  background: linear-gradient(135deg, #0b1729 0%, #14296b 50%, #1e2a72 100%);
  padding: 3rem 1.5rem;
  margin-top: 3rem;
}
.cta-register-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.cta-register-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #60cfff;
  margin: 0 0 .4rem;
}
.cta-register-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 .4rem;
  line-height: 1.2;
}
.cta-register-sub {
  color: rgba(255,255,255,.65);
  font-size: .92rem;
  margin: 0 0 1.1rem;
}
.cta-register-perks {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.cta-register-perks li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
  color: rgba(255,255,255,.8);
}
.cta-perk-icon { font-size: 1rem; flex-shrink: 0; }

.cta-register-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex-shrink: 0;
}
.cta-register-btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s, transform .15s;
}
.cta-register-btn:hover { opacity: .9; transform: translateY(-1px); }
.cta-register-btn--primary {
  background: #60cfff;
  color: #0b1729;
}
.cta-register-btn--ghost {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.2);
}
.cta-register-btn--ghost:hover { background: rgba(255,255,255,.18); }

@media (max-width: 680px) {
  .cta-register-inner { flex-direction: column; gap: 1.5rem; }
  .cta-register-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-register-title { font-size: 1.3rem; }
}

/* ── Cancel premium ── */
.cancel-prem-losses {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: .9rem 1rem;
}
.cancel-prem-losses-title {
  font-size: .82rem;
  font-weight: 700;
  color: #991b1b;
  margin: 0 0 .5rem;
}
.cancel-prem-losses ul {
  margin: 0; padding: 0 0 0 1.1rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.cancel-prem-losses li { font-size: .88rem; color: #7f1d1d; }

/* ── Blog inline CTA ── */
.blog-cta-inline {
  margin: 0 -1.5rem;
  background: linear-gradient(135deg, #0b1729 0%, #14296b 55%, #1e2a72 100%);
  padding: 1.5rem 1.5rem;
}
.blog-cta-inline-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.blog-cta-inline-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #60cfff;
  margin: 0 0 .25rem;
}
.blog-cta-inline-title {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .6rem;
}
.blog-cta-inline-perks {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.blog-cta-inline-perks li {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}
.blog-cta-inline-right {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .blog-cta-inline { margin: 0 -1rem; }
  .blog-cta-inline-inner { flex-direction: column; gap: 1rem; }
  .blog-cta-inline-right { flex-direction: row; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════
   Profile page
   ═══════════════════════════════════════════════════════ */
.profile-hero {
  background: linear-gradient(160deg, #0b1729 0%, #14296b 60%, #1e2a72 100%);
  padding: 3rem 1.5rem 6rem;
  text-align: center;
}
.profile-hero-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.15);
  display: block;
  margin: 0 auto .75rem;
}
.profile-hero-name {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 .5rem;
}
.profile-hero-badges { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.comment-badge--premium { background: #fef3c7; color: #92400e; }

.profile-layout {
  max-width: 900px;
  margin: -4rem auto 3rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.profile-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.profile-bio {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}
.profile-divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.profile-meta-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .55rem;
}
.profile-meta-list li { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.profile-meta-icon { font-size: .95rem; flex-shrink: 0; }

.profile-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.profile-section-title {
  font-size: 1rem; font-weight: 700; margin: 0 0 1rem;
  color: var(--text);
}
.profile-comment-item {
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.profile-comment-item:last-of-type { border-bottom: none; }
.profile-comment-body { font-size: .9rem; line-height: 1.55; color: var(--text); }
.profile-comment-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: .25rem; margin-top: .4rem;
  font-size: .78rem; color: var(--muted);
}
.profile-comment-link { color: var(--primary); text-decoration: none; }
.profile-comment-link:hover { text-decoration: underline; }
.profile-more-link { margin-top: .75rem; font-size: .85rem; }
.profile-more-link a { color: var(--primary); text-decoration: none; }
.profile-more-link a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .profile-layout { grid-template-columns: 1fr; margin-top: -2.5rem; }
  .profile-hero { padding-bottom: 4rem; }
}

/* ═══════════════════════════════════════════════════════
   Contact page
   ═══════════════════════════════════════════════════════ */
.contact-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.4rem;
}

.contact-sub {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.75rem;
  align-items: start;
}

/* ── Info card ── */
.contact-info-card {
  background: var(--primary);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  color: white;
  position: sticky;
  top: 1.5rem;
}

.contact-info-logo {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.contact-info-company {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.contact-info-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.88;
  margin: 0 0 1.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.contact-info-list a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.9;
}

.contact-info-list a:hover { opacity: 1; }

.contact-info-icon { flex-shrink: 0; }

/* ── Form card ── */
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.contact-textarea {
  min-height: 150px;
}

.contact-char-count {
  display: block;
  text-align: right;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.contact-submit {
  margin-top: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.contact-alert {
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.contact-alert p { margin: 0.2rem 0; }
.contact-alert p:first-child { margin-top: 0; }
.contact-alert p:last-child  { margin-bottom: 0; }

.contact-alert--ok  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.contact-alert--err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .contact-form-card { padding: 1.5rem 1.25rem; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-page { padding: 1.5rem 1rem 2.5rem; }
}

/* ═══════════════════════════════════════════════════════
   Members list (leden.php)
   ═══════════════════════════════════════════════════════ */
.leden-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.leden-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.leden-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.2rem;
}

.leden-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.leden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.leden-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  cursor: pointer;
}

.leden-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.leden-avatar-wrap {
  position: relative;
  margin-bottom: 0.4rem;
}

.leden-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  display: block;
  object-fit: cover;
}

.leden-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.leden-name {
  font-size: 0.9rem;
  font-weight: 700;
  word-break: break-word;
  line-height: 1.3;
}

.leden-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
}

.leden-badge--admin   { background: #fef9c3; color: #92400e; }
.leden-badge--mod     { background: #ede9fe; color: #5b21b6; }
.leden-badge--premium { background: #fef3c7; color: #92400e; }

.leden-location {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.leden-since {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

@media (max-width: 480px) {
  .leden-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
  .leden-page { padding: 1.5rem 1rem 2rem; }
}

/* ═══════════════════════════════════════════════════════
   Account settings page
   ═══════════════════════════════════════════════════════ */
.account-wrap {
  max-width: 900px;
  margin: 2rem auto 3rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.account-profile-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  text-align: center;
  margin-bottom: 1rem;
}
.account-profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--border);
  display: block;
  margin: 0 auto .75rem;
}
.account-profile-name { display: block; font-size: 1rem; font-weight: 700; }
.account-profile-email { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; word-break: break-all; }
.account-view-link {
  display: inline-block; margin-top: .75rem;
  font-size: .82rem; color: var(--primary); text-decoration: none;
}
.account-view-link:hover { text-decoration: underline; }

.account-sidenav { display: flex; flex-direction: column; gap: .25rem; }
.account-sidenav-item {
  display: block; padding: .5rem .75rem;
  border-radius: var(--radius);
  font-size: .88rem; color: var(--text); text-decoration: none;
  transition: background .15s;
}
.account-sidenav-item:hover { background: var(--surface-2); }
.account-sidenav-item--active { background: var(--surface-2); font-weight: 600; }

.account-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.account-section-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 .25rem; }
.account-section-title--danger { color: #dc2626; }
.account-section-sub { font-size: .85rem; color: var(--muted); margin: 0 0 1.25rem; }
.account-section--danger {
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 1.25rem;
  background: #fff9f9;
}
.account-sidenav-item--danger { color: #dc2626 !important; }
.account-sidenav-item--danger:hover { background: #fee2e2 !important; }
.account-delete-details summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: #dc2626; }
.account-delete-details summary:hover { text-decoration: underline; }
.account-delete-btn {
  background: #dc2626 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
}
.account-delete-btn:hover { background: #b91c1c !important; }
.account-divider { height: 1.5rem; }
.account-form textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  font-size: .92rem; font-family: inherit;
  resize: vertical; box-sizing: border-box;
}
.account-form textarea:focus { outline: none; border-color: var(--primary); }
.account-char-count {
  text-align: right; font-size: .78rem; color: var(--muted); margin-top: .2rem;
}

@media (max-width: 680px) {
  .account-wrap { grid-template-columns: 1fr; }
  .account-sidenav { flex-direction: row; flex-wrap: wrap; }
}

/* ── Radar / onweer map reset button ────────────────────────────────────────── */
.ow-reset-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: .82rem;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ow-reset-btn:hover { opacity: .75; }

/* ── Favourite city bar (homepage) ──────────────────────────────────────────── */
.fav-city-bar {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: .8rem 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.fav-city-bar-star { font-size: 1.1rem; flex-shrink: 0; }
.fav-city-bar-body { flex: 1; min-width: 0; }
.fav-city-bar-name { font-weight: 700; font-size: .95rem; display: block; }
.fav-city-bar-meta { font-size: .8rem; color: var(--muted); }
.fav-city-bar-actions { flex-shrink: 0; }

/* ── Favourite city nav chip (header) ───────────────────────────────────────── */
.nav-fav-city {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.82);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-fav-city:hover { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 900px) { .nav-fav-city { display: none; } }

/* ── PASSKEY LIST (account) ──────────────────────────────────── */
.pk-list {
  list-style: none;
  padding: 0; margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.pk-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pk-icon { font-size: 1.2rem; flex-shrink: 0; }

.pk-info { flex: 1; min-width: 0; }
.pk-name { display: block; font-size: .92rem; font-weight: 600; }
.pk-meta { display: block; font-size: .78rem; color: var(--muted); margin-top: .1rem; }

/* ── Passkey-only toggle ───────────────────────────────────────── */
.pk-only-wrap {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.pk-only-form { margin: 0; }

.pk-only-label {
  display: flex;
  align-items: center;
  gap: .9rem;
  cursor: pointer;
  user-select: none;
}

.pk-only-toggle {
  flex-shrink: 0;
  position: relative;
  width: 42px;
  height: 24px;
}
.pk-only-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.pk-only-track {
  display: block;
  width: 42px; height: 24px;
  border-radius: 12px;
  background: var(--border);
  transition: background .2s;
  position: relative;
}
.pk-only-toggle--on .pk-only-track,
.pk-only-toggle input:checked ~ .pk-only-track { background: var(--primary); }

.pk-only-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s;
}
.pk-only-toggle--on .pk-only-thumb,
.pk-only-toggle input:checked ~ .pk-only-track .pk-only-thumb { transform: translateX(18px); }

.pk-only-text { display: flex; flex-direction: column; gap: .1rem; }
.pk-only-text strong { font-size: .92rem; font-weight: 600; }
.pk-only-text span   { font-size: .78rem; color: var(--muted); }

/* ── "or with password" divider (login) ───────────────────────── */
.pk-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  color: var(--muted);
  font-size: .82rem;
}
.pk-divider::before,
.pk-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── COOKIE CONSENT BANNER ──────────────────────────────────── */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0e1e3d;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cc-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cc-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cc-text { flex: 1; min-width: 0; }

.cc-title {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cc-desc {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

.cc-link {
  color: #60cfff;
  text-decoration: underline;
}

.cc-btns {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cc-btn {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.cc-btn--primary {
  background: #60cfff;
  color: #0b1729;
  border-color: #60cfff;
}
.cc-btn--primary:hover { background: #38bdf8; border-color: #38bdf8; }

.cc-btn--secondary {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  border-color: rgba(255,255,255,0.2);
}
.cc-btn--secondary:hover { background: rgba(255,255,255,0.15); }

@media (max-width: 640px) {
  .cc-inner { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .cc-btns  { width: 100%; }
  .cc-btn   { flex: 1; text-align: center; }
}

/* ── FORUM ──────────────────────────────────────────────────── */
.forum-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* Page header row */
.forum-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.forum-page-header-left { display: flex; align-items: center; gap: .75rem; }
.forum-title   { font-size: 1.55rem; font-weight: 800; margin: 0; }
.forum-subtitle { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; }
.forum-totals  { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .82rem; }
.forum-totals-sep { color: var(--border); }
.forum-cat-header-icon { font-size: 1.6rem; line-height: 1; }

/* ── Category list (forum.php) ── */
.forum-cat-list { display: flex; flex-direction: column; gap: .55rem; }
.forum-cat-row {
  display: grid;
  grid-template-columns: 3rem 1fr 7rem 10rem;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.forum-cat-row:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
}
.forum-cat-icon  { font-size: 1.6rem; text-align: center; line-height: 1; }
.forum-cat-info  { min-width: 0; }
.forum-cat-name  { display: block; font-weight: 700; font-size: .97rem; }
.forum-cat-desc  { display: block; color: var(--muted); font-size: .8rem; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-cat-stats { display: flex; flex-direction: column; align-items: flex-end; gap: .05rem; font-size: .8rem; color: var(--muted); }
.forum-stat-num  { font-weight: 700; color: var(--text); font-size: .9rem; }
.forum-cat-last  { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; font-size: .8rem; min-width: 0; }
.forum-cat-last-time { color: var(--muted); }
.forum-cat-last-user { display: flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .8rem; }
.forum-cat-last-empty { color: var(--muted); font-style: italic; }
.forum-tiny-avatar { border-radius: 50%; vertical-align: middle; }

.forum-cta-logged { margin-top: 1.25rem; color: var(--muted); font-size: .88rem; }
.forum-cta-guest  { display: flex; align-items: center; gap: .65rem; margin-top: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }

/* ── Breadcrumb ── */
.forum-breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem; flex-wrap: wrap; }
.forum-breadcrumb a { color: var(--muted); text-decoration: none; }
.forum-breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.forum-bc-sep { opacity: .5; }

/* ── Thread list (forum-cat.php) ── */
.forum-thread-list { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 1.25rem; }
.forum-thread-header {
  display: grid;
  grid-template-columns: 3.2rem 1fr 6rem 11rem;
  gap: .75rem;
  padding: .55rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.forum-thread-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr 6rem 11rem;
  gap: .75rem;
  align-items: center;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.forum-thread-row:last-child { border-bottom: none; }
.forum-thread-row:hover { background: var(--surface); }
.forum-thread-row--pinned { background: rgba(96,207,255,.05); }
.ftr-icon { font-size: 1rem; text-align: center; }
.ftr-dot  { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.ftr-title-text { display: block; font-weight: 600; font-size: .93rem; line-height: 1.3; }
.ftr-meta       { display: block; font-size: .76rem; color: var(--muted); margin-top: .1rem; }
.ftr-author     { font-size: .82rem; color: var(--muted); display: none; }
.ftr-stats      { display: flex; flex-direction: column; align-items: center; gap: .0rem; }
.ftr-stat-n     { font-weight: 700; font-size: .9rem; }
.ftr-stat-lbl   { font-size: .72rem; color: var(--muted); line-height: 1; }
.ftr-last       { display: flex; align-items: center; gap: .45rem; font-size: .8rem; min-width: 0; }
.ftr-last strong { display: block; font-size: .82rem; }
.ftr-last small  { display: block; color: var(--muted); font-size: .73rem; }
.forum-empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

.forum-new-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1.25rem;
}
.forum-new-form--hidden { display: none; }
.forum-new-form-title   { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 700; }

/* ── Thread header (forum-thread.php) ── */
.forum-thread-header-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.forum-thread-header-left { min-width: 0; }
.forum-thread-title  { font-size: 1.35rem; font-weight: 800; margin: 0 0 .4rem; line-height: 1.25; }
.forum-thread-badges { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.forum-badge         { padding: .22rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.forum-badge--pin    { background: rgba(255,193,7,.15); color: #b8860b; border: 1px solid rgba(255,193,7,.3); }
.forum-badge--lock   { background: rgba(220,53,69,.1); color: #b02a37; border: 1px solid rgba(220,53,69,.2); }
.forum-badge--views  { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }

.forum-mod-toolbar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.forum-mod-btn {
  padding: .35rem .8rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: .8rem;
  cursor: pointer;
  color: var(--text);
  transition: background .12s, border-color .12s;
}
.forum-mod-btn:hover { border-color: var(--accent); }
.forum-mod-btn--danger { border-color: rgba(220,53,69,.35); color: #b02a37; }
.forum-mod-btn--danger:hover { background: rgba(220,53,69,.07); border-color: rgba(220,53,69,.6); }

/* ── Posts ── */
.forum-post-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.25rem; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.forum-post {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--border);
}
.forum-post:last-child { border-bottom: none; }
.forum-post--op .forum-post-author { background: rgba(96,207,255,.06); }

.forum-post-author {
  padding: 1rem .85rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  background: var(--surface);
  text-align: center;
}
.forum-post-avatar   { border-radius: 50%; display: block; }
.forum-post-username { font-size: .84rem; word-break: break-word; }
.forum-post-role     { font-size: .72rem; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: .12rem .5rem; }
.forum-post-since    { font-size: .7rem; color: var(--muted); }

.forum-post-body    { padding: .9rem 1rem; min-width: 0; display: flex; flex-direction: column; }
.forum-post-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .65rem;
}
.forum-post-time { font-size: .77rem; color: var(--muted); text-decoration: none; }
.forum-post-time:hover { color: var(--accent); }
.forum-post-num  { font-size: .75rem; color: var(--muted); font-weight: 700; }
.forum-post-content {
  font-size: .9rem;
  line-height: 1.65;
  flex: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.forum-post-content a { color: var(--accent); word-break: break-all; }

.forum-post-actions { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.forum-quote-btn, .forum-delete-btn {
  padding: .28rem .75rem;
  border-radius: 6px;
  font-size: .78rem;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: background .12s, color .12s, border-color .12s;
}
.forum-quote-btn:hover  { border-color: var(--accent); color: var(--accent); background: rgba(96,207,255,.07); }
.forum-delete-btn:hover { border-color: rgba(220,53,69,.5); color: #b02a37; background: rgba(220,53,69,.05); }

/* Reply form */
.forum-reply-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  margin-top: 1rem;
}
.forum-reply-title { margin: 0 0 .9rem; font-size: 1.05rem; font-weight: 700; }
.forum-reply-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
  padding: .7rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.55;
  box-sizing: border-box;
  transition: border-color .15s;
}
.forum-reply-form textarea:focus { border-color: var(--accent); outline: none; }
.forum-locked-notice {
  margin-top: 1rem;
  padding: .85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .88rem;
  color: var(--muted);
}

/* Pager */
.fpager { display: flex; align-items: center; gap: .35rem; justify-content: center; padding: .9rem 0; flex-wrap: wrap; }
.fpager-pg, .fpager-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: background .12s, border-color .12s, color .12s;
  padding: 0 .5rem;
}
.fpager-pg:hover, .fpager-arrow:hover { border-color: var(--accent); color: var(--accent); }
.fpager-pg--active { background: var(--accent); border-color: var(--accent); color: #0b1729; }
.fpager-arrow { font-size: 1.1rem; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .forum-cat-row {
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
  }
  .forum-cat-stats, .forum-cat-last { display: none; }

  .forum-thread-header { display: none; }
  .forum-thread-row {
    grid-template-columns: 2.2rem 1fr;
    grid-template-rows: auto auto;
  }
  .ftr-stats, .ftr-last, .ftr-author { display: none; }

  .forum-post { grid-template-columns: 1fr; }
  .forum-post-author {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: .65rem .85rem;
    gap: .55rem;
    text-align: left;
  }
  .forum-post-since { display: none; }

  .forum-thread-header-block { flex-direction: column; align-items: flex-start; }
}

/* ── Blog-grid forum teaser card ─────────────────────────────── */
.blog-item--forum {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(96,207,255,.06) 100%);
  border: 1.5px solid rgba(96,207,255,.25);
  position: relative;
  overflow: hidden;
}
.blog-item--forum::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96,207,255,.07) 0%, transparent 60%);
  pointer-events: none;
}
.blog-item--forum:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(96,207,255,.12);
}
.blog-forum-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .55rem;
  gap: .5rem;
  flex-wrap: wrap;
}
.blog-forum-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  background: rgba(96,207,255,.1);
  border: 1px solid rgba(96,207,255,.25);
  border-radius: 999px;
  padding: .18rem .65rem;
}
.blog-forum-stats {
  display: flex;
  gap: .65rem;
  font-size: .78rem;
  color: var(--muted);
}
.blog-item--forum h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 .45rem;
}
.blog-forum-author {
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 .6rem;
}
.blog-forum-author strong { color: var(--text); }

/* ── Forum inline edit form ─────────────────────────────────── */
.forum-edit-form {
  display: none;
  margin-top: .65rem;
  border-top: 1px solid var(--border);
  padding-top: .75rem;
}
.forum-edit-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
  padding: .6rem .8rem;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.55;
  box-sizing: border-box;
}
.forum-edit-form textarea:focus { outline: none; }
.forum-edit-actions {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
  align-items: center;
}
.forum-edit-cancel {
  padding: .38rem .8rem;
  border-radius: 6px;
  font-size: .8rem;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: background .12s, border-color .12s;
}
.forum-edit-cancel:hover { border-color: var(--accent); color: var(--text); }
.forum-edit-btn {
  padding: .28rem .75rem;
  border-radius: 6px;
  font-size: .78rem;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: background .12s, color .12s, border-color .12s;
}
.forum-edit-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(96,207,255,.07); }

/* ── PRIVÉBERICHTEN ─────────────────────────────────────────── */

/* Nav badge */
.nav-pm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e63946;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: 0 .35rem;
  margin-left: .3rem;
  vertical-align: middle;
  line-height: 1;
}
.nav-pm-badge--dark {
  background: #e63946;
}

/* ── Blog comments ──────────────────────────────────────────────────────────── */
.blog-comments {
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem 3rem;
}
.blog-comments-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.blog-comments-count {
  background: var(--accent);
  color: #000;
  font-size: .7rem;
  font-weight: 800;
  padding: .15em .55em;
  border-radius: 999px;
  vertical-align: middle;
}
.blog-comments-empty {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 2rem;
}
.blog-comments-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5rem;
}

/* Single comment */
.blog-comment {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.blog-comment:last-child { border-bottom: none; }
.blog-comment-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  margin-top: .1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.blog-comment-body {
  flex: 1;
  min-width: 0;
}
.blog-comment-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}
.blog-comment-name  { font-size: .875rem; font-weight: 700; color: var(--text); }
.blog-comment-badge {
  font-size: .62rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
  padding: .1em .45em;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.blog-comment-date  { font-size: .72rem; color: var(--muted); margin-left: auto; }
.blog-comment-text  { font-size: .875rem; line-height: 1.7; color: var(--text); word-break: break-word; }

/* ── Blog comment form ───────────────────────────────────────────────────────── */
.blog-comment-form-wrap {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: .25rem;
}

/* Logged-in member card */
.bcf-member-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}
.bcf-member-who {
  display: flex;
  align-items: center;
  margin-bottom: .75rem;
}
.bcf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .6rem;
}

/* Guest card style */
.bcf-guest-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}
.bcf-guest-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.bcf-guest-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}
.bcf-guest-title {
  font-size: .9rem;
  display: block;
}
.bcf-guest-sub {
  font-size: .78rem;
  color: var(--muted);
  display: block;
  margin-top: .1rem;
}
.bcf-guest-sub a { color: var(--primary); }
.bcf-guest-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
@media (max-width: 500px) {
  .bcf-guest-fields { grid-template-columns: 1fr; }
}

/* Shared textarea */
.bcf-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: var(--bg);
  resize: none;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--text);
  padding: .75rem .9rem;
  min-height: 95px;
  overflow-y: hidden;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  display: block;
}
.bcf-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}

/* Shared submit & count */
.bcf-submit-btn {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  padding: .5rem 1.2rem;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.4;
  transition: background .15s, transform .1s;
  font-family: inherit;
  display: inline-block;
}
.bcf-submit-btn:hover {
  background: color-mix(in srgb, var(--primary) 82%, #000) !important;
  transform: translateY(-1px);
}
.bcf-char-count {
  font-size: .72rem;
  color: var(--muted);
}

/* ── Vroegboekersactie banner ────────────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, #0c1a3a 0%, #1a2f5e 50%, #0f2347 100%);
  border-top: 3px solid #f59e0b;
  border-bottom: 1px solid #1e3a6e;
  padding: 2.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 70%);
  pointer-events: none;
}
.promo-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.promo-banner-left  { flex: 1; min-width: 260px; }
.promo-banner-right { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; flex-shrink: 0; }

.promo-badge {
  display: inline-block;
  background: #f59e0b;
  color: #0c1a3a;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .25em .65em;
  border-radius: 4px;
  margin-bottom: .6rem;
}
.promo-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: #f1f5f9;
  margin: 0 0 .5rem;
  line-height: 1.2;
}
.promo-title em {
  font-style: normal;
  color: #fcd34d;
}
.promo-sub {
  font-size: .875rem;
  color: #94a3b8;
  margin: 0 0 1rem;
  line-height: 1.6;
  max-width: 480px;
}
.promo-bar-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.promo-bar {
  flex: 1;
  max-width: 220px;
  height: 7px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  overflow: hidden;
}
.promo-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 4px;
  transition: width .6s ease;
  min-width: 4px;
}
.promo-bar-label {
  font-size: .78rem;
  color: #94a3b8;
  white-space: nowrap;
}
.promo-bar-label strong { color: #fcd34d; }

.promo-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #f59e0b;
  color: #0c1a3a;
  font-weight: 800;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.2;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.promo-cta:hover { background: #fbbf24; transform: translateY(-1px); }
.promo-cta-sub {
  font-size: .65rem;
  font-weight: 600;
  opacity: .75;
  margin-top: .2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.promo-cta-ghost {
  font-size: .78rem;
  color: #60a5fa;
  text-decoration: none;
  white-space: nowrap;
}
.promo-cta-ghost:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .promo-banner-right { align-items: flex-start; width: 100%; }
  .promo-cta { width: 100%; text-align: center; }
}

/* Page layout */
.pm-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.pm-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.pm-title { font-size: 1.4rem; font-weight: 800; margin: 0; }

/* Compose form */
.pm-compose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.pm-compose--hidden { display: none; }
.pm-compose-title   { font-size: 1rem; font-weight: 700; margin: 0 0 1rem; }

/* Thread list (inbox) */
.pm-thread-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.pm-thread-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.pm-thread-row:last-child { border-bottom: none; }
.pm-thread-row:hover { background: var(--surface); }
.pm-thread-row--unread { background: rgba(96,207,255,.04); }
.pm-thread-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}
.pm-thread-info   { flex: 1; min-width: 0; }
.pm-thread-top    { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.pm-thread-name   { font-size: .92rem; }
.pm-thread-row--unread .pm-thread-name { font-weight: 700; }
.pm-thread-time   { font-size: .75rem; color: var(--muted); flex-shrink: 0; }
.pm-thread-subject {
  font-size: .86rem;
  font-weight: 600;
  margin: .1rem 0 .15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-thread-row--unread .pm-thread-subject { color: var(--text); }
.pm-thread-preview {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-unread-badge {
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e63946;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .4rem;
}
.pm-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

/* ── Conversation view ── */
.pm-convo-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.pm-back {
  font-size: .82rem;
  color: var(--muted);
  text-decoration: none;
  flex-shrink: 0;
}
.pm-back:hover { color: var(--accent); }
.pm-convo-title-wrap {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex: 1;
  min-width: 0;
}
.pm-convo-avatar  { border-radius: 50%; flex-shrink: 0; }
.pm-convo-other   { font-weight: 700; font-size: .95rem; }
.pm-convo-subject { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-delete-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: .3rem .6rem;
  cursor: pointer;
  color: var(--muted);
  font-size: .9rem;
  transition: border-color .12s, color .12s;
  flex-shrink: 0;
}
.pm-delete-btn:hover { border-color: rgba(220,53,69,.5); color: #b02a37; }

/* Messages list */
.pm-messages {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: 1.25rem;
  min-height: 80px;
}

/* Date separator */
.pm-date-sep {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .75rem 0 .5rem;
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pm-date-sep::before,
.pm-date-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Individual message row */
.pm-msg {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
}
.pm-msg--mine    { flex-direction: row-reverse; }
.pm-msg--mine .pm-msg-avatar { display: none; } /* no avatar for own messages */
.pm-msg-avatar   { border-radius: 50%; flex-shrink: 0; width: 30px; height: 30px; }
.pm-msg-bubble   { max-width: 68%; }

/* Space tight between consecutive messages from the same sender */
.pm-msg + .pm-msg.pm-msg--same { margin-top: -.1rem; }

.pm-msg-body {
  padding: .6rem .95rem;
  border-radius: 18px;
  font-size: .9rem;
  line-height: 1.55;
  word-break: break-word;
}
.pm-msg--theirs .pm-msg-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}
.pm-msg--mine .pm-msg-body {
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 5px;
}
.pm-msg-time {
  font-size: .65rem;
  color: var(--muted);
  margin-top: .2rem;
  padding: 0 .3rem;
  white-space: nowrap;
}
.pm-msg--mine .pm-msg-time { text-align: right; }

/* Reply bar — chat-style horizontal input */
.pm-reply-bar {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: .45rem .45rem .45rem .85rem;
  transition: border-color .15s;
  margin-top: .25rem;
}
.pm-reply-bar:focus-within { border-color: var(--accent); }
.pm-reply-bar textarea {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.55;
  resize: none;
  min-height: 24px;
  max-height: 160px;
  overflow-y: auto;
  padding: .1rem 0;
  outline: none;
}
.pm-reply-bar textarea::placeholder { color: var(--muted); }
.pm-reply-send {
  flex-shrink: 0;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background .15s, transform .1s;
  line-height: 1;
  padding: 0;
}
.pm-reply-send:hover  { background: #1d4ed8; }
.pm-reply-send:active { transform: scale(.93); }

/* ── ONLINE STATUS ──────────────────────────────────────────── */
.online-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.online-dot--online  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
.online-dot--recent  { background: #f59e0b; }
.online-dot--offline { background: var(--border); }

/* Avatar wrapper with dot overlay */
.pm-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-block;
}
.online-dot--avatar {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--bg);
  border-radius: 50%;
}

/* Forum post sidebar dot */
.forum-post-author .online-dot {
  margin: .1rem auto 0;
}

/* PM conversation label */
.pm-online-label {
  font-size: .72rem;
  font-weight: 600;
  margin-left: .45rem;
}
.pm-online-label--online  { color: #22c55e; }
.pm-online-label--recent  { color: #f59e0b; }
.pm-online-label--offline { color: var(--muted); }

/* Profile page status */
.profile-online-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.profile-online-status--online  { color: #22c55e; }
.profile-online-status--recent  { color: #f59e0b; }
.profile-online-status--offline { color: var(--muted); }

/* Profile avatar online dot */
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: .5rem;
}
.profile-online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--bg);
}
.profile-online-dot.online-dot--online  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.3); }
.profile-online-dot.online-dot--recent  { background: #f59e0b; }
.profile-online-dot.online-dot--offline { background: #6b7280; }

/* ── LIVE CHAT WIDGET ───────────────────────────────────────── */
.livechat-widget {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}
.livechat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  gap: .75rem;
}
.livechat-header-left {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
}
.livechat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.25);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.livechat-online {
  font-size: .78rem;
  color: var(--muted);
}
.livechat-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  padding: .1rem .3rem;
  line-height: 1;
  border-radius: 4px;
  transition: color .12s;
}
.livechat-toggle:hover { color: var(--text); }

.livechat-body {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: var(--bg);
  overflow: hidden;
}
.livechat-messages {
  max-height: 210px;
  overflow-y: auto;
  padding: .65rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  scroll-behavior: smooth;
}
.livechat-messages::-webkit-scrollbar { width: 4px; }
.livechat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.lc-empty  { font-size: .82rem; color: var(--muted); text-align: center; padding: .5rem 0; }
.lc-notice { font-size: .78rem; color: #92400e; background: #fef3c7;
             border-radius: 6px; padding: .3rem .7rem; text-align: center;
             margin: .25rem 0; animation: lc-fadein .2s ease; }
@keyframes lc-fadein { from { opacity:0; transform:translateY(4px); } to { opacity:1; } }

.lc-msg {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-size: .84rem;
  line-height: 1.45;
  flex-wrap: wrap;
}
.lc-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
  margin-bottom: 1px;
}
.lc-name {
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  font-size: .8rem;
}
.lc-text  { color: var(--text); word-break: break-word; }
.lc-time  { font-size: .7rem; color: var(--muted); flex-shrink: 0; margin-left: auto; }

.livechat-input-row {
  border-top: 1px solid var(--border);
  padding: .5rem .75rem;
  background: var(--surface);
}
.lc-form {
  display: flex;
  gap: .45rem;
  align-items: center;
}
.lc-form input[type="text"] {
  flex: 1;
  padding: .42rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: .85rem;
  font-family: inherit;
  transition: border-color .15s;
}
.lc-form input[type="text"]:focus { border-color: var(--accent); outline: none; }
.lc-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b1729;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
}
.lc-send-btn:hover { background: #38bdf8; }
.lc-login-prompt {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  padding: .2rem 0;
}
.lc-login-prompt a { color: var(--accent); }

@media (max-width: 640px) {
  .livechat-messages { max-height: 160px; }
}

/* Live chat guest — join panel */
.lc-join {
  width: 100%;
  padding: .6rem .75rem .5rem;
  border-top: 1px solid var(--border);
}
.lc-join-hint {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .45rem;
}
.lc-join-row {
  display: flex;
  gap: .5rem;
}
.lc-join-row input {
  flex: 1;
  min-width: 0;
  padding: .42rem .75rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: .85rem;
  font-family: inherit;
  outline: none;
}
.lc-join-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent); }

/* Name tag shown in the form after joining */
.lc-name-tag {
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  font-size: .75rem;
  padding: .2rem .55rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .15s, color .15s;
  display: flex;
  align-items: center;
  gap: .2rem;
}
.lc-name-tag:hover { border-color: var(--accent); color: var(--text); }

/* ═══════════════════════════════════════════
   Tips page — public
   ═══════════════════════════════════════════ */
.tips-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
.tips-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.tips-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 .2rem;
}
.tips-sub {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

/* Category filter bar */
.tips-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.75rem;
}
.tips-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.tips-cat-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.tips-cat-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Tips grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: box-shadow .15s, border-color .15s;
}
.tip-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 10%, transparent);
}
.tip-card-top {
  display: flex;
  align-items: center;
}
.tip-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border-radius: 999px;
  padding: .2rem .65rem;
  font-size: .75rem;
  font-weight: 600;
}
.tip-card-text {
  flex: 1;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}
.tip-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--muted);
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: .55rem;
}
.tip-card-author { font-weight: 500; }

/* Empty state */
.tips-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: .95rem;
}

/* Submit form */
.tips-form-wrap {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.tips-form-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem 2rem;
}
.tips-form-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 .25rem;
}
.tips-form-sub {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}
.tips-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.tips-form { display: flex; flex-direction: column; gap: .85rem; }

@media (max-width: 540px) {
  .tips-form-card { padding: 1.25rem 1rem; }
  .tips-form-row  { grid-template-columns: 1fr; }
  .tips-grid      { grid-template-columns: 1fr; }
  .tips-header    { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════
   Admin tips moderation
   ═══════════════════════════════════════════ */
.admin-tip-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.admin-tip-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.admin-tip-item--pending  { border-left: 3px solid var(--accent); }
.admin-tip-item--approved { border-left: 3px solid #22c55e; }
.admin-tip-item--rejected { border-left: 3px solid var(--muted); opacity: .75; }
.admin-tip-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .6rem;
}
.admin-tip-who {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.admin-tip-status {
  font-size: .75rem;
  font-weight: 600;
  padding: .15rem .55rem;
  border-radius: 999px;
}
.admin-tip-status--ok      { background: color-mix(in srgb, #22c55e 15%, transparent); color: #16a34a; }
.admin-tip-status--err     { background: color-mix(in srgb, #ef4444 15%, transparent); color: #dc2626; }
.admin-tip-status--pending { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.admin-tip-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
}
.admin-tip-ip { font-size: .72rem; color: var(--muted); }
.admin-tip-body {
  font-size: .9rem;
  line-height: 1.55;
  margin: .25rem 0 .85rem;
  word-break: break-word;
  white-space: pre-line;
}
.admin-tip-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  padding-top: .55rem;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   Suggestions page — public
   ═══════════════════════════════════════════ */
.sug-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}
.sug-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.sug-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 .2rem;
}
.sug-sub {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}
.sug-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}
.sug-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.sug-filter-btn:hover  { border-color: var(--accent); color: var(--accent); }
.sug-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.sug-cats { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }

.sug-list {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-bottom: 2.5rem;
}
.sug-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1rem 1.25rem .9rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.sug-card--done        { border-left-color: #22c55e; }
.sug-card--considering { border-left-color: #3b82f6; }
.sug-card-top {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.sug-status {
  font-size: .75rem;
  font-weight: 600;
  padding: .15rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.sug-status--pending     { background: color-mix(in srgb, #f59e0b 15%, transparent); color: #b45309; }
.sug-status--considering { background: color-mix(in srgb, #3b82f6 15%, transparent); color: #1d4ed8; }
.sug-status--done        { background: color-mix(in srgb, #22c55e 15%, transparent); color: #15803d; }
.sug-status--rejected    { background: color-mix(in srgb, #6b7280 15%, transparent); color: #4b5563; }
.sug-admin-note {
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
}
.sug-card-text {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}
.sug-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: .5rem;
}
.sug-card-author { font-weight: 500; }
.sug-form-wrap {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Admin suggestions form controls */
.sug-admin-form { margin: .4rem 0 .3rem; }
.sug-admin-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}
.sug-status-select {
  padding: .35rem .6rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: .82rem;
  font-family: inherit;
  cursor: pointer;
}
.sug-note-input {
  flex: 1;
  min-width: 180px;
  padding: .35rem .65rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: .82rem;
  font-family: inherit;
}
.sug-note-input:focus,
.sug-status-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}

@media (max-width: 540px) {
  .sug-page-header  { flex-direction: column; align-items: flex-start; }
  .sug-admin-row    { flex-direction: column; align-items: stretch; }
  .sug-note-input   { min-width: 0; }
}

/* ═══════════════════════════════════════════
   Site-wide notice banner
   ═══════════════════════════════════════════ */
.site-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  font-size: .9rem;
  line-height: 1.4;
  text-align: center;
}
.site-notice--warn {
  background: color-mix(in srgb, #f59e0b 15%, transparent);
  border-bottom: 1px solid color-mix(in srgb, #f59e0b 35%, transparent);
  color: var(--text);
}
.site-notice-icon { font-size: 1.1rem; flex-shrink: 0; }
.site-notice-text strong { color: #b45309; }

/* ═══════════════════════════════════════════
   Admin — Nieuwsbrief
   ═══════════════════════════════════════════ */
.nl-alert {
  padding: .75rem 1.1rem;
  border-radius: 9px;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.nl-alert--ok  { background: color-mix(in srgb, #22c55e 12%, transparent); border: 1px solid color-mix(in srgb, #22c55e 30%, transparent); color: #15803d; }
.nl-alert--err { background: color-mix(in srgb, #ef4444 10%, transparent); border: 1px solid color-mix(in srgb, #ef4444 30%, transparent); color: #dc2626; }

.nl-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}
.nl-compose-col,
.nl-subs-col { display: flex; flex-direction: column; gap: 0; }

/* Test panel */
.nl-test-panel {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  margin-top: 1.1rem;
}
.nl-test-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .55rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.nl-test-row {
  display: flex;
  gap: .5rem;
}
.nl-test-row input {
  flex: 1;
  min-width: 0;
  padding: .45rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: .875rem;
  font-family: inherit;
}
.nl-test-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* Send all button */
.nl-send-all { margin-top: 1.1rem; }
.nl-send-btn {
  width: 100%;
  justify-content: center;
  font-size: .9rem;
  padding: .7rem 1rem;
  border-radius: 10px;
}

/* History */
.nl-history { display: flex; flex-direction: column; gap: .6rem; }
.nl-history-item {
  padding: .65rem .85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.nl-history-subject { font-size: .875rem; font-weight: 600; }
.nl-history-meta { font-size: .75rem; color: var(--muted); margin-top: .15rem; }

/* Add subscriber */
.nl-add-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.nl-add-row input {
  flex: 1;
  min-width: 120px;
  padding: .42rem .7rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: .85rem;
  font-family: inherit;
}
.nl-add-row input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Subscriber list */
.nl-sub-list { display: flex; flex-direction: column; }
.nl-sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .25rem;
  border-bottom: 1px solid var(--border);
  font-size: .83rem;
}
.nl-sub-item:last-child { border-bottom: none; }
.nl-sub-item--unsub { opacity: .55; }
.nl-sub-info { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; min-width: 0; }
.nl-sub-badge {
  font-size: .65rem;
  font-weight: 700;
  padding: .15em .45em;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nl-sub-badge--on  { background: color-mix(in srgb,#22c55e 15%,transparent); color: #15803d; }
.nl-sub-badge--off { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.nl-sub-email { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.nl-sub-name  { color: var(--muted); font-size: .78rem; }
.nl-sub-actions { display: flex; gap: .3rem; flex-shrink: 0; }
.nl-sub-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: .18rem .45rem;
  font-size: .82rem;
  color: var(--muted);
  transition: background .12s, border-color .12s;
}
.nl-sub-btn:hover { background: var(--bg); border-color: var(--accent); color: var(--accent); }
.nl-sub-btn--del:hover { border-color: #ef4444; color: #dc2626; }

@media (max-width: 860px) {
  .nl-layout { grid-template-columns: 1fr; }
}
