:root {
  /* Parameter.png inspired: dark metal UI + crisp dividers + subtle glow */
  --bg0: #0b0d10;
  --bg1: #0f1217;
  --panel: #151922;
  --panel-2: #11151d;
  --line: #2a3140;
  --line-2: #3a4356;
  --text: #e7edf7;
  --muted: #a7b2c6;
  --faint: #7b8597;
  --accent: #45ff88;
  --accent-2: #1fd36a;
  --danger: #ff4d4d;
  --warn: #f6c945;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.35);
  --ring: 0 0 0 3px rgba(69, 255, 136, 0.18);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Avenir", "Helvetica Neue", "SF Pro Text", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg1);
  background:
    radial-gradient(86vw 58vh at -8% -14%, rgba(69, 255, 136, 0.12), transparent 62%),
    radial-gradient(74vw 82vh at 108% 16%, rgba(246, 201, 69, 0.06), transparent 58%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed, fixed, fixed;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  body {
    /* Mobile Safari performs better without fixed background attachment. */
    background-attachment: scroll, scroll, scroll;
  }
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 18, 23, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-inner strong {
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.site-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a,
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 0;
  padding: 6px 8px;
  border-radius: 8px;
}

nav a:hover,
.lang-switch a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.main-nav-group {
  position: relative;
  padding-bottom: 8px;
  margin-bottom: -8px;
}

.main-nav-group > summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  text-decoration: none;
  margin-right: 0;
  padding: 6px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.main-nav-group > summary::-webkit-details-marker {
  display: none;
}

.main-nav-group > summary::after {
  content: "▾";
  font-size: 11px;
  color: var(--faint);
}

.main-nav-group > summary:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.main-nav-group > summary.is-active {
  color: var(--text);
  background: rgba(69, 255, 136, 0.12);
  box-shadow: inset 0 0 0 1px rgba(69, 255, 136, 0.25);
}

.main-nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 120;
  min-width: 220px;
  display: none;
  padding: 8px;
  border: 1px solid rgba(58, 67, 86, 0.85);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(22, 28, 39, 0.97), rgba(15, 19, 27, 0.95));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.main-nav-group[open] > .main-nav-menu {
  display: grid;
  gap: 6px;
}

.main-nav-group:hover > .main-nav-menu,
.main-nav-group:focus-within > .main-nav-menu {
  display: grid;
  gap: 6px;
}

.main-nav-group:hover > summary::after,
.main-nav-group:focus-within > summary::after {
  transform: rotate(180deg);
  color: var(--text);
}

.main-nav-group:hover > summary,
.main-nav-group:focus-within > summary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (hover: none) and (pointer: coarse) {
  .main-nav-group {
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

.main-nav-menu a {
  margin: 0;
  display: block;
  border: 1px solid rgba(64, 75, 96, 0.65);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 10px;
}

.main-nav-menu a:hover,
.main-nav-menu a:focus-visible {
  color: #07110a;
  border-color: rgba(69, 255, 136, 0.5);
  background: linear-gradient(180deg, rgba(69, 255, 136, 0.95), rgba(31, 211, 106, 0.92));
  outline: none;
}

.main-nav-menu a.is-active {
  color: #07110a;
  border-color: rgba(69, 255, 136, 0.5);
  background: linear-gradient(180deg, rgba(69, 255, 136, 0.95), rgba(31, 211, 106, 0.92));
}

.lang-switch a.is-active {
  color: #07110a;
  background: linear-gradient(180deg, rgba(69, 255, 136, 0.95), rgba(31, 211, 106, 0.92));
  border: 1px solid rgba(69, 255, 136, 0.35);
  box-shadow: 0 8px 16px rgba(31, 211, 106, 0.16);
}

.admin-subnav-wrap {
  border-bottom: 1px solid rgba(58, 67, 86, 0.7);
  background: linear-gradient(180deg, rgba(11, 13, 16, 0.92), rgba(11, 13, 16, 0.74));
}

.admin-subnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  overflow: visible;
}

.admin-subnav a,
.admin-nav-group > summary {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(58, 67, 86, 0.9);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(21, 25, 34, 0.8);
}

.admin-subnav a:hover,
.admin-nav-group > summary:hover {
  color: var(--text);
  border-color: rgba(83, 95, 120, 0.95);
}

.admin-subnav a.is-active,
.admin-nav-group > summary.is-active {
  color: #07110a;
  border-color: rgba(69, 255, 136, 0.5);
  background: linear-gradient(180deg, rgba(69, 255, 136, 0.95), rgba(31, 211, 106, 0.92));
}

.admin-nav-group {
  position: relative;
  flex: 0 0 auto;
}

.admin-nav-group > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-nav-group > summary::-webkit-details-marker {
  display: none;
}

.admin-nav-group > summary::after {
  content: "▾";
  font-size: 12px;
  color: var(--faint);
  transition: transform 0.15s ease;
}

.admin-nav-group[open] > summary::after {
  transform: rotate(180deg);
}

.admin-nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  padding: 10px;
  min-width: 220px;
  display: none;
  gap: 6px;
  border: 1px solid rgba(58, 67, 86, 0.8);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(22, 28, 39, 0.96), rgba(15, 19, 27, 0.94));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.admin-nav-group[open] > .admin-nav-menu {
  display: grid;
}

.admin-nav-menu a {
  border-radius: 9px;
  border: 1px solid rgba(64, 75, 96, 0.65);
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 10px;
}

.admin-breadcrumb-wrap {
  border-bottom: 1px solid rgba(58, 67, 86, 0.55);
  background: linear-gradient(180deg, rgba(9, 12, 18, 0.85), rgba(9, 12, 18, 0.6));
}

.admin-breadcrumb {
  min-height: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
  color: var(--faint);
}

.admin-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.admin-breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-breadcrumb .crumb-sep {
  color: rgba(152, 165, 186, 0.7);
}

.admin-breadcrumb .is-current {
  color: var(--text);
  font-weight: 620;
}

main.container {
  padding: 22px 0 46px;
}

h1, h2 {
  margin: 0 0 10px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

p { color: var(--muted); line-height: 1.45; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  margin: 12px 0;
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.card-feedback {
  /* Slightly bluer "metal" tone to visually separate the feedback section */
  background:
    radial-gradient(700px 240px at 25% 0%, rgba(100, 181, 255, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(23, 32, 48, 0.45), rgba(17, 21, 29, 0.10)),
    var(--panel);
  border-color: rgba(100, 181, 255, 0.22);
}

.card .card {
  background: var(--panel-2);
  box-shadow: none;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

.admin-kpi {
  display: grid;
  gap: 10px;
}

.admin-kpi-label {
  color: var(--muted);
  font-size: 13px;
}

.admin-kpi-value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.admin-kpi-note {
  color: var(--faint);
  font-size: 12px;
}

.admin-action-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-action-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.admin-action-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.wishlist-list {
  display: grid;
  gap: 12px;
}

.wishlist-item {
  background: linear-gradient(180deg, rgba(24, 30, 41, 0.8), rgba(15, 20, 29, 0.82));
}

.wishlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wishlist-text {
  color: var(--text);
  margin: 8px 0 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.wishlist-votes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.vote-btn {
  min-width: 62px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.vote-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.vote-up {
  border-color: rgba(69, 255, 136, 0.45);
}

.vote-up.is-active {
  color: #07110a;
  background: linear-gradient(180deg, rgba(69, 255, 136, 0.95), rgba(31, 211, 106, 0.92));
}

.vote-down {
  border-color: rgba(255, 77, 77, 0.45);
}

.vote-down.is-active {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 77, 77, 0.9), rgba(220, 50, 50, 0.9));
}

.admin-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tabbar a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(17, 21, 29, 0.8);
}

.admin-tabbar a.is-active {
  color: #07110a;
  border-color: rgba(69, 255, 136, 0.5);
  background: linear-gradient(180deg, rgba(69, 255, 136, 0.95), rgba(31, 211, 106, 0.92));
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(58, 67, 86, 0.55);
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.admin-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-actions-wrap {
  gap: 10px;
  flex-wrap: wrap;
}

.admin-filter-meta {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.admin-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-danger-zone {
  border-color: rgba(255, 77, 77, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 77, 77, 0.08) inset, var(--shadow-soft);
}

.admin-danger-action {
  display: flex;
  align-items: end;
}

.admin-chart-card {
  padding: 14px 14px 10px;
}

.admin-chart {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.08);
}

.admin-chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.admin-chart-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 4px;
}

.admin-chart-legend .dot.views {
  background: #45ff88;
}

.admin-chart-legend .dot.downloads {
  background: #58a6ff;
}

.admin-chart-legend .dot.dot-views {
  background: #45ff88;
}

.admin-chart-legend .dot.dot-downloads {
  background: #58a6ff;
}

.admin-chart-legend .dot.dot-de {
  background: #f6c945;
}

.admin-chart-legend .dot.dot-en {
  background: #9f7aea;
}

.admin-chart-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-analytics-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.analytics-panel {
  margin-bottom: 0;
}

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

.chart-modal-dialog {
  width: min(1320px, 98vw);
}

.chart-modal-body {
  padding: 10px;
}

.chart-modal-body .admin-chart {
  min-height: 420px;
}

@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-action-grid { grid-template-columns: 1fr; }
  nav a, .lang-switch a { margin-right: 0; }
  .admin-table {
    font-size: 13px;
  }
  .admin-analytics-grid,
  .analytics-chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .container {
    width: min(1080px, 94vw);
  }

  .header-inner {
    min-height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .header-inner strong {
    width: 100%;
    text-align: center;
  }

  .site-header nav,
  .lang-switch {
    justify-content: center;
  }

  .main-nav-group {
    width: 100%;
  }

  .main-nav-group > summary {
    width: 100%;
    justify-content: center;
  }

  .main-nav-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 6px;
  }

  main.container {
    padding: 16px 0 34px;
  }
}

@media (max-width: 560px) {
  .container {
    width: 94vw;
  }

  .card {
    border-radius: 12px;
    padding: 12px;
  }

  nav a, .lang-switch a {
    padding: 6px 7px;
    font-size: 14px;
  }

  .btn {
    width: 100%;
  }

  .btn-small {
    width: auto;
  }

  .admin-nav-group,
  .admin-nav-menu {
    width: 100%;
  }

  .admin-subnav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .admin-nav-group > summary {
    width: 100%;
    justify-content: space-between;
  }

  .admin-nav-menu {
    position: static;
    top: auto;
    left: auto;
    z-index: auto;
    min-width: 0;
  }
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.required-star {
  color: #ff9f2f;
  font-weight: 700;
  margin-left: 4px;
}

.required-hint {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}

input, select, textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--text);
  background:
    radial-gradient(120px 40px at 20% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Normalize control height across Safari/Chrome/Firefox */
input:not([type="checkbox"]):not([type="radio"]),
select {
  height: 40px;
  line-height: 1.25;
}

select {
  padding-top: 8px;
  padding-bottom: 8px;
}

button, input, select, textarea {
  font: inherit;
}

input::placeholder { color: var(--faint); }
textarea::placeholder { color: var(--faint); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(69, 255, 136, 0.45);
  box-shadow: var(--ring), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Explicit dropdown menu colors for browsers like Vivaldi/Chromium */
select {
  color-scheme: dark;
  font-size: 16px;
  font-weight: 500;
  min-height: 40px;
  height: 40px;
  line-height: 1.3;
  -webkit-appearance: menulist;
  appearance: menulist;
}

select option,
select optgroup {
  background-color: #11151d;
  color: var(--text);
  font-size: 16px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  margin-right: 8px;
  accent-color: var(--accent);
}

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(69, 255, 136, 0.35);
  border-radius: 10px;
  min-height: 40px;
  padding: 9px 14px;
  background: linear-gradient(180deg, rgba(69, 255, 136, 0.95), rgba(31, 211, 106, 0.92));
  color: #07110a;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(31, 211, 106, 0.15);
  font-weight: 650;
}

button:hover, .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(31, 211, 106, 0.18);
}

button:active, .btn:active { transform: translateY(0); }

.btn-small {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.actions-center {
  display: flex;
  justify-content: center;
}

.mt-12 { margin-top: 12px; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }

.is-hidden { display: none !important; }

.hero {
  padding: 0;
  overflow: hidden;
}

.hero-surface {
  position: relative;
  padding: 22px;
  border-radius: 14px;
  background:
    radial-gradient(1000px 380px at 12% -20%, rgba(116, 152, 255, 0.16), transparent 60%),
    radial-gradient(900px 320px at 100% 0%, rgba(191, 143, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(13, 16, 25, 0.88), rgba(10, 13, 20, 0.90));
}

.hero-surface::before {
  content: none;
}

.hero-top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(186, 200, 230, 0.10) 46%, transparent 48%) 0 0 / 26px 13px,
    radial-gradient(ellipse at 50% 0%, rgba(186, 200, 230, 0.06) 46%, transparent 48%) 13px 6px / 26px 13px;
  opacity: 0.33;
  pointer-events: none;
}

.hero-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: center;
  margin: -22px -22px 0;
  padding: 30px 30px 18px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.1vw, 48px);
  line-height: 1.07;
  letter-spacing: 0.1px;
  font-weight: 470;
}

.hero-title-line {
  display: block;
}

.hero-title-normal {
  color: #dce3ef;
}

.hero-title-strong {
  margin-top: 4px;
  color: #f1f5fb;
  font-weight: 760;
}

.hero-lead {
  margin: 0 0 14px;
  font-size: 24px;
  color: #c8d2e2;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.hero-right {
  width: 100%;
}

.hero-lightburn-hint {
  margin-top: 10px;
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  padding: 4px 0 0;
}

.hero-lightburn-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.hero-lightburn-copy {
  min-width: 0;
  text-align: right;
}

.hero-lightburn-title {
  color: #e2e8f3;
  font-size: 35px;
  line-height: 1.15;
}

.hero-lightburn-sub {
  margin-top: 3px;
  text-align: right;
  color: #c7d2e5;
  font-size: 14px;
  letter-spacing: 0.1px;
  line-height: 1.3;
}

.hero-sample {
  margin: 0;
}

.hero-sample img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.28);
}

