:root {
  --ink: #1b1b1b;
  --muted: #5f5f5f;
  --accent: #af2348;
  --accent-dark: #8f1d3b;
  --bg: #f7f6f3;
  --panel: #ffffff;
  --line: #e3e1dc;
  --shadow: 0 20px 40px rgba(19, 18, 18, 0.08);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 20%, #ffffff 0%, #f5f4f0 42%, #f2efea 100%);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img {
  height: 44px;
}

.nav-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}

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

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

.page-title {
  margin: 0 0 16px;
  font-size: 32px;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.subtle {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

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

.button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(175, 35, 72, 0.2);
}

.button.secondary {
  background: #262626;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: none;
}

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

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

.input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 14px;
  background: #fff;
}

label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

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

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(175, 35, 72, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.legal-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.legal-block:last-child {
  border-bottom: none;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: #fbfaf8;
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

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

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

  .nav-links {
    margin-left: 0;
  }

  .page-title {
    font-size: 26px;
  }
}
