/* =====================================================
   PREMIUM HELP & SUPPORT PAGE — ROI-pattern design
   ===================================================== */
:root {
  --help-primary: #10b981;
  --help-primary-dark: #059669;
  --help-primary-light: #d1fae5;
  --help-bg: #f5fbf7;
  --help-surface: #ffffff;
  --help-border: #e5e7eb;
  --help-text: #0f172a;
  --help-text-sec: #4b5563;
  --help-text-muted: #9ca3af;
  --help-success: #10b981;
  --help-info: #0ea5e9;
  --help-warning: #f59e0b;
  --help-purple: #8b5cf6;
  --help-teal: #0d9488;
  --help-rose: #f43f5e;
  --help-radius: 16px;
  --help-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --help-shadow-md: 0 4px 12px rgba(15,23,42,0.08);
  --help-shadow-lg: 0 18px 40px rgba(15,23,42,0.12);
  --help-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Page Container ---- */
.help-page { padding: 32px; max-width: 1400px; margin: 0 auto; width: 100%; flex: 1; overflow-y: auto; overflow-x: hidden; }
.help-page::-webkit-scrollbar { width: 6px; }
.help-page::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.main-content { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

/* ---- Page Header ---- */
.help-page-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.help-page-header__title {
  font-size: 1.5rem; font-weight: 700; color: var(--help-text);
  margin: 0 0 4px; display: flex; align-items: center; gap: 8px;
}
.help-page-header__title i { color: var(--help-primary); }
.help-page-header__subtitle { font-size: 0.9rem; color: var(--help-text-muted); margin: 0; }

/* ---- KPI Quick-Action Cards ---- */
.help-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }

.help-kpi {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 24px;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: var(--help-transition);
}
.help-kpi::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--kpi-color, var(--help-primary)) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.3s;
}
.help-kpi:hover { border-color: var(--kpi-color, var(--help-primary)); box-shadow: var(--help-shadow-lg); transform: translateY(-2px); }
.help-kpi:hover::before { opacity: 1; }

