/* Components: cards, forms, buttons, flip-cards, score bar and output components. */

#step-locatie #herinnering {
  display: block;
  margin: 0 0 14px;
}

#step-locatie input {
  margin-top: 12px;
}

#step-tijd {
  width: 100%;
}

#step-tijd input[type="time"] {
  display: block;
  width: min(100%, 320px);
  max-width: 100%;
  min-height: 48px;
  margin: 12px auto 0;
  padding: 12px 14px;
  text-align: center;
  font-size: max(16px, 1rem);
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}

#step-tijd br {
  display: none;
}

#step-tijd #showAdviceBtn,
#step-tijd #adviesBtn {
  margin-top: 12px;
  margin-bottom: 14px;
}

.heat-cursor {
  position: fixed;
  width: 1100px;
  height: 1100px;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.22), rgba(255, 77, 0, 0.08) 40%, transparent 65%);
  filter: blur(18px);
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
  transform: translate(-9999px, -9999px);
  transition: opacity 0.3s ease;
  animation: heatPulse 3.6s ease-in-out infinite;
}

@keyframes heatPulse {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.7;
  }
}

.flow-label {
  font-size: 0.9rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(244, 244, 243, 0.8);
  margin: 0 0 4px;
  font-weight: 700;
}

.flow-hint {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.flow-sub {
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: 0.95rem;
  color: rgba(244, 244, 243, 0.85);
  margin-top: 12px;
}

.card {
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.85), rgba(15, 15, 15, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 22px;
  max-width: 100%;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  letter-spacing: 0.6px;
  font-weight: 400;
  font-family: var(--font-display);
}

.card h3 {
  margin: 20px 0 12px;
  font-size: 1.12rem;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.card h3::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--accent);
  border-radius: 999px;
  opacity: 0.95;
}

.card p {
  color: var(--muted);
  margin: 10px 0 0;
}

input {
  width: 100%;
  max-width: 360px;
  padding: 12px 14px;
  font-size: max(16px, 1rem);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 15, 15, 0.45);
  color: var(--text);
  outline: none;
  backdrop-filter: blur(8px);
}

input::placeholder {
  color: rgba(244, 244, 243, 0.55);
}

input:focus {
  border-color: rgba(201, 171, 115, 0.65);
  box-shadow: 0 0 0 4px rgba(201, 171, 115, 0.18);
}

input[type="range"] {
  width: 100%;
  max-width: min(100%, 360px);
  margin: 16px auto 8px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 999px;
  background: transparent;
  border: none;
  box-shadow: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary) var(--fill, 0%),
    rgba(255, 255, 255, 0.18) var(--fill, 0%),
    rgba(255, 255, 255, 0.18) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-top: -8px;
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.03);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#aansteekWaarde {
  margin-top: 8px;
  color: var(--muted);
}

button {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: transform 0.12s ease, background 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  position: relative;
  overflow: hidden;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 180px;
  max-width: 100%;
  text-align: center;
  line-height: 1.1;
  white-space: normal;
  touch-action: manipulation;
}

button:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 77, 0, 0.15);
}

button:active {
  transform: translateY(0);
}

button:focus-visible {
  outline: 2px solid rgba(255, 77, 0, 0.6);
  outline-offset: 2px;
}

button::after {
  content: "";
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

button:hover::after {
  opacity: 0.5;
}

#showAdviceBtn,
#adviesBtn {
  margin-bottom: 14px;
}

#resetWrapper button,
#restartBtn,
#resetBtn {
  margin-top: 8px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.advice-actions {
  width: 100%;
  max-width: 640px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.advice-actions .btn {
  width: 100%;
  min-width: 0;
}

#copyAdviceBtn {
  grid-column: 1;
}

#inviteBtn {
  grid-column: 2;
}

#showAdviceBtn {
  grid-column: 1 / -1;
  min-height: 52px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.035);
  color: rgba(244, 244, 243, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.button-tertiary {
  width: 100%;
  margin-top: 14px;
  text-align: center;
}

.btn-tertiary {
  background: transparent;
  color: rgba(244, 244, 243, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.btn-tertiary:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.btn[disabled] {
  opacity: 0.72;
  pointer-events: none;
  filter: saturate(0.85);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

#step-accessoires .accessoires-toggle {
  margin-bottom: 32px;
}

#step-accessoires .accessoires-grid {
  margin-top: 0;
}

@keyframes sizzleTap {
  0% {
    transform: translateY(0);
  }

  35% {
    transform: translateY(1px) translateX(-1px);
  }

  70% {
    transform: translateY(0) translateX(1px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes sizzleGlow {
  0% {
    opacity: 0.2;
  }

  60% {
    opacity: 0.75;
  }

  100% {
    opacity: 0;
  }
}

#step-bbq .bbq-type,
#step-methode .methode,
#step-aansteken .aansteek-methode,
#step-accessoires .accessoire {
  width: min(220px, 100%);
  padding: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

#step-bbq .bbq-type {
  justify-self: center;
}

#step-bbq .bbq-type .flip-inner,
#step-methode .methode .flip-inner,
#step-aansteken .aansteek-methode .flip-inner,
#step-accessoires .accessoire .flip-inner {
  height: 112px;
}

#step-bbq .bbq-type .flip-front,
#step-bbq .bbq-type .flip-back,
#step-methode .methode .flip-front,
#step-methode .methode .flip-back,
#step-aansteken .aansteek-methode .flip-front,
#step-aansteken .aansteek-methode .flip-back,
#step-accessoires .accessoire .flip-front,
#step-accessoires .accessoire .flip-back {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#step-bbq .flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

#step-bbq .bbq-type:hover,
#step-methode .methode:hover,
#step-aansteken .aansteek-methode:hover,
#step-accessoires .accessoire:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 30px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(255, 77, 0, 0.08);
}

#step-bbq .flip-front h4,
#step-methode .flip-front h4,
#step-aansteken .flip-front h4,
#step-accessoires .flip-front h4 {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  gap: 6px;
}

#step-methode .temp {
  font-size: 0.78rem;
}

#step-accessoires .flip-front .stars {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(244, 244, 243, 0.66);
  margin-top: 4px;
}

#step-accessoires .accessoire .flip-back {
  padding: 10px 10px;
  gap: 3px;
}

#step-accessoires .accessoire .flip-back p {
  margin: 0;
  line-height: 1.15;
  font-size: 0.7rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#step-accessoires .accessoire .flip-back p:first-child {
  -webkit-line-clamp: 2;
}

#step-accessoires .accessoire .flip-back .detail {
  font-size: 0.64rem;
  color: rgba(244, 244, 243, 0.68);
  -webkit-line-clamp: 1;
}

#step-aansteken .center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flip-card {
  perspective: 1000px;
  -webkit-perspective: 1000px;
  cursor: pointer;
  transform: translateZ(0);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.flip-card:focus-visible {
  outline: 2px solid rgba(255, 77, 0, 0.55);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.18);
}

.flip-inner {
  position: relative;
  height: 150px;
  transition: transform 0.6s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  border-radius: var(--radius);
  will-change: transform;
  box-shadow: none;
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, #2a2a28, #1f1f1e);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 26px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease;
}

.flip-front {
  transform: rotateY(0deg) translateZ(1px);
  -webkit-transform: rotateY(0deg) translateZ(1px);
  opacity: 1;
}

.flip-back {
  transform: rotateY(180deg) translateZ(1px);
  -webkit-transform: rotateY(180deg) translateZ(1px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.1)),
    linear-gradient(180deg, #3a3327, #23211f);
  border-color: rgba(201, 171, 115, 0.28);
  color: var(--text);
  opacity: 1;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.flip-card.selected .flip-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

#step-bbq .bbq-type.selected .flip-inner,
#step-methode .methode.selected .flip-inner,
#step-aansteken .aansteek-methode.selected .flip-inner,
#step-accessoires .accessoire.selected .flip-inner {
  transform: rotateY(180deg) !important;
  -webkit-transform: rotateY(180deg) !important;
}

.flip-card:active .flip-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.flip-front h4,
.flip-back h4 {
  font-size: 1.02rem;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.2px;
  font-weight: 800;
}

.flip-front p,
.flip-back p {
  font-size: 0.86rem;
  margin: 0;
  line-height: 1.25;
  color: rgba(244, 244, 243, 0.72);
}

.choice-card {
  transition: box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  opacity: 1;
  transform: none;
}

.temp {
  font-size: 0.8rem;
  color: rgba(244, 244, 243, 0.7);
  margin-top: 6px;
}

.score-wrapper {
  margin-top: 16px;
}

.score-label {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: rgba(244, 244, 243, 0.92);
  letter-spacing: 0.2px;
}

.score-track {
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  transition: width 0.4s ease;
}

#output .card {
  margin-top: 24px;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(25, 25, 25, 0.9), rgba(12, 12, 12, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#output .card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  opacity: 0.35;
  pointer-events: none;
}

#output .card::after {
  content: "BBQ-OORDEEL";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(18px, -10px) rotate(-14deg) scale(0.85);
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

#output .card p {
  margin: 0.9rem 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#output .card h3 {
  margin-bottom: 0.75rem;
  overflow-wrap: anywhere;
}

#output .card .center {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

#output .card .center + .center {
  margin-top: 0.5rem;
}

#output .card .center button {
  margin-top: 0.8rem;
}

#output .actieknoppen {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

#output .actieknoppen button {
  flex: 1 1 220px;
  width: min(100%, 320px);
  min-width: 0;
}

/* =========================================
   ULTIEME ADVIES KAART (heat wave + sparks + shimmer)
========================================= */

.advies-kaart-animated {
  position: relative;
  overflow: hidden;
  isolation: isolate; /* zodat overlays netjes binnen kaart blijven */
}

/* Heat-wave background (subtiel) */
.advies-kaart-animated {
  background:
    linear-gradient(130deg,
      rgba(25, 5, 0, 0.78) 0%,
      rgba(35, 10, 0, 0.82) 50%,
      rgba(25, 5, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(25, 25, 25, 0.9), rgba(12, 12, 12, 0.92));
  background-size: 420% 420%, 100% 100%;
  animation: heatWaveBG 14s ease-in-out infinite;
}

@keyframes heatWaveBG {
  0% { background-position: 0% 50%, 0 0; }
  50% { background-position: 100% 46%, 0 0; }
  100% { background-position: 0% 50%, 0 0; }
}

/* Fire sparks (embers) – pure CSS, heel licht */
.advies-kaart-animated::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 12% 110%, rgba(255, 120, 40, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 118%, rgba(255, 100, 30, 0.16) 0 1.5px, transparent 3px),
    radial-gradient(circle at 46% 115%, rgba(255, 140, 60, 0.14) 0 2px, transparent 4px),
    radial-gradient(circle at 64% 120%, rgba(255, 90, 20, 0.14) 0 1.5px, transparent 3px),
    radial-gradient(circle at 82% 112%, rgba(255, 130, 50, 0.16) 0 2px, transparent 4px),
    radial-gradient(circle at 92% 122%, rgba(255, 110, 30, 0.12) 0 1.5px, transparent 3px);
  filter: blur(0.4px);
  animation: embersRise 9s linear infinite;
}

@keyframes embersRise {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-38%); }
}

/* Heat shimmer overlay (alleen bij GOED/TWIJFEL)
   Let op: gebruikt .advies-tijd-grid::before zodat de stempel (::after op kaart) vrij blijft. */
.advies-tijd-grid::before {
  content: "";
  position: absolute;
  inset: -12% -10%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.03) 0 2px,
      rgba(255, 255, 255, 0.0) 2px 14px
    );
  filter: blur(2px);
  transform: translateY(0);
}

@keyframes shimmerDrift {
  0%   { transform: translateY(2%) skewX(-2deg); opacity: 0.10; }
  50%  { transform: translateY(-2%) skewX(2deg); opacity: 0.16; }
  100% { transform: translateY(2%) skewX(-2deg); opacity: 0.10; }
}

.oordeel-goed .advies-tijd-grid::before,
.oordeel-twijfel .advies-tijd-grid::before {
  opacity: 1;
  animation: shimmerDrift 6.5s ease-in-out infinite;
}

/* =========================================
   TIJD BLOKKEN + FIRE REFLECTION
========================================= */

.advies-tijd-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 18px;
}

/* Subtiele fire-reflection onder de tijdblokken */
.advies-tijd-grid::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -14px;
  height: 28px;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 20%,
      rgba(255, 90, 0, 0.22),
      rgba(255, 90, 0, 0) 62%);
  filter: blur(10px);
  opacity: 0.65;
}

/* Basisknoppen */
.advies-blok {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.25));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  z-index: 2;
}

.advies-blok:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(0,0,0,0.4),
    0 0 18px rgba(255,77,0,0.08);
}

