:root {
  color-scheme: dark;
  --bg: #061512;
  --panel: rgba(12, 39, 32, 0.92);
  --panel-2: #102f27;
  --line: rgba(169, 211, 183, 0.18);
  --text: #f3f5ea;
  --muted: #a8b8ad;
  --emerald: #67d391;
  --emerald-bright: #99efb5;
  --gold: #d4b978;
  --danger: #ffaaa2;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(57, 137, 96, 0.26), transparent 34rem),
    radial-gradient(circle at 90% 90%, rgba(190, 152, 75, 0.14), transparent 30rem),
    linear-gradient(145deg, #061411 0%, #071b16 52%, #05110e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3rem);
}

.card {
  width: min(100%, 42rem);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: linear-gradient(155deg, rgba(18, 52, 43, 0.96), rgba(7, 28, 23, 0.96));
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.mark {
  display: grid;
  place-items: center;
  width: 3.25rem;
  aspect-ratio: 1;
  margin-bottom: 2rem;
  border: 1px solid rgba(212, 185, 120, 0.55);
  border-radius: 50%;
  color: var(--gold);
  font: 700 0.72rem/1 ui-monospace, monospace;
  letter-spacing: 0.12em;
  box-shadow: 0 0 2rem rgba(212, 185, 120, 0.14);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { max-width: 11ch; font-size: clamp(2.35rem, 9vw, 4.2rem); line-height: 0.98; letter-spacing: -0.045em; }
.intro { margin: 1.35rem 0 2.25rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.field { margin-bottom: 1.35rem; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.55rem; }
label { font-size: 0.86rem; font-weight: 680; }
output { color: var(--muted); font: 0.7rem/1 ui-monospace, monospace; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  color: var(--text);
  background: rgba(1, 12, 9, 0.42);
  font: inherit;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
input:focus, textarea:focus { border-color: var(--emerald); background: rgba(1, 12, 9, 0.65); box-shadow: 0 0 0 3px rgba(103, 211, 145, 0.13); }
textarea { min-height: 10rem; resize: vertical; line-height: 1.55; }
.field-error, .form-error { min-height: 1.1rem; margin: 0.4rem 0 0; color: var(--danger); font-size: 0.78rem; }

button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  color: #042116;
  background: linear-gradient(135deg, var(--emerald-bright), var(--emerald));
  box-shadow: 0 0.8rem 2rem rgba(55, 155, 98, 0.2);
  font: 760 0.88rem/1 inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease;
}
form > button { width: 100%; }
button:hover, .button-link:hover { filter: brightness(1.06); transform: translateY(-1px); }
button:disabled { cursor: wait; filter: grayscale(0.45); opacity: 0.65; transform: none; }
.secondary { min-height: 2.6rem; color: var(--text); background: transparent; border: 1px solid var(--line); box-shadow: none; }
.small { min-height: 2.15rem; padding: 0.55rem 0.8rem; font-size: 0.73rem; }
.privacy { margin: 1.6rem 0 0; color: #82968a; font-size: 0.72rem; line-height: 1.55; }
.trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.success { padding: 2rem 0 0; text-align: center; }
.success-icon { display: grid; place-items: center; width: 4rem; aspect-ratio: 1; margin: 0 auto 1.5rem; border-radius: 50%; color: #062017; background: var(--emerald); font-size: 2rem; }
.success h2 { font-size: 2.5rem; }
.success p { color: var(--muted); }
.success-page { text-align: center; }
.success-page h1 { max-width: none; }

.admin-body { background: #071310; }
.admin-shell { position: relative; width: min(100% - 2rem, 75rem); margin: 0 auto; padding: 3rem 0 6rem; }
.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.admin-header h1 { max-width: none; font-size: clamp(2.4rem, 6vw, 4rem); }
.filters { display: flex; gap: 0.45rem; overflow-x: auto; margin-bottom: 1.5rem; padding-bottom: 0.25rem; }
.filters a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 0.65rem 0.95rem; color: var(--muted); font-size: 0.78rem; text-decoration: none; }
.filters a.active { border-color: var(--emerald); color: var(--text); background: rgba(103, 211, 145, 0.09); }
.filters span { margin-left: 0.3rem; color: var(--emerald); }
.feedback-list { display: grid; gap: 0.9rem; }
.feedback-entry { padding: 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: rgba(13, 39, 32, 0.75); }
.feedback-entry.status-new { border-left: 3px solid var(--emerald); }
.entry-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.76rem; }
.entry-meta strong { margin-right: 0.6rem; color: var(--text); font-size: 0.95rem; }
.status-pill { color: var(--gold); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; }
.entry-comment { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.65; }
.ua { overflow-wrap: anywhere; color: #708379; font-size: 0.65rem; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entry-actions form { margin: 0; }
.empty-state { padding: 5rem 1rem; border: 1px dashed var(--line); border-radius: 1rem; color: var(--muted); text-align: center; }

@media (max-width: 600px) {
  .shell { align-items: start; padding: 0; }
  .card { min-height: 100vh; border: 0; border-radius: 0; padding: 2rem 1.15rem; box-shadow: none; }
  .admin-header { align-items: start; flex-direction: column; }
  .entry-meta { align-items: start; flex-direction: column; gap: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