.help-kpi--blue   { --kpi-color: #3b82f6; }
.help-kpi--purple { --kpi-color: #8b5cf6; }
.help-kpi--teal   { --kpi-color: #0d9488; }
.help-kpi--amber  { --kpi-color: #f59e0b; }

.help-kpi__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }

.help-kpi__icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.help-kpi__icon--blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.help-kpi__icon--purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.help-kpi__icon--teal   { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0d9488; }
.help-kpi__icon--amber  { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }

.help-kpi__badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.help-kpi__badge--blue   { background: rgba(59,130,246,0.1); color: #3b82f6; }
.help-kpi__badge--purple { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.help-kpi__badge--teal   { background: rgba(13,148,136,0.1); color: #0d9488; }
.help-kpi__badge--amber  { background: rgba(245,158,11,0.1); color: #f59e0b; }

.help-kpi__label { font-size: 15px; font-weight: 700; color: var(--help-text); margin-bottom: 4px; }
.help-kpi__desc  { font-size: 12px; color: var(--help-text-muted); display: flex; align-items: center; gap: 4px; }
.help-kpi__desc i { font-size: 12px; }

/* ---- Content Grid (legacy layout) ---- */
.help-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }

/* ---- Flexible Panel Grid (public help) ---- */
.help-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 48px;
  align-items: stretch;
}
.help-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.help-panel--wide { grid-column: span 2; }
.help-panel__description {
  font-size: 13px;
  color: var(--help-text-muted);
  margin-bottom: 18px;
}
.help-panel__cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--help-primary), var(--help-primary-dark));
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: var(--help-transition);
  box-shadow: 0 8px 20px rgba(16,185,129,0.25);
}
.help-panel__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(16,185,129,0.35); }

.help-support-list { display: flex; flex-direction: column; gap: 12px; }
.help-support {
  border: 1px solid var(--help-border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: var(--help-transition);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.help-support:hover {
  border-color: var(--help-primary);
  box-shadow: var(--help-shadow-md);
  transform: translateY(-1px);
}
.help-support__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.help-support__icon--email { background: linear-gradient(135deg, #e0f2fe, #bfdbfe); color: #1d4ed8; }
.help-support__icon--phone { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #047857; }
.help-support__title { font-size: 14px; font-weight: 600; color: var(--help-text); }
.help-support__meta { font-size: 12px; color: var(--help-text-muted); }

.help-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.help-step-grid .help-step { margin: 0; }
.help-step-grid .help-step + .help-step { margin-top: 0; }

/* ---- Card Shell ---- */
.help-card {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  overflow: hidden;
  box-shadow: var(--help-shadow);
}
.help-card__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--help-border);
}
.help-card__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--help-text); margin: 0;
}
.help-card__title-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.help-card__title-icon--blue   { background: rgba(59,130,246,0.1); color: var(--help-info); }
.help-card__title-icon--teal   { background: rgba(13,148,136,0.1); color: var(--help-teal); }
.help-card__title-icon--amber  { background: rgba(245,158,11,0.1); color: var(--help-warning); }
.help-card__title-icon--purple { background: rgba(139,92,246,0.1); color: var(--help-purple); }

.help-card__body { padding: 24px; }




/* ---- FAQ Section ---- */
.help-faq-item {
  border: 1px solid var(--help-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--help-transition);
}
.help-faq-item:hover { border-color: #cbd5e1; }

.faq-question {
  background: #fafbfc;
  padding: 16px 20px;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--help-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--help-transition);
}
.faq-question:hover { background: #f1f5f9; }
.faq-question i { font-size: 14px; color: var(--help-text-muted); transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }

.faq-answer {
  padding: 0 20px 16px;
  color: var(--help-text-sec);
  font-size: 13px;
  line-height: 1.7;
  display: none;
  border-top: 1px solid #f1f5f9;
}
.faq-answer.show { display: block; padding-top: 14px; }

/* ---- Contact Card ---- */
.help-contact {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: var(--help-shadow);
}
.help-contact__title { font-size: 15px; font-weight: 700; color: var(--help-text); margin-bottom: 6px; }
.help-contact__desc  { font-size: 12px; color: var(--help-text-muted); margin-bottom: 20px; }

.help-contact-method {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--help-border);
  border-radius: 12px;
  margin-bottom: 12px;
  text-align: left;
  transition: var(--help-transition);
  cursor: pointer;
}
.help-contact-method:hover { border-color: var(--help-primary); background: #f8faff; transform: translateY(-1px); }

.help-contact-method__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.help-contact-method__icon--blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.help-contact-method__icon--teal   { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0d9488; }

.help-contact-method__name  { font-size: 13px; font-weight: 600; color: var(--help-text); }
.help-contact-method__detail { font-size: 11px; color: var(--help-text-muted); margin-top: 1px; }

.help-contact__btn {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; justify-content: center;
  padding: 10px 20px; margin-top: 8px;
  background: linear-gradient(135deg, var(--help-primary), var(--help-primary-dark));
  color: white; border: none; border-radius: 12px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: var(--help-transition);
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.help-contact__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59,130,246,0.4); }

/* ---- Getting Started Steps (Tip pattern) ---- */
.help-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: #fafbfc;
  border: 1px solid #f1f5f9;
  transition: var(--help-transition);
}
.help-step + .help-step { margin-top: 12px; }
.help-step:hover { background: #f0f7ff; border-color: #dbeafe; }
.help-step__num {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--help-primary), var(--help-primary-dark));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.help-step__title { font-size: 13px; font-weight: 600; color: var(--help-text); margin-bottom: 2px; }
.help-step__desc  { font-size: 12px; color: var(--help-text-muted); line-height: 1.5; }

/* ---- Resource Links ---- */
.help-resource {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--help-border);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--help-transition);
  text-decoration: none;
}
.help-resource + .help-resource { margin-top: 10px; }
.help-resource:hover { border-color: var(--help-primary); background: #f8faff; transform: translateY(-1px); box-shadow: var(--help-shadow-md); }

.help-resource__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.help-resource__icon--blue   { background: #eff6ff; color: #3b82f6; }
.help-resource__icon--purple { background: #f5f3ff; color: #7c3aed; }
.help-resource__icon--teal   { background: #f0fdfa; color: #0d9488; }
.help-resource__icon--amber  { background: #fffbeb; color: #d97706; }

.help-resource__name  { font-size: 13px; font-weight: 600; color: var(--help-text); }
.help-resource__desc  { font-size: 11px; color: var(--help-text-muted); margin-top: 1px; }
.help-resource__arrow { margin-left: auto; color: var(--help-text-muted); font-size: 14px; transition: transform 0.2s; }
.help-resource:hover .help-resource__arrow { transform: translateX(3px); color: var(--help-primary); }

/* ---- Bottom Insights Grid ---- */
.help-bottom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }

.help-insight {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 24px;
  text-align: center;
  transition: var(--help-transition);
}
.help-insight:hover { box-shadow: var(--help-shadow-md); transform: translateY(-2px); }

.help-insight__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 14px;
}
.help-insight__icon--blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.help-insight__icon--teal   { background: linear-gradient(135deg, #ccfbf1, #99f6e4); color: #0d9488; }
.help-insight__icon--purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }

.help-insight__value { font-size: 28px; font-weight: 800; color: var(--help-text); letter-spacing: -0.5px; margin-bottom: 4px; }
.help-insight__label { font-size: 13px; font-weight: 600; color: var(--help-text-sec); margin-bottom: 4px; }
.help-insight__sub   { font-size: 12px; color: var(--help-text-muted); }

/* ---- CTA Footer ---- */
.help-cta {
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: 28px;
}
.help-cta__text { display: flex; align-items: center; gap: 12px; }
.help-cta__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--help-primary);
  flex-shrink: 0;
}
.help-cta__title { font-size: 14px; font-weight: 600; color: var(--help-text); }
.help-cta__desc  { font-size: 12px; color: var(--help-text-muted); }
.help-cta__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--help-primary), var(--help-primary-dark));
  color: white; border: none; border-radius: 12px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: var(--help-transition);
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
  white-space: nowrap;
}
.help-cta__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59,130,246,0.4); color: white; }
.help-cta__btn i { transition: transform 0.2s; }
.help-cta__btn:hover i { transform: translateX(3px); }