.hero-sample figcaption {
  margin-top: 7px;
  text-align: center;
  color: #c8d2e2;
  font-size: 13px;
  line-height: 1.3;
}

.hero-benefits {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: linear-gradient(180deg, rgba(9, 12, 20, 0.72), rgba(8, 10, 17, 0.72));
  border-radius: 12px;
  padding: 8px;
}

.hero-benefit {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  background: linear-gradient(180deg, rgba(28, 34, 52, 0.72), rgba(18, 23, 36, 0.78));
}

.hero-benefit h3 {
  margin: 8px 0 6px;
  font-size: 17px;
  line-height: 1.2;
}

.hero-benefit p {
  margin: 0;
  color: #b2bfd4;
  font-size: 15px;
  line-height: 1.35;
}

.hero-benefit-icon {
  display: inline-block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.38));
}

.hero-story h1 {
  text-align: center;
  margin-bottom: 12px;
}

.rainbow-word {
  display: inline-flex;
  gap: 1px;
  padding: 0 2px;
}

.rainbow-letter {
  display: inline-block;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
}

.rainbow-word .rainbow-letter:nth-child(1) { color: #45ff88; } /* F */
.rainbow-word .rainbow-letter:nth-child(2) { color: #f6c945; } /* a */
.rainbow-word .rainbow-letter:nth-child(3) { color: #64b5ff; } /* r */
.rainbow-word .rainbow-letter:nth-child(4) { color: #ff4d4d; } /* b */
.rainbow-word .rainbow-letter:nth-child(5) { color: #b66dff; } /* e */
.rainbow-word .rainbow-letter:nth-child(6) { color: #36e1d6; } /* n */

.hero-prose {
  max-width: none;
  width: 100%;
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.65;
  /* Single column, but with a readable measure */
  text-align: center;
}

.hero-prose p {
  margin: 0 0 10px;
}

.hero-prose p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1120px) {
  .hero-copy h2 { font-size: clamp(30px, 4vw, 42px); }
  .hero-benefit h3 { font-size: 16px; }
  .hero-benefit p { font-size: 14px; }
}

@media (max-width: 980px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-copy {
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hero-surface { padding: 16px; }
  .hero-top {
    margin: -16px -16px 0;
    padding: 24px 18px 14px;
  }
  .hero-copy h2 {
    font-size: clamp(24px, 7vw, 34px);
  }
  .hero-lead {
    font-size: 18px;
  }
  .hero-samples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
  }
  .hero-lightburn-hint {
    max-width: 520px;
    margin: 10px auto 0;
  }
  .hero-lightburn-title {
    font-size: 28px;
  }
  .hero-lightburn-sub {
    font-size: 13px;
  }
  .hero-benefits {
    grid-template-columns: 1fr;
  }
  .hero-benefit h3 { font-size: 16px; }
  .hero-benefit p { font-size: 14px; }
  .hero-prose { max-width: none; }
}

.submit-intro {
  margin: 0 0 14px;
  line-height: 1.6;
  color: var(--muted);
}

a { color: var(--accent); }
a:hover { color: #86ffb2; }

.alert {
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.alert-error {
  border-color: rgba(255, 77, 77, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 77, 77, 0.08) inset;
  color: #ffd2d2;
}

.alert-success {
  border-color: rgba(69, 255, 136, 0.28);
  box-shadow: 0 0 0 1px rgba(69, 255, 136, 0.08) inset;
  color: #cffff0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.search-growth-callout {
  border-color: rgba(255, 107, 107, 0.48);
  background:
    radial-gradient(700px 240px at 12% 0%, rgba(255, 107, 107, 0.16), transparent 62%),
    radial-gradient(640px 220px at 85% 100%, rgba(69, 255, 136, 0.08), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 107, 107, 0.16) inset,
    var(--shadow-soft);
  animation: searchCalloutPulse 2s ease-in-out infinite;
}

.search-growth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.search-growth-copy {
  min-width: 0;
}

.search-growth-text {
  margin: 0 0 12px;
}

.search-growth-line {
  margin: 0;
  line-height: 1.25;
  color: #f4f7ff;
  font-weight: 650;
}

.search-growth-line + .search-growth-line {
  margin-top: 2px;
}

.search-growth-line-1 {
  font-size: clamp(23px, 2.8vw, 28px);
}

.search-growth-line-2 {
  font-size: clamp(19px, 2.25vw, 23px);
  color: #e4eaf8;
}

.search-growth-line-3 {
  font-size: clamp(24px, 2.8vw, 29px);
  color: #ff6b6b;
  text-shadow: 0 0 14px rgba(255, 107, 107, 0.24);
  font-weight: 750;
}

.search-growth-line-4 {
  font-size: clamp(17px, 2vw, 21px);
  color: #d8e1f3;
}

.search-growth-graphic {
  position: relative;
  width: 116px;
  height: 84px;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 107, 0.38);
  background:
    radial-gradient(80px 56px at 70% 20%, rgba(255, 107, 107, 0.22), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.008)),
    var(--panel-2);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.12);
}

.search-growth-graphic-card {
  position: absolute;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(69, 255, 136, 0.14), rgba(69, 255, 136, 0.04));
}

.search-growth-graphic-card-a {
  left: 18px;
  bottom: 22px;
  width: 24px;
  height: 20px;
  animation: searchCardFloatA 1.5s ease-in-out infinite;
}

.search-growth-graphic-card-b {
  left: 46px;
  bottom: 30px;
  width: 24px;
  height: 20px;
  animation: searchCardFloatB 1.7s ease-in-out infinite;
}

.search-growth-graphic-arrow {
  position: absolute;
  left: 73px;
  bottom: 22px;
  width: 20px;
  height: 36px;
  border-right: 4px solid rgba(255, 107, 107, 0.96);
  border-top: 4px solid rgba(255, 107, 107, 0.96);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.3));
  animation: searchArrowNudge 1.05s ease-in-out infinite;
}

@keyframes searchCalloutPulse {
  0%, 100% {
    border-color: rgba(255, 107, 107, 0.48);
    box-shadow:
      0 0 0 1px rgba(255, 107, 107, 0.18) inset,
      0 0 16px rgba(255, 107, 107, 0.14),
      var(--shadow-soft);
  }
  50% {
    border-color: rgba(255, 107, 107, 0.95);
    box-shadow:
      0 0 0 1px rgba(255, 107, 107, 0.28) inset,
      0 0 44px rgba(255, 107, 107, 0.32),
      var(--shadow-soft);
  }
}

@keyframes searchCardFloatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px) scale(1.03); }
}

