:root {
  --primary: #6e2ef2;
  --primary-deep: #4b1ea8;
  --background: #faf9fe;
  --surface: #ffffff;
  --text: #1f1830;
  --text-muted: #6f6788;
  --lilac: #f3eeff;
  --border: rgba(110, 46, 242, 0.15);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow: 0 8px 24px rgba(110, 46, 242, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 28px;
  max-width: 480px;
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.header__logo {
  border-radius: 10px;
}

.header__brand {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 12px;
  gap: 16px;
}

.state__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.state__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 28rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(110, 46, 242, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.card {
  background: linear-gradient(145deg, var(--lilac) 0%, var(--surface) 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--lilac);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.avatar--image {
  padding: 0;
}

.card__name {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.card__subtitle {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: rgba(110, 46, 242, 0.1);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.info-row {
  margin-top: 16px;
  font-size: 0.9375rem;
}

.info-row__label {
  color: var(--text-muted);
  font-weight: 600;
}

.info-row__value {
  font-weight: 600;
}

.section-title {
  margin: 24px 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.vaccine-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vaccine-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vaccine-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(110, 46, 242, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.vaccine-item__name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9375rem;
}

.vaccine-item__date {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.disclaimer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(110, 46, 242, 0.08);
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.meta {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

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

.footer__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: white;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9375rem;
}

.state--error .state__title {
  color: var(--text);
}

.invite-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  text-align: center;
}

.invite-kicker {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.invite-card .state__title {
  margin-top: 4px;
}

.invite-card .state__text {
  margin: 0 auto 8px;
}

.invite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
}

.invite-btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.invite-hint {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}