/* ---- Modal Override ---- */
.help-modal .modal-content {
  border: 1px solid var(--help-border);
  border-radius: var(--help-radius);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}
.help-modal .modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--help-border);
}
.help-modal .modal-title {
  font-size: 15px; font-weight: 700; color: var(--help-text);
  display: flex; align-items: center; gap: 8px;
}
.help-modal .modal-title i { color: var(--help-primary); }
.help-modal .modal-body { padding: 24px; }
.help-modal .modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--help-border);
}

.help-modal .form-label {
  font-size: 12px; font-weight: 600; color: var(--help-text-sec);
  text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 6px;
}
.help-modal .form-control,
.help-modal .form-select {
  border: 1.5px solid var(--help-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  transition: var(--help-transition);
}
.help-modal .form-control:focus,
.help-modal .form-select:focus {
  border-color: var(--help-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.help-modal .btn-primary {
  background: linear-gradient(135deg, var(--help-primary), var(--help-primary-dark));
  border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 13px; font-weight: 600;
  transition: var(--help-transition);
}
.help-modal .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.help-modal .btn-secondary {
  background: #f1f5f9; color: var(--help-text-sec);
  border: 1px solid var(--help-border); border-radius: 10px;
  padding: 10px 20px; font-size: 13px; font-weight: 500;
}

/* ---- Toast Notification ---- */
.help-toast {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  min-width: 340px; max-width: 480px;
  background: var(--help-surface);
  border: 1px solid var(--help-border);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  display: flex; align-items: flex-start; gap: 12px;
  animation: slideInRight 0.3s ease;
}
.help-toast--success { border-left: 4px solid var(--help-success); }
.help-toast--error   { border-left: 4px solid var(--help-rose); }
.help-toast__icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.help-toast__icon--success { color: var(--help-success); }
.help-toast__icon--error   { color: var(--help-rose); }
.help-toast__msg { font-size: 13px; color: var(--help-text); line-height: 1.5; }
.help-toast__close {
  margin-left: auto; background: none; border: none;
  color: var(--help-text-muted); cursor: pointer; font-size: 16px;
  padding: 0; flex-shrink: 0;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Responsive ---- */
@media (max-width: 1280px) {
  .help-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .help-bottom-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .help-page { padding: 24px; }
  .help-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .help-page { padding: 20px 16px; }
  .help-kpi-grid { grid-template-columns: 1fr; gap: 16px; }
  .help-bottom-grid { grid-template-columns: 1fr; }
  .help-cta { flex-direction: column; text-align: center; }
  .help-cta__text { flex-direction: column; }
  .help-cta__btn { width: 100%; justify-content: center; }
}