:root {
  --bg: #fbf6f0;
  --card: #ffffff;
  --text: #2c2a29;
  --muted: #6d6a67;
  --accent: #b96466;
  --accent-strong: #923f46;
  --border: #e6dfd7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(180deg, #f7ede5, #f0e5da);
  color: var(--text);
}

.page-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

.hero p {
  margin: 14px auto 0;
  max-width: 640px;
  color: var(--muted);
}

.guest-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guest-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.guest-list a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.guest-list span {
  color: var(--muted);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  text-decoration: none;
  color: white;
  background: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.button-secondary {
  background: #7e7a76;
}

.button:hover,
button:hover,
.link:hover {
  opacity: 0.95;
}

.card {
  background: var(--card);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.invitation-shell {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.subtitle {
  margin: 0 0 8px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.role {
  margin: 8px 0 0;
  color: var(--muted);
}

.message {
  margin-top: 24px;
  line-height: 1.75;
  color: #4c4845;
}

.actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.status-box {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fcf6f0;
}

.status-box p {
  margin: 0 0 12px;
}

.status {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.timestamp {
  margin: 10px 0 0;
  color: var(--muted);
}

.footer-note {
  margin-top: 28px;
}

.link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: #faf4ef;
  color: var(--muted);
  font-weight: 700;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-link {
  margin-top: 32px;
  text-align: center;
}

.form-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 28px;
  max-width: 500px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-delete {
  background: #d9534f;
  color: white;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-delete:hover {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .guest-list li,
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-table th,
  .admin-table td {
    padding: 14px 12px;
  }
}
