﻿:root {
  --bg: #f6f1e9;
  --bg-2: #f1f7f4;
  --ink: #1f2937;
  --muted: #6b7280;
  --accent: #d4553b;
  --accent-2: #2c8c7a;
  --card: #ffffff;
  --stroke: rgba(32, 41, 64, 0.12);
  --shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Fira Sans", "Noto Sans SC", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(212, 85, 59, 0.18), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(44, 140, 122, 0.18), transparent 55%),
    linear-gradient(140deg, var(--bg), var(--bg-2));
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(31, 41, 55, 0.06) 1px, transparent 1px),
    linear-gradient(240deg, rgba(31, 41, 55, 0.05) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.6;
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-family: "Fraunces", "Noto Serif SC", serif;
  letter-spacing: 0.5px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}

.form-card label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

textarea,
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 41, 55, 0.15);
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

textarea:focus,
input:focus {
  border-color: rgba(212, 85, 59, 0.6);
  box-shadow: 0 0 0 3px rgba(212, 85, 59, 0.15);
}

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

button {
  border: none;
  background: linear-gradient(120deg, var(--accent), #e17b54);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(212, 85, 59, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(212, 85, 59, 0.28);
}

button.secondary {
  background: linear-gradient(120deg, var(--accent-2), #3aa18f);
  box-shadow: 0 8px 18px rgba(44, 140, 122, 0.22);
}

.alert {
  border-left: 4px solid var(--accent);
  background: rgba(212, 85, 59, 0.08);
}

.alert strong {
  display: inline-block;
  margin-bottom: 6px;
}

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

.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed rgba(31, 41, 55, 0.15);
  padding-bottom: 10px;
}

.kv span {
  color: var(--muted);
  font-size: 14px;
}

.kv strong {
  font-size: 18px;
}

.code {
  font-size: 22px;
  letter-spacing: 2px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

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

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

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

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

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(44, 140, 122, 0.12);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 600;
}

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

@media (max-width: 720px) {
  .shell {
    padding: 36px 16px 48px;
  }

  .kv {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .admin-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