.advies-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .4px;
}

.advies-minuten {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

/* Totaal basis-accent (blijft altijd) */
.advies-totaal {
  border-color: rgba(255,77,0,0.5);
  box-shadow:
    0 0 0 1px rgba(255,77,0,0.4),
    0 0 20px rgba(255,77,0,0.15);
}

/* =========================================
   INTELLIGENT GLOW (per score)
========================================= */

/* GOED – rustige groene pulse */
@keyframes glowGoed {
  0%   { box-shadow: 0 0 0 1px rgba(34,197,94,0.40), 0 0 12px rgba(34,197,94,0.14); }
  50%  { box-shadow: 0 0 0 1px rgba(34,197,94,0.62), 0 0 24px rgba(34,197,94,0.34); }
  100% { box-shadow: 0 0 0 1px rgba(34,197,94,0.40), 0 0 12px rgba(34,197,94,0.14); }
}
.oordeel-goed .advies-totaal {
  animation: glowGoed 3.4s ease-in-out infinite;
}

/* TWIJFEL – warme amber pulse */
@keyframes glowTwijfel {
  0%   { box-shadow: 0 0 0 1px rgba(245,158,11,0.34), 0 0 10px rgba(245,158,11,0.14); }
  50%  { box-shadow: 0 0 0 1px rgba(245,158,11,0.56), 0 0 20px rgba(245,158,11,0.30); }
  100% { box-shadow: 0 0 0 1px rgba(245,158,11,0.34), 0 0 10px rgba(245,158,11,0.14); }
}
.oordeel-twijfel .advies-totaal {
  animation: glowTwijfel 3.8s ease-in-out infinite;
}

/* AFRADER – 1x korte warning flicker bij render (niet blijven knipperen) */
@keyframes flickerSlechtOnce {
  0%   { box-shadow: 0 0 0 1px rgba(239,68,68,0.25), 0 0 8px rgba(239,68,68,0.10); }
  18%  { box-shadow: 0 0 0 1px rgba(239,68,68,0.75), 0 0 26px rgba(239,68,68,0.40); }
  38%  { box-shadow: 0 0 0 1px rgba(239,68,68,0.35), 0 0 10px rgba(239,68,68,0.14); }
  55%  { box-shadow: 0 0 0 1px rgba(239,68,68,0.70), 0 0 22px rgba(239,68,68,0.36); }
  100% { box-shadow: 0 0 0 1px rgba(255,77,0,0.40), 0 0 20px rgba(255,77,0,0.15); } /* terug naar standaard totaal-accent */
}
.oordeel-slecht .advies-totaal {
  animation: flickerSlechtOnce 0.9s ease-in-out 1;
}

/* =========================================
   WEER BOX
========================================= */

.advies-weer-box {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(25,25,25,0.85), rgba(10,10,10,0.9));
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.advies-weer-box p {
  margin: 8px 0;
}

.kern-advies {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.9), rgba(8, 8, 8, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(244, 244, 243, 0.92);
  text-align: left;
}

.kern-advies h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: rgba(244, 244, 243, 0.96);
}

.kern-advies p {
  margin: 6px 0;
  line-height: 1.45;
  color: rgba(244, 244, 243, 0.86);
}

.kern-advies .tip {
  margin-top: 8px;
  font-weight: 600;
}

body.light-mode .kern-advies {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(248, 236, 220, 0.95));
  border: 1px solid rgba(186, 120, 64, 0.28);
  box-shadow: 0 10px 20px rgba(160, 92, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: #3a2f28;
}

body.light-mode .kern-advies h4 {
  color: #3a2f28;
}

body.light-mode .kern-advies p {
  color: rgba(58, 47, 40, 0.92);
}

/* Stempel altijd rechtsboven in de kaart */
#output .card.oordeel-kaart::after {
  left: auto;
  right: 16px;
  top: 12px;
  width: 136px;
  height: 136px;
  font-size: 0.68rem;
  z-index: 6;
}

/* =========================================
   RESPONSIVE (MOBIEL)
========================================= */

@media (max-width: 768px) {
  #output .card.oordeel-kaart::after {
    right: 10px;
    top: 10px;
    width: 96px;
    height: 96px;
    font-size: 0.52rem;
  }

  .advies-tijd-grid {
    grid-template-columns: 1fr;
  }

  .advies-blok {
    padding: 18px;
  }

  .advies-minuten {
    font-size: 1.6rem;
  }

  .advies-tijd-grid::after {
    left: 10%;
    right: 10%;
    bottom: -16px;
  }
}

/* Stickiness/value layer: dashboard feel without extra noise. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  width: 100%;
}

.live-bbq-panel,
.today-assist,
.checker-intro {
  background: linear-gradient(180deg, rgba(27, 31, 32, 0.98), rgba(21, 24, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.live-bbq-panel {
  padding: clamp(18px, 2.5vw, 26px);
  align-self: center;
}

.panel-topline,
.panel-score,
.checker-intro,
.today-assist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.status-badge,
.panel-muted,
.quiet-icon {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge {
  color: rgba(243, 218, 179, 0.96);
  background: rgba(214, 163, 95, 0.09);
  border: 1px solid rgba(214, 163, 95, 0.26);
}

.panel-muted,
.quiet-icon {
  color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.panel-score {
  margin-top: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.panel-score span,
.panel-metrics span,
.advice-insights span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-score strong {
  color: rgba(243, 239, 232, 0.96);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
}

.panel-empty {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.panel-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 18px;
}

.panel-metrics div,
.advice-insights div {
  padding: 12px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.panel-metrics strong {
  display: block;
  margin-top: 5px;
  color: rgba(243, 239, 232, 0.93);
}

.panel-note {
  margin-top: 16px;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  font-size: 0.92rem;
}

.today-assist {
  padding: 18px;
  margin-top: -18px;
  margin-bottom: clamp(22px, 4vw, 44px);
}

.today-assist h2,
.checker-intro h2 {
  margin: 0;
  color: rgba(243, 239, 232, 0.95);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.08;
}

.today-assist .eyebrow,
.checker-intro .eyebrow {
  margin-bottom: 7px;
}

.mini-tip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: min(100%, 620px);
}

.mini-tip-row span {
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
}

.return-section {
  padding-top: clamp(26px, 4vw, 46px);
}

.checker-intro {
  margin: clamp(24px, 4vw, 44px) auto 14px;
  padding: 18px;
  scroll-margin-top: 96px;
}

.checker-intro p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.checker-intro > span {
  flex: 0 0 auto;
  max-width: 320px;
  padding: 9px 11px;
  border-radius: 999px;
  color: rgba(243, 218, 179, 0.9);
  background: rgba(214, 163, 95, 0.08);
  border: 1px solid rgba(214, 163, 95, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
}

.advice-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.advice-insights p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sticky-checker-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  min-width: 0;
  min-height: 42px;
  padding: 0 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.sticky-checker-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#themeToggle {
  width: auto;
  min-width: 42px;
  font-size: 0.78rem;
}

#themeToggle::before {
  content: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .today-assist,
  .checker-intro {
    grid-template-columns: 1fr;
    display: grid;
  }

  .mini-tip-row,
  .advice-insights {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .tips-list-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .checker-intro > span {
    max-width: none;
    width: fit-content;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    gap: 22px;
  }

  .live-bbq-panel,
  .today-assist,
  .checker-intro {
    border-radius: 14px;
  }

  .today-assist {
    margin-top: 0;
  }

  .sticky-checker-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}

/* =========================================
   REDUCED MOTION SAFETY
========================================= */

@media (prefers-reduced-motion: reduce) {
  .advies-kaart-animated,
  .advies-kaart-animated::before,
  .advies-tijd-grid::before,
  .oordeel-goed .advies-totaal,
  .oordeel-twijfel .advies-totaal,
  .oordeel-slecht .advies-totaal {
    animation: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  #step-bbq .bbq-type.selected .flip-inner,
  #step-methode .methode.selected .flip-inner,
  #step-aansteken .aansteek-methode.selected .flip-inner,
  #step-accessoires .accessoire.selected .flip-inner,
  #step-bbq .bbq-type.locked .flip-inner,
  #step-methode .methode.locked .flip-inner,
  #step-aansteken .aansteek-methode.locked .flip-inner,
  #step-accessoires .accessoire.locked .flip-inner,
  .flip-card.selected .flip-inner {
    transform: rotateY(180deg) !important;
    -webkit-transform: rotateY(180deg) !important;
  }

  #step-bbq .bbq-type:hover,
  #step-methode .methode:hover,
  #step-aansteken .aansteek-methode:hover,
  #step-accessoires .accessoire:hover {
    transform: none;
  }

  /* Fallback voor mobiele browsers met onbetrouwbare 3D/backface rendering */
  .flip-card .flip-front,
  .flip-card .flip-back {
    opacity: 1;
  }

  .flip-card .flip-back {
    opacity: 0;
  }

  .flip-card.selected .flip-front,
  .flip-card.locked .flip-front,
  #step-bbq .bbq-type.selected .flip-front,
  #step-methode .methode.selected .flip-front,
  #step-aansteken .aansteek-methode.selected .flip-front,
  #step-accessoires .accessoire.selected .flip-front,
  #step-bbq .bbq-type.locked .flip-front,
  #step-methode .methode.locked .flip-front,
  #step-aansteken .aansteek-methode.locked .flip-front,
  #step-accessoires .accessoire.locked .flip-front {
    opacity: 0;
    pointer-events: none;
  }

  .flip-card.selected .flip-back,
  .flip-card.locked .flip-back,
  #step-bbq .bbq-type.selected .flip-back,
  #step-methode .methode.selected .flip-back,
  #step-aansteken .aansteek-methode.selected .flip-back,
  #step-accessoires .accessoire.selected .flip-back,
  #step-bbq .bbq-type.locked .flip-back,
  #step-methode .methode.locked .flip-back,
  #step-aansteken .aansteek-methode.locked .flip-back,
  #step-accessoires .accessoire.locked .flip-back {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  button {
    min-height: 50px;
    min-width: 150px;
  }

  .flip-inner {
    height: 120px;
  }

  .card {
    padding: 18px 16px;
  }

  .card h2 {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .card h3 {
    font-size: 1rem;
  }

  .flow-label {
    font-size: 0.84rem;
  }

  .flow-hint {
    font-size: 0.9rem;
  }

  input {
    max-width: 100%;
  }

  #step-tijd input[type="time"] {
    width: min(100%, 320px);
    min-height: 50px;
  }

  #step-bbq .bbq-type,
  #step-methode .methode,
  #step-aansteken .aansteek-methode,
  #step-accessoires .accessoire {
    width: min(100%, 180px);
    margin-left: auto;
    margin-right: auto;
  }

  #step-bbq .bbq-type .flip-inner,
  #step-methode .methode .flip-inner,
  #step-aansteken .aansteek-methode .flip-inner,
  #step-accessoires .accessoire .flip-inner {
    height: 120px;
  }

  main button {
    width: min(100%, 320px);
    min-width: 0;
  }

  .advice-actions {
    max-width: 360px;
    grid-template-columns: 1fr;
  }

  .advice-actions .btn {
    width: 100%;
  }

  #step-accessoires .accessoires-toggle {
    margin-bottom: 24px;
  }

  #copyAdviceBtn,
  #inviteBtn,
  #showAdviceBtn {
    grid-column: 1;
  }

  #output .actieknoppen {
    gap: 10px;
  }

  #output .card {
    padding: 104px 16px 20px;
  }

  #output .card::before {
    inset: 10px;
  }

  #output .card::after {
    top: 10px;
    right: 10px;
    width: 78px;
    height: 78px;
    font-size: 0.48rem;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .card h2 {
    font-size: 1.3rem;
  }

  main button {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  #step-tijd input[type="time"] {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
  }

  #step-bbq .bbq-type,
  #step-methode .methode,
  #step-aansteken .aansteek-methode {
    width: 100%;
    max-width: 100%;
  }

  #step-bbq .bbq-type .flip-inner,
  #step-methode .methode .flip-inner,
  #step-aansteken .aansteek-methode .flip-inner,
  #step-accessoires .accessoire .flip-inner {
    height: 100px;
  }

  /* Accessoires: mobiel UX-optimalisatie voor leesbaarheid in 2 kolommen */
  #step-accessoires .accessoire .flip-inner {
    height: 124px;
  }

  #step-accessoires .accessoire .flip-front,
  #step-accessoires .accessoire .flip-back {
    padding: 10px 8px;
  }

  #step-accessoires .flip-front h4,
  #step-accessoires .flip-back h4 {
    display: block;
    font-size: 0.76rem;
    line-height: 1.24;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-wrap: balance;
  }

  #step-accessoires .accessoire .flip-back .detail:last-child {
    display: none;
  }

  .flip-inner {
    height: 100px;
  }

  #output .actieknoppen {
    flex-direction: column;
    align-items: center;
  }

  #output .actieknoppen button {
    flex: 0 0 auto;
    width: 100%;
    max-width: 320px;
    min-height: 48px;
    padding: 12px 16px;
  }

  #output button {
    width: 100%;
    min-width: unset;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  #output .card {
    padding-top: 112px;
  }

  #output .card::after {
    top: 8px;
    right: 8px;
    width: 72px;
    height: 72px;
    font-size: 0.45rem;
  }
}

