/* ============================================================
 * PUSAT PANDUAN & BANTUAN PORTAL INTERAKTIF — BPMP KALTENG
 * Edisi 2026 | Desain Ringkas, Berbasis Topik & Solusi Cepat
 * ============================================================ */

:root {
  --gp: #003366;
  --gp-dark: #002244;
  --gp-light: #0a4080;
  --gp-subtle: rgba(0, 51, 102, 0.05);
  --gp-border: rgba(0, 51, 102, 0.12);
  --gs: #1E90FF;
  --gs-hover: #0070e0;
  --gs-subtle: rgba(30, 144, 255, 0.08);
  --ga: #FFEB3B;
  --ga-dark: #e5c800;
  --ga-subtle: rgba(255, 235, 59, 0.2);
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
  --border: #e2e8f0;
  --success: #10b981;
  --success-subtle: rgba(16, 185, 129, 0.1);
  --danger: #ef4444;
  --danger-subtle: rgba(239, 68, 68, 0.1);
  --warn: #f59e0b;
  --warn-subtle: rgba(245, 158, 11, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --shadow-sm: 0 1px 3px rgba(0, 51, 102, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 51, 102, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 51, 102, 0.09);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* ── Top Header Bar (Ringkas 56px) ────────────────────────────── */
.help-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 34, 68, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  justify-content: space-between;
  gap: 14px;
}

.help-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon-box {
  width: 36px;
  height: 36px;
  background: var(--ga);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gp);
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(255, 235, 59, 0.3);
  font-weight: normal;
  -webkit-text-stroke: 0px;
}

.brand-title h1 {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-title p {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.help-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-to-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--ga);
  color: var(--gp-dark);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(255, 235, 59, 0.3);
}

.btn-to-login:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.btn-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #25D366;
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-header-wa:hover {
  background: #20ba59;
  transform: translateY(-1px);
}

.btn-header-helpdesk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.btn-header-helpdesk:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.45);
}

.btn-helpdesk-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35);
}

.btn-helpdesk-trigger:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(2, 132, 199, 0.45);
}

/* ── Hero Search Section (Kompak & Ramping) ───────────────────── */
.help-hero {
  background: linear-gradient(135deg, #002244 0%, #003366 50%, #0a4080 100%);
  color: #ffffff;
  padding: 22px 20px 18px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--ga);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-main-title {
  font-size: clamp(19px, 2.5vw, 25px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
  color: #ffffff;
}

.hero-main-title span {
  color: var(--ga);
}

.hero-subtext {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  margin-bottom: 14px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Bar (Kompak & Elegan) */
.hero-search-box {
  max-width: 600px;
  margin: 0 auto 10px;
  position: relative;
}

.hero-search-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  padding: 10px 42px 10px 40px;
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.hero-search-input:focus {
  border-color: var(--gs);
  box-shadow: 0 6px 20px rgba(30, 144, 255, 0.35);
}

.hero-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 18px;
}

.hero-search-clear {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 16px;
  cursor: pointer;
  display: none;
}

.hero-search-clear:hover {
  color: var(--gp);
}

/* Quick Question Chips */
.hero-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sugg-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.sugg-chip {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sugg-chip:hover {
  background: var(--gs);
  border-color: var(--gs);
  transform: translateY(-1px);
}

/* ── Sticky Topic Navigation Pills (Wrap Rapi, Tidak Terpotong) ─ */
.topic-nav-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 56px;
  z-index: 990;
}

.topic-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  padding: 8px 12px;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topic-nav-inner::-webkit-scrollbar {
  display: none;
}

.topic-nav-pill {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  border: 1px solid transparent;
  color: var(--text2);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.topic-nav-pill:hover {
  color: var(--gp);
  background: var(--gp-subtle);
}

.topic-nav-pill.active {
  background: var(--gp);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 51, 102, 0.2);
}

.topic-nav-pill.active i {
  color: var(--ga);
}

/* ── Main Container ───────────────────────────────────────────── */
.help-main-container {
  max-width: 1140px;
  margin: 24px auto 90px;
  padding: 0 20px;
}

/* ── Direct Quick Answer Banner ───────────────────────────────── */
.quick-answer-card {
  display: none;
  background: #ffffff;
  border: 2px solid var(--gs);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.25s ease;
  position: relative;
}

.quick-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.quick-answer-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--gp);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-answer-content {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
}

.quick-answer-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-answer-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ── Overview Hub Grid (Default View Shortcuts) ───────────────── */
.overview-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.hub-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hub-card:hover {
  transform: translateY(-2px);
  border-color: var(--gs);
  box-shadow: var(--shadow-md);
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.2s;
}

.hub-card:hover::before {
  background: linear-gradient(90deg, #003366, #1E90FF, #FFEB3B);
}

.hub-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gp-subtle);
  color: var(--gp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.hub-card:hover .hub-icon-wrap {
  background: var(--gp);
  color: var(--ga);
}

.hub-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gp);
  margin-bottom: 3px;
  line-height: 1.3;
}

