:root {
  --bg: #f6f3ec;
  --card: #fffdf8;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #d9d4c8;
  --accent: #12664f;
  --accent-2: #104c3d;
  --danger: #9f1239;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #e5ddd0 0, transparent 25%),
    radial-gradient(circle at 90% 5%, #d8e8e3 0, transparent 28%),
    var(--bg);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(6px);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

nav a,
.link-button {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.hero,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.hero h1 {
  font-size: 2rem;
  margin-top: 0;
}

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

.button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-2);
}

.button.ghost {
  background: #e2e8f0;
  color: #111827;
}

.button.danger {
  background: var(--danger);
}

.form-grid {
  display: grid;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font: inherit;
}

textarea {
  min-height: 90px;
}

.full {
  width: 100%;
  text-align: center;
  margin-top: 12px;
}

.split {
  display: grid;
  gap: 16px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.qr-grid img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d4d4d8;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.ok {
  color: #166534;
  font-weight: 600;
}

.warn {
  color: #92400e;
  font-weight: 600;
}

.price {
  font-size: 2rem;
  font-weight: 700;
}

.alert {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.error {
  background: #fee2e2;
  color: #7f1d1d;
}

.inline-form {
  display: inline;
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
