:root {
  --bg: #f4efe7;
  --panel: rgba(255, 252, 247, 0.88);
  --panel-strong: #fffaf2;
  --line: #d9c6ab;
  --text: #2f241b;
  --muted: #705a47;
  --accent: #b85c38;
  --accent-dark: #8f4529;
  --success: #2f7d4c;
  --shadow: 0 20px 60px rgba(77, 48, 25, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 92, 56, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(47, 125, 76, 0.15), transparent 25%),
    linear-gradient(135deg, #f7f0e4, #efe4d2 45%, #f8f5ef);
}

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 32px auto;
  display: grid;
  gap: 24px;
}

.hero,
.panel {
  background: var(--panel);
  border: 1px solid rgba(217, 198, 171, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  padding: 28px;
}

.hero h1,
.panel h2,
.panel h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.hero p,
.panel p,
.muted {
  color: var(--muted);
}

.admin-grid,
.two-col {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .admin-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel {
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
}

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

button {
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary {
  color: #fff;
  background: var(--accent);
}

.primary:hover {
  background: var(--accent-dark);
}

.secondary {
  background: #efe1cb;
  color: var(--text);
}

.status {
  min-height: 24px;
  font-weight: 600;
}

.status.success {
  color: var(--success);
}

.status.error {
  color: #b42318;
}

.card-list {
  display: grid;
  gap: 16px;
}

.contact-card {
  border: 1px solid rgba(217, 198, 171, 0.9);
  border-radius: 20px;
  padding: 18px;
  background: var(--panel-strong);
}

.contact-card img,
.qr-preview img {
  width: min(220px, 100%);
  display: block;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line);
}

.contact-card header,
.info-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f0dfcb;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.pill.locked {
  background: #d9eddf;
  color: #1f6038;
}

.contact-details {
  display: grid;
  gap: 8px;
}

.contact-details strong {
  display: inline-block;
  min-width: 88px;
}

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

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

.empty {
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}