/* Definitieve flip-state (desktop + mobiel) */
#step-bbq .bbq-type.selected .flip-inner,
#step-methode .methode.selected .flip-inner,
#step-aansteken .aansteek-methode.selected .flip-inner,
#step-accessoires .accessoire.selected .flip-inner,
#step-bbq .bbq-type.locked .flip-inner,
#step-methode .methode.locked .flip-inner,
#step-aansteken .aansteek-methode.locked .flip-inner,
#step-accessoires .accessoire.locked .flip-inner,
.flip-card.selected .flip-inner,
.flip-card.locked .flip-inner {
  transform: rotateY(180deg) !important;
  -webkit-transform: rotateY(180deg) !important;
}

/* -------------------------------------------------------------------
   ADVIESKAART PREMIUM (heat-wave + embers + shimmer + glow effects)
------------------------------------------------------------------- */

/* BASE LAYERS */
.advies-kaart-animated {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* HEAT-WAVE BACKGROUND */
.advies-kaart-animated::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(130deg,
      rgba(25,5,0,0.78) 0%,
      rgba(35,10,0,0.82) 50%,
      rgba(25,5,0,0.78) 100%),
    linear-gradient(180deg, rgba(25,25,25,0.9), rgba(12,12,12,0.92));
  background-size: 420% 420%, 100% 100%;
  animation: adviceHeatWave 14s ease-in-out infinite;
}

@keyframes adviceHeatWave {
  0%   { background-position: 0% 50%, 0 0; }
  50%  { background-position: 100% 46%, 0 0; }
  100% { background-position: 0% 50%, 0 0; }
}

/* EMBER SPARKS */
.advies-kaart-animated .emberLayer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.advies-kaart-animated::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 12% 110%, rgba(255,120,40,0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 118%, rgba(255,100,30,0.16) 0 1.5px, transparent 3px),
    radial-gradient(circle at 46% 115%, rgba(255,140,60,0.14) 0 2px, transparent 4px),
    radial-gradient(circle at 64% 120%, rgba(255,90,20,0.14) 0 1.5px, transparent 3px),
    radial-gradient(circle at 82% 112%, rgba(255,130,50,0.16) 0 2px, transparent 4px),
    radial-gradient(circle at 92% 122%, rgba(255,110,30,0.12) 0 1.5px, transparent 3px);
  filter: blur(0.4px);
  opacity: 0.6;
  animation: embersRise 9s linear infinite;
}

@keyframes embersRise {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-38%); }
}

/* SHIMMER OVERLAY */
.advies-kaart-animated.shimmerActive::before,
.advies-kaart-animated.shimmerActive::after {
  pointer-events: none;
}

.advies-kaart-animated.shimmerActive {
  position: relative;
}

.advies-kaart-animated.shimmerActive .shimmerOverlay {
  position: absolute;
  inset: -10% -8%;
  z-index: 2;
  background:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,0.03) 0 2px,
      rgba(255,255,255,0.0) 2px 14px
    );
  transform: skewX(-2deg) translateY(2%);
  filter: blur(2px);
  opacity: 0.14;
  animation: shimmerEffect 7s ease-in-out infinite;
}

@keyframes shimmerEffect {
  0%   { transform: skewX(-2deg) translateY(2%); opacity: 0.10; }
  50%  { transform: skewX(2deg) translateY(-2%); opacity: 0.16; }
  100% { transform: skewX(-2deg) translateY(2%); opacity: 0.10; }
}

/* TIME BLOCKS + FIRE REFLECTION */
.advies-tijd-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}

/* FIRE REFLECTION UNDER BLOKKEN */
.advies-tijd-grid::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -14px;
  height: 26px;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 15%,
      rgba(255,90,0,0.22),
      rgba(255,90,0,0) 62%);
  filter: blur(10px);
}

/* BASE TIME BLOCK STYLES */
.advies-blok {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.25));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
  z-index: 3;
}

.advies-blok:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.4), 0 0 18px rgba(255,77,0,0.08);
}

.advies-label {
  display: block;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.advies-minuten {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text);
}

/* BASE TOTAAL ACCENT */
.advies-totaal {
  border-color: rgba(255,77,0,0.5);
  box-shadow: 0 0 0 1px rgba(255,77,0,0.4), 0 0 20px rgba(255,77,0,0.15);
}

/* INTELLIGENT GLOW PER SCORE */
@keyframes glowGoed { 0% { box-shadow: 0 0 0 1px rgba(34,197,94,0.40),0 0 12px rgba(34,197,94,0.14); }
  50% { box-shadow: 0 0 0 1px rgba(34,197,94,0.62),0 0 24px rgba(34,197,94,0.34); }
  100% { box-shadow: 0 0 0 1px rgba(34,197,94,0.40),0 0 12px rgba(34,197,94,0.14); }
}
.advies-kaart-animated.oordeel-kaart.oordeel-goed .advies-totaal {
  animation: glowGoed 3.4s ease-in-out infinite;
}

@keyframes glowTwijfel { 0% { box-shadow: 0 0 0 1px rgba(245,158,11,0.34),0 0 10px rgba(245,158,11,0.14); }
  50% { box-shadow: 0 0 0 1px rgba(245,158,11,0.56),0 0 20px rgba(245,158,11,0.30); }
  100% { box-shadow: 0 0 0 1px rgba(245,158,11,0.34),0 0 10px rgba(245,158,11,0.14); }
}
.advies-kaart-animated.oordeel-kaart.oordeel-twijfel .advies-totaal {
  animation: glowTwijfel 3.8s ease-in-out infinite;
}

@keyframes flickerSlechtOnce {
  0% { box-shadow:0 0 0 1px rgba(239,68,68,0.25),0 0 8px rgba(239,68,68,0.10); }
  18% { box-shadow:0 0 0 1px rgba(239,68,68,0.75),0 0 26px rgba(239,68,68,0.40); }
  38% { box-shadow:0 0 0 1px rgba(239,68,68,0.35),0 0 10px rgba(239,68,68,0.14); }
  55% { box-shadow:0 0 0 1px rgba(239,68,68,0.70),0 0 22px rgba(239,68,68,0.36); }
  100% { box-shadow:0 0 0 1px rgba(255,77,0,0.40),0 0 20px rgba(255,77,0,0.15); }
}
.advies-kaart-animated.oordeel-kaart.oordeel-slecht .advies-totaal {
  animation: flickerSlechtOnce .9s ease-in-out 1;
}

/* SHIMMER ACTIVE STATE TRIGGER */
.advies-kaart-animated.oordeel-kaart.oordeel-goed,
.advies-kaart-animated.oordeel-kaart.oordeel-twijfel {
  /* insert a pseudo-element to trigger shimmer */
}
.advies-kaart-animated.oordeel-kaart.oordeel-goed,
.advies-kaart-animated.oordeel-kaart.oordeel-twijfel {
  position: relative;
}
.advies-kaart-animated.oordeel-kaart.oordeel-goed .shimmerOverlay,
.advies-kaart-animated.oordeel-kaart.oordeel-twijfel .shimmerOverlay {
  content: "";
  display: block;
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .advies-kaart-animated::before,
  .advies-kaart-animated::after,
  .advies-kaart-animated.oordeel-kaart .advies-totaal,
  .advies-kaart-animated .shimmerOverlay {
    animation: none !important;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .advies-tijd-grid { grid-template-columns: 1fr; }
  .advies-blok { padding: 18px; }
  .advies-minuten { font-size: 1.6rem; }
}

/* -------------------------------------------------------------------
   LIGHT MODE UI ENHANCEMENTS
------------------------------------------------------------------- */

body.light-mode button {
  color: #4a2f1a;
  background: linear-gradient(135deg, #fff7e8, #f8bd72 70%, #f3a44b 100%);
  border: 1px solid rgba(186, 116, 56, 0.32);
  box-shadow: 0 12px 24px rgba(174, 104, 47, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.light-mode button:hover {
  color: #fff;
  background: linear-gradient(135deg, #ffb864, #f97316 58%, #e8600c 100%);
  box-shadow: 0 16px 28px rgba(176, 95, 35, 0.3), 0 0 18px rgba(249, 115, 22, 0.24);
}

body.light-mode button:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.72);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.2), 0 12px 22px rgba(176, 95, 35, 0.2);
}

body.light-mode button::after {
  background: radial-gradient(circle, rgba(255, 154, 72, 0.38), transparent 60%);
}

body.light-mode .btn-secondary {
  color: #523622;
  background: linear-gradient(180deg, #fffaf2, #fdf0df);
  border-color: rgba(176, 110, 58, 0.3);
  box-shadow: 0 8px 18px rgba(172, 108, 55, 0.17), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

body.light-mode .btn-secondary:hover {
  color: #442c1a;
  background: linear-gradient(180deg, #fff5e8, #fbe8ce);
}

body.light-mode .btn-tertiary {
  color: rgba(74, 50, 33, 0.88);
  border-color: rgba(173, 108, 57, 0.36);
  background: rgba(255, 250, 241, 0.84);
}

body.light-mode .btn-tertiary:hover {
  background: rgba(255, 244, 227, 0.95);
}

body.light-mode .card,
body.light-mode #output .card {
  border-color: rgba(173, 108, 57, 0.24);
  box-shadow: 0 18px 34px rgba(174, 105, 47, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.light-mode #output .card::before {
  border-color: rgba(173, 108, 57, 0.24);
  opacity: 0.48;
}

body.light-mode .advies-blok {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 239, 222, 0.96)),
    linear-gradient(180deg, #fffaf4, #fdf0e9);
  border-color: rgba(186, 120, 64, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 18px rgba(160, 92, 42, 0.12);
}

body.light-mode .advies-label,
body.light-mode .advies-minuten {
  color: #3a2f28;
}

body.light-mode .advies-weer-box {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 239, 222, 0.98)),
    linear-gradient(180deg, #fffaf4, #fdf0e9);
  border: 1px solid rgba(186, 120, 64, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 20px rgba(160, 92, 42, 0.12);
}

body.light-mode .advies-weer-box p,
body.light-mode .advies-weer-box strong {
  color: #3a2f28;
}

body.light-mode input,
body.light-mode .styled-input,
body.light-mode .styled-select,
body.light-mode select {
  background: rgba(255, 252, 246, 0.96);
  border-color: rgba(173, 108, 57, 0.32);
  color: #3a2f28;
}

body.light-mode input:focus,
body.light-mode .styled-input:focus,
body.light-mode .styled-select:focus,
body.light-mode select:focus {
  border-color: rgba(249, 115, 22, 0.62);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}

body.light-mode .flip-card:focus-visible {
  outline: 2px solid rgba(249, 115, 22, 0.62);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.18);
}

/* Light Mode: uniforme stijl voor alle keuze-flipcards */
body.light-mode #step-bbq .bbq-type.flip-card.choice-card,
body.light-mode #step-methode .methode.flip-card.choice-card,
body.light-mode #step-aansteken .aansteek-methode.flip-card.choice-card,
body.light-mode #step-accessoires .accessoire.flip-card.choice-card {
  background:
    linear-gradient(180deg, var(--bbq-card-surface-top) 0%, var(--bbq-card-surface-bottom) 100%),
    radial-gradient(120% 72% at 50% -8%, rgba(255, 255, 255, 0.62), transparent 62%),
    radial-gradient(100% 90% at 90% 110%, rgba(249, 115, 22, 0.07), transparent 72%);
  border: 1px solid var(--bbq-card-border);
  border-radius: 20px;
  box-shadow:
    0 8px 15px rgba(60, 40, 30, 0.08),
    0 16px 28px var(--bbq-card-shadow),
    inset 0 1px 4px rgba(255, 255, 255, 0.62),
    inset 0 -12px 24px rgba(186, 120, 64, 0.08);
  color: var(--bbq-card-text);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

body.light-mode #step-bbq .bbq-type.flip-card.choice-card:focus-visible,
body.light-mode #step-methode .methode.flip-card.choice-card:focus-visible,
body.light-mode #step-aansteken .aansteek-methode.flip-card.choice-card:focus-visible,
body.light-mode #step-accessoires .accessoire.flip-card.choice-card:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.4);
  outline-offset: 3px;
  box-shadow:
    0 0 0 4px rgba(249, 115, 22, 0.2),
    0 16px 30px rgba(145, 84, 36, 0.2);
}

body.light-mode #step-bbq .bbq-type .flip-front,
body.light-mode #step-bbq .bbq-type .flip-back,
body.light-mode #step-methode .methode .flip-front,
body.light-mode #step-methode .methode .flip-back,
body.light-mode #step-aansteken .aansteek-methode .flip-front,
body.light-mode #step-aansteken .aansteek-methode .flip-back,
body.light-mode #step-accessoires .accessoire .flip-front,
body.light-mode #step-accessoires .accessoire .flip-back {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(253, 240, 223, 0.95)),
    linear-gradient(180deg, var(--bbq-card-surface-top), var(--bbq-card-surface-bottom));
  border: 1px solid rgba(186, 120, 64, 0.24);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 8px 16px rgba(255, 255, 255, 0.18),
    0 10px 18px rgba(170, 99, 46, 0.1);
  color: var(--bbq-card-text);
  transition: opacity 0.25s ease;
}

body.light-mode #step-bbq .bbq-type:hover,
body.light-mode #step-methode .methode:hover,
body.light-mode #step-aansteken .aansteek-methode:hover,
body.light-mode #step-accessoires .accessoire:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.44);
  box-shadow:
    0 18px 36px rgba(249, 115, 22, 0.22),
    0 0 0 2px rgba(249, 115, 22, 0.18),
    inset 0 2px 6px rgba(255, 255, 255, 0.5);
}

/* Light Mode: flipgedrag exact zoals Dark Mode */
body.light-mode .flip-inner {
  transition: transform 0.6s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

body.light-mode .flip-front,
body.light-mode .flip-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.light-mode .flip-card:hover .flip-inner,
body.light-mode .flip-card.selected .flip-inner,
body.light-mode .flip-card.locked .flip-inner {
  transform: rotateY(180deg) !important;
  -webkit-transform: rotateY(180deg) !important;
}

body.light-mode #step-bbq .bbq-type .flip-front h4,
body.light-mode #step-bbq .bbq-type .flip-back h4,
body.light-mode #step-methode .methode .flip-front h4,
body.light-mode #step-methode .methode .flip-back h4,
body.light-mode #step-aansteken .aansteek-methode .flip-front h4,
body.light-mode #step-aansteken .aansteek-methode .flip-back h4,
body.light-mode #step-accessoires .accessoire .flip-front h4,
body.light-mode #step-accessoires .accessoire .flip-back h4 {
  color: var(--bbq-card-text);
  letter-spacing: 0.045em;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  filter: saturate(1.08);
}

body.light-mode #step-bbq .bbq-type .flip-front p,
body.light-mode #step-bbq .bbq-type .flip-back p,
body.light-mode #step-bbq .bbq-type .temp,
body.light-mode #step-methode .methode .flip-front p,
body.light-mode #step-methode .methode .flip-back p,
body.light-mode #step-methode .methode .temp,
body.light-mode #step-aansteken .aansteek-methode .flip-front p,
body.light-mode #step-aansteken .aansteek-methode .flip-back p,
body.light-mode #step-accessoires .accessoire .flip-front p,
body.light-mode #step-accessoires .accessoire .flip-back p,
body.light-mode #step-accessoires .accessoire .flip-front .stars,
body.light-mode #step-accessoires .accessoire .flip-back .detail {
  color: var(--bbq-card-muted);
}

