:root {
  --bg: #f3f4f6;
  --bg-soft: #e5e7eb;
  --bg-card: #ffffff;
  --primary: #16a34a;
  --primary-soft: rgba(22, 163, 74, 0.08);
  --accent: #2563eb;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --border-subtle: #d1d5db;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e5e7eb, #ffffff 55%);
  color: var(--text-main);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 20% 20%, #22c55e, #16a34a, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span:first-child {
  font-weight: 700;
  font-size: 17px;
}

.logo-text span:last-child {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: #111827;
  border-color: rgba(148, 163, 184, 0.7);
}

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

.btn {
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--text-main);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.1s ease;
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.9);
  background: white;
}

.btn-outline:hover {
  background: #f3f4f6;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #22c55e);
  border: none;
  color: #ecfeff;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(22, 163, 74, 0.45);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.beta-banner {
  margin-top: 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid rgba(34,197,94,0.35);
  color: #166534;
}

.beta-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.badge-soft {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.4);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: 28px;
  align-items: center;
  margin-top: 4px;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: #020617;
}

.hero-title span {
  background: linear-gradient(120deg, #4f46e5, #16a34a, #0ea5e9);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 460px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 460px;
}

.hero-note span {
  color: #b45309;
  font-weight: 500;
}

.stats-strip {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.stat-sub {
  font-size: 11px;
  color: #166534;
  margin-top: 2px;
}

.right-card {
  background: radial-gradient(circle at top left, rgba(34,197,94,0.16), #ffffff);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(209,213,219,0.9);
  box-shadow: 0 16px 35px rgba(15,23,42,0.08);
}

.right-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.right-title {
  font-size: 15px;
  font-weight: 600;
}

.right-tag {
  font-size: 11px;
  color: var(--text-muted);
}

.status-row {
  margin-top: 8px;
  background: rgba(249,250,251,0.9);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(209,213,219,0.9);
  font-size: 12px;
  color: var(--text-muted);
}

.status-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.status-value {
  font-size: 13px;
  color: #111827;
  margin-bottom: 4px;
}

.sections {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 22px;
}

@media (max-width: 880px) {
  .sections {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 14px 30px rgba(15,23,42,0.06);
}

.card h2 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #111827;
}

.card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.steps {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.step {
  background: #f9fafb;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(209,213,219,0.9);
  font-size: 12px;
}

.step-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #111827;
}

.pill-warning {
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

footer {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

footer a {
  color: #6b7280;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  font-size: 11px;
}

/* auth pages */

.auth-wrapper {
  max-width: 420px;
  margin: 32px auto 0;
}

.auth-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 20px 20px;
  border: 1px solid rgba(209,213,219,0.9);
  box-shadow: 0 16px 35px rgba(15,23,42,0.08);
}

.auth-card h1 {
  font-size: 20px;
  margin-bottom: 6px;
  color: #111827;
}

.auth-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #111827;
}

input, select, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(209, 213, 219, 1);
  background: #ffffff;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.3);
}

.helper {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-footer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--accent);
}

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

/* dashboard */

.layout-dashboard {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
}

@media (max-width: 880px) {
  .layout-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }
}

.sidebar {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 14px;
  border: 1px solid rgba(209,213,219,0.9);
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.06);
}

.sidebar-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 6px;
}

.sidebar-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--text-muted);
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  background: #f3f4f6;
  color: #111827;
}

.tag-soft {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.55);
  color: #1d4ed8;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
}

.chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid rgba(209,213,219,0.9);
}

.alert-info {
  border-radius: 14px;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 12px;
  color: #1e40af;
}

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

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: minmax(0,1fr);
  }
}