:root {
  --bg-main: #f5f7fb;
  --text-main: #111827;
  --text-soft: #6b7280;
  --card-bg: #ffffff;
  --line-soft: #e5e7eb;
  --brand-dark: #111111;
  --brand-warning: #ffc107;
  --hero-grad-1: #fff8db;
  --hero-grad-2: #f3f6ff;
}

html,
body {
  min-height: 100%;
}

body.site-body {
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  color: var(--text-main);
}

.site-main {
  flex: 1 0 auto;
}

.py-lg-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-warning);
  color: #111;
  font-weight: 800;
  font-size: 0.95rem;
}

.navbar .nav-link {
  font-weight: 600;
  color: #374151;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: #111;
}

.hero-section {
  background:
    radial-gradient(circle at top left, var(--hero-grad-1), transparent 30%),
    radial-gradient(circle at bottom right, var(--hero-grad-2), transparent 35%);
}

.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--line-soft);
  border-radius: 1.75rem;
  padding: 1.5rem;
}

.hero-card-top {
  margin-bottom: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.mini-stat-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-soft);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mini-stat-card strong {
  font-size: 0.95rem;
}

.mini-stat-card span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.service-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--line-soft);
  border-radius: 1.5rem;
  padding: 1.35rem;
  height: 100%;
  color: var(--text-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(17, 24, 39, 0.08);
  border-color: #d1d5db;
}

.service-card-dark {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.service-card-dark p {
  color: rgba(255, 255, 255, 0.8);
}

.service-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff8db;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.how-it-works-section {
  background: #f9fafb;
}

.step-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--brand-warning);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-panel {
  background: linear-gradient(135deg, #ffffff, #fff9e8);
  border: 1px solid var(--line-soft);
  border-radius: 2rem;
  padding: 2rem;
}

.auth-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 1.75rem;
  padding: 2rem;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid var(--line-soft);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 0 0.9rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.role-select-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--line-soft);
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.role-box small {
  color: var(--text-soft);
}

.role-option input:checked + .role-box {
  border-color: #111;
  background: #fff8db;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.18);
}

.footer-links li + li {
  margin-top: 0.55rem;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
}

.footer-links a:hover {
  color: #111;
}

.form-control,
.form-select {
  border-radius: 1rem;
  border-color: #d1d5db;
}

.form-control:focus,
.form-select:focus {
  border-color: #ffca2c;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.15);
}

.btn {
  font-weight: 600;
}

@media (min-width: 768px) {
  .role-select-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card {
    padding: 2rem;
  }

  .auth-card {
    padding: 2.25rem;
  }
}