/* ============================================================
/* ============================================================
   b0nk13.nl — design system v2
   ============================================================ */

:root {
  --bg:        #0a0b0d;
  --bg-2:      #101216;
  --panel:     #14171c;
  --sunken:    #0a0d11;
  --line:      #232830;
  --line-2:    #2f3540;
  --text:      #d8dee9;
  --muted:     #6c7784;
  --dim:       #4a5260;

  --accent:    #00e5ff;
  --accent-2:  #00b8d4;
  --accent-ink:#001014;

  --warn:      #ffb454;
  --ok:        #7ef29d;
  --danger:    #ff5470;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 960px;
  --pad-x: 40px;

  --shadow-card: 0 30px 80px -20px rgba(0,0,0,.7);
  --glow-accent: 0 0 18px rgba(0,229,255,.55);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f9fb; --bg-2: #eef1f5; --panel: #ffffff; --sunken: #f0f3f7;
    --line: #dde3ea; --line-2: #c9d1db;
    --text: #1a1d21; --muted: #6a7482; --dim: #9aa4b2;
    --accent: #0093b0; --accent-2: #007d96; --accent-ink: #ffffff;
    --warn: #c47b00; --ok: #1f9c5a; --danger: #d63a56;
    --shadow-card: 0 20px 60px -25px rgba(20,30,50,.25);
    --glow-accent: 0 0 14px rgba(0,147,176,.35);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--mono);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(0,229,255,.08) 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(0,184,212,.06) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.015) 0px,
    rgba(255,255,255,.015) 1px,
    transparent 1px, transparent 3px
  );
  mix-blend-mode: overlay;
  z-index: 1;
}

/* ------------------------------------------------------------
   Header + nav
   ------------------------------------------------------------ */
header {
  position: relative; z-index: 20;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 20px;
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
}

.brand {
  display: flex; align-items: baseline; gap: 14px;
  font-weight: 700; letter-spacing: .5px;
  text-decoration: none;
  color: inherit;
}
.brand .logo { color: var(--accent); font-size: 22px; text-shadow: var(--glow-accent); }
.brand .logo::before { content: "> "; color: var(--muted); }
.brand .logo .tld { color: var(--muted); }
.brand .tag {
  font-size: 12px; color: var(--muted);
  letter-spacing: 1.5px; text-transform: uppercase;
}

.nav {
  margin-left: auto;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav li { position: relative; }
.nav a {
  display: block;
  padding: 8px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
  border-radius: 8px;
  transition: all .15s;
}
.nav a:hover,
.nav li:hover > a,
.nav li.open > a {
  color: var(--accent);
  background: var(--bg-2);
}
.nav .has-sub > a::after {
  content: " ▾";
  color: var(--dim);
  font-size: 10px;
}

.nav .sub {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  flex-direction: column; gap: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: all .15s;
  z-index: 30;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.6);
  display: flex;
}

.nav .sub a {
  padding: 9px 12px;
  white-space: nowrap;   /* ← nieuw: tekst breekt niet meer af */
}

.nav .has-sub:hover .sub,
.nav .has-sub:focus-within .sub,
.nav .has-sub.open .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav .sub a { padding: 9px 12px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  margin-left: auto;
  order: 5;
}

.status {
  font-size: 12px; color: var(--ok);
  letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px;
  margin-left: 6px;
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse 2s ease-in-out infinite;
}
.status.warn   { color: var(--warn); }
.status.danger { color: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
main {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
}

main.wide {
  display: flex;
  flex-direction: column;
  padding: 56px var(--pad-x) 80px;
}
main.wide > .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

footer {
  position: relative; z-index: 2;
  padding: 20px var(--pad-x);
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
footer .accent { color: var(--accent); }

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */
.card {
  width: 100%; max-width: 660px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card.wide { max-width: none; }

.card-bar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted);
  background: rgba(0,0,0,.25);
}
@media (prefers-color-scheme: light) {
  .card-bar { background: rgba(0,0,0,.03); }
}
.card-bar .lights { display: flex; gap: 6px; }
.card-bar .lights span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.card-bar .lights span:nth-child(1) { background: #ff5f56; }
.card-bar .lights span:nth-child(2) { background: #ffbd2e; }
.card-bar .lights span:nth-child(3) { background: #27c93f; }
.card-bar .path { margin-left: auto; letter-spacing: 1px; }

.card-inner { padding: 36px 32px 32px; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  font-family: var(--mono);
  font-size: 14px; font-weight: 500; letter-spacing: .4px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 80%, white);
  box-shadow: 0 0 24px rgba(0,229,255,.45);
}
.btn.ghost { border-color: var(--line-2); color: var(--muted); }
.btn.ghost:hover:not(:disabled) { color: var(--text); border-color: var(--accent); }
.btn .spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.actions {
  margin-top: 20px;
  display: flex; gap: 12px; align-items: center; justify-content: flex-end;
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.input,
input[type=email],
input[type=text],
input[type=search],
input[type=password],
textarea,
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus,
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,.12);
}
input::placeholder, textarea::placeholder { color: var(--dim); }

.field { margin-bottom: 16px; }
.field .label {
  display: block;
  font-size: 11px; color: var(--muted);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 8px;
}

.form-row { display: flex; gap: 8px; }
.form-row .input { flex: 1; min-width: 0; }

.msg { margin-top: 10px; font-size: 12px; }
.msg.ok  { color: var(--ok); }
.msg.err { color: var(--danger); }

.notify {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
}
.notify .title {
  font-size: 12px; color: var(--muted); letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ------------------------------------------------------------
   Progress
   ------------------------------------------------------------ */
.progress {
  margin: 0 0 8px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--sunken);
  border: 1px solid var(--line);
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 14px rgba(0,229,255,.55);
  transition: width .6s ease;
}
.progress-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted); letter-spacing: 1px;
  margin-bottom: 24px;
}
.progress-meta .cd { color: var(--accent); }

