@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Sora:wght@300;400;600;700&display=swap');

:root {
  --bg: #f8f3ea;
  --bg-deep: #efe2cf;
  --ink: #2b2117;
  --muted: #6a5b4a;
  --accent: #b85c2b;
  --accent-2: #c88b3f;
  --panel: #fffaf2;
  --line: #e7d7c3;
  --shadow: rgba(35, 23, 12, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff6ea 0%, var(--bg) 48%, var(--bg-deep) 100%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: -10% 0 auto 0;
  height: 50vh;
  background: linear-gradient(120deg, rgba(184, 92, 43, 0.15), rgba(200, 139, 63, 0.05));
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0, transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.35) 0, transparent 55%);
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(184, 92, 43, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 16px;
}

.hero p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

.card {
  background: var(--panel);
  border-radius: 20px;
  box-shadow: 0 16px 40px var(--shadow);
  border: 1px solid var(--line);
  padding: 24px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 18px rgba(184, 92, 43, 0.22);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(184, 92, 43, 0.28);
}

.cta.secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(200, 139, 63, 0.15);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

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

.section {
  margin-top: 48px;
}

.section h2 {
  font-family: 'Fraunces', serif;
  margin: 0 0 12px;
  font-size: 28px;
}

.section p {
  margin: 0;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 18px;
}

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

label {
  font-weight: 600;
  font-size: 14px;
}

input[type="text"],
input[type="number"],
textarea,
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  background: white;
}

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

input[type="file"] {
  border: 1px dashed var(--line);
  padding: 12px;
  border-radius: 12px;
  background: #fffdf8;
}

.notice {
  background: rgba(184, 92, 43, 0.08);
  border: 1px solid rgba(184, 92, 43, 0.2);
  color: var(--muted);
  padding: 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.errors {
  background: #fff1f0;
  border: 1px solid #f2b7b1;
  color: #8b2d24;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
}

.otp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  letter-spacing: 4px;
  background: #fff0df;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid #f3d2b5;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.reveal {
  animation: rise 0.8s ease both;
  animation-delay: var(--delay, 0s);
}

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

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

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.qa-list {
  display: grid;
  gap: 12px;
}

.qa-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.qa-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.tag.pending {
  background: rgba(184, 92, 43, 0.15);
  color: var(--accent);
}

.tag.processed {
  background: rgba(62, 132, 95, 0.15);
  color: #3e845f;
}

.tag.review {
  background: rgba(200, 139, 63, 0.2);
  color: #a36a1f;
}

.tag.denied {
  background: rgba(176, 71, 59, 0.16);
  color: #8f2f27;
}

.admin-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .table th:nth-child(3),
  .table td:nth-child(3),
  .table th:nth-child(4),
  .table td:nth-child(4) {
    display: none;
  }
}

.notice.otp-check .small {
  font-size: 14px;
  font-weight: 600;
}
