/* =========================================================
   docs.css — Layout cho 4 trang tài liệu API trong /docs
   ========================================================= */

/* Font Vietnamese */
.docs-page {
  --default-font: "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
}

.docs-page,
.docs-page h1, .docs-page h2, .docs-page h3,
.docs-page h4, .docs-page h5, .docs-page h6,
.docs-page p, .docs-page a, .docs-page span, .docs-page li,
.docs-page button, .docs-page input, .docs-page label, .docs-page code {
  font-family: system-ui, arial, tahoma, sans-serif !important;
}

/* =========================================================
   Header — gradient navy + chữ trắng (giống trang ngoài)
   + STICKY (chiếm flow, không cần padding bù)
   ========================================================= */
.docs-page .header {
  position: sticky !important;
  top: 0 !important;
  background: linear-gradient(180deg, #2a3f6b 0%, #37517e 100%) !important;
  background-image: linear-gradient(180deg, #2a3f6b 0%, #37517e 100%) !important;
  border-bottom: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.docs-page .header .navmenu a,
.docs-page .header .navmenu a:focus {
  color: #ffffff !important;
}

.docs-page .header .navmenu a:not(.btn-getstarted):hover,
.docs-page .header .navmenu .active:not(.btn-getstarted),
.docs-page .header .navmenu li:hover > a:not(.btn-getstarted) {
  color: #4facfe !important;
}

.docs-page .header .navmenu a i {
  color: inherit !important;
}

/* Logo text — giữ trắng giống trang ngoài */
.docs-page .header .logo .sitename,
.docs-page .header .logo .datapro_form {
  color: #ffffff !important;
}

.docs-page .header .logo .datapro-slogan-style,
.docs-page .header .logo #datapro-slogan {
  color: #5dade2 !important;
}

/* Dropdown menu items — nền trắng cho dễ đọc, text navy */
.docs-page .header .navmenu .dropdown ul {
  background: #ffffff !important;
  border: 1px solid #eaf0f7;
  box-shadow: 0 12px 30px rgba(55, 81, 126, 0.12) !important;
}

.docs-page .header .navmenu .dropdown ul a {
  color: #1f2f56 !important;
}

.docs-page .header .navmenu .dropdown ul a:hover {
  color: #4facfe !important;
  background: #f0f6ff;
}

/* Phone button — luôn giữ chữ trắng dù hover/focus/active */
.docs-page .header .btn-getstarted,
.docs-page .header .btn-getstarted:hover,
.docs-page .header .btn-getstarted:focus,
.docs-page .header .btn-getstarted:active,
.docs-page .header .phone-button,
.docs-page .header .phone-button:hover,
.docs-page .header .phone-button .phone-number,
.docs-page .header .phone-button:hover .phone-number,
.docs-page .header li:hover > .btn-getstarted,
.docs-page .header li:hover > .btn-getstarted .phone-number {
  color: #ffffff !important;
}

/* English button */
.docs-page .header .navmenu .btncLang {
  color: #ffffff !important;
  cursor: pointer;
}

/* Dropdown toggle icon — cách xa chữ menu */
.docs-page .header .navmenu a > i.toggle-dropdown {
  margin-left: 8px !important;
  font-size: 11px;
}

/* Mobile nav toggle */
.docs-page .header .mobile-nav-toggle {
  color: #ffffff !important;
}

/* =========================================================
   MOBILE menu (≤1199px) — text dark cho dễ đọc trên nền trắng
   ========================================================= */
@media (max-width: 1199px) {
  .docs-page .header .navmenu a,
  .docs-page .header .navmenu a:focus,
  .docs-page .header .navmenu a:not(.btn-getstarted):hover,
  .docs-page .header .navmenu .active:not(.btn-getstarted),
  .docs-page .header .navmenu li:hover > a:not(.btn-getstarted),
  .docs-page .header .navmenu .dropdown ul a,
  .docs-page .header .navmenu .btncLang {
    color: #1f2f56 !important;
  }

  .docs-page .header .navmenu a:hover,
  .docs-page .header .navmenu .dropdown ul a:hover {
    color: #4facfe !important;
  }

  /* Phone button (zalo) — giữ trắng vì nền xanh */
  .docs-page .header .navmenu .phone-button,
  .docs-page .header .navmenu .phone-button:hover,
  .docs-page .header .navmenu .phone-button .phone-number {
    color: #ffffff !important;
  }

  /* datapro-button — text giữ navy, chỉ icon trắng */
  .docs-page .header .navmenu .datapro-button,
  .docs-page .header .navmenu .datapro-button:hover,
  .docs-page .header .navmenu .datapro-button .phone-number,
  .docs-page .header .navmenu .datapro-button span {
    color: #1f2f56 !important;
  }
  .docs-page .header .navmenu .datapro-button i {
    color: #ffffff !important;
  }
}

/* =========================================================
   Header — 4 product tabs to dưới menu chính
   ========================================================= */
.docs-page .docs-product-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 16px;
  background: rgba(40, 58, 90, 0.04);
}

.docs-page .docs-product-tabs .tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  opacity: 0.85;
}
.docs-page .docs-product-tabs .tab:hover {
  transform: translateY(-2px);
  opacity: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.docs-page .docs-product-tabs .tab.active {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.docs-page .docs-product-tabs .tab-datapro     { background: linear-gradient(135deg, #4facfe, #2c6dd6); }
.docs-page .docs-product-tabs .tab-crypto      { background: linear-gradient(135deg, #f59e0b, #d97706); }
.docs-page .docs-product-tabs .tab-smartapi    { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.docs-page .docs-product-tabs .tab-dobbyai     { background: linear-gradient(135deg, #16a34a, #15803d); }
.docs-page .docs-product-tabs .tab-stockprice  { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* =========================================================
   Body wrapper — Sidebar + Content
   ========================================================= */
.docs-page main.docs-wrapper,
.docs-page .docs-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 60px;
  background: #f5f8fc;
  min-height: calc(100vh - 130px);
}

/* Reset triệt để mọi margin-top trong content area */
.docs-page .docs-layout {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.docs-page .docs-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.docs-page .docs-content > *:first-child {
  margin-top: 0 !important;
}

.docs-page h1.docs-page-title {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Header không có padding-bottom dư */
.docs-page .header {
  padding-bottom: 0 !important;
}

.docs-page .docs-product-tabs {
  margin-bottom: 0 !important;
}

.docs-page .docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Sidebar ---------- */
.docs-page .docs-sidebar {
  position: sticky;
  top: 150px;
  align-self: start;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eaf0f7;
  box-shadow: 0 6px 24px rgba(55, 81, 126, 0.06);
  padding: 22px 18px;
  max-height: calc(100vh - 170px);
  overflow-y: auto;
}

.docs-page .docs-sidebar h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7c93;
  font-weight: 700;
  margin: 0 0 12px;
  padding-left: 8px;
}

.docs-page .docs-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.docs-page .docs-sidebar ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #4a5a78;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  border-left: 3px solid transparent;
}

.docs-page .docs-sidebar ul li a i {
  font-size: 14px;
  color: #94a3b8;
  flex-shrink: 0;
}

.docs-page .docs-sidebar ul li a:hover {
  background: #f0f6ff;
  color: #2c6dd6;
  padding-left: 14px;
}

.docs-page .docs-sidebar ul li a.active {
  background: linear-gradient(135deg, #eef6ff, #dcebff);
  color: #1f2f56;
  font-weight: 700;
  border-left-color: #4facfe;
}

.docs-page .docs-sidebar ul li a.active i {
  color: #4facfe;
}

/* ---------- Content ---------- */
.docs-page .docs-content {
  min-width: 0; /* prevent overflow with grid */
}

.docs-page .docs-page-title {
  font-weight: 800;
  color: #1f2f56;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 0;
  margin-bottom: 6px;
  padding-top: 0;
}

.docs-page .docs-page-subtitle {
  color: #6b7c93;
  font-size: 15px;
  margin-bottom: 28px;
}

/* Card content section */
.docs-page .docs-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eaf0f7;
  box-shadow: 0 6px 24px rgba(55, 81, 126, 0.06);
  padding: 28px 30px;
  margin-bottom: 24px;
}

.docs-page .docs-card h3 {
  font-weight: 800;
  color: #1f2f56;
  font-size: 22px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eaf0f7;
}

.docs-page .docs-card h4 {
  font-weight: 700;
  color: #2c6dd6;
  font-size: 17px;
  margin: 22px 0 10px;
}

.docs-page .docs-card p {
  color: #4a5a78;
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 12px;
}

.docs-page .docs-card ul {
  padding-left: 22px;
  color: #4a5a78;
  line-height: 1.85;
  margin-bottom: 12px;
}

.docs-page .docs-card ul li::marker {
  color: #4facfe;
}

.docs-page .docs-card code {
  background: #eef6ff;
  color: #2c6dd6;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-family: "Consolas", "Courier New", monospace;
  border: 1px solid #cfe2f5;
}

/* Code block */
.docs-page .docs-codeblock {
  background: #0f2444;
  color: #e0f2ff;
  padding: 18px 22px;
  border-radius: 12px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 14px 0;
  position: relative;
  border: 1px solid #1e3a5f;
}

.docs-page .docs-codeblock::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(79, 172, 254, 0.18);
  color: #4facfe;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.docs-page .docs-codeblock pre {
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

/* Method badges (GET/POST/...) */
.docs-page .api-method {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-right: 8px;
  vertical-align: 1px;
}
.docs-page .api-method.get    { background: #dcfce7; color: #166534; }
.docs-page .api-method.post   { background: #dbeafe; color: #1e40af; }
.docs-page .api-method.put    { background: #fef3c7; color: #92400e; }
.docs-page .api-method.delete { background: #fee2e2; color: #991b1b; }

.docs-page .api-endpoint {
  display: inline-block;
  background: #f1f5f9;
  color: #1f2f56;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #cfe2f5;
}

/* Param table */
.docs-page .api-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 14px;
}
.docs-page .api-table th {
  background: #f8fbff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 700;
  color: #1f2f56;
  border-bottom: 2px solid #cfe2f5;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.docs-page .api-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
  color: #4a5a78;
}
.docs-page .api-table td code {
  background: #eef6ff; color: #2c6dd6;
  padding: 2px 7px; border-radius: 5px; font-size: 12.5px;
}

/* =========================================================
   FLOWCHART — Dobby AI: Luồng thông tin (Information Flow)
   ========================================================= */
.docs-page .flow-wrap {
  background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 100%);
  border: 1px solid #eaf0f7;
  border-radius: 16px;
  padding: 28px 22px;
  margin-top: 16px;
}

.docs-page .flow-title {
  text-align: center;
  font-weight: 700;
  color: #2c6dd6;
  font-size: 15px;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.docs-page .flow-title::before,
.docs-page .flow-title::after {
  content: ""; flex: 0 0 40px; height: 2px;
  background: linear-gradient(90deg, transparent, #4facfe);
}
.docs-page .flow-title::after {
  background: linear-gradient(90deg, #4facfe, transparent);
}

.docs-page .flow-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: stretch;
}

.docs-page .flow-step {
  background: #ffffff;
  border-radius: 14px;
  border: 2px solid;
  padding: 16px 14px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: #4a5a78;
  line-height: 1.5;
}

.docs-page .flow-step .num {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 2px solid;
  font-weight: 800;
  font-size: 13px;
}

.docs-page .flow-step .icon-big {
  font-size: 30px;
  margin: 6px auto 4px;
}

.docs-page .flow-step .step-name {
  font-weight: 800;
  color: #1f2f56;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.docs-page .flow-step ul {
  margin: 0; padding-left: 16px; text-align: left;
  font-size: 11.5px; line-height: 1.55;
}

/* Step variants */
.docs-page .flow-step.s-event   { border-color: #94a3b8; background: linear-gradient(180deg, #f8fafc, #fff); }
.docs-page .flow-step.s-event   .num { border-color: #94a3b8; color: #475569; }
.docs-page .flow-step.s-event   .icon-big { color: #475569; }

.docs-page .flow-step.s-classify { border-color: #4facfe; }
.docs-page .flow-step.s-classify .num { border-color: #4facfe; color: #2c6dd6; }
.docs-page .flow-step.s-classify .icon-big { color: #4facfe; }

.docs-page .flow-step.s-data { border-color: #f59e0b; }
.docs-page .flow-step.s-data .num { border-color: #f59e0b; color: #b45309; }
.docs-page .flow-step.s-data .icon-big { color: #f59e0b; }

.docs-page .flow-step.s-db { border-color: #16a34a; }
.docs-page .flow-step.s-db .num { border-color: #16a34a; color: #15803d; }
.docs-page .flow-step.s-db .icon-big { color: #16a34a; }

.docs-page .flow-step.s-ai { border-color: #a78bfa; }
.docs-page .flow-step.s-ai .num { border-color: #a78bfa; color: #6d28d9; }
.docs-page .flow-step.s-ai .icon-big { color: #a78bfa; }

.docs-page .flow-step.s-result { border-color: #10b981; background: linear-gradient(180deg, #ecfdf5, #fff); }
.docs-page .flow-step.s-result .icon-big { color: #10b981; }

.docs-page .flow-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: #6b7c93;
  background: #f8fbff;
  padding: 10px 14px;
  border-left: 3px solid #4facfe;
  border-radius: 6px;
}

@media (max-width: 1100px) {
  .docs-page .flow-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .docs-page .flow-steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   Responsive — sidebar collapse
   ========================================================= */
@media (max-width: 991px) {
  .docs-page .docs-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .docs-page .docs-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 16px;
  }
  .docs-page .docs-wrapper {
    padding-top: 0;
  }

  /* Product tabs wrap đẹp trên tablet/mobile */
  .docs-page .docs-product-tabs {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }
  .docs-page .docs-product-tabs .tab {
    padding: 7px 16px;
    font-size: 13px;
  }

  /* Card content padding nhỏ hơn */
  .docs-page .docs-card { padding: 22px 20px; }
  .docs-page .docs-card h3 { font-size: 19px; }
  .docs-page .docs-card h4 { font-size: 16px; }
  .docs-page .docs-card p,
  .docs-page .docs-card ul { font-size: 14px; }

  /* Code block scroll ngang trên mobile */
  .docs-page .docs-codeblock { font-size: 12.5px; padding: 14px 16px; }

  /* Page title nhỏ hơn */
  .docs-page .docs-page-title { font-size: 1.5rem; }

  /* API table — cuộn ngang nếu cần */
  .docs-page .api-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 576px) {
  /* Tabs nhỏ hơn nữa trên mobile small */
  .docs-page .docs-product-tabs .tab {
    padding: 6px 12px;
    font-size: 12px;
  }
  .docs-page .docs-product-tabs .tab i { font-size: 13px; }

  .docs-page .docs-card { padding: 18px 16px; }
  .docs-page .docs-page-title { font-size: 1.3rem; }
  .docs-page .docs-page-subtitle { font-size: 13.5px; }
}

/* =========================================================
   DOCS — Bật/Tắt API steps & notes
   ========================================================= */
.docs-page .docs-steps {
  padding-left: 0;
  list-style: none;
  margin: 14px 0 18px;
  counter-reset: step-counter;
}

.docs-page .docs-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14.5px;
  color: #3a4a6b;
  line-height: 1.65;
}

.docs-step-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 68px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #37517e, #4facfe);
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

.docs-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 10px 0 4px;
}

.docs-note i {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.docs-note-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.docs-note-info i { color: #3b82f6; }

.docs-note-warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.docs-note-warn i { color: #f97316; }

.docs-divider {
  border: none;
  border-top: 1px solid #eef2f7;
  margin: 24px 0;
}

/* =========================================================
   FOOTER — same gradient navy as enhanced footer
   ========================================================= */
.docs-page .footer {
  background: linear-gradient(180deg, #2a3f6b 0%, #1f2f56 100%);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 50px;
}

.docs-page .footer h4 {
  color: #fff; font-size: 16px; font-weight: 700;
  margin-bottom: 16px; padding-bottom: 10px;
  position: relative;
}
.docs-page .footer h4::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 3px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  border-radius: 2px;
}

.docs-page .footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0; margin-top: 30px;
  color: rgba(255, 255, 255, 0.6); font-size: 13px;
}

/* =========================================================
   Dobby AI — Flow Timeline (docs/DobbyAI.html)
   ========================================================= */
.docs-flow-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
}
.docs-flow-timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #3b82f6, #6366f1, #22c55e, #f59e0b, #1b3a5c, #22c55e);
  border-radius: 2px;
}
.docs-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding: 12px 0;
}
.docs-flow-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.docs-flow-content {
  background: #f7f8fb;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  padding: 14px 18px;
  flex: 1;
}
.docs-flow-content h5 {
  font-size: 15px;
  font-weight: 700;
  color: #1b2b52;
  margin-bottom: 6px;
}
.docs-flow-content h5 small {
  font-weight: 400;
  color: #8896a8;
}
.docs-flow-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-flow-content ul li {
  font-size: 13px;
  color: #5d6b82;
  padding: 2px 0;
  line-height: 1.5;
}
.docs-flow-content ul li::before {
  content: "•";
  color: #3b82f6;
  font-weight: 700;
  margin-right: 6px;
}

/* =========================================================
   STOCK SCREENING — Bộ lọc cổ phiếu
   ========================================================= */

/* Hero banner */
.scr-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
  border: 1px solid #86efac;
}
.scr-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(34,197,94,0.3);
}
.scr-hero-icon i {
  font-size: 2rem;
  color: #fff;
}
.scr-hero-text h3 {
  margin: 0 0 6px 0;
  font-size: 1.3rem;
  color: #14532d;
}
.scr-hero-text p {
  margin: 0;
  color: #166534;
  font-size: 0.92rem;
  line-height: 1.5;
}
.ind-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
  border-color: #93c5fd;
}
.ind-hero .scr-hero-icon {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}
.ind-hero .scr-hero-text h3 { color: #1e3a8a; }
.ind-hero .scr-hero-text p { color: #1e40af; }

/* Stat counters */
.scr-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.scr-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.scr-stat:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.scr-stat > i {
  font-size: 1.6rem;
  color: #22c55e;
  display: block;
  margin-bottom: 8px;
}
.scr-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 4px;
}
.scr-stat-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.screening-block {
  margin-bottom: 28px;
}
.screening-block h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}
.screening-block h4 i {
  color: #22c55e;
  margin-right: 6px;
}

/* Scope grid */
.screening-scope-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.scope-item {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 20px 24px;
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scope-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scope-icon i {
  font-size: 1.2rem;
  color: #fff;
}
.scope-item strong {
  display: block;
  color: #166534;
  margin-bottom: 0;
  font-size: 0.95rem;
}
.scope-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.scope-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}
.badge-hsx { background: #fee2e2; color: #991b1b; }
.badge-hnx { background: #fef3c7; color: #92400e; }
.badge-upcom { background: #dbeafe; color: #1e40af; }
.badge-icb { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Preset cards */
.preset-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.preset-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}
.preset-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.preset-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.4rem;
}
.preset-header {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.preset-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.7;
}
.preset-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.preset-card ul li {
  font-size: 0.84rem;
  color: #475569;
  padding: 5px 0;
  border-bottom: 1px dashed #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.preset-card ul li:last-child {
  border-bottom: none;
}
.preset-card ul li > i {
  font-size: 0.72rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* CANSLIM */
.preset-canslim { border-top: 4px solid #f59e0b; }
.preset-canslim .preset-icon-wrap { background: #fef3c7; color: #f59e0b; }
.preset-canslim .preset-header { color: #b45309; }
.preset-canslim .preset-subtitle { color: #b45309; }
.preset-canslim ul li > i { color: #f59e0b; }
/* Growth */
.preset-growth { border-top: 4px solid #22c55e; }
.preset-growth .preset-icon-wrap { background: #f0fdf4; color: #22c55e; }
.preset-growth .preset-header { color: #166534; }
.preset-growth .preset-subtitle { color: #166534; }
.preset-growth ul li > i { color: #22c55e; }
/* Value */
.preset-value { border-top: 4px solid #3b82f6; }
.preset-value .preset-icon-wrap { background: #eff6ff; color: #3b82f6; }
.preset-value .preset-header { color: #1e40af; }
.preset-value .preset-subtitle { color: #1e40af; }
.preset-value ul li > i { color: #3b82f6; }
/* Momentum */
.preset-momentum { border-top: 4px solid #a855f7; }
.preset-momentum .preset-icon-wrap { background: #faf5ff; color: #a855f7; }
.preset-momentum .preset-header { color: #7e22ce; }
.preset-momentum .preset-subtitle { color: #7e22ce; }
.preset-momentum ul li > i { color: #a855f7; }
/* Defensive */
.preset-defensive { border-top: 4px solid #64748b; }
.preset-defensive .preset-icon-wrap { background: #f1f5f9; color: #64748b; }
.preset-defensive .preset-header { color: #334155; }
.preset-defensive .preset-subtitle { color: #334155; }
.preset-defensive ul li > i { color: #64748b; }

/* Indicator group cards */
.indicator-group-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ig-card {
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.25s, transform 0.25s;
}
.ig-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.ig-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.ig-header {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.ig-count {
  font-size: 0.76rem;
  font-weight: 600;
  opacity: 0.6;
  margin-bottom: 10px;
}
.ig-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ig-tag {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
}
/* Group A - Fundamental */
.ig-fundamental { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; }
.ig-fundamental .ig-icon-circle { background: #f59e0b; color: #fff; }
.ig-fundamental .ig-header { color: #92400e; }
.ig-fundamental .ig-count { color: #92400e; }
.ig-fundamental .ig-tag { background: #fff8e1; color: #78350f; }
/* Group B - Valuation */
.ig-valuation { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #93c5fd; }
.ig-valuation .ig-icon-circle { background: #3b82f6; color: #fff; }
.ig-valuation .ig-header { color: #1e3a8a; }
.ig-valuation .ig-count { color: #1e3a8a; }
.ig-valuation .ig-tag { background: #eff6ff; color: #1e40af; }
/* Group C - Technical */
.ig-technical { background: linear-gradient(135deg, #faf5ff, #f3e8ff); border-color: #d8b4fe; }
.ig-technical .ig-icon-circle { background: #a855f7; color: #fff; }
.ig-technical .ig-header { color: #581c87; }
.ig-technical .ig-count { color: #581c87; }
.ig-technical .ig-tag { background: #faf5ff; color: #6b21a8; }
/* Group D - Risk */
.ig-risk { background: linear-gradient(135deg, #fdf2f8, #fce7f3); border-color: #f9a8d4; }
.ig-risk .ig-icon-circle { background: #ec4899; color: #fff; }
.ig-risk .ig-header { color: #831843; }
.ig-risk .ig-count { color: #831843; }
.ig-risk .ig-tag { background: #fdf2f8; color: #9d174d; }

/* Screening steps flow */
.screening-steps-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.scr-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 2px solid #bbf7d0;
  border-radius: 14px;
  padding: 16px 14px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #166534;
  text-align: center;
  min-width: 110px;
  flex: 1;
  transition: box-shadow 0.2s, transform 0.2s;
}
.scr-step:hover {
  box-shadow: 0 4px 16px rgba(34,197,94,0.15);
  transform: translateY(-2px);
  border-color: #22c55e;
}
.scr-num {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}
.scr-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scr-step-icon i {
  font-size: 1.1rem;
  color: #22c55e;
}
.scr-arrow-wrap {
  display: flex;
  align-items: center;
  padding: 0 2px;
}
.scr-arrow {
  color: #22c55e;
  font-size: 1.1rem;
  opacity: 0.6;
}

/* Tips grid */
.screening-tips {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 20px;
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.tip-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.tip-item > i {
  color: #22c55e;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.tip-item p {
  margin: 0;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

/* =========================================================
   INDICATOR REFERENCE TABLES
   ========================================================= */

/* Nav pills for quick visual overview */
.ind-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.ind-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.ind-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ind-pill i { font-size: 0.85rem; }
.pill-price { background: #fef3c7; color: #92400e; }
.pill-price:hover { background: #fde68a; color: #78350f; }
.pill-trend { background: #d1fae5; color: #065f46; }
.pill-trend:hover { background: #a7f3d0; color: #064e3b; }
.pill-momentum { background: #fce7f3; color: #9d174d; }
.pill-momentum:hover { background: #fbcfe8; color: #831843; }
.pill-oscillator { background: #ede9fe; color: #5b21b6; }
.pill-oscillator:hover { background: #ddd6fe; color: #4c1d95; }
.pill-volume { background: #cffafe; color: #155e75; }
.pill-volume:hover { background: #a5f3fc; color: #164e63; }
.pill-volatility { background: #fee2e2; color: #991b1b; }
.pill-volatility:hover { background: #fecaca; color: #7f1d1d; }
.pill-fundamental { background: #fef9c3; color: #854d0e; }
.pill-fundamental:hover { background: #fef08a; color: #713f12; }
.pill-leverage { background: #e0e7ff; color: #3730a3; }
.pill-leverage:hover { background: #c7d2fe; color: #312e81; }
.pill-valuation { background: #dbeafe; color: #1e40af; }
.pill-valuation:hover { background: #bfdbfe; color: #1e3a8a; }
.pill-cashflow { background: #ccfbf1; color: #115e59; }
.pill-cashflow:hover { background: #99f6e4; color: #134e4a; }
.pill-others { background: #f1f5f9; color: #475569; }
.pill-others:hover { background: #e2e8f0; color: #334155; }

/* Indicator section with badge header */
.indicator-section {
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  transition: box-shadow 0.2s;
}
.indicator-section:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.ind-sec-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.ind-sec-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ind-sec-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  display: block;
}
.ind-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* Color-coded badge per section */
.ind-sec-price .ind-sec-badge { background: #fef3c7; color: #f59e0b; }
.ind-sec-trend .ind-sec-badge { background: #d1fae5; color: #10b981; }
.ind-sec-momentum .ind-sec-badge { background: #fce7f3; color: #ec4899; }
.ind-sec-oscillator .ind-sec-badge { background: #ede9fe; color: #8b5cf6; }
.ind-sec-volume .ind-sec-badge { background: #cffafe; color: #06b6d4; }
.ind-sec-volatility .ind-sec-badge { background: #fee2e2; color: #ef4444; }
.ind-sec-fundamental .ind-sec-badge { background: #fef9c3; color: #eab308; }
.ind-sec-leverage .ind-sec-badge { background: #e0e7ff; color: #6366f1; }
.ind-sec-valuation .ind-sec-badge { background: #dbeafe; color: #3b82f6; }
.ind-sec-cashflow .ind-sec-badge { background: #ccfbf1; color: #14b8a6; }
.ind-sec-others .ind-sec-badge { background: #f1f5f9; color: #64748b; }

/* Color-coded left border accent */
.ind-sec-price { border-left: 4px solid #f59e0b; }
.ind-sec-trend { border-left: 4px solid #10b981; }
.ind-sec-momentum { border-left: 4px solid #ec4899; }
.ind-sec-oscillator { border-left: 4px solid #8b5cf6; }
.ind-sec-volume { border-left: 4px solid #06b6d4; }
.ind-sec-volatility { border-left: 4px solid #ef4444; }
.ind-sec-fundamental { border-left: 4px solid #eab308; }
.ind-sec-leverage { border-left: 4px solid #6366f1; }
.ind-sec-valuation { border-left: 4px solid #3b82f6; }
.ind-sec-cashflow { border-left: 4px solid #14b8a6; }
.ind-sec-others { border-left: 4px solid #64748b; }

.indicator-table {
  font-size: 0.88rem;
  margin-bottom: 0;
}
.indicator-table th:first-child,
.indicator-table td:first-child {
  width: 260px;
  white-space: nowrap;
}
.indicator-table code {
  background: #f0fdf4;
  color: #166534;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
  .scr-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .indicator-group-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .scr-hero {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .scr-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .preset-cards {
    grid-template-columns: 1fr;
  }
  .screening-steps-flow {
    flex-direction: column;
    align-items: stretch;
  }
  .scr-arrow-wrap {
    display: none;
  }
  .scr-step {
    flex-direction: row;
    text-align: left;
    min-width: 0;
  }
  .tips-grid {
    grid-template-columns: 1fr;
  }
  .ind-nav-pills {
    gap: 6px;
    padding: 12px;
  }
  .ind-pill {
    font-size: 0.74rem;
    padding: 4px 10px;
  }
  .indicator-table th:first-child,
  .indicator-table td:first-child {
    width: auto;
    white-space: normal;
  }
  .pattern-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* =========================================================
   CANDLESTICK PATTERNS — Mẫu hình nến
   ========================================================= */

/* Hero variant */
.pattern-hero {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
  border-color: #f59e0b;
}
.pattern-hero .scr-hero-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 20px rgba(245,158,11,0.3);
}
.pattern-hero .scr-hero-text h3 { color: #78350f; }
.pattern-hero .scr-hero-text p { color: #92400e; }

/* Group */
.pattern-group {
  margin-bottom: 32px;
}
.pattern-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}
.pattern-group-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pg-single { background: #d1fae5; color: #059669; }
.pg-range { background: #dbeafe; color: #2563eb; }
.pg-reversal { background: #fce7f3; color: #db2777; }
.pg-vsa { background: #fef3c7; color: #d97706; }

/* Grid */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Card */
.pattern-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  cursor: default;
}
.pattern-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: #94a3b8;
}

/* SVG image area */
.pattern-img {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  border-radius: 12px;
  padding: 8px;
}
.pattern-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Info */
.pattern-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pattern-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: #1e293b;
  line-height: 1.3;
}
.pattern-code {
  display: inline-block;
  background: #f0fdf4;
  color: #166534;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Consolas', 'Monaco', monospace;
}

/* Responsive pattern grid */
@media (max-width: 1200px) {
  .pattern-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .pattern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   StockPrice docs — stockprice.html
   ========================================================= */

/* Zone list (Overview) */
.sp-zones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.sp-zone-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.sp-zone-item:hover {
  box-shadow: 0 4px 16px rgba(239,68,68,0.08);
  border-color: #fca5a5;
}
.sp-zone-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.sp-zone-item strong {
  font-size: 0.92rem;
  color: #1e293b;
}
.sp-zone-item p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.4;
}

/* Feature cards (Portfolio, etc.) */
.sp-feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.sp-feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sp-feature-card:hover {
  box-shadow: 0 6px 20px rgba(239,68,68,0.1);
  transform: translateY(-2px);
}
.sp-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #dc2626;
  margin-bottom: 12px;
}
.sp-feature-card h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}
.sp-feature-card p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Stat badges (Top stats) */
.sp-stat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.sp-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #991b1b;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #fecaca;
}
.sp-stat-badge i {
  font-size: 0.9rem;
}

/* Control items (TA toolbar) */
.sp-control-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.sp-ctrl-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  transition: border-color 0.2s;
}
.sp-ctrl-item:hover {
  border-color: #fca5a5;
}
.sp-ctrl-item > i {
  font-size: 1.2rem;
  color: #dc2626;
  margin-top: 2px;
  flex-shrink: 0;
}
.sp-ctrl-item strong {
  font-size: 0.88rem;
  color: #1e293b;
  display: block;
}
.sp-ctrl-item span {
  font-size: 0.82rem;
  color: #64748b;
}

/* Tools grid (drawing tools) */
.sp-tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.sp-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sp-tool:hover {
  border-color: #fca5a5;
  box-shadow: 0 3px 10px rgba(239,68,68,0.08);
}
.sp-tool i {
  font-size: 1.1rem;
  color: #dc2626;
}
.sp-tool span {
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.2;
}

/* History steps */
.sp-history-steps {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}
.sp-hist-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 2px solid #fecaca;
  border-radius: 16px;
  padding: 24px 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sp-hist-step:hover {
  box-shadow: 0 6px 20px rgba(239,68,68,0.12);
  transform: translateY(-2px);
  border-color: #ef4444;
}
.sp-hist-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
}
.sp-hist-step strong {
  font-size: 0.9rem;
  color: #1e293b;
  margin-bottom: 6px;
}
.sp-hist-step p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Dashboard grid */
.sp-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.sp-dash-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sp-dash-card:hover {
  box-shadow: 0 6px 20px rgba(239,68,68,0.1);
  transform: translateY(-2px);
}
.sp-dash-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #dc2626;
  margin-bottom: 10px;
}
.sp-dash-card h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}
.sp-dash-card p {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* Filter items */
.sp-filter-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.sp-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}
.sp-filter i {
  color: #dc2626;
  font-size: 0.9rem;
}

/* Fields grid (column settings) */
.sp-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.sp-field-group {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #ef4444;
  border-radius: 10px;
  padding: 16px 20px;
}
.sp-field-group h5 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 8px;
}
.sp-field-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sp-field-group ul li {
  font-size: 0.82rem;
  color: #475569;
  padding: 4px 0;
  line-height: 1.4;
}
.sp-field-group ul li code {
  background: #fef2f2;
  color: #991b1b;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Screenshot display */
.sp-screenshot-wrap {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.sp-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* StockPrice responsive */
@media (max-width: 992px) {
  .sp-feature-cards,
  .sp-dash-grid,
  .sp-fields-grid {
    grid-template-columns: 1fr;
  }
  .sp-tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sp-history-steps {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .sp-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