/* ------------------------------------------------------------
   Rows
   ------------------------------------------------------------ */
.rows { border-top: 1px solid var(--line); padding-top: 20px; }
.row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; font-size: 13px; padding: 8px 0;
}
.row .k { color: var(--muted); }
.row .v { color: var(--text); }
.row .v a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}
.row .v a:hover { border-bottom-color: var(--accent); }

/* ------------------------------------------------------------
   Terminal log
   ------------------------------------------------------------ */
.term {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  font-size: 12px; color: var(--muted); line-height: 1.9;
  max-height: 170px; overflow: hidden;
}
.term .ln::before { content: "$ "; color: var(--accent); }
.term .ln.info::before { content: "  "; }
.term .ln.info { color: var(--dim); }
.term .ln.ok::after   { content: " ✓"; color: var(--ok); }
.term .ln.warn::after { content: " …"; color: var(--warn); }
.term .ln.err::after  { content: " ✗"; color: var(--danger); }
.term .ln.dim { opacity: .55; }

/* ------------------------------------------------------------
   Drop zone (laserslate)
   ------------------------------------------------------------ */
.drop {
  position: relative;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  overflow: hidden;
}
.drop:hover { border-color: var(--accent-2); }
.drop.dragover { border-color: var(--accent); transform: translateY(-1px); }
.drop.has-file {
  border-style: solid;
  border-color: var(--accent-2);
  cursor: default;
  padding: 24px;
}
.drop .icon {
  font-size: 34px; color: var(--accent);
  text-shadow: var(--glow-accent);
  margin-bottom: 14px; line-height: 1;
}
.drop .primary { font-size: 15px; margin-bottom: 6px; }
.drop .secondary { font-size: 12px; color: var(--muted); }
.drop .hint { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.drop.has-file .empty { display: none; }

.preview { display: none; align-items: center; gap: 20px; text-align: left; }
.drop.has-file .preview { display: flex; }
.preview img {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #000;
  flex-shrink: 0;
  filter: grayscale(1) invert(1);
}
.preview .meta { flex: 1; min-width: 0; }
.preview .name {
  font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.preview .size { font-size: 12px; color: var(--muted); }
.preview .clear {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--muted);
  width: 34px; height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--mono); font-size: 16px; line-height: 1;
  transition: all .15s; flex-shrink: 0;
}
.preview .clear:hover { color: var(--danger); border-color: var(--danger); }

.result {
  margin-top: 36px;
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.result.show { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.result .head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 13px;
}
.result .head .label { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.result.error .head .label { color: var(--danger); }
.result .body {
  padding: 24px;
  display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
}
.result .body img {
  max-width: 320px; width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #000;
}
.result .info {
  flex: 1; min-width: 200px;
  font-size: 13px; color: var(--muted); line-height: 1.9;
}
.result .info b { color: var(--text); font-weight: 500; }
.result .info a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}
.result .info a:hover { border-bottom-color: var(--accent); }

/* ------------------------------------------------------------
   b0nk13main (was: .hero)
   ------------------------------------------------------------ */
.b0nk13main h1 {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -.3px;
}
.b0nk13main h1 .accent { color: var(--accent); }
.b0nk13main p {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
}
.b0nk13main p b { color: var(--text); font-weight: 500; }

.pipeline {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
  color: var(--muted); font-size: 12px; margin-top: 4px;
}
.pipeline span {
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--bg-2);
}
.pipeline .arrow { color: var(--accent); border: 0; background: 0; padding: 3px 2px; }