/* Advice Card UX Refresh: hero total + subtiele badge + kern-grid */
#output .card.oordeel-kaart::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

.advies-oordeel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 244, 243, 0.9);
}

.oordeel-goed .advies-oordeel-badge {
  color: rgba(74, 222, 128, 0.95);
  border-color: rgba(74, 222, 128, 0.48);
  background: rgba(34, 197, 94, 0.14);
}

.oordeel-twijfel .advies-oordeel-badge {
  color: rgba(251, 191, 36, 0.96);
  border-color: rgba(251, 191, 36, 0.46);
  background: rgba(245, 158, 11, 0.14);
}

.oordeel-slecht .advies-oordeel-badge {
  color: rgba(248, 113, 113, 0.96);
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(239, 68, 68, 0.16);
}

.advies-hero {
  position: relative;
  z-index: 3;
  margin: 8px 0 14px;
  padding: 18px 16px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.advies-hero-label {
  margin: 0;
  color: rgba(244, 244, 243, 0.74);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.advies-hero-minuten {
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--text);
}

.advies-hero-minuten span {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  opacity: 0.9;
}

.advies-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.advies-sub-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
}

.advies-sub-item .advies-label {
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.advies-minuten-klein {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.kern-advies {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.92), rgba(10, 10, 10, 0.94));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.kern-advies h4 {
  margin: 0 0 10px;
}

.kern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kern-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.kern-icon {
  flex: 0 0 auto;
  line-height: 1.2;
}

.kern-body {
  min-width: 0;
}

.kern-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(244, 244, 243, 0.65);
}

.kern-value {
  margin: 2px 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: rgba(244, 244, 243, 0.94);
}

.kern-advies .tip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: rgba(244, 244, 243, 0.9);
}

body.light-mode .advies-oordeel-badge {
  color: #5b4331;
  border-color: rgba(186, 120, 64, 0.34);
  background: rgba(255, 244, 228, 0.85);
}

body.light-mode .advies-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 239, 222, 0.96));
  border-color: rgba(186, 120, 64, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 10px 22px rgba(160, 92, 42, 0.14);
}

body.light-mode .advies-hero-label,
body.light-mode .advies-hero-minuten,
body.light-mode .advies-minuten-klein {
  color: #3a2f28;
}

body.light-mode .advies-sub-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(251, 237, 217, 0.95));
  border-color: rgba(186, 120, 64, 0.24);
}

body.light-mode .kern-advies {
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(249, 236, 218, 0.96));
  border-color: rgba(186, 120, 64, 0.3);
  box-shadow: 0 10px 20px rgba(160, 92, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.light-mode .kern-item {
  border-color: rgba(186, 120, 64, 0.24);
  background: rgba(255, 248, 238, 0.9);
}

body.light-mode .kern-label {
  color: rgba(74, 54, 37, 0.68);
}

body.light-mode .kern-value,
body.light-mode .kern-advies .tip {
  color: rgba(58, 47, 40, 0.95);
}

@media (max-width: 768px) {
  .advies-hero {
    padding: 16px 12px;
  }

  .advies-sub-grid,
  .kern-grid {
    grid-template-columns: 1fr;
  }

  .advies-hero-minuten {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

/* =========================================
   Advieskaart Redesign
   - Hero aansteekmoment
   - Secundaire tijddetails
   - Compact weer
   - Moderne kern mini-cards
========================================= */

/* Oude grote stempel uit op advieskaart */
#output .card.oordeel-kaart::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

.advies-card {
  position: relative;
}

/* Subtiele badge rechtsboven */
.oordeel-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--accent-light, rgba(255, 77, 0, 0.16));
  color: var(--dark-text, var(--text));
  z-index: 6;
}

.advies-card.oordeel-goed .oordeel-badge {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(74, 222, 128, 0.44);
}

.advies-card.oordeel-twijfel .oordeel-badge {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(251, 191, 36, 0.48);
}

.advies-card.oordeel-slecht .oordeel-badge {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(248, 113, 113, 0.5);
}

.start-hero {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.22));
}

.start-label {
  font-size: 1.1rem;
  opacity: 0.8;
}

.start-time {
  font-size: 3rem;
  font-weight: 800;
  margin: 6px 0;
  line-height: 1;
  color: var(--main-text, var(--text));
}

.start-sub {
  font-size: 1rem;
  opacity: 0.7;
}

.tijd-details {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.detail-item {
  font-size: 0.95rem;
  opacity: 0.85;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.weer-compact {
  text-align: center;
  margin-top: 10px;
  opacity: 0.9;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.weer-details {
  margin-top: 6px;
  line-height: 1.45;
  font-size: 0.95rem;
}

.kern-section {
  margin-top: 16px;
}

.kern-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.kern-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  min-width: 120px;
}

.kern-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.kern-label {
  font-size: 0.85rem;
  opacity: 0.7;
}

.kern-tip {
  margin-top: 12px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--accent-light, var(--accent));
}

/* Light mode leesbaarheid */
body.light-mode .oordeel-badge {
  background: rgba(255, 244, 228, 0.96);
  color: #3a2f28;
  border-color: rgba(186, 120, 64, 0.35);
}

body.light-mode .start-hero,
body.light-mode .detail-item,
body.light-mode .weer-compact,
body.light-mode .kern-card {
  background: rgba(255, 248, 238, 0.94);
  border-color: rgba(186, 120, 64, 0.24);
  color: #3a2f28;
}

body.light-mode .start-time {
  color: #3a2f28;
}

/* Responsiveness */
@media (max-width: 768px) {
  .oordeel-badge {
    top: 8px;
    right: 8px;
  }

  .start-time {
    font-size: 2.3rem;
  }

  .start-label {
    font-size: 1rem;
  }

  .start-sub,
  .detail-item,
  .weer-details,
  .kern-tip {
    font-size: 0.9rem;
  }

  .kern-card {
    min-width: min(100%, 220px);
  }
}

/* Accessoires layout wordt dynamisch gelijkgetrokken met vuurgebruik via JS. */

/* Accessoires: zelfde structuur als vuurgebruik met 2 naast elkaar op mobiel/smalle weergave. */
#accessoiresGrid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100%;
  justify-items: stretch !important;
}

#accessoiresGrid .accessoire {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/* =========================================================
   UX/UI Light Mode Refinement (clean hierarchy + progress)
========================================================= */

.step-progress {
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(244, 244, 243, 0.68);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.step-badge {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  flex: 0 0 20px;
}

.step-text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.step-item.is-active {
  border-color: rgba(255, 77, 0, 0.42);
  background: rgba(255, 77, 0, 0.12);
  color: rgba(255, 243, 232, 0.95);
}

.step-item.is-active .step-badge {
  background: rgba(255, 77, 0, 0.22);
}

.step-item.is-done {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(220, 252, 231, 0.95);
}

.step-item.is-done .step-badge {
  background: rgba(34, 197, 94, 0.2);
  font-size: 0.82rem;
}

.step-item.is-future,
.step-item.is-upcoming {
  opacity: 0.62;
}

.time-validation {
  margin: 8px auto 0;
  font-size: 0.92rem;
  font-weight: 500;
  max-width: 360px;
}

.time-validation:empty {
  display: none;
}

.time-validation.status-idle {
  color: var(--muted);
}

.time-validation.status-ok {
  color: #22c55e;
}

.time-validation.status-close {
  color: #d9a54d;
}

.time-validation.status-low {
  color: #ef4444;
}

#aansteekPlekkenGroup {
  margin-top: 12px;
}

body.light-mode .step-progress {
  gap: 10px;
}

body.light-mode .step-item {
  border-color: var(--border-light);
  background: var(--bg-alt);
  color: var(--text-secondary);
}

body.light-mode .step-badge {
  background: rgba(255, 77, 0, 0.08);
  color: #8b4f27;
}

body.light-mode .step-item.is-active {
  border-color: var(--accent-orange);
  background: var(--accent-orange-light);
  color: var(--text-primary);
}

body.light-mode .step-item.is-done {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #2f5a3e;
}

body.light-mode .flow-label,
body.light-mode .section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

body.light-mode .flow-hint,
body.light-mode .section-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

body.light-mode .card,
body.light-mode #output .card {
  background: var(--bg-base);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 24px var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.light-mode main button {
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

body.light-mode .btn-primary,
body.light-mode #showAdviceBtn,
body.light-mode #checkBtn {
  background: var(--accent-orange);
  border: 1px solid var(--accent-orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 77, 0, 0.2);
}

body.light-mode .btn-primary:hover,
body.light-mode #showAdviceBtn:hover,
body.light-mode #checkBtn:hover {
  background: #f24a03;
  box-shadow: 0 10px 20px rgba(255, 77, 0, 0.22);
}

body.light-mode .btn-secondary,
body.light-mode #kopieerAdvies,
body.light-mode #maakUitnodiging {
  background: transparent;
  color: #4a3b2e;
  border: 1px solid rgba(255, 77, 0, 0.28);
  box-shadow: none;
}

body.light-mode .btn-secondary:hover,
body.light-mode #kopieerAdvies:hover,
body.light-mode #maakUitnodiging:hover {
  background: rgba(255, 77, 0, 0.06);
  box-shadow: none;
}

