/* Modulbroker — shared design tokens & components */
:root {
  --mb-red: #c0392b;
  --mb-red-hover: #a93226;
  --mb-red-pale: #fef2f2;
  --mb-ink: #111827;
  --mb-text: #1f2937;
  --mb-muted: #6b7280;
  --mb-border: #e5e7eb;
  --mb-cream: #faf8f4;
  --mb-white: #ffffff;
  --mb-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --mb-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --mb-radius: 12px;
  --mb-radius-lg: 18px;
  --mb-nav-h: 60px;
  --mb-font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Help nav icon — circle button in header */
.mb-help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--mb-border, #e5e7eb);
  background: var(--mb-white, #fff);
  color: var(--mb-muted, #6b7280);
  text-decoration: none;
  font-size: 17px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.mb-help-link:hover {
  border-color: var(--mb-red, #c0392b);
  color: var(--mb-red, #c0392b);
  background: var(--mb-red-pale, #fef2f2);
  transform: scale(1.05);
}
.mb-help-link span { display: none; }
.mb-help-link.mb-help-active {
  border-color: var(--mb-red);
  color: var(--mb-red);
  background: var(--mb-red-pale);
}

/* Dark headers (chat page) */
header.mb-header-dark .mb-help-link,
.mb-header-dark .mb-help-link {
  border-color: #30363d;
  background: #1c2330;
  color: #9ca3af;
}
header.mb-header-dark .mb-help-link:hover,
.mb-header-dark .mb-help-link:hover {
  border-color: var(--mb-red);
  color: var(--mb-red);
  background: rgba(192, 57, 43, 0.15);
}

/* Nav right cluster */
.mb-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Primary / secondary buttons */
.mb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--mb-font);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.mb-btn-primary {
  background: var(--mb-red, #c0392b);
  color: #fff;
}
.mb-btn-primary:hover {
  background: var(--mb-red-hover, #a93226);
  box-shadow: 0 4px 14px rgba(192, 57, 43, 0.35);
}
.mb-btn-outline {
  background: #fff;
  color: var(--mb-text);
  border: 1.5px solid var(--mb-border);
}
.mb-btn-outline:hover {
  border-color: var(--mb-red);
  color: var(--mb-red);
}

/* Help center page */
.help-page {
  font-family: var(--mb-font);
  background: var(--mb-cream);
  color: var(--mb-text);
  min-height: 100vh;
}
.help-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--mb-nav-h);
  background: #fff;
  border-bottom: 1px solid var(--mb-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.help-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
  color: var(--mb-ink);
  text-decoration: none;
}
.help-nav-logo img { height: 28px; }
.help-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.help-nav-links a {
  color: #374151;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
}
.help-nav-links a:hover { color: var(--mb-red); }
.help-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-hero {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #fff;
  padding: 56px 28px 48px;
  text-align: center;
}
.help-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.help-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.help-main {
  max-width: 760px;
  margin: -32px auto 60px;
  padding: 0 20px;
}
.help-card {
  background: #fff;
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius-lg);
  box-shadow: var(--mb-shadow-lg);
  overflow: hidden;
}
.help-step {
  padding: 28px 32px;
  border-bottom: 1px solid var(--mb-border);
}
.help-step:last-child { border-bottom: none; }
.help-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--mb-red-pale);
  color: var(--mb-red);
  font-weight: 800;
  font-size: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.help-step h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--mb-ink);
  margin-bottom: 8px;
}
.help-step p {
  font-size: 14.5px;
  color: var(--mb-muted);
  line-height: 1.65;
}
.help-step a {
  color: var(--mb-red);
  font-weight: 600;
  text-decoration: none;
}
.help-step a:hover { text-decoration: underline; }
.help-support {
  background: linear-gradient(135deg, var(--mb-red-pale), #fff);
  padding: 28px 32px;
}
.help-support h2 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.help-support p { font-size: 14px; color: var(--mb-muted); line-height: 1.6; }
.help-support a { color: var(--mb-red); font-weight: 700; }

/* Dashboard polish (buyer / vendor) */
.welcome-bar,
.profile-header {
  border-radius: var(--mb-radius-lg);
  box-shadow: var(--mb-shadow);
}
.stat-card,
.dash-stat {
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat-card:hover,
.dash-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--mb-shadow-lg);
}
.sidebar-nav a[href="modulbroker-help.html"] {
  color: var(--mb-muted);
  font-weight: 500;
}
.sidebar-nav a[href="modulbroker-help.html"]:hover {
  background: var(--mb-red-pale);
  color: var(--mb-red);
}

/* Auth form polish */
.card input[type="email"],
.card input[type="password"],
.card input[type="text"] {
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card input:focus {
  border-color: var(--mb-red) !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.btn-primary,
.card .btn-primary {
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  .help-nav { padding: 0 16px; }
  .help-nav-links { display: none; }
  .help-step { padding: 22px 20px; }
}
