: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 { height: 100%; }

body {
  margin: 0;
  font-family: "Avenir Next", "Avenir", "Helvetica Neue", "SF Pro Text", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 12% -10%, rgba(69, 255, 136, 0.12), transparent 60%),
    radial-gradient(1000px 650px at 90% 20%, rgba(246, 201, 69, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.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);
  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;
}

nav a, .lang-switch a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 12px;
  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.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));
}

@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }
  nav a, .lang-switch a { margin-right: 6px; }
}

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

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

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

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

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

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

.hero 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: 900px) {
  .hero-prose { max-width: none; }
}

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

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

.card-title-row strong {
  font-size: 16px;
  letter-spacing: 0.2px;
}

.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);
}

.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);
}

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

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

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

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

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

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

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

.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);
}

/* Lightbox */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  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);
  backdrop-filter: blur(10px);
}

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