.caret {
  display: inline-block;
  width: .55ch; height: 1em;
  background: var(--accent);
  vertical-align: -.12em;
  margin-left: 4px;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.glyph {
  font-size: 46px; line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(0,229,255,.5);
  margin-bottom: 18px;
  display: inline-block;
  animation: float 4s ease-in-out infinite;
}
.glyph.danger { color: var(--danger); text-shadow: 0 0 30px rgba(255,84,112,.5); }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}

/* ------------------------------------------------------------
   Links / tags / code
   ------------------------------------------------------------ */
.links { border-top: 1px solid var(--line); padding-top: 20px; }
.links .title {
  font-size: 12px; color: var(--muted); letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.links .grid { display: flex; flex-wrap: wrap; gap: 8px; }
.links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--bg-2);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  transition: all .15s;
}
.links a::before { content: "→"; color: var(--muted); transition: color .15s; }
.links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(0,229,255,.15);
}
.links a:hover::before { color: var(--accent); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
}
.tag.ok     { color: var(--ok);     border-color: color-mix(in srgb, var(--ok) 40%, var(--line-2)); }
.tag.warn   { color: var(--warn);   border-color: color-mix(in srgb, var(--warn) 40%, var(--line-2)); }
.tag.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line-2)); }

code, .code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--warn);
  background: var(--sunken);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 5px;
  word-break: break-all;
}

/* ------------------------------------------------------------
   Counter grid (index)
   ------------------------------------------------------------ */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.counter-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 22px;
  text-align: center;
}
.counter-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--glow-accent);
  margin-bottom: 6px;
}
.counter-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Utilities
   ------------------------------------------------------------ */
.hidden { display: none !important; }
.muted  { color: var(--muted); }
.accent { color: var(--accent); }
.spacer-20 { height: 20px; }
.spacer-36 { height: 36px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 800px) {
  :root { --pad-x: 20px; }

  header { padding: 16px var(--pad-x); flex-wrap: wrap; gap: 12px; }
  .brand .logo { font-size: 20px; }
  .brand .tag { display: none; }

  .nav-toggle { display: inline-flex; }

  .nav {
    order: 10;
    width: 100%;
    margin-left: 0;
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { width: 100%; }
  .nav a { padding: 12px 14px; }
  .nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: 0;
    padding: 0 0 0 12px;
    min-width: 0;
    display: none;
  }
  .nav .has-sub.open .sub { display: flex; }
  .nav .has-sub:hover .sub { display: none; }
  .nav .has-sub.open:hover .sub { display: flex; }
}

@media (max-width: 640px) {
  main { padding: 40px 16px; }
  main.wide { padding: 36px var(--pad-x) 60px; }
  .card-inner { padding: 28px 20px 24px; }
  .drop { padding: 36px 18px; }
  .preview { flex-direction: column; text-align: center; }
  .preview img { width: 120px; height: 120px; }
  .actions { justify-content: stretch; }
  .actions .btn { flex: 1; }
  .form-row { flex-direction: column; }
  footer { padding: 18px var(--pad-x); flex-direction: column; }
}

/* ---------------- countdown ---------------- */
.cd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.cd-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cd-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.cd-head .name {
  color: var(--text);
  font-weight: 500;
}
.cd-head .date {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .5px;
}

.cd-body {
  padding: 28px 20px;
  display: flex; justify-content: center;
}

.cd-digits {
  display: flex; gap: 10px;
  flex-wrap: wrap; justify-content: center;
}

.cd-unit {
  min-width: 74px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  text-align: center;
}
.cd-num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  text-shadow: var(--glow-accent);
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* de dag zelf: plaatje in plaats van cijfers */
.cd-image {
  padding: 0;
  display: block;
  line-height: 0;
}
.cd-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
}

/* subtiele pulse op seconden */
.cd-unit.secs .cd-num { color: var(--accent-2); }

/* ---------------- sneeuw ---------------- */
#snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
#snow .flake {
  position: absolute;
  top: -30px;
  color: rgba(255,255,255,.85);
  line-height: 1;
  will-change: transform;
  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* binnenkant: het wiegen */
#snow .flake .inner {
  display: inline-block;
  animation-name: snow-sway;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes snow-fall {
  0% {
    transform: translate3d(0, -30px, 0);
  }
  100% {
    transform: translate3d(var(--drift, 0px), 110vh, 0);
  }
}

@keyframes snow-sway {
  0%   { transform: translateX(calc(var(--sway, 20px) * -1)) rotate(-15deg); }
  100% { transform: translateX(var(--sway, 20px))              rotate( 15deg); }
}

@media (prefers-reduced-motion: reduce) {
  #snow { display: none; }
}

/* ---------------- bezoekers-teller ---------------- */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.counter-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.counter-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--glow-accent);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.counter-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
/* teller die altijd net boven de footer plakt */
.counter-bottom {
  margin-top: auto;
  padding-top: 36px;
}

