:root {
  --bg: #f5f7fb;
  --ink: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-soft: #fff4e0;
  --blue: #4f7cf7;
  --green: #29b27d;
  --peach: #ffb45c;
  --lavender: #a78bfa;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 45%, #f2f6fb 100%);
  min-height: 100vh;
}

#__nuxt {
  min-height: 100vh;
}

#__nuxt > div {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.no-scroll {
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  z-index: 230;
  flex-wrap: wrap;
}

.header-spacer {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #fff7ed;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.logo svg {
  width: 32px;
  height: 32px;
}

.brand-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
}

.brand-name {
  color: var(--ink);
}

.brand-dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  transition-delay: 0s;
  z-index: 30;
}

.dropdown-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
}

.dropdown-link:hover {
  background: rgba(245, 158, 11, 0.12);
}

.nav-item.dropdown:hover .nav-dropdown,
.nav-item.dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0.12s;
}

.nav-caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.session-placeholder {
  opacity: 0.75;
}

.session-pill {
  width: 120px;
  height: 38px;
  border-radius: 999px;
  background: #eef2f7;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.session-pill + .session-pill {
  width: 90px;
}

.mobile-actions {
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.user-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.user-email {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 230;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 205;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  padding: 120px 24px 24px;
  background: #ffffff;
  display: grid;
  align-content: start;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 210;
  overflow-y: auto;
}

.mobile-menu-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  z-index: 240;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-group {
  display: grid;
  gap: 8px;
}

.mobile-menu-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mobile-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
}

.mobile-link:hover {
  background: rgba(245, 158, 11, 0.12);
}

.site-footer {
  margin-top: auto;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 90px;
  flex: 1 0 auto;
}

section {
  margin-bottom: 60px;
}

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: 1fr;
}

.hero-copy h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  margin: 0 0 16px;
}

.hero-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 520px;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr) minmax(220px, 2fr) auto;
  gap: 0;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  align-items: center;
}

.hero-search .btn {
  border-radius: 12px;
  padding: 12px 22px;
}

.hero-search select,
.hero-search input {
  border: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
}

.hero-search select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 4px),
    calc(100% - 12px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.hero-search select:focus,
.hero-search input:focus {
  outline: none;
}

.hero-search select:not(:last-child),
.hero-search input:not(:last-child) {
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-illustration {
  width: min(360px, 100%);
  background: radial-gradient(circle at top, #ffffff, #f0f4ff 70%);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.hero-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

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

.browse-card {
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
  display: grid;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.browse-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.12);
}

.browse-card h3 {
  margin: 0;
  font-family: 'Sora', sans-serif;
}

.browse-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.tone-mint {
  background: #e9f7ef;
}

.tone-sky {
  background: #edf3ff;
}

.tone-peach {
  background: #fff3e6;
}

.tone-lavender {
  background: #f2edff;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: 'Sora', sans-serif;
  margin: 0 0 6px;
}

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

.popular {
  text-align: center;
}

.popular-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.popular-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.popular-pill {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.popular-pill[data-tone='blue'] {
  background: linear-gradient(135deg, #5b8def, #3c6bdc);
}

.popular-pill[data-tone='green'] {
  background: linear-gradient(135deg, #3bcf9b, #1fa579);
}

.popular-pill[data-tone='orange'] {
  background: linear-gradient(135deg, #ffb454, #f59e0b);
}

.browse-results {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.results-header h3 {
  margin: 0 0 6px;
  font-family: 'Sora', sans-serif;
}

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

.results-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.exam-card {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  display: grid;
  gap: 6px;
}

.exam-card.empty {
  background: transparent;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  color: var(--muted);
}

.exam-title {
  font-weight: 600;
}

.exam-meta {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.results-foot {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.how-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.how-card h3 {
  margin: 0;
  font-family: 'Sora', sans-serif;
}

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

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}

.trust {
  text-align: center;
}

.trust-card {
  background: linear-gradient(135deg, #f8fbff, #fef3c7);
  border-radius: 28px;
  padding: 36px 24px;
  box-shadow: var(--shadow);
}

.trust-card h2 {
  margin: 0 0 8px;
  font-family: 'Sora', sans-serif;
}

.trust-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.member-tools .actions {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.action-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.action-card h3 {
  margin: 0;
  font-family: 'Sora', sans-serif;
}

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

.output {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 32px;
  white-space: pre-wrap;
}

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

.about-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.about-card h2 {
  font-family: 'Sora', sans-serif;
  margin: 0 0 10px;
}

.about-card p {
  color: var(--muted);
  line-height: 1.6;
}

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

.about-item {
  background: #f8fafc;
  border-radius: 16px;
  padding: 14px;
}

.about-item h4 {
  margin: 0 0 8px;
  font-family: 'Sora', sans-serif;
}

.auth-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.auth-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  max-width: 980px;
  width: min(980px, 96vw);
}

.auth-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: #eef2ff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.auth-side {
  padding: 36px;
  background: linear-gradient(135deg, #eef2ff, #ddd6fe);
  display: grid;
  align-content: center;
  gap: 18px;
}

.auth-side-inner {
  max-width: 360px;
}

.auth-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.85rem;
}

.auth-side h2 {
  font-family: 'Sora', sans-serif;
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.2rem);
}

.auth-side p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.auth-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink);
  font-weight: 500;
}

.auth-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #7c3aed;
  background: #ffffff;
}

.auth-list li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #7c3aed;
  border-bottom: 2px solid #7c3aed;
  transform: rotate(-45deg);
}

.auth-panel {
  background: #ffffff;
  padding: 32px;
  display: grid;
  gap: 16px;
}

.auth-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: grid;
  gap: 16px;
}

.auth-section {
  display: grid;
  gap: 14px;
}

.auth-card.auth-mode-signin .auth-signup {
  display: none;
}

.auth-card.auth-mode-signup .auth-signin {
  display: none;
}

.auth-card.auth-mode-session .auth-signin,
.auth-card.auth-mode-session .auth-signup {
  display: none;
}

.auth-heading h2 {
  font-family: 'Sora', sans-serif;
  margin: 0 0 6px;
}

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

.auth-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95rem;
}

textarea {
  resize: vertical;
}

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

.field label {
  font-weight: 600;
  color: var(--ink);
}

.field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.field-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;
  padding: 8px 12px;
  background: #ffffff;
}

.field-input input,
.field-input select {
  border: none;
  padding: 8px 4px;
  background: transparent;
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
}

.field-input input:focus,
.field-input select:focus {
  outline: none;
}

.field-input.split select {
  max-width: 80px;
  font-weight: 600;
}

.field-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.terms input {
  margin-top: 3px;
}

.text-link {
  color: #4c1d95;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.link-btn {
  border: none;
  background: none;
  color: #4c1d95;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 20px rgba(245, 158, 11, 0.3);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--ink);
}

.btn.google {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.2);
  color: var(--ink);
}

