* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f9fafb;
  color: #111827;
}
a { text-decoration: none; color: inherit; }

.navbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #111827;
}
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.brand-name { white-space: nowrap; }
.nav-links {
  display: flex;
  gap: 20px;
  flex: 1;
}
.nav-link {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  padding: 6px 0;
}
.nav-link:hover { color: #374151; }
.nav-link.active { color: #6d28d9; font-weight: 600; }
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-user-name {
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}
.signout-link {
  font-size: 13px;
  color: #9ca3af;
}
.signout-link:hover { color: #6b7280; }

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.narrow {
  max-width: 640px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.92; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary:hover { background: #f9fafb; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  background: #fff;
}
input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
input[type="checkbox"], input[type="radio"] {
  accent-color: #6d28d9;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}
.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.bar-label {
  width: 180px;
  flex-shrink: 0;
  font-size: 13px;
  color: #374151;
}
.bar-track {
  flex: 1;
  height: 8px;
  background: #f3f4f6;
  border-radius: 100px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 100px;
}
.bar-value {
  width: 48px;
  flex-shrink: 0;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.feature-table th {
  text-align: left;
  padding: 10px 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}
.feature-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #f9fafb;
  vertical-align: top;
}
.feature-table tr:last-child td { border-bottom: none; }
.feature-table tr.disabled { opacity: 0.6; }