.hub-body p {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.45;
}

.hub-body .hub-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--gs);
  background: var(--gs-subtle);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ── Topic Detail Sections (Muncul Hanya Saat Diklik/Dipilih) ──── */
.topic-section {
  display: none; /* Default tersembunyi pada tampilan 'Semua Panduan' sesuai permintaan pengguna */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  animation: fadeIn 0.25s ease;
}

.btn-back-hub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gs);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.15s;
}

.btn-back-hub:hover {
  background: #dbeafe;
  transform: translateX(-2px);
}

.topic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topic-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--gp);
  color: var(--ga);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.topic-title-group h2 {
  font-size: 19px;
  font-weight: 800;
  color: var(--gp);
  line-height: 1.2;
}

.topic-title-group p {
  font-size: 12.5px;
  color: var(--text2);
  margin-top: 2px;
}

.topic-badge-pill {
  background: var(--gs-subtle);
  color: var(--gs);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

/* Steps Cards Row */
.action-steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.action-step-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.step-num-pill {
  font-size: 10px;
  font-weight: 800;
  color: var(--gp);
  background: var(--ga-subtle);
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.action-step-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gp);
  margin-bottom: 3px;
}

.action-step-card p {
  font-size: 11.5px;
  color: var(--text2);
  line-height: 1.45;
}

/* ── Simulator Slider ─────────────────────────────────────────── */
.interactive-playground {
  background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
  border: 2px solid #bae0fd;
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 18px 0;
}

.playground-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gp);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.playground-sub {
  font-size: 11.5px;
  color: var(--text2);
  margin-bottom: 14px;
}

.slider-demo-box {
  width: 100%;
  max-width: 350px;
  height: 48px;
  background: #e2e8f0;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  margin: 0 auto;
}

.slider-demo-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1E90FF, #003366);
  border-radius: 24px;
  transition: width 0.05s ease;
}

.slider-demo-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  z-index: 2;
  pointer-events: none;
}

.slider-demo-lock {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  z-index: 2;
}

.slider-demo-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 42px;
  height: 42px;
  background: #003366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: grab;
}

.slider-demo-status {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 10px;
  min-height: 18px;
}

/* ── Live Password Checker ────────────────────────────────────── */
.pwd-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  align-items: start;
}

.pwd-rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.pwd-rule-badge {
  font-size: 11.5px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pwd-rule-badge.valid {
  color: var(--success);
  font-weight: 600;
}

/* ── FAQ Accordion ────────────────────────────────────────────── */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.15s ease;
}

.faq-item:hover {
  border-color: var(--gs);
}

.faq-item.open {
  border-color: var(--gp);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gp);
  user-select: none;
}

.faq-question i {
  color: var(--gs);
  font-size: 16px;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
  color: var(--gp);
}

.faq-answer {
  display: none;
  padding: 0 18px 16px 18px;
  font-size: 12.5px;
  color: var(--text2);
  line-height: 1.55;
  border-top: 1px solid #f1f5f9;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ── WhatsApp Generator ───────────────────────────────────────── */
.wa-widget-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 18px;
}

.wa-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.wa-input-ctrl {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 12.5px;
  color: var(--text);
  outline: none;
}

.wa-input-ctrl:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.wa-preview-text {
  background: #ffffff;
  border: 1px dashed #86efac;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: monospace;
  font-size: 11px;
  color: #166534;
  white-space: pre-wrap;
  margin: 8px 0;
  max-height: 120px;
  overflow-y: auto;
}

/* ── Hotspot Diagram ──────────────────────────────────────────── */
.dashboard-interactive-map {
  background: #002244;
  border-radius: var(--radius-md);
  padding: 14px;
  color: #ffffff;
  position: relative;
}

.map-pin {
  width: 24px;
  height: 24px;
  background: var(--ga);
  color: var(--gp);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  border: none;
  animation: pulse-pin 2s infinite;
}

@keyframes pulse-pin {
  0% { box-shadow: 0 0 0 0 rgba(255, 235, 59, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 235, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 235, 59, 0); }
}