body.light-mode .btn-tertiary,
body.light-mode #restartBtn {
  background: transparent;
  border: none;
  color: #6a6a6a;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}

body.light-mode .btn-tertiary:hover,
body.light-mode #restartBtn:hover {
  color: #3a3a3a;
  background: transparent;
}

body.light-mode button:focus-visible,
body.light-mode .flip-card:focus-visible,
body.light-mode input:focus-visible,
body.light-mode select:focus-visible,
body.light-mode .choice-toggle:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

body.light-mode #step-bbq .bbq-type,
body.light-mode #step-methode .methode,
body.light-mode #step-aansteken .aansteek-methode,
body.light-mode #step-accessoires .accessoire {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

body.light-mode #step-bbq .bbq-type:hover,
body.light-mode #step-methode .methode:hover,
body.light-mode #step-aansteken .aansteek-methode:hover,
body.light-mode #step-accessoires .accessoire:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode #step-tijd input[type="time"] {
  font-size: 1.05rem;
}

.invite-form {
  margin-top: 20px;
  text-align: center;
}

.invite-form p {
  margin-bottom: 8px;
  color: rgba(244, 244, 243, 0.82);
}

.invite-form input {
  width: min(100%, 360px);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #111;
  color: #fff;
  margin: 8px 0 12px;
}

.invite-form .btn {
  margin: 6px 6px 0;
}

#invitePreview {
  margin-top: 20px;
  text-align: center;
}

#invitePreview img {
  width: 100%;
  max-width: 760px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

body.light-mode .invite-form p {
  color: rgba(33, 33, 33, 0.78);
}

body.light-mode .invite-form input {
  background: #fff;
  color: #2c2c2c;
  border-color: rgba(0, 0, 0, 0.16);
}

body.light-mode #invitePreview img {
  border-color: rgba(0, 0, 0, 0.12);
}

/* =========================================================
   Premium companion refresh
   Rustiger cards, geen gimmicky flip/heat en een heldere advieskaart.
========================================================= */

.heat-cursor {
  display: none !important;
}

.flow-container {
  padding: clamp(18px, 3vw, 32px);
  border-radius: 18px;
}

.flow-container > h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: 0;
  margin-bottom: 16px;
}

.card {
  background: rgba(22, 22, 21, 0.82);
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

button {
  background: linear-gradient(180deg, #b96b32, #8e4320);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

button::after {
  display: none;
}

button:hover {
  background: linear-gradient(180deg, #c1773b, #974a24);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3);
}

.btn-secondary,
.btn-tertiary,
.navigatie-knop {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 244, 243, 0.9);
}

.btn-secondary:hover,
.btn-tertiary:hover,
.navigatie-knop:hover {
  background: rgba(255, 255, 255, 0.08);
}

input,
.styled-input,
.styled-select {
  background: rgba(9, 9, 9, 0.48);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

#step-bbq .bbq-type,
#step-methode .methode,
#step-aansteken .aansteek-methode,
#step-accessoires .accessoire {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform-style: flat;
}

#step-bbq .bbq-type .flip-inner,
#step-methode .methode .flip-inner,
#step-aansteken .aansteek-methode .flip-inner,
#step-accessoires .accessoire .flip-inner,
.flip-inner {
  height: 118px;
  transform: none !important;
  transition: none;
  transform-style: flat;
}

.flip-card,
.flip-card:hover .flip-inner,
.flip-card.selected .flip-inner,
.flip-card.locked .flip-inner,
.flip-card:active .flip-inner,
#step-bbq .bbq-type.selected .flip-inner,
#step-methode .methode.selected .flip-inner,
#step-aansteken .aansteek-methode.selected .flip-inner,
#step-accessoires .accessoire.selected .flip-inner {
  transform: none !important;
  -webkit-transform: none !important;
}

.flip-front,
.flip-back,
#step-bbq .bbq-type .flip-front,
#step-bbq .bbq-type .flip-back,
#step-methode .methode .flip-front,
#step-methode .methode .flip-back,
#step-aansteken .aansteek-methode .flip-front,
#step-aansteken .aansteek-methode .flip-back,
#step-accessoires .accessoire .flip-front,
#step-accessoires .accessoire .flip-back {
  position: absolute;
  inset: 0;
  transform: none !important;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 14px;
}

.flip-front {
  justify-content: flex-start;
  gap: 6px;
}

.flip-back {
  justify-content: flex-end;
  opacity: 1;
  padding-top: 44px;
}

.flip-front h4,
.flip-back h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.flip-back p,
.flip-front p {
  color: rgba(244, 244, 243, 0.62);
  font-size: 0.78rem;
}

#step-bbq .bbq-type:hover,
#step-methode .methode:hover,
#step-aansteken .aansteek-methode:hover,
#step-accessoires .accessoire:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 171, 115, 0.35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

#step-bbq .bbq-type.selected,
#step-methode .methode.selected,
#step-aansteken .aansteek-methode.selected,
#step-accessoires .accessoire.selected {
  animation: none;
  border-color: rgba(201, 171, 115, 0.78);
  background: rgba(201, 171, 115, 0.1);
  box-shadow: 0 0 0 2px rgba(201, 171, 115, 0.18), 0 16px 30px rgba(0, 0, 0, 0.24);
}

.progress {
  margin: 10px 0 20px;
}

.progress-item.active {
  border-color: rgba(201, 171, 115, 0.65);
  box-shadow: 0 0 0 1px rgba(201, 171, 115, 0.2);
}

#output .card {
  background: rgba(18, 18, 17, 0.94);
  border-color: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

#output .card::before,
#output .card::after,
.advies-kaart-animated::before {
  display: none !important;
}

.advies-card {
  display: grid;
  gap: 18px;
}

.advice-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.advice-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

.advice-header h3::after {
  display: none;
}

.advice-header p {
  margin: 8px 0 0;
  color: rgba(244, 244, 243, 0.72);
}

.score-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 171, 115, 0.38);
  background: rgba(201, 171, 115, 0.1);
  color: #f1d99d;
  font-weight: 800;
}

.planning-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
}

.timeline-step {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.timeline-step span,
.advies-detail span,
.practical-advice span {
  display: block;
  color: rgba(244, 244, 243, 0.56);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-step strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1;
}

.timeline-step-primary {
  border-color: rgba(201, 171, 115, 0.5);
  background: rgba(201, 171, 115, 0.12);
}

.advies-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.advies-detail {
  min-width: 0;
  padding: 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.advies-detail strong {
  display: block;
  margin-top: 6px;
  color: rgba(244, 244, 243, 0.93);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.practical-advice {
  padding: 16px;
  border-radius: 14px;
  background: rgba(201, 171, 115, 0.09);
  border: 1px solid rgba(201, 171, 115, 0.22);
}

.practical-advice p {
  margin: 8px 0 0;
}

body.light-mode .info-card,
body.light-mode .trust-badges span,
body.light-mode .timeline-step,
body.light-mode .advies-detail,
body.light-mode .practical-advice {
  background: rgba(255, 250, 244, 0.88);
  border-color: rgba(150, 102, 58, 0.22);
  color: var(--text-warm);
}

body.light-mode .hero-section h1,
body.light-mode .section-heading h2,
body.light-mode .info-card h3,
body.light-mode .advice-header h3 {
  color: var(--text-warm);
}

body.light-mode .hero-subtitle,
body.light-mode .info-card p,
body.light-mode .trust-badges span,
body.light-mode .advice-header p,
body.light-mode .advies-detail strong {
  color: rgba(58, 47, 40, 0.78);
}

@media (max-width: 768px) {
  .advice-header,
  .planning-timeline,
  .advies-detail-grid {
    grid-template-columns: 1fr;
  }

  .advice-header {
    display: grid;
  }

  .score-pill {
    width: max-content;
  }
}

@media (max-width: 1024px) {
  .step-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .step-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .step-item {
    padding: 7px 8px;
  }

  .step-text {
    font-size: 0.78rem;
  }

  .card {
    padding: 14px 12px;
  }

  #step-bbq .bbq-type .flip-inner,
  #step-methode .methode .flip-inner,
  #step-aansteken .aansteek-methode .flip-inner,
  #step-accessoires .accessoire .flip-inner {
    height: 96px;
  }
}

/* =========================================================
   Premium polish pass
   Laatste laag: compact palet, minder glow, meer webapp.
========================================================= */

:where(.navigatie, .card, .info-card, .timeline-step, .advies-detail, .practical-advice) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navigatie {
  min-height: 58px;
}

.logo-beeld {
  width: clamp(62px, 7vw, 92px);
  filter: none;
}

.nav-logo:hover .logo-beeld,
.nav-logo:focus-within .logo-beeld {
  filter: none;
  transform: none;
}

.navigatie-links {
  gap: 18px;
  font-size: 0.88rem;
}

.navigatie-links a {
  height: 34px;
  color: rgba(255, 255, 255, 0.66);
  text-shadow: none;
}

.navigatie-links a:hover {
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
}

.navigatie-knop {
  min-height: 34px;
  height: 34px;
  padding: 0 14px;
  font-size: 0.86rem;
}

#themeToggle {
  min-width: 0;
  width: 42px;
  padding: 0;
  font-size: 0;
}

#themeToggle::before {
  content: "Theme";
  font-size: 0.74rem;
}

.hero-section {
  min-height: min(660px, 70svh);
  padding-top: clamp(46px, 7vw, 82px);
  padding-bottom: clamp(34px, 5vw, 56px);
}

.hero-section::before {
  width: min(440px, 42vw);
  background: radial-gradient(circle, rgba(214, 163, 95, 0.075), transparent 70%);
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  color: rgba(214, 163, 95, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.hero-section h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 6.4vw, 5.55rem);
  line-height: 1.01;
}

.hero-subtitle {
  max-width: 590px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 26px;
  gap: 12px;
}

.hero-link {
  color: rgba(255, 255, 255, 0.68);
  border-bottom-color: rgba(214, 163, 95, 0.32);
  font-size: 0.94rem;
}

.trust-badges {
  gap: 8px;
  margin-top: 24px;
}

.trust-badges span {
  min-height: 32px;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.028);
  border-color: rgba(255, 255, 255, 0.075);
  font-size: 0.8rem;
}

.content-section {
  padding: clamp(34px, 5.4vw, 64px) 0;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
}

.info-grid {
  gap: 12px;
}

.info-grid-steps,
.return-grid {
  align-items: stretch;
}

.info-grid-steps .info-card,
.return-grid .info-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.info-grid-steps .info-card p,
.return-grid .info-card p {
  margin-top: auto;
}

.info-card,
.card {
  background: linear-gradient(180deg, rgba(27, 31, 32, 0.96), rgba(21, 24, 25, 0.96));
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.info-card {
  padding: 18px;
}

.how-section,
.return-section,
.tips-section {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.section-heading p:not(.eyebrow) {
  max-width: 620px;
}

.tips-list-card {
  display: grid;
  gap: 0;
  max-width: 840px;
  padding: 4px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(27, 31, 32, 0.96), rgba(21, 24, 25, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.tips-list-card div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tips-list-card div:first-child {
  border-top: 0;
}

.tips-list-card strong {
  color: rgba(243, 218, 179, 0.9);
}

.tips-list-card span {
  color: rgba(255, 255, 255, 0.66);
}

.info-card h3 {
  margin-top: 7px;
  color: rgba(243, 239, 232, 0.94);
}

.info-card p,
.flow-hint,
.card p {
  color: rgba(255, 255, 255, 0.62);
}

.flow-container {
  padding: clamp(18px, 2.6vw, 28px);
  background: linear-gradient(180deg, rgba(27, 31, 32, 0.98), rgba(18, 21, 22, 0.98));
}

.flow-container > h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.45rem);
  margin-bottom: 12px;
}

.progress {
  gap: 8px;
  margin: 8px 0 18px;
}

.progress-item {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
}

.progress-item.active {
  border-color: rgba(214, 163, 95, 0.46);
  color: rgba(243, 239, 232, 0.9);
  background: rgba(214, 163, 95, 0.08);
  box-shadow: none;
}

.progress-item.done {
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.62);
}

.flow-label,
.section-title {
  color: rgba(243, 239, 232, 0.86);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

input,
.styled-input,
.styled-select,
select {
  min-height: 48px;
  background: #101214;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(243, 239, 232, 0.94);
  box-shadow: none;
}

input:focus,
.styled-input:focus,
.styled-select:focus {
  border-color: rgba(214, 163, 95, 0.56);
  box-shadow: 0 0 0 3px rgba(214, 163, 95, 0.1);
}

button,
.btn-primary {
  background: #b96f3c;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

button:hover,
.btn-primary:hover {
  background: #c77b44;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.btn-secondary,
.btn-tertiary,
.navigatie-knop,
.choice-toggle {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.095);
  box-shadow: none;
}

.btn-secondary:hover,
.btn-tertiary:hover,
.navigatie-knop:hover,
.choice-toggle:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

#step-bbq .grid,
#step-methode .grid,
#step-aansteken .grid,
#step-accessoires .grid {
  gap: 12px;
}

#step-bbq .bbq-type,
#step-methode .methode,
#step-aansteken .aansteek-methode,
#step-accessoires .accessoire {
  background: #151819;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 12px;
  box-shadow: none;
}

#step-bbq .bbq-type .flip-inner,
#step-methode .methode .flip-inner,
#step-aansteken .aansteek-methode .flip-inner,
#step-accessoires .accessoire .flip-inner,
.flip-inner {
  min-height: 116px;
}

.flip-front,
.flip-back,
#step-bbq .bbq-type .flip-front,
#step-bbq .bbq-type .flip-back,
#step-methode .methode .flip-front,
#step-methode .methode .flip-back,
#step-aansteken .aansteek-methode .flip-front,
#step-aansteken .aansteek-methode .flip-back,
#step-accessoires .accessoire .flip-front,
#step-accessoires .accessoire .flip-back {
  padding: 14px;
}