.auth-card .btn.primary,
.auth-card .btn.google {
  width: 100%;
}

.icon-btn {
  border: none;
  background: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.icon-btn.close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #ffffff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-weight: 700;
}

.divider {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(15, 23, 42, 0.1);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.auth-message {
  font-size: 0.85rem;
  color: var(--accent-dark);
  min-height: 18px;
}

.account-panel {
  display: grid;
  gap: 10px;
  border-radius: 18px;
  background: #f8fafc;
  padding: 16px;
}

.account-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.account-email {
  font-weight: 600;
}

.account-role {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  width: fit-content;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero-search input,
.hero-search select {
  border: none;
}

.site-footer {
  margin-top: 60px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 32px 32px 0 0;
  padding: 40px 28px 24px;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  color: #cbd5f5;
  line-height: 1.6;
}

.footer-links h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #f8fafc;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5f5;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.85rem;
  color: #94a3b8;
}

.icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95em;
}

.legal-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.legal-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.legal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.legal-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
}

.legal-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-height: 82vh;
}

.legal-header h2 {
  margin: 0 0 6px;
  font-family: 'Sora', sans-serif;
}

.legal-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-body {
  overflow-y: auto;
  padding-right: 6px;
  display: grid;
  gap: 16px;
}

.legal-body section {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 14px;
}

.legal-body section:first-child {
  border-top: none;
  padding-top: 0;
}

.legal-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-family: 'Sora', sans-serif;
}

.legal-body p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-body ul {
  margin: 0 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-body li {
  margin-bottom: 6px;
}

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

@media (max-width: 900px) {
  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search select,
  .hero-search input {
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .hero-search input:last-of-type {
    border-bottom: none;
  }

  .auth-split {
    grid-template-columns: 1fr;
  }

  .auth-side {
    padding: 28px;
  }

  .auth-panel {
    padding: 24px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 720px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "spacer brand menu"
      "actions actions actions";
    justify-items: center;
    gap: 12px;
  }

  .header-spacer {
    display: block;
    grid-area: spacer;
    justify-self: start;
    width: 100%;
  }

  .brand {
    grid-area: brand;
    justify-self: center;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    grid-area: menu;
    justify-self: end;
  }

  .site-nav {
    display: none;
  }

  .header-actions.desktop-actions {
    display: none;
  }

  .mobile-actions {
    display: flex;
    grid-area: actions;
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 32px 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