@keyframes searchCardFloatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px) scale(1.05); }
}

@keyframes searchArrowNudge {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(6px, -6px) scale(1.08); }
}

@media (max-width: 680px) {
  .search-growth-layout {
    grid-template-columns: 1fr;
  }
  .search-growth-graphic {
    width: 100%;
    max-width: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-growth-callout,
  .search-growth-graphic-card-a,
  .search-growth-graphic-card-b,
  .search-growth-graphic-arrow {
    animation: none;
  }
}

.card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.card-title-row strong {
  font-size: 16px;
  letter-spacing: 0.2px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.stars {
  position: relative;
  display: inline-block;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
  user-select: none;
}

.stars.is-small {
  font-size: 15px;
  letter-spacing: 1.5px;
}

.stars-bg {
  color: rgba(255, 255, 255, 0.18);
}

.stars-fg {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f6c945;
  text-shadow: 0 0 12px rgba(246, 201, 69, 0.18);
}

.rating-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-block {
  margin-top: 4px;
}

.rating-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.rating-form {
  margin-top: 10px;
}

.rating-controls {
  display: grid;
  gap: 8px;
}

.rating-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--warn);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(69, 255, 136, 0.12);
}

.badge-success {
  color: #07110a;
  border-color: rgba(69, 255, 136, 0.45);
  background: linear-gradient(180deg, rgba(69, 255, 136, 0.92), rgba(31, 211, 106, 0.9));
}