/* ── App Directory Grid ───────────────────────────────────────── */
.app-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.app-dir-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
}

.app-dir-card:hover {
  border-color: var(--gs);
  transform: translateY(-1px);
}

.app-dir-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--gp-subtle);
  color: var(--gp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.app-dir-info h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--gp);
  line-height: 1.2;
}

.app-dir-info span {
  font-size: 9.5px;
  color: var(--success);
  font-weight: 600;
}

/* ── Glosarium Terms Grid ─────────────────────────────────────── */
.terms-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.term-item-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.term-item-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gp);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-item-card p {
  font-size: 11.5px;
  color: var(--text2);
  line-height: 1.45;
}

/* ── Notices ─────────────────────────────────────────────────── */
.notice-box {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 14px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
}

.notice-box.tips { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.notice-box.warning { background: #fefce8; border: 1px solid #fef08a; color: #854d0e; }
.notice-box.danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.notice-box.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

/* ── Animations ───────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Fitur Portal Interactive Cards ───────────────────────────── */
.portal-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.portal-feature-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
}

.portal-feature-item:hover {
  border-color: var(--gs);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.portal-feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.portal-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gp-subtle);
  color: var(--gp);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.portal-feature-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.portal-feature-badge.user {
  background: #dbeafe;
  color: #1e40af;
}

.portal-feature-badge.admin {
  background: #fef3c7;
  color: #92400e;
}

.portal-feature-item h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gp);
  margin-bottom: 4px;
}

.portal-feature-item p {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}

/* ── UI Mockup Container & Window Chrome ──────────────────────── */
.ui-mockup-frame {
  background: #002244;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(0, 34, 68, 0.22);
  overflow: hidden;
  margin: 16px 0 20px;
}

.ui-mockup-bar {
  background: #001730;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ui-mockup-dots {
  display: flex;
  gap: 6px;
}

.ui-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ui-dot.red { background: #ef4444; }
.ui-dot.yellow { background: #f59e0b; }
.ui-dot.green { background: #10b981; }

.ui-mockup-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-family: monospace;
  letter-spacing: 0.5px;
}

.ui-mockup-body {
  padding: 16px;
  position: relative;
  background: #f8fafc;
  color: var(--text);
}

.ui-mockup-body.dark {
  background: #002244;
  color: #ffffff;
}

/* ── Interactive Pointer & Callout (Kontras Tinggi & Bebas Tumpang Tindih) ── */
.ui-pointer-callout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #002244;
  color: #FFEB3B;
  border: 1.5px solid #FFEB3B;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  animation: pulse-pointer 2s infinite ease-in-out;
  z-index: 20;
  white-space: nowrap;
  pointer-events: none;
}

.ui-pointer-callout.light {
  background: #ffffff;
  color: #003366;
  border: 1.5px solid #1E90FF;
  box-shadow: 0 4px 14px rgba(30, 144, 255, 0.25);
}

.ui-pointer-callout.green {
  background: #166534;
  color: #ffffff;
  border: 1.5px solid #86efac;
}

@keyframes pulse-pointer {
  0% { transform: translateY(0); box-shadow: 0 4px 12px rgba(0, 34, 68, 0.4); }
  50% { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(255, 235, 59, 0.35); }
  100% { transform: translateY(0); box-shadow: 0 4px 12px rgba(0, 34, 68, 0.4); }
}

/* ── Feature Tabs Navigation in Fitur Portal ─────────────────── */
.feature-tab-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin-bottom: 14px;
  scrollbar-width: thin;
}

.feature-tab-btn {
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--gp);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.feature-tab-btn:hover {
  background: var(--gp-subtle);
  border-color: var(--gs);
}

.feature-tab-btn.active {
  background: var(--gp);
  color: #ffffff;
  border-color: var(--gp);
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.25);
}

.feature-tab-btn.active i {
  color: var(--ga);
}

/* ── Screen Panels ────────────────────────────────────────────── */
.feature-screen-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

.feature-screen-panel.active {
  display: block;
}

/* ── Floating Actions ─────────────────────────────────────────── */
.floating-actions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.float-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gp);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.float-circle-btn:hover {
  transform: scale(1.08);
}

.float-circle-btn.wa {
  background: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.float-circle-btn.helpdesk {
  background: #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .help-header {
    height: auto;
    padding: 8px 16px;
    flex-wrap: wrap;
  }
  .help-hero {
    padding: 16px 14px;
  }
  .topic-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .topic-section {
    padding: 18px;
  }
  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }
}
