/* 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;
  }
}

/* =========================================
   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);
}

@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;
  }
}