.badge-muted {
  color: rgba(167, 178, 198, 0.78);
  border-color: rgba(123, 133, 151, 0.35);
  background: rgba(123, 133, 151, 0.12);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.chip:hover {
  border-color: rgba(69, 255, 136, 0.22);
  box-shadow: 0 0 0 3px rgba(69, 255, 136, 0.08);
}

.chip .chip-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.collapsible-card {
  overflow: hidden;
}

.collapsible-summary {
  list-style: none;
  cursor: pointer;
  margin-bottom: 0;
}

.collapsible-summary::-webkit-details-marker {
  display: none;
}

.collapsible-summary::after {
  content: "▸";
  margin-left: auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(69, 255, 136, 0.45);
  background: rgba(69, 255, 136, 0.12);
  color: #b9ffd5;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(69, 255, 136, 0.10);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.collapsible-card[open] .collapsible-summary::after {
  transform: rotate(90deg);
  background: rgba(69, 255, 136, 0.20);
  box-shadow: 0 0 0 3px rgba(69, 255, 136, 0.15);
}

.collapsible-body {
  margin-top: 12px;
}

.chip-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.chip-row {
  width: 100%;
  min-width: 0;
}

@media (max-width: 760px) {
  .chip-cloud-grid {
    grid-template-columns: 1fr;
  }
}

/* Home page layout */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

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

.home-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.home-card .thumb {
  max-height: 160px;
}

.home-card-body {
  flex: 1;
}

.home-card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.home-video-card {
  padding: 10px;
  overflow: hidden;
}

.home-video-link {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.home-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #000;
}

.meta-2line {
  display: grid;
  gap: 2px;
  line-height: 1.25;
}

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

.kpi {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.kpi-label { color: var(--muted); font-size: 12px; }
.kpi-value { font-size: 22px; font-weight: 750; letter-spacing: 0.2px; }
.kpi-sub { color: var(--faint); font-size: 12px; margin-top: 4px; }

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

.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  padding-top: 6px;
}

.kv-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 6px;
}