.flip-front h4,
.flip-back h4,
#step-bbq .flip-front h4,
#step-methode .flip-front h4,
#step-aansteken .flip-front h4,
#step-accessoires .flip-front h4 {
  color: rgba(243, 239, 232, 0.94);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.flip-back p,
.flip-front p,
.temp {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  line-height: 1.35;
}

#step-bbq .bbq-type:hover,
#step-methode .methode:hover,
#step-aansteken .aansteek-methode:hover,
#step-accessoires .accessoire:hover {
  transform: translateY(-1px);
  border-color: rgba(214, 163, 95, 0.3);
  box-shadow: none;
}

#step-bbq .bbq-type.selected,
#step-methode .methode.selected,
#step-aansteken .aansteek-methode.selected,
#step-accessoires .accessoire.selected {
  background: rgba(214, 163, 95, 0.095);
  border-color: rgba(214, 163, 95, 0.62);
  box-shadow: inset 0 0 0 1px rgba(214, 163, 95, 0.12);
}

#output .card {
  background: linear-gradient(180deg, #1b1f20, #151819);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.advies-card {
  gap: 14px;
}

.advice-header {
  padding-bottom: 2px;
}

.advice-header h3 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
}

.score-pill {
  background: rgba(214, 163, 95, 0.09);
  border-color: rgba(214, 163, 95, 0.3);
  color: rgba(243, 218, 179, 0.95);
  box-shadow: none;
}

.timeline-step,
.advies-detail {
  background: rgba(255, 255, 255, 0.028);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.timeline-step-primary {
  background: rgba(214, 163, 95, 0.08);
  border-color: rgba(214, 163, 95, 0.34);
}

.timeline-step span,
.advies-detail span,
.practical-advice span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
}

.timeline-step strong,
.advies-detail strong {
  color: rgba(243, 239, 232, 0.94);
}

.practical-advice {
  background: rgba(214, 163, 95, 0.055);
  border-color: rgba(214, 163, 95, 0.18);
}

.kern-card,
.kern-section,
.kern-advies {
  box-shadow: none;
}

@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at 50% 0%, rgba(214, 163, 95, 0.055), transparent 22rem),
      linear-gradient(180deg, #101214, #0b0d0e 44%, #080a0b);
    background-attachment: scroll;
  }

  .navigatie {
    min-height: 54px;
    padding: 8px var(--page-padding);
  }

  .logo-beeld {
    width: clamp(58px, 18vw, 82px);
  }

  .hero-section {
    padding-top: 38px;
    padding-bottom: 28px;
  }

  .hero-section::before {
    opacity: 0.45;
  }

  .hero-section h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .hero-actions .btn,
  .hero-actions button {
    width: 100%;
  }

  .hero-link {
    width: 100%;
    text-align: center;
    border-bottom: 0;
    padding: 6px 0 0;
  }

  .trust-badges span {
    flex: 1 1 100%;
    justify-content: center;
  }

  .flow-container {
    padding: 16px 12px;
  }

  #step-bbq .bbq-type .flip-inner,
  #step-methode .methode .flip-inner,
  #step-aansteken .aansteek-methode .flip-inner,
  #step-accessoires .accessoire .flip-inner {
    height: 108px;
    min-height: 108px;
  }

  .actieknoppen .btn,
  #output .actieknoppen button {
    width: 100%;
    flex-basis: 100%;
  }
}

/* Final value-layer overrides: keep the companion additions above the legacy CSS. */
#themeToggle {
  width: auto;
  min-width: 44px;
  padding: 0 10px;
  font-size: 0.78rem;
}

#themeToggle::before {
  content: none !important;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  width: 100%;
}

