:root {
  --bg: #0b0c10;
  --bg-alt: #151821;
  --card-bg: #1e222d;
  --accent: #ff6a00;
  --text: #f7f7f7;
  --muted: #9ca3af;
  --border: #2b3040;
  --radius-lg: 18px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #151821 0, #05060a 55%, #000 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Layout wrapper */

.page {
  width: 100%;
  max-width: 640px;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .page {
    padding-top: 28px;
    padding-bottom: 32px;
  }
}

/* Header / logo */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 4px;
}

.logo{height:75px;}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: radial-gradient(circle at 30% 0, #2a2f3b 0, #11131a 60%, #05060a 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), var(--shadow-soft);
}

.logo-text-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* Main / cards */

main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  background: linear-gradient(145deg, #1b1f2a 0%, #131620 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 18px;
}

@media (min-width: 640px) {
  .card {
    padding: 18px 20px 20px;
  }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}

.card-body strong {
  color: var(--text);
  font-weight: 500;
}

strong {display: contents;}

/* LISTS IN CARDS */
.card ul {
  margin: 8px 0 12px 0;
  padding-left: 18px; /* nette indent */
}

.card li {
  margin: 4px 0;
  color: var(--text);	
  font-size: 14px;
}

/* LINKS IN LISTS */
.card a {
  color: var(--accent); 
  text-decoration: none;
  font-weight: 500;
}

.card a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.card li {
  list-style: none;
  position: relative;
  padding-left: 14px;
}

.card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 7px;
}

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 10px;
}

.subtitle {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

/* Badge */

.badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(34, 197, 94, 0.08);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
}

/* Helper note */

/* BASIS: gewone tekstblokken, NIET als flex */
.helper-note {
  display: block;
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.5;
  border-radius: 999px;
  
  padding: 7px 11px;
}

/* Specifiek voor de oranje waarschuwing-pill */
.helper-note.note-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(248, 181, 60, 0.06);
  border: 1px solid rgba(248, 181, 60, 0.35);
  color: #fed7aa;
}

.note-warning {
  background: rgba(248, 181, 60, 0.06);
  border: 1px solid rgba(248, 181, 60, 0.35);
  color: #fed7aa;
}

.note-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #facc15);
}

/* Firmware groups */

.firmware-groups {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.firmware-group {
  padding: 9px 10px;
  border-radius: 14px;
  background: radial-gradient(circle at 0 0, #252a38 0, #151821 60%, #10131b 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.group-title {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Radio list styling */

.radios {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.radio-item {
  list-style: none;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease-out, transform 0.1s ease-out,
    box-shadow 0.12s ease-out, border-color 0.12s ease-out;
  border: 1px solid transparent;
}

.radio-label input[type="radio"] {
  accent-color: var(--accent);
}

.radio-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.radio-main {
  font-size: 13px;
  color: var(--text);
}

.radio-sub {
  font-size: 11px;
  color: var(--muted);
}

.radio-label:hover {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(249, 115, 22, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.4);
}

/* Button row / Web install button */

.button-row {
  margin-top: 14px;
  text-align: center;
}

/* Hide until a firmware is selected */
.invisible {
  visibility: hidden;
}

.hidden {
  display: none;
}

/* When install is unsupported, make the button visible so message shows */
esp-web-install-button[install-unsupported] {
  visibility: inherit;
}

/* Footer */

footer {
  margin-top: auto;
  padding: 4px 4px 0;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

footer .accent {
  color: var(--accent);
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

footer a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  font-weight: 400;
}

footer a:hover {
  border-color: rgba(249, 115, 22, 0.7);
}

.dot-sep {
  opacity: 0.6;
}

/* Links general */

a {
  color: #58a6ff;
}

a:hover {
  text-decoration: underline;
}

/* Small screens tweaks */

@media (max-width: 480px) {
  .firmware-group {
    padding: 8px 8px;
  }

  .radio-label {
    padding: 7px 8px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