.kv-k {
  color: var(--muted);
  font-size: 12px;
}

.kv-v {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow-wrap: anywhere;
}

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

.search-result-card {
  display: flex;
  flex-direction: column;
}

.search-result-laser {
  line-height: 1.35;
}

.brand-meta {
  display: grid;
  justify-items: center;
  gap: 0;
  text-align: center;
  align-content: start;
}

.brand-logo-link,
.brand-fallback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  line-height: 0;
  margin: 0;
  padding: 0;
}

.brand-logo-link:hover,
.brand-fallback-link:hover {
  filter: brightness(1.05);
}

.brand-logo-mark {
  width: auto;
  height: 1cm; /* fixed display height as requested */
  max-width: 220px;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

.brand-fallback-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12px;
  line-height: 1.2;
}

.brand-tail {
  color: var(--muted);
  line-height: 1;
  font-size: 12px;
  margin: 10px 0 0;
  padding: 0;
}

.search-kv {
  grid-template-columns: 1fr;
  gap: 6px;
}

.search-kv .kv-item {
  padding: 7px 0;
}

.search-result-meta {
  display: grid;
  gap: 2px;
  line-height: 1.3;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.result-brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-left: auto;
  margin-bottom: 10px;
}

.result-brand-logo {
  height: 1cm;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.result-meta .brand-meta {
  width: 100%;
  margin-bottom: 0;
}

.result-hub-links {
  margin-top: 10px;
  margin-bottom: 2px;
}

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hub-head .result-actions {
  margin-top: 14px;
}

.hub-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

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

.related-item {
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(58, 67, 86, 0.68);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px;
}

.related-item:hover,
.related-item:focus-visible {
  border-color: rgba(69, 255, 136, 0.45);
  background: rgba(69, 255, 136, 0.08);
  outline: none;
}

@media (max-width: 760px) {
  .result-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .result-meta .faint {
    display: none;
  }

  .brand-logo-mark {
    height: 1cm;
    width: auto;
  }

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

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: none;
}

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

.btn-with-icon {
  gap: 8px;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.46;
}

.btn-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: inline-block;
  border-radius: 3px;
  flex: 0 0 16px;
}

