/* Deye-HomeMonitor website theme: the same palette as the MAUI app (Resources/Styles/Colors.xaml).
   Colours live only here as custom properties; the rest of the file references them. */
:root {
  --navy: #06122E;
  --navy-light: #0B1E4F;
  --blue: #0050FF;
  --azure: #00A3FF;
  --cyan: #00E5FF;
  --accent: #FFB547;
  --text: #FFFFFF;
  --text-2: #9FB4D9;
  --muted: #6F84A8;
  --success: #3DDC97;
  --danger: #FF6B6B;
  --card: rgba(11, 30, 79, .8);
  --card-solid: #0B1E4F;
  --card-border: rgba(0, 163, 255, .2);
  --card-border-strong: rgba(0, 163, 255, .45);
  --input: #14274F;
  --gradient: linear-gradient(135deg, #0050FF 0%, #00C8FF 100%);
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --max: 1100px;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/OpenSans-Semibold.ttf") format("truetype");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: "Open Sans", "Segoe UI", Roboto, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--azure); }
a:hover { color: var(--cyan); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 17px; }
p { margin: 0 0 14px; }
code {
  font-family: Consolas, "Courier New", monospace;
  background: rgba(0, 163, 255, .12);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .92em;
}
.muted { color: var(--muted); font-size: 14px; }
.version { font-family: Consolas, "Courier New", monospace; color: var(--text-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Buttons ---- */
.btn-primary, .btn-ghost, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 11px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 80, 255, .35);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0, 163, 255, .45); }
.btn-primary .muted { color: rgba(255, 255, 255, .8); font-size: 13px; }
.btn-ghost {
  background: rgba(0, 163, 255, .08);
  color: var(--text);
  border-color: var(--card-border-strong);
}
.btn-ghost:hover { color: var(--text); border-color: var(--cyan); background: rgba(0, 229, 255, .12); }
.btn-danger { background: rgba(255, 107, 107, .12); color: var(--danger); border-color: rgba(255, 107, 107, .45); }
.btn-danger:hover { background: rgba(255, 107, 107, .25); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 18, 46, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
.header-row { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.header-row-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 6px;
}
.header-row-nav { display: flex; justify-content: center; padding-bottom: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 19px; justify-self: start; }
.logo img { display: block; }
.logo-dash { color: var(--azure); }
.header-auth { display: flex; gap: 8px; justify-self: center; }
.lang-switch { display: flex; gap: 6px; justify-self: end; }
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
}
.lang-switch a.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.lang-switch a:not(.active):hover { border-color: var(--cyan); color: var(--cyan); }
.main-nav { display: flex; gap: 20px; flex-wrap: wrap; row-gap: 6px; justify-content: center; }
.main-nav a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.main-nav a:hover { color: var(--cyan); }

/* Account menu (logged in) */
.user-menu { position: relative; justify-self: center; }
.user-menu-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--card-border-strong);
  background: var(--card);
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.user-menu-toggle::-webkit-details-marker { display: none; }
.user-menu-toggle:hover { border-color: var(--cyan); }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.user-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.user-menu-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 220px;
  background: var(--card-solid);
  border: 1px solid var(--card-border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 60;
}
.user-menu-divider { height: 1px; background: var(--card-border); margin: 6px 4px; }
.user-menu-heading { padding: 6px 10px 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.user-menu-dropdown a, .user-menu-dropdown button {
  display: block; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: 8px; border: none; background: none;
  font: inherit; font-size: 13px; text-decoration: none; color: var(--text); cursor: pointer;
}
.user-menu-dropdown a:hover, .user-menu-dropdown button:hover { background: rgba(0, 163, 255, .12); color: var(--cyan); }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--card-border); }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/bg/hero-1920.webp") center 35% / cover no-repeat;
  opacity: .55;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 18, 46, .97) 0%, rgba(6, 18, 46, .85) 45%, rgba(6, 18, 46, .55) 100%),
              linear-gradient(180deg, rgba(6, 18, 46, .2) 0%, rgba(6, 18, 46, .95) 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 20px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
}
.hero-kicker { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin-bottom: 10px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); }
.hero-lead { font-size: 17px; color: var(--text-2); max-width: 540px; }
.hero-points { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.hero-points li { padding-left: 26px; position: relative; color: var(--text); font-size: 15px; }
.hero-points li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(0, 163, 255, .18);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.hero-shot { margin: 0; }
.window-frame {
  background: var(--card-solid);
  border: 1px solid var(--card-border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow), 0 0 80px rgba(0, 163, 255, .18);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg);
}
.window-bar { display: flex; gap: 6px; padding: 9px 12px; background: rgba(0, 0, 0, .35); border-bottom: 1px solid var(--card-border); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); opacity: .6; }
.window-bar span:first-child { background: var(--danger); }
.window-bar span:nth-child(2) { background: var(--accent); }
.window-bar span:nth-child(3) { background: var(--success); }
.window-frame img { display: block; width: 100%; height: auto; }