/* ---------------- omrekenen ---------------- */
.conv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.conv-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.conv-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.conv-head .name {
  color: var(--text);
  font-weight: 500;
  letter-spacing: .3px;
}
.conv-head .hint {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
}

.conv-body {
  padding: 24px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.conv-body.two-col {
  grid-template-columns: 1fr;
  gap: 14px;
}

.conv-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.conv-field .unit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
  letter-spacing: .5px;
}

.conv-field input,
.conv-field select {
  font-size: 16px;
  padding: 14px 52px 14px 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.conv-field select {
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
}

.conv-eq {
  color: var(--accent);
  font-size: 18px;
  text-align: center;
  user-select: none;
  padding: 0 4px;
}

.conv-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
}

.conv-meta {
  padding: 0 20px 18px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .3px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.conv-error {
  padding: 14px 20px;
  color: var(--danger);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .conv-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .conv-eq {
    padding: 4px 0;
    font-size: 14px;
  }
  .conv-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------------- aida calculator ---------------- */
.aida-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.aida-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  cursor: pointer;
  transition: border-color .15s;
  line-height: 1.6;
}
.aida-check:hover { border-color: var(--line-2); }
.aida-check input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.aida-check .label {
  flex: 1;
}
.aida-check .note {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: .3px;
}

.aida-result {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  text-align: center;
}
.aida-result .label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.aida-result .value {
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--glow-accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.aida-result .value .unit {
  font-size: 16px;
  color: var(--muted);
  margin-left: 4px;
  text-shadow: none;
}
.aida-result .sub {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .3px;
}

@media (max-width: 640px) {
  .aida-grid {
    grid-template-columns: 1fr;
  }
  .aida-result .value {
    font-size: 24px;
  }
}
/* Aida-invoer links uitlijnen in plaats van rechts */
.aida-grid .conv-field input {
  text-align: left;
}

/* ---------------- drop zone (slate) ---------------- */
.drop {
  position: relative;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  overflow: hidden;
}
.drop:hover { border-color: var(--accent-2); }
.drop.dragover { border-color: var(--accent); transform: translateY(-1px); }
.drop.has-file {
  border-style: solid;
  border-color: var(--accent-2);
  cursor: default;
  padding: 24px;
}
.drop .icon {
  font-size: 34px; color: var(--accent);
  text-shadow: var(--glow-accent);
  margin-bottom: 14px; line-height: 1;
}
.drop .primary { font-size: 15px; margin-bottom: 6px; }
.drop .secondary { font-size: 12px; color: var(--muted); }
.drop .hint { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.drop.has-file .empty { display: none; }

.preview { display: none; align-items: center; gap: 20px; text-align: left; }
.drop.has-file .preview { display: flex; }
.preview img {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #000;
  flex-shrink: 0;
  filter: grayscale(1) invert(1);
}
.preview .meta { flex: 1; min-width: 0; }
.preview .name {
  font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.preview .size { font-size: 12px; color: var(--muted); }
.preview .clear {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--muted);
  width: 34px; height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--mono); font-size: 16px; line-height: 1;
  transition: all .15s; flex-shrink: 0;
}
.preview .clear:hover { color: var(--danger); border-color: var(--danger); }

.result {
  margin-top: 36px;
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.result.show { display: block; animation: fadeIn .35s ease; }
.result .head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 13px;
}
.result .head .label { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.result.error .head .label { color: var(--danger); }
.result .body {
  padding: 24px;
  display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap;
}
.result .body img {
  max-width: 320px; width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #000;
}
.result .info {
  flex: 1; min-width: 200px;
  font-size: 13px; color: var(--muted); line-height: 1.9;
}
.result .info b { color: var(--text); font-weight: 500; }
.result .info a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}
.result .info a:hover { border-bottom-color: var(--accent); }

.btn .spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(0,0,0,.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ---------------- weer-kaarten (oinfo / weather) ---------------- */
.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.weather-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.weather-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.weather-head .name {
  color: var(--text);
  font-weight: 500;
  letter-spacing: .3px;
}
.weather-head .hint {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px;
}

.weather-body {
  padding: 16px 20px 20px;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.weather-body img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #06080a;
  display: block;
}

@media (max-width: 640px) {
  .weather-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- slate gallery ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .15s;
  box-shadow: var(--shadow-card);
}
.gallery-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0,229,255,.15), var(--shadow-card);
  transform: translateY(-2px);
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  background: #06080a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  image-rendering: auto;
}

.gallery-meta {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}
.gallery-name {
  font-size: 11.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.gallery-sub {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.gallery-page-info {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  .gallery-meta {
    padding: 8px 10px 10px;
  }
}