.btn-danger {
  border-color: rgba(255, 77, 77, 0.45);
  background: linear-gradient(180deg, rgba(255, 110, 110, 0.95), rgba(255, 77, 77, 0.92));
  color: #200808;
  box-shadow: 0 10px 18px rgba(255, 77, 77, 0.20);
}

.btn-danger:hover {
  box-shadow: 0 14px 24px rgba(255, 77, 77, 0.25);
}

/* News: public + admin styling */
.news-hero {
  position: relative;
  overflow: hidden;
  border-color: rgba(88, 166, 255, 0.35);
  background:
    radial-gradient(980px 280px at 0% -20%, rgba(88, 166, 255, 0.22), transparent 58%),
    radial-gradient(760px 260px at 100% 100%, rgba(69, 255, 136, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--panel);
}

.news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.10), transparent 34%),
    linear-gradient(315deg, rgba(69, 255, 136, 0.08), transparent 38%);
}

.news-hero-title {
  font-size: clamp(30px, 3.5vw, 42px);
  letter-spacing: 0.2px;
}

.news-hero-sub {
  max-width: 900px;
  color: #d2dcec;
  font-size: 16px;
}

.news-stream {
  position: relative;
  display: grid;
  gap: 14px;
}

.news-stream::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, rgba(88, 166, 255, 0.58), rgba(69, 255, 136, 0.38));
  border-radius: 999px;
}

.news-card {
  position: relative;
  padding-left: 44px;
  border-color: rgba(88, 166, 255, 0.24);
  background:
    radial-gradient(500px 220px at 4% 0%, rgba(88, 166, 255, 0.10), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
}

.news-card::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(88, 166, 255, 0.92);
  background: rgba(10, 14, 22, 0.95);
  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.18);
}

.news-card:hover {
  border-color: rgba(88, 166, 255, 0.36);
  box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.12) inset, var(--shadow-soft);
}

.news-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.news-card-title {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
}

.news-date-badge {
  border-color: rgba(88, 166, 255, 0.34);
  color: #c8d6ee;
  background: rgba(88, 166, 255, 0.10);
}

.news-divider {
  background: linear-gradient(90deg, transparent, rgba(88, 166, 255, 0.22), transparent);
}

.news-body p {
  margin: 0 0 12px;
  color: #d5deec;
  line-height: 1.66;
  font-size: 15.5px;
}

.news-body p:last-child {
  margin-bottom: 0;
}

.news-reaction-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.news-reaction-btn {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(88, 166, 255, 0.28);
  background: rgba(88, 166, 255, 0.08);
  color: #d6dfed;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.news-reaction-btn.is-active {
  border-color: rgba(69, 255, 136, 0.45);
  background: rgba(69, 255, 136, 0.16);
  color: #ddffe9;
}

.news-inline-reply summary {
  cursor: pointer;
  color: #c8d6ee;
  font-size: 13px;
  list-style: none;
}

.news-inline-reply summary::-webkit-details-marker {
  display: none;
}

.news-inline-reply summary::before {
  content: "↳ ";
  color: rgba(69, 255, 136, 0.9);
}

.news-comments {
  margin-top: 2px;
}