/* ---- Sections ---- */
main { display: block; }
.section { max-width: var(--max); margin: 0 auto; padding: 56px 20px; border-bottom: 1px solid var(--card-border); }
.section:last-of-type { border-bottom: none; }
.section-narrow { max-width: 640px; }
.section-lead { color: var(--text-2); font-size: 16px; max-width: 760px; margin-bottom: 26px; }
.section-subheading { margin-top: 40px; }

/* Feature cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 20px 14px;
  transition: border-color .2s ease, transform .2s ease;
}
.feature-card:hover { border-color: var(--card-border-strong); transform: translateY(-2px); }
.feature-card h3 { margin: 12px 0 6px; }
.feature-card p { color: var(--text-2); font-size: 14px; margin: 0; }
.feature-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: rgba(0, 163, 255, .12); }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--azure); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon-pv svg { stroke: var(--accent); }
.feature-icon-battery svg { stroke: var(--success); }
.feature-icon-flows svg, .feature-icon-charts svg { stroke: var(--cyan); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.gallery-item { margin: 0; }
.gallery-open {
  display: block; width: 100%; padding: 0; border: 1px solid var(--card-border);
  border-radius: var(--radius); overflow: hidden; background: var(--card-solid);
  cursor: zoom-in; position: relative;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.gallery-open img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.gallery-open:hover, .gallery-open:focus-visible { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0, 163, 255, .25); outline: none; }
.gallery-open:hover img { transform: scale(1.03); }
.gallery-zoom {
  position: absolute; right: 10px; bottom: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(6, 18, 46, .85); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; opacity: 0; transition: opacity .2s ease;
}
.gallery-open:hover .gallery-zoom { opacity: 1; }
.gallery-item figcaption { padding: 10px 4px 0; font-size: 13px; color: var(--text-2); }

.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(3, 9, 26, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 1000;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox-img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; border: 1px solid var(--card-border-strong); box-shadow: var(--shadow); }
.lightbox-caption { color: var(--text-2); font-size: 14px; margin: 12px 0 0; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%; cursor: pointer; line-height: 1; font-family: inherit;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(0, 163, 255, .35); }
.lightbox-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 26px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 30px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.step { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.step-body h3 { margin: 4px 0 6px; }
.step-body p { margin: 0; font-size: 14px; color: var(--text-2); }
.requirements { background: rgba(0, 163, 255, .06); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px 22px; }
.requirements ul { margin: 0 0 10px; padding-left: 20px; }
.requirements li { margin-bottom: 4px; font-size: 15px; }

/* CTA band */
.cta-band { padding-top: 40px; padding-bottom: 40px; }
.cta-inner {
  background: linear-gradient(135deg, rgba(0, 80, 255, .35), rgba(0, 200, 255, .18));
  border: 1px solid var(--card-border-strong);
  border-radius: 18px;
  padding: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-inner h2 { margin-bottom: 6px; }
.cta-inner p { margin: 0 0 6px; color: var(--text-2); max-width: 620px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Reviews */
.stars { color: var(--accent); letter-spacing: 1px; white-space: nowrap; }
.review-summary { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 16px 0 22px; }
.review-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.review-card header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.review-card time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.review-card p { margin: 0; font-size: 14px; color: var(--text-2); white-space: pre-line; }
.pagination { display: flex; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination .active { min-width: 36px; text-align: center; padding: 6px 8px; border: 1px solid var(--card-border); border-radius: 8px; text-decoration: none; color: var(--text); }
.pagination .active { background: var(--blue); border-color: var(--blue); color: #fff; }
/* Star picker without JavaScript: radios rendered 5..1, row reversed back visually */
.star-input { border: none; padding: 0; margin: 0 0 14px; }
.star-input legend { font-size: 13px; color: var(--text-2); padding: 0; margin-bottom: 4px; }
.star-input-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { font-size: 32px; line-height: 1; color: var(--muted); cursor: pointer; }
.star-input input:checked ~ label, .star-input-row:hover label, .star-input label:hover ~ label { color: var(--accent); }
.star-input-row:hover label:hover ~ label { color: var(--accent); }
.star-input-row:hover label:not(:hover):not(:hover ~ label) { color: var(--muted); }
.star-input input:focus-visible + label { outline: 2px solid var(--cyan); border-radius: 4px; }

/* ---- Forms ---- */
.form-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px; max-width: 560px; }
.form-field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 5px; }
.form-field label { font-size: 13px; color: var(--text-2); }
.form-field input, .form-field textarea, .form-field select, .reject-form input {
  background: var(--input); color: var(--text);
  border: 1px solid var(--card-border-strong); border-radius: 8px;
  padding: 10px 12px; font: inherit; font-size: 15px;
}
.form-field input:focus, .form-field textarea:focus, .reject-form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .18); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field-inline { flex-direction: row; align-items: center; gap: 8px; }
.form-field-inline input { width: 18px; height: 18px; accent-color: var(--blue); }
.form-field-inline label { font-size: 14px; color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.field-hint { font-size: 12px; color: var(--muted); }
.hp-field { position: absolute; left: -9999px; }
.form-success { color: var(--success); font-weight: 600; }
.form-error, .validation-summary-errors { color: var(--danger); font-weight: 600; }
.validation-summary-errors ul { margin: 0 0 12px; padding-left: 18px; }
.validation-summary-valid { display: none; }
.form-warning { color: var(--accent); font-weight: 600; }
.form-footnote { margin-top: 16px; }
.notice { background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .45); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.notice p:last-child { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }

/* Licence page */
.license-card { background: var(--card); border: 1px solid var(--card-border-strong); border-radius: var(--radius); padding: 24px; }
.license-approved { border-color: rgba(61, 220, 151, .5); }
.license-rejected { border-color: rgba(255, 107, 107, .5); }
.license-status-line { font-size: 15px; }
.license-status-label { color: var(--text-2); }
.license-code code { font-size: 24px; font-weight: 700; letter-spacing: 2px; padding: 10px 18px; border-color: var(--card-border-strong); background: rgba(0, 163, 255, .1); }
.note { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--azure); background: rgba(0, 163, 255, .08); border-radius: 0 8px 8px 0; white-space: pre-line; }

/* Downloads */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; }
.download-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.download-card ul { padding-left: 18px; color: var(--text-2); font-size: 14px; margin: 0 0 16px; flex: 1; }
.download-card p { color: var(--text-2); font-size: 14px; }