.live-bbq-panel,
.today-assist,
.checker-intro {
  background: linear-gradient(180deg, rgba(27, 31, 32, 0.98), rgba(21, 24, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.sticky-checker-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  min-width: 0;
  min-height: 42px;
  padding: 0 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.sticky-checker-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .today-assist,
  .checker-intro {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sticky-checker-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}

/* Narrative landing flow below hero. */
.moment-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  margin: clamp(6px, 2vw, 18px) 0 clamp(24px, 4vw, 40px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(27, 31, 32, 0.98), rgba(21, 24, 25, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.moment-strip h2,
.story-copy h2,
.compact-heading h2,
.tips-section .section-heading h2,
.about-section .section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  line-height: 1.08;
  color: rgba(243, 239, 232, 0.96);
}

.moment-strip p,
.story-copy p,
.compact-heading p:not(.eyebrow),
.tips-section .section-heading p,
.about-section .section-heading p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 1rem;
}

.moment-strip-side {
  display: grid;
  gap: 10px;
}

.moment-strip-side div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.moment-strip-side strong {
  color: rgba(243, 218, 179, 0.92);
}

.moment-strip-side span {
  color: rgba(255, 255, 255, 0.62);
  text-align: right;
}

.moment-strip-side .btn {
  width: 100%;
  margin-top: 4px;
}

.checker-intro {
  margin: 0 auto 14px;
  border-radius: 16px 16px 0 0;
  border-bottom: 0;
}

.checker-wrapper {
  margin-bottom: clamp(38px, 7vw, 76px);
}

.flow-container {
  border-radius: 0 0 18px 18px;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: clamp(42px, 7vw, 78px);
}

.story-copy {
  position: sticky;
  top: 92px;
}

.story-list {
  display: grid;
  gap: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.story-list div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px 18px;
  padding: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.story-list div:first-child {
  border-top: 0;
}

.story-list span {
  grid-row: span 2;
  color: rgba(214, 163, 95, 0.92);
  font-weight: 800;
}

.story-list strong {
  color: rgba(243, 239, 232, 0.96);
  font-size: 1.05rem;
}

.story-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.scenario-section,
.tips-section,
.about-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.compact-heading {
  margin-bottom: 18px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scenario-grid article {
  min-height: 150px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.scenario-grid h3 {
  margin: 0 0 10px;
  color: rgba(243, 239, 232, 0.95);
  font-size: 1.05rem;
}

.scenario-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.tips-section .section-heading,
.about-section .section-heading {
  max-width: 760px;
}

.tips-list-card {
  max-width: 900px;
  margin-top: 18px;
  box-shadow: none;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.about-points span {
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(243, 218, 179, 0.88);
  background: rgba(214, 163, 95, 0.07);
  border: 1px solid rgba(214, 163, 95, 0.16);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .moment-strip,
  .story-section,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .story-copy {
    position: static;
  }

  .moment-strip-side span {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .moment-strip {
    margin-top: 8px;
    padding: 18px;
  }

  .moment-strip h2,
  .story-copy h2,
  .compact-heading h2,
  .tips-section .section-heading h2,
  .about-section .section-heading h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .story-section {
    padding-top: 34px;
  }

  .story-list div {
    grid-template-columns: 38px 1fr;
    padding: 18px;
  }

  .scenario-grid article {
    min-height: 0;
  }
}

/* Simplified single-tool flow overrides. */
.moment-strip,
.scenario-section,
.sticky-checker-cta {
  display: none !important;
}

.hero-section {
  min-height: auto;
  padding-bottom: clamp(28px, 5vw, 52px);
}

.hero-link {
  display: none;
}

.live-bbq-panel {
  padding: clamp(18px, 2.4vw, 24px);
}

.panel-score {
  margin-top: 18px;
  padding-bottom: 14px;
}

.compact-panel-score strong {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
}

.panel-empty {
  margin: 13px 0 0;
}

.panel-metrics {
  margin-top: 14px;
}

.panel-note {
  display: none;
}

.checker-intro {
  margin: clamp(10px, 2.4vw, 22px) auto 0;
  border-radius: 16px 16px 0 0;
  box-shadow: none;
}

.checker-intro > span {
  display: none;
}

.flow-container {
  border-radius: 0 0 18px 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.flow-container > h2 {
  display: none;
}

.progress {
  margin-top: 0;
}

.flow-label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  color: rgba(243, 239, 232, 0.9);
}

.flow-hint {
  font-size: 0.9rem;
}

#step-bbq .bbq-type .flip-inner,
#step-methode .methode .flip-inner,
#step-aansteken .aansteek-methode .flip-inner,
#step-accessoires .accessoire .flip-inner {
  min-height: 104px;
  height: 104px;
}

.why-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: clamp(36px, 6vw, 64px);
}

.why-section .story-copy {
  position: static;
}

.why-section .story-copy h2,
.tips-section .section-heading h2,
.about-section .section-heading h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
}

.story-list {
  box-shadow: none;
}

.story-list div {
  padding: 18px 20px;
}

.tips-section,
.about-section {
  padding-top: clamp(34px, 5vw, 56px);
}

.tips-list-card {
  padding: 2px 20px;
  max-width: 760px;
}

.tips-list-card div {
  padding: 15px 0;
}

.about-points {
  display: none;
}

.result-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.result-hero h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.result-hero h3::after {
  display: none;
}

.result-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.result-tip {
  padding: 16px;
  border-radius: 12px;
  background: rgba(214, 163, 95, 0.06);
  border: 1px solid rgba(214, 163, 95, 0.16);
}

.result-tip span {
  display: block;
  color: rgba(243, 218, 179, 0.9);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-tip p {
  margin: 7px 0 0;
}

#output .advies-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .why-section,
  .result-hero,
  #output .advies-detail-grid {
    grid-template-columns: 1fr;
  }

  .result-hero {
    display: grid;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-bottom: 22px;
  }

  .checker-intro {
    margin-top: 8px;
  }

  .checker-intro,
  .flow-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .why-section {
    padding-top: 30px;
  }
}

/* Top polish: hero en live weerpaneel als een rustige productintro. */
.hero-section {
  padding-top: clamp(42px, 6vw, 72px);
  padding-bottom: clamp(30px, 4.8vw, 54px);
}

.hero-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 440px);
  gap: clamp(32px, 6vw, 78px);
}

.hero-copy {
  max-width: 740px;
}

.hero-section h1 {
  max-width: 720px;
  font-size: clamp(3.1rem, 6.2vw, 5.7rem);
  line-height: 1;
}

.hero-subtitle {
  max-width: 520px;
  margin-top: 16px;
  font-size: clamp(1rem, 1.18vw, 1.14rem);
}

.hero-actions {
  margin-top: 24px;
}

.trust-badges {
  max-width: 620px;
  margin-top: 22px;
}

.trust-badges span {
  min-height: 30px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.live-bbq-panel {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  padding: clamp(20px, 2.6vw, 28px);
  background:
    linear-gradient(180deg, rgba(27, 31, 32, 0.985), rgba(16, 18, 19, 0.985));
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-muted {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.status-badge {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(243, 218, 179, 0.94);
  background: rgba(214, 163, 95, 0.08);
  border: 1px solid rgba(214, 163, 95, 0.28);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.panel-score {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.panel-score span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compact-panel-score strong {
  color: rgba(243, 239, 232, 0.98);
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.panel-empty {
  margin: 0;
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.panel-metrics {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.panel-metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.panel-metrics div:last-child {
  border-bottom: 0;
}

.panel-metrics span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-metrics strong {
  margin: 0;
  color: rgba(243, 239, 232, 0.96);
  font-size: 1.02rem;
  line-height: 1.2;
  text-align: right;
}

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

  .live-bbq-panel {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .hero-section h1 {
    font-size: clamp(2.55rem, 12vw, 3.65rem);
  }

  .trust-badges {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-topline,
  .panel-score,
  .panel-metrics div {
    gap: 12px;
  }
}

/* Premium uitnodiging-formulier in de resultaatkaart. */
.invite-form {
  width: min(100%, 520px);
  margin: 18px auto 0;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

.invite-form p {
  margin: 0 0 10px;
  color: rgba(243, 239, 232, 0.72);
  font-size: 0.92rem;
}

.invite-form input {
  width: 100%;
  max-width: none;
  margin: 0 0 12px;
  background: #101214;
  border-color: rgba(255, 255, 255, 0.10);
}

.invite-form .btn {
  width: 100%;
  margin: 0;
}

/* Moderne planner/wizard polish. Houdt bestaande IDs en selectie-classes intact. */
.planner-card {
  padding: clamp(18px, 2.8vw, 30px);
  background: linear-gradient(180deg, rgba(27, 31, 32, 0.98), rgba(15, 17, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.planner-card::before,
.planner-card::after {
  display: none !important;
}

.planner-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
}

.planner-steps .progress-item {
  min-height: 42px;
  justify-content: center;
  padding: 9px 8px;
  border-radius: 12px;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.planner-steps .progress-item.done::before {
  content: "\2713";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 999px;
  color: #101214;
  background: rgba(243, 218, 179, 0.92);
  font-size: 0.72rem;
  font-weight: 900;
}

.planner-workbench {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.setup-summary {
  position: sticky;
  top: 86px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.setup-summary h3 {
  margin: 0 0 14px;
  color: rgba(243, 239, 232, 0.95);
  font-size: 1rem;
}

.setup-summary .eyebrow {
  margin-bottom: 6px;
  font-size: 0.68rem;
}

.setup-summary dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.setup-summary dl div {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.setup-summary dt {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.setup-summary dd {
  margin: 0;
  color: rgba(243, 239, 232, 0.92);
  font-size: 0.93rem;
  font-weight: 700;
}

.planner-flow {
  min-width: 0;
}

.planner-flow .wizard-viewport {
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
}

.planner-flow .flow-section,
.planner-flow .card-section {
  padding: clamp(18px, 2.8vw, 30px);
}

.planner-flow .flow-label,
.planner-flow .section-title {
  margin-bottom: 6px;
  color: rgba(243, 239, 232, 0.95);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}

.planner-flow .flow-sub {
  margin-top: 18px;
  font-size: 1rem;
}

.planner-flow .flow-hint,
.planner-flow .section-subtitle {
  max-width: 560px;
  margin: 0 auto 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.94rem;
}

#step-locatie input,
#step-tijd input[type="time"] {
  max-width: 420px;
  min-height: 52px;
  border-radius: 12px;
}

#step-locatie #checkBtn,
#step-tijd #showAdviceBtn {
  min-width: min(100%, 220px);
}

#step-bbq .grid,
#step-methode .grid,
#step-aansteken .grid,
#step-accessoires .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: stretch;
  justify-items: stretch;
}

#step-bbq .bbq-type,
#step-methode .methode,
#step-aansteken .aansteek-methode,
#step-accessoires .accessoire {
  position: relative;
  width: 100% !important;
  min-height: 132px;
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: none;
  transform: none !important;
  cursor: pointer;
}

#step-bbq .bbq-type:hover,
#step-methode .methode:hover,
#step-aansteken .aansteek-methode:hover,
#step-accessoires .accessoire:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(201, 133, 75, 0.36);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

#step-bbq .bbq-type.selected,
#step-methode .methode.selected,
#step-aansteken .aansteek-methode.selected,
#step-accessoires .accessoire.selected {
  background: rgba(201, 133, 75, 0.10);
  border-color: rgba(201, 133, 75, 0.62);
  box-shadow: inset 0 0 0 1px rgba(201, 133, 75, 0.12);
}

#step-bbq .bbq-type.selected::after,
#step-methode .methode.selected::after,
#step-aansteken .aansteek-methode.selected::after,
#step-accessoires .accessoire.selected::after {
  content: "\2713";
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #101214;
  background: rgba(243, 218, 179, 0.94);
  font-size: 0.8rem;
  font-weight: 900;
}

#step-bbq .flip-card,
#step-methode .flip-card,
#step-aansteken .flip-card,
#step-accessoires .flip-card {
  perspective: none;
}

#step-bbq .flip-inner,
#step-methode .flip-inner,
#step-aansteken .flip-inner,
#step-accessoires .flip-inner,
#step-bbq .bbq-type .flip-inner,
#step-methode .methode .flip-inner,
#step-aansteken .aansteek-methode .flip-inner,
#step-accessoires .accessoire .flip-inner {
  position: static;
  display: grid;
  gap: 8px;
  height: auto !important;
  min-height: 0 !important;
  transform: none !important;
  transition: none;
}

#step-bbq .flip-front,
#step-bbq .flip-back,
#step-methode .flip-front,
#step-methode .flip-back,
#step-aansteken .flip-front,
#step-aansteken .flip-back,
#step-accessoires .flip-front,
#step-accessoires .flip-back {
  position: static;
  inset: auto;
  display: block;
  padding: 0;
  text-align: left;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  backface-visibility: visible;
}

#step-bbq .flip-front h4,
#step-methode .flip-front h4,
#step-aansteken .flip-front h4,
#step-accessoires .flip-front h4 {
  justify-content: flex-start;
  margin: 0 30px 6px 0;
  color: rgba(243, 239, 232, 0.96);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

#step-bbq .flip-back h4,
#step-methode .flip-back h4,
#step-aansteken .flip-back h4,
#step-accessoires .flip-back h4 {
  display: none;
}

#step-bbq .flip-back p,
#step-methode .flip-back p,
#step-aansteken .flip-back p,
#step-accessoires .flip-back p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.45;
}

#step-methode .temp,
#step-accessoires .flip-front .stars {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(243, 218, 179, 0.9);
  background: rgba(201, 133, 75, 0.09);
  border: 1px solid rgba(201, 133, 75, 0.18);
  font-size: 0.76rem;
  font-weight: 800;
}

#step-bbq .bbq-type::before,
#step-aansteken .aansteek-methode::before {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  color: rgba(243, 218, 179, 0.9);
  background: rgba(201, 133, 75, 0.09);
  border: 1px solid rgba(201, 133, 75, 0.18);
  font-size: 0.74rem;
  font-weight: 800;
}

#step-bbq .bbq-type[data-bbq="houtskool"]::before { content: "\00B1 45 min basis"; }
#step-bbq .bbq-type[data-bbq="kogel"]::before { content: "\00B1 50 min basis"; }
#step-bbq .bbq-type[data-bbq="kamado"]::before { content: "\00B1 75 min basis"; }
#step-bbq .bbq-type[data-bbq="gas"]::before { content: "\00B1 15 min basis"; }
#step-bbq .bbq-type[data-bbq="elektrisch"]::before { content: "\00B1 10 min basis"; }
#step-bbq .bbq-type[data-bbq="pellet"]::before { content: "\00B1 30 min basis"; }
#step-bbq .bbq-type[data-bbq="smoker"]::before { content: "\00B1 90 min basis"; }
#step-bbq .bbq-type[data-bbq="tafel"]::before { content: "\00B1 10 min basis"; }
#step-bbq .bbq-type[data-bbq="plancha"]::before { content: "\00B1 20 min basis"; }

#step-aansteken .aansteek-methode[data-aansteek="gun"]::before { content: "Snelste start"; }
#step-aansteken .aansteek-methode[data-aansteek="starter"]::before { content: "Veel controle"; }
#step-aansteken .aansteek-methode[data-aansteek="wokkel"]::before { content: "Rustige start"; }
#step-aansteken .aansteek-methode[data-aansteek="blokjes"]::before { content: "Klassiek"; }

#aansteekPlekkenGroup {
  width: min(100%, 520px);
  margin: 18px auto 0;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

#aansteekWaarde {
  margin-top: 12px;
  color: rgba(243, 239, 232, 0.84);
  font-weight: 800;
}

#output .advies-card {
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(27, 31, 32, 0.98), rgba(16, 18, 19, 0.98));
}

#output .advies-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#output .advies-detail {
  padding: 15px;
  text-align: left;
}

@media (max-width: 980px) {
  .planner-workbench {
    grid-template-columns: 1fr;
  }

  .setup-summary {
    position: static;
    order: -1;
  }

  .setup-summary dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }
}

@media (max-width: 768px) {
  .planner-card {
    padding: 14px;
  }

  .planner-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .planner-steps .progress-item {
    min-height: 38px;
    font-size: 0.72rem;
  }

  .planner-flow .flow-section,
  .planner-flow .card-section {
    padding: 18px 14px;
  }

  .setup-summary dl,
  #output .advies-detail-grid {
    grid-template-columns: 1fr;
  }

  #step-bbq .grid,
  #step-methode .grid,
  #step-aansteken .grid,
  #step-accessoires .grid {
    grid-template-columns: 1fr;
  }
}

/* Planner UX pass: duidelijker stapmoment, compactere summary en minder nested gevoel. */
.compact-checker-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: clamp(18px, 3vw, 30px);
  padding: clamp(20px, 3vw, 28px);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(27, 31, 32, 0.96), rgba(18, 21, 22, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.compact-checker-intro h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 3.4vw, 2.65rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.06;
}

.compact-checker-intro p:not(.eyebrow) {
  display: block;
  max-width: 610px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.6;
}

.checker-intro-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 360px;
}

.checker-intro-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(243, 218, 179, 0.88);
  background: rgba(201, 133, 75, 0.075);
  border: 1px solid rgba(201, 133, 75, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
}

.planner-card {
  border-radius: 18px;
  border-top-color: rgba(255, 255, 255, 0.085);
}

.planner-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.step-eyebrow {
  margin: 0 0 7px;
  color: rgba(201, 133, 75, 0.94);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-header h2 {
  margin: 0;
  color: rgba(243, 239, 232, 0.98);
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.planner-header p:not(.step-eyebrow) {
  max-width: 620px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.98rem;
}

.planner-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 22px;
  padding: 0;
}

.planner-progress::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 17px;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
}

.planner-progress-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 54px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
  box-shadow: none !important;
}

.planner-progress-step span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.54);
  background: #151819;
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.planner-progress-step.is-active {
  color: rgba(243, 239, 232, 0.95);
}

.planner-progress-step.is-active span {
  color: #101214;
  background: #c9854b;
  border-color: rgba(201, 133, 75, 0.76);
}

.planner-progress-step.is-complete {
  color: rgba(243, 239, 232, 0.78);
}

.planner-progress-step.is-complete span {
  font-size: 0;
  color: #101214;
  background: rgba(243, 218, 179, 0.94);
  border-color: rgba(243, 218, 179, 0.94);
}

.planner-progress-step.is-complete span::before {
  content: "\2713";
  font-size: 0.8rem;
  font-weight: 950;
}

.planner-progress-step.is-disabled {
  opacity: 0.58;
}

.planner-workbench {
  grid-template-columns: minmax(220px, 0.29fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}

.planner-summary {
  padding: 16px;
}

.planner-summary h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 800;
}

.planner-summary dl div {
  padding: 10px 0;
}

.planner-summary-row dd {
  color: rgba(255, 255, 255, 0.44);
  font-weight: 650;
}

.planner-summary-row.is-filled dd {
  color: rgba(243, 239, 232, 0.94);
  font-weight: 800;
}

.planner-flow .wizard-viewport {
  border: 0;
  background: transparent;
}

.planner-flow .flow-section,
.planner-flow .card-section {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.024);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.planner-flow .flow-section::before,
.planner-flow .card-section::before {
  display: block;
  margin: 0 0 9px;
  color: rgba(201, 133, 75, 0.94);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#step-locatie::before { content: "Stap 1"; }
#step-bbq::before { content: "Stap 2"; }
#step-gerecht::before,
#step-accessoires::before,
#step-methode::before { content: "Stap 3"; }
#step-aansteken::before { content: "Stap 4"; }
#step-tijd::before { content: "Stap 5"; }

.planner-flow .flow-label,
.planner-flow .section-title {
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 2.7vw, 2rem);
  font-weight: 820;
}

.planner-flow .flow-hint,
.planner-flow .section-subtitle {
  margin-bottom: 16px;
}

.input-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(100%, 620px);
  margin: 18px auto 0;
}

.input-action-row input {
  max-width: none !important;
  margin: 0 !important;
}

.input-action-row .btn {
  min-width: 150px;
  min-height: 52px;
  margin: 0;
}