.news-comments h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.news-comment {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.news-comment-user {
  background:
    radial-gradient(440px 140px at 0% 0%, rgba(69, 255, 136, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel-2);
  border-color: rgba(69, 255, 136, 0.24);
}

.news-comment-admin {
  margin-left: clamp(14px, 4vw, 40px);
  background:
    radial-gradient(440px 140px at 0% 0%, rgba(255, 92, 92, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel-2);
  border-color: rgba(255, 92, 92, 0.28);
}

.news-comment-date {
  margin-bottom: 6px;
}

.news-comment p {
  color: #d6dfed;
  line-height: 1.55;
}

.news-comment-form {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 10px;
}

.news-comment-submit-row {
  justify-content: flex-end;
}

.faq-card {
  padding-top: 12px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgba(58, 67, 86, 0.75);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(24, 30, 41, 0.75), rgba(15, 20, 29, 0.78));
  padding: 8px 10px;
}

.faq-item > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::before {
  content: "+";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(69, 255, 136, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #45ff88;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] > summary::before {
  content: "−";
}

.faq-answer {
  padding: 10px 0 2px 28px;
}

.faq-answer p {
  margin: 0 0 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-admin-list {
  display: grid;
  gap: 12px;
}

.faq-admin-item {
  margin-bottom: 0;
}

/* Honeypot anti-spam field: must stay invisible for real users. */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.emoji-picker {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.emoji-picker-label {
  color: var(--faint);
  font-size: 12px;
  margin-right: 2px;
}

.emoji-btn {
  min-height: 32px;
  min-width: 32px;
  padding: 4px 6px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: none;
  font-size: 18px;
  line-height: 1;
}

.emoji-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.12);
}

.news-card-detail {
  border-color: rgba(69, 255, 136, 0.32);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(69, 255, 136, 0.12), transparent 66%),
    radial-gradient(460px 200px at 100% 100%, rgba(88, 166, 255, 0.10), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
}

.news-card-detail::before {
  border-color: rgba(69, 255, 136, 0.95);
  box-shadow: 0 0 0 4px rgba(69, 255, 136, 0.16);
}

.news-admin-hero {
  border-color: rgba(246, 201, 69, 0.35);
  background:
    radial-gradient(900px 280px at 0% -20%, rgba(246, 201, 69, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--panel);
}

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

.news-admin-kpi {
  border: 1px solid rgba(246, 201, 69, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(246, 201, 69, 0.06);
}

.news-admin-kpi-label {
  color: #d9c78b;
  font-size: 12px;
}

.news-admin-kpi-value {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}

.news-admin-create {
  border-color: rgba(88, 166, 255, 0.24);
  background:
    radial-gradient(680px 220px at 5% -10%, rgba(88, 166, 255, 0.10), transparent 64%),
    var(--panel-2);
}

.news-admin-form {
  gap: 10px;
}

.recommendation-browser {
  border-color: rgba(88, 166, 255, 0.22);
  background:
    radial-gradient(760px 220px at 0% -12%, rgba(88, 166, 255, 0.12), transparent 66%),
    var(--panel-2);
}

.recommendation-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.recommendation-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 20, 31, 0.90), rgba(11, 15, 24, 0.94));
  color: var(--text);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.recommendation-tab:hover {
  border-color: rgba(88, 166, 255, 0.45);
}

.recommendation-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.28);
}

.recommendation-tab.is-active {
  border-color: rgba(69, 255, 136, 0.42);
  box-shadow: 0 0 0 2px rgba(69, 255, 136, 0.10) inset;
}

.recommendation-tab-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
}

.recommendation-tab-logo {
  width: 24px;
  height: 24px;
  display: block;
}

.recommendation-tab-code {
  min-width: 40px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.recommendation-tab-label {
  font-weight: 600;
}

.recommendation-tab-count {
  color: #c8d6f8;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(88, 166, 255, 0.32);
  background: rgba(88, 166, 255, 0.12);
}

.recommendation-tab[data-rec-tab="youtube"] .recommendation-tab-code {
  border-color: rgba(255, 95, 95, 0.46);
  color: #ff9d9d;
}

.recommendation-tab[data-rec-tab="youtube"] .recommendation-tab-logo-wrap {
  border-color: rgba(255, 95, 95, 0.5);
}

.recommendation-tab[data-rec-tab="facebook"] .recommendation-tab-code {
  border-color: rgba(88, 166, 255, 0.46);
  color: #9ad8ff;
}

.recommendation-tab[data-rec-tab="facebook"] .recommendation-tab-logo-wrap {
  border-color: rgba(88, 166, 255, 0.5);
}

.recommendation-tab[data-rec-tab="laser"] .recommendation-tab-code {
  border-color: rgba(69, 255, 136, 0.46);
  color: #98ffc4;
}

.recommendation-panel {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.94), rgba(12, 16, 25, 0.95));
}

.recommendation-panel + .recommendation-panel {
  margin-top: 12px;
}

.recommendation-panel--youtube {
  border-color: rgba(255, 95, 95, 0.22);
}

.recommendation-panel--facebook {
  border-color: rgba(88, 166, 255, 0.24);
}

.recommendation-panel--laser {
  border-color: rgba(69, 255, 136, 0.24);
}

