﻿:root {
  color-scheme: dark;
  --bg: #0f1116;
  --panel: #171a21;
  --panel-2: #1f2330;
  --accent: #f2b872;
  --accent-2: #f0655c;
  --text: #f5f2ea;
  --muted: #a4a7b2;
  --stroke: rgba(242, 184, 114, 0.2);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(242, 184, 114, 0.12), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(240, 101, 92, 0.2), transparent 40%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.glow {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(242, 184, 114, 0.12), rgba(240, 101, 92, 0.06), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: grid;
  gap: 28px;
}

.hero {
  display: grid;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.hero h1 {
  font-family: "Fraunces", "Space Grotesk", serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0;
}

.subtitle {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
}

.panel {
  background: linear-gradient(140deg, rgba(31, 35, 48, 0.95), rgba(23, 26, 33, 0.9));
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  gap: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.result {
  display: grid;
  gap: 8px;
}

.result-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  margin: 0;
}

.result-value {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(242, 184, 114, 0.1);
  border: 1px solid rgba(242, 184, 114, 0.2);
  min-height: 64px;
  display: flex;
  align-items: center;
}

.result-note {
  color: var(--muted);
  margin: 0;
  min-height: 20px;
}

.actions {
  display: grid;
  gap: 12px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #23190f;
  box-shadow: 0 12px 24px rgba(240, 101, 92, 0.2);
}

.btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px 22px;
  background: rgba(23, 26, 33, 0.85);
}

.admin summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}

.admin-grid h2 {
  margin: 0 0 6px;
}

.help {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text);
  padding: 12px;
  font-family: "Space Grotesk", sans-serif;
  resize: vertical;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.list li:hover {
  border-color: rgba(242, 184, 114, 0.35);
}

.list.muted li {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
}

.admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.admin-message {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 700px) {
  .actions {
    grid-template-columns: 1.4fr 1fr;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .panel {
    animation: float-in 0.6s ease;
  }

  @keyframes float-in {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