/* Admin */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); }
.tile:hover { border-color: var(--cyan); color: var(--text); }
.tile-highlight { border-color: var(--accent); }
.tile-value { font-size: 32px; font-weight: 600; color: var(--cyan); }
.tile-highlight .tile-value { color: var(--accent); }
.tile-label { font-size: 13px; color: var(--text-2); }
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--card-border); vertical-align: top; }
.data-table th { background: rgba(0, 163, 255, .08); color: var(--text-2); font-weight: 600; }
.review-text-cell { max-width: 420px; white-space: pre-line; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.admin-actions form { display: flex; gap: 6px; }
.reject-form input { padding: 6px 10px; font-size: 13px; min-width: 200px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); background: var(--accent); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }

/* Legal */
.legal-doc h2 { font-size: 18px; margin: 28px 0 8px; }
.legal-doc .legal-meta { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; font-size: 14px; }
.legal-doc .legal-meta p { margin: 4px 0; }
.legal-doc p, .legal-doc li { font-size: 15px; color: var(--text-2); }
.legal-doc b { color: var(--text); }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.cookie-table th, .cookie-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--card-border); vertical-align: top; }
.cookie-table th { background: rgba(0, 163, 255, .08); color: var(--text-2); }

/* ---- Cookie consent ---- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  padding: 14px 16px;
  background: rgba(11, 30, 79, .97);
  border-top: 1px solid var(--card-border-strong);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .45);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { max-width: var(--max); margin: 0 auto; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-banner-text { flex: 1 1 420px; font-size: 14px; }
.cookie-banner-text strong { display: block; margin-bottom: 2px; }
.cookie-banner-text p { margin: 0; color: var(--text-2); }
.cookie-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-modal {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(3, 9, 26, .8);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal-card {
  position: relative;
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: var(--card-solid);
  border: 1px solid var(--card-border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px;
}
.cookie-modal-card h2 { font-size: 22px; margin-right: 40px; }
.cookie-modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255, 255, 255, .08); color: #fff; font-size: 22px; cursor: pointer; }
.cookie-modal-close:hover { background: rgba(0, 163, 255, .3); }
.cookie-category { border-top: 1px solid var(--card-border); padding: 12px 0; }
.cookie-category-head { display: flex; align-items: center; gap: 10px; }
.cookie-category-head label { font-weight: 600; flex: 1; }
.cookie-category-head input { width: 20px; height: 20px; accent-color: var(--blue); }
.cookie-always { font-size: 12px; color: var(--success); }
.cookie-category p { margin: 6px 0 0; font-size: 13px; color: var(--text-2); }
.cookie-modal-note { margin-top: 12px; }
.cookie-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--card-border); padding: 26px 20px 30px; text-align: center; font-size: 13px; color: var(--muted); background: rgba(0, 0, 0, .25); }
.site-footer p { margin: 0 0 8px; }
.site-footer .sep { margin: 0 6px; opacity: .6; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .muted { max-width: 760px; margin: 10px auto 0; font-size: 12px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  /* minmax(0, …): a plain 1fr lets the 1412 px screenshot blow the column (and the page) wider than the phone */
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding: 44px 20px 40px; }
  .window-frame { transform: none; }
  .hero-shot { order: 2; }
}
@media (max-width: 600px) {
  .header-row-top { grid-template-columns: 1fr auto; }
  .logo { grid-column: 1; grid-row: 1; font-size: 17px; }
  .logo-text { white-space: nowrap; }
  .lang-switch { grid-column: 2; grid-row: 1; justify-self: end; }
  .header-auth, .user-menu { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 13px; }
  .section { padding: 40px 16px; }
  .cta-inner { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 24px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }
  .lightbox-overlay { padding: 12px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions button { flex: 1 1 auto; }
}