.recommendation-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.recommendation-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.recommendation-panel-logo-wrap {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.recommendation-panel-logo {
  width: 18px;
  height: 18px;
  display: block;
}

.recommendation-panel-code {
  min-width: 32px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: .04em;
}

.recommendation-panel-hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.recommendation-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: box-shadow .24s ease, border-color .24s ease, background-color .24s ease, transform .24s ease;
}

.recommendation-card.is-expanded {
  grid-column: 1 / -1;
  border-color: rgba(88, 166, 255, 0.34);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.recommendation-card.is-opening {
  animation: recommendationCardOpen .28s ease;
}

.recommendation-card.no-image {
  grid-template-columns: 1fr;
}

.recommendation-card-media {
  width: 96px;
  height: 96px;
}

.recommendation-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
}

.recommendation-card-content {
  min-width: 0;
}

.recommendation-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.recommendation-card-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  line-height: 1.25;
}

.recommendation-card-title-logo-wrap {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.recommendation-card-title-logo {
  width: 12px;
  height: 12px;
  display: block;
}

.recommendation-card-title-text {
  min-width: 0;
}

.recommendation-card-date {
  font-size: 11px;
  white-space: nowrap;
}

.recommendation-card-excerpt {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommendation-card-actions {
  margin-top: 9px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px;
}

.recommendation-card-details {
  width: 100%;
}

.recommendation-card-details summary {
  cursor: pointer;
  color: #9ad8ff;
  font-size: 12px;
}

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

.webstuff-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.webstuff-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.webstuff-title {
  font-size: 18px;
  line-height: 1.25;
}

.webstuff-meta {
  margin-top: 6px;
  color: #9ad8ff;
  font-size: 13px;
}

.webstuff-brand-row {
  margin-top: 8px;
  margin-bottom: 2px;
}

.webstuff-brand-logo {
  display: block;
  height: 26px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.webstuff-desc {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.52;
}

.webstuff-actions {
  margin-top: 10px;
}

.recommendation-body {
  margin-top: 8px;
  transform-origin: top center;
}

.recommendation-body p {
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.56;
  font-size: 14px;
}

.recommendation-body p:last-child {
  margin-bottom: 0;
}

.recommendation-card-details[open] .recommendation-body {
  animation: recommendationBodyOpen .28s ease;
}

@keyframes recommendationBodyOpen {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.98);
    filter: blur(0.2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: blur(0);
  }
}

@keyframes recommendationCardOpen {
  from {
    opacity: 0.86;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(-1px);
  }
}

.news-admin-item .recommendation-image {
  display: block;
  width: 100%;
  max-width: 320px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.24);
}

@media (max-width: 1180px) {
  .recommendation-tabs {
    grid-template-columns: 1fr;
  }

  .recommendation-card-grid {
    grid-template-columns: 1fr;
  }

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

  .recommendation-card-actions {
    grid-template-columns: 1fr;
  }
}

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

  .recommendation-tab-count {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .recommendation-card {
    grid-template-columns: 1fr;
  }

  .recommendation-card-media {
    width: 100%;
    height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recommendation-card,
  .recommendation-card-details[open] .recommendation-body {
    transition: none;
    animation: none;
  }
}

.news-admin-list {
  border-color: rgba(88, 166, 255, 0.22);
}

.news-admin-grid {
  display: grid;
  gap: 12px;
}

.news-admin-item {
  border-color: rgba(88, 166, 255, 0.24);
  background:
    radial-gradient(580px 180px at 0% 0%, rgba(88, 166, 255, 0.08), transparent 65%),
    var(--panel-2);
}

.news-admin-meta {
  font-size: 12px;
}

.news-admin-actions {
  margin-top: 2px;
}

@media (max-width: 760px) {
  .news-admin-kpis {
    grid-template-columns: 1fr;
  }

  .news-stream::before {
    display: none;
  }

  .news-card {
    padding-left: 16px;
  }

  .news-card::before {
    display: none;
  }

  .news-comment-admin {
    margin-left: 0;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.gallery a {
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
  box-shadow: var(--shadow-soft);
}

.gallery a:hover {
  border-color: rgba(69, 255, 136, 0.28);
  box-shadow: 0 0 0 3px rgba(69, 255, 136, 0.10);
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

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

  .gallery img {
    height: 180px;
  }
}

/* Lightbox */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.modal.is-open { display: grid; }

.modal-dialog {
  width: min(1100px, 96vw);
  max-height: 90vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.modal-title {
  color: var(--muted);
  font-size: 13px;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}

.modal-body {
  padding: 10px;
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
}

.modal-body img {
  width: 100%;
  height: auto;
  max-height: calc(90vh - 62px);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.thumb {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  background: rgba(15, 18, 23, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(15, 18, 23, 0.94);
  }

  .site-footer {
    background: rgba(15, 18, 23, 0.92);
  }

  .modal {
    background: rgba(0, 0, 0, 0.82);
  }
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.explanation-hero-frame {
  position: relative;
  width: 100%;
  margin: 10px auto 0;
  height: clamp(160px, 22vw, 240px);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.explanation-hero-img {
  position: absolute;
  inset: 50% 0 auto 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
  transform: translateY(-50%);
}