.form-hint {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.50);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .planner-flow {
    order: 1;
  }

  .setup-summary {
    order: 2;
  }

  .setup-summary dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .compact-checker-intro {
    grid-template-columns: 1fr;
    margin-top: 4px;
    padding: 18px;
  }

  .checker-intro-meta {
    justify-content: flex-start;
    max-width: none;
  }

  .planner-header {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .planner-progress {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .planner-progress::before {
    left: 32px;
    right: 32px;
  }

  .planner-progress-step {
    min-width: 58px;
    font-size: 0.7rem;
  }

  .planner-flow .flow-section,
  .planner-flow .card-section {
    padding: 18px 14px;
  }

  .input-action-row {
    grid-template-columns: 1fr;
  }

  .input-action-row .btn {
    width: 100%;
  }

  .setup-summary dl {
    grid-template-columns: 1fr;
  }
}

.uitnodiging-container {
  margin-top: 28px;
  position: relative;
  overflow: hidden;
}

.uitnodiging-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(201, 128, 72, 0.13), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(255, 77, 0, 0.08), transparent 38%);
  pointer-events: none;
}

.uitnodiging-header,
.uitnodiging-grid {
  position: relative;
  z-index: 1;
}

.uitnodiging-header {
  max-width: 680px;
  margin: 0 auto 22px;
  text-align: center;
}

.uitnodiging-header h2 {
  margin: 4px 0 10px;
}

.uitnodiging-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 22px;
  align-items: start;
}

.uitnodiging-form {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.uitnodiging-form label {
  color: rgba(244, 244, 243, 0.78);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-top: 4px;
}

.uitnodiging-form input {
  max-width: none;
}

.uitnodiging-form button {
  margin-top: 8px;
  width: 100%;
}

.uitnodiging-resultaat {
  min-height: 100%;
}

.uitnodiging-card {
  padding: 20px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(28, 28, 28, 0.86), rgba(12, 12, 12, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 44px rgba(0, 0, 0, 0.42);
}

.uitnodiging-score {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.uitnodiging-score span {
  color: rgba(244, 244, 243, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

.uitnodiging-score strong {
  color: #f4f4f3;
  font-size: 2.4rem;
  line-height: 1;
}

.uitnodiging-weer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.uitnodiging-weer span {
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(244, 244, 243, 0.84);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
}

#uitnodigingTekst {
  width: 100%;
  min-height: 190px;
  resize: vertical;
  margin: 12px 0 14px;
  padding: 14px;
  border-radius: 14px;
  color: rgba(244, 244, 243, 0.9);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-body);
  line-height: 1.55;
}

#kopieerUitnodiging {
  width: 100%;
}

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

  .uitnodiging-score strong {
    font-size: 2rem;
  }
}

/* Companion closing section: one useful, integrated block instead of loose content cards. */
.bbq-companion-section {
  padding-top: clamp(34px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 96px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.companion-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(24, 26, 25, 0.9), rgba(10, 12, 12, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.companion-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.companion-intro h2 {
  margin: 0;
  max-width: 460px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.98;
  color: rgba(243, 239, 232, 0.98);
}

.companion-intro p:not(.eyebrow) {
  max-width: 440px;
  margin: 14px 0 22px;
  color: rgba(255, 255, 255, 0.66);
}

.companion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.companion-grid article {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.companion-grid span {
  color: rgba(214, 163, 95, 0.92);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.companion-grid strong {
  margin-top: 18px;
  color: rgba(243, 239, 232, 0.96);
  font-size: 1.08rem;
  line-height: 1.25;
}

.companion-grid p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.companion-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 20px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.companion-footer strong {
  color: rgba(243, 239, 232, 0.96);
  font-size: 1.02rem;
}

.companion-footer p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

body.light-mode .companion-panel,
body.light-mode .companion-grid article {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(112, 79, 49, 0.16);
}

body.light-mode .companion-intro h2,
body.light-mode .companion-grid strong,
body.light-mode .companion-footer strong {
  color: #2f241d;
}

body.light-mode .companion-intro p:not(.eyebrow),
body.light-mode .companion-grid p,
body.light-mode .companion-footer p {
  color: rgba(47, 36, 29, 0.72);
}

@media (max-width: 900px) {
  .companion-panel {
    grid-template-columns: 1fr;
  }

  .companion-grid {
    grid-template-columns: 1fr;
  }

  .companion-grid article {
    min-height: 0;
  }

  .companion-footer {
    display: block;
  }

  .companion-footer p {
    margin-top: 8px;
  }
}

/* Uniform page rhythm between the main planner blocks. */
.checker-wrapper {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.compact-checker-intro {
  margin-bottom: clamp(18px, 2.4vw, 28px) !important;
}

.flow-container,
.uitnodiging-container,
.bbq-companion-section {
  margin-top: 0 !important;
}

.uitnodiging-container {
  border-radius: var(--radius) !important;
}

.bbq-companion-section {
  padding-top: 0 !important;
  padding-bottom: clamp(34px, 5vw, 58px) !important;
  border-top: 0 !important;
}

.companion-panel {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .checker-wrapper {
    gap: 18px;
  }

  .compact-checker-intro {
    margin-bottom: 16px !important;
  }

  .bbq-companion-section {
    padding-bottom: 34px !important;
  }
}

/* Privacy and cookie UI */
.cookie-banner {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 160;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(27, 31, 32, 0.94), rgba(12, 14, 14, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(243, 239, 232, 0.96);
  font-weight: 900;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 20px;
}

.privacy-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 4, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.privacy-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
}

.privacy-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: rgba(243, 239, 232, 0.98);
}

.privacy-panel > p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.66);
}

.privacy-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.privacy-grid article {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.privacy-grid h3 {
  margin: 0 0 8px;
  color: rgba(243, 239, 232, 0.96);
  font-size: 1rem;
}

.privacy-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.footer-links {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-left: 14px;
}

.footer-links button {
  border: 0;
  padding: 0;
  color: rgba(243, 218, 179, 0.86);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.footer-links button:hover,
.footer-links button:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.privacy-modal-open {
  overflow: hidden;
}

body.light-mode .cookie-banner,
body.light-mode .privacy-panel,
body.light-mode .privacy-grid article {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(112, 79, 49, 0.16);
}

body.light-mode .cookie-banner strong,
body.light-mode .privacy-panel h2,
body.light-mode .privacy-grid h3 {
  color: #2f241d;
}

body.light-mode .cookie-banner p,
body.light-mode .privacy-panel > p:not(.eyebrow),
body.light-mode .privacy-grid p {
  color: rgba(47, 36, 29, 0.72);
}

@media (max-width: 720px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    display: flex;
    margin: 10px 0 0;
  }
}

/* Professional polish for privacy and cookie UI. */
.cookie-banner {
  grid-template-columns: minmax(0, 1fr) auto !important;
  padding: 16px 18px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(22, 25, 25, 0.96), rgba(10, 12, 12, 0.98)) !important;
  border-color: rgba(255, 255, 255, 0.085) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.46) !important;
}

.cookie-banner strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.cookie-banner p {
  max-width: 720px;
  font-size: 0.94rem;
}

.cookie-actions .btn {
  min-height: 40px;
  padding-inline: 18px;
  white-space: nowrap;
}

.privacy-panel {
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(22, 25, 25, 0.98), rgba(9, 11, 11, 0.98)) !important;
  border-color: rgba(255, 255, 255, 0.085) !important;
}

.privacy-panel .eyebrow {
  margin-bottom: 10px;
}

.privacy-panel h2 {
  font-family: var(--font-body) !important;
  font-size: clamp(1.8rem, 3vw, 2.35rem) !important;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.privacy-panel > p:not(.eyebrow) {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.65;
}

.privacy-close {
  top: 18px !important;
  right: 18px !important;
  width: 38px !important;
  height: 38px !important;
  font-size: 1.25rem !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.privacy-grid {
  gap: 10px !important;
  margin-top: 24px !important;
}

.privacy-grid article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 14px;
  padding: 18px !important;
  background: rgba(255, 255, 255, 0.028) !important;
}

.privacy-grid article span {
  grid-row: span 2;
  color: rgba(214, 163, 95, 0.92);
  font-size: 0.82rem;
  font-weight: 900;
}

.privacy-grid h3 {
  margin: 0 !important;
  font-size: 0.98rem !important;
}

.privacy-grid p {
  margin-top: 6px !important;
  font-size: 0.93rem;
}

.footer-links button {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62) !important;
}

.footer-links button:hover,
.footer-links button:focus-visible {
  color: rgba(243, 218, 179, 0.95) !important;
}

@media (max-width: 720px) {
  .cookie-banner {
    padding: 16px !important;
  }

  .cookie-actions {
    grid-template-columns: 1fr !important;
  }

  .privacy-panel {
    max-height: 86vh;
    padding: 22px 18px !important;
  }

  .privacy-grid article {
    grid-template-columns: 30px 1fr;
    padding: 16px !important;
  }
}

/* Cookie preference center */
.cookie-actions {
  flex-wrap: wrap;
}

.cookie-actions .btn {
  min-width: 108px;
}

.privacy-preferences {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-preferences h3 {
  margin: 0 0 12px;
  color: rgba(243, 239, 232, 0.96);
  font-size: 1.05rem;
}

.privacy-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  cursor: pointer;
}

.privacy-toggle:first-of-type {
  border-top: 0;
}

.privacy-toggle input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.privacy-toggle strong {
  display: block;
  color: rgba(243, 239, 232, 0.96);
  font-size: 0.98rem;
}

.privacy-toggle small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
}

.privacy-toggle.is-required {
  cursor: not-allowed;
  opacity: 0.82;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

body.light-mode .privacy-preferences h3,
body.light-mode .privacy-toggle strong {
  color: #2f241d;
}

body.light-mode .privacy-toggle small {
  color: rgba(47, 36, 29, 0.68);
}

body.light-mode .privacy-toggle {
  border-top-color: rgba(112, 79, 49, 0.14);
}

@media (max-width: 720px) {
  .cookie-actions {
    grid-template-columns: 1fr 1fr !important;
  }

  .cookie-actions .btn,
  .privacy-actions .btn {
    width: 100%;
  }

  .privacy-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Final privacy modal refinement: tighter, cleaner, professional. */
.privacy-panel.card {
  width: min(820px, calc(100vw - 28px)) !important;
  max-height: min(84vh, 720px) !important;
  padding: 28px !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(23, 25, 25, 0.98), rgba(10, 12, 12, 0.99)) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62) !important;
}

.privacy-panel.card::before,
.privacy-panel.card::after,
.privacy-grid article::before,
.privacy-preferences::before {
  display: none !important;
  content: none !important;
}

.privacy-close {
  top: 18px !important;
  right: 18px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  font-size: 1.25rem !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.privacy-panel .eyebrow {
  margin: 0 54px 8px 0 !important;
  font-size: 0.76rem !important;
}

.privacy-panel h2 {
  margin-right: 54px !important;
  font-size: clamp(1.9rem, 3vw, 2.55rem) !important;
}

.privacy-panel > p:not(.eyebrow) {
  max-width: 660px !important;
  margin: 10px 54px 22px 0 !important;
  font-size: 0.98rem !important;
  color: rgba(255, 255, 255, 0.68) !important;
}

.privacy-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.privacy-grid article {
  display: grid !important;
  grid-template-columns: 42px minmax(150px, 180px) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 16px !important;
  min-height: 0 !important;
  padding: 16px 18px !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.022) !important;
}

.privacy-grid article:first-child {
  border-top: 0 !important;
}

.privacy-grid article span {
  grid-row: auto !important;
  color: rgba(214, 163, 95, 0.92) !important;
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
}

.privacy-grid h3 {
  margin: 0 !important;
  color: rgba(243, 239, 232, 0.96) !important;
  font-size: 0.98rem !important;
  line-height: 1.45 !important;
}

.privacy-grid p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.93rem !important;
  line-height: 1.55 !important;
}

.privacy-preferences {
  margin-top: 18px !important;
  padding: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.025) !important;
}

.privacy-preferences h3 {
  margin: 0 0 10px !important;
  font-size: 1rem !important;
}

.privacy-toggle {
  padding: 12px 0 !important;
}

.privacy-toggle strong {
  font-size: 0.95rem !important;
}

.privacy-toggle small {
  font-size: 0.88rem !important;
}

.privacy-actions {
  margin-top: 12px !important;
}

@media (max-width: 720px) {
  .privacy-modal {
    padding: 12px !important;
    align-items: end !important;
  }

  .privacy-panel.card {
    width: 100% !important;
    max-height: 88vh !important;
    padding: 22px 16px !important;
    border-radius: 18px 18px 0 0 !important;
  }

  .privacy-panel .eyebrow,
  .privacy-panel h2,
  .privacy-panel > p:not(.eyebrow) {
    margin-right: 48px !important;
  }

  .privacy-grid article {
    grid-template-columns: 34px 1fr !important;
    gap: 4px 12px !important;
    padding: 14px !important;
  }

  .privacy-grid p {
    grid-column: 2 !important;
  }

  .privacy-preferences {
    padding: 14px !important;
  }
}
