/* === GRAHAFX CHART PRO — TOP BAR, MODALS, POPOVERS, REPLAY & BRAND WATERMARK === */
.gf-pro-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid #242b3d;
  background: #131824;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.gf-pro-btn:hover {
  background: #1b2234;
  border-color: #36415c;
  color: #ffffff;
}
.gf-pro-btn.active,
.gf-pro-btn.is-active {
  background: rgba(243, 128, 32, 0.16);
  border-color: #f38020;
  color: #ff9d47;
}
.gf-pro-btn:disabled {
  opacity: .38;
  cursor: not-allowed;
}
.gf-symbol-pill {
  font-weight: 700;
  letter-spacing: .02em;
  background: #171e2e;
  border-color: #2d3752;
}
.gf-pinned-tf {
  height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.gf-pinned-tf:hover {
  color: #f8fafc;
  background: rgba(255,255,255,.05);
}
.gf-pinned-tf.active {
  color: #f38020;
  background: rgba(243, 128, 32, .14);
  border-color: rgba(243, 128, 32, .45);
}

/* Brand Logo Badge di Pojok Kiri Bawah Chart */
.gf-brand-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 7px;
  border-radius: 8px;
  background: rgba(11, 14, 22, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(6px);
  color: #f8fafc;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  opacity: .84;
  transition: opacity .15s ease, border-color .15s ease, transform .15s ease;
}
.gf-brand-badge:hover {
  opacity: 1;
  border-color: #f38020;
  transform: translateY(-1px);
}
.gf-brand-badge img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: cover;
}
.gf-brand-badge .gf-brand-accent {
  color: #f38020;
}

/* Popover Dropdown (Timeframe & Chart Type) */
.gf-popover {
  position: fixed;
  z-index: 1200;
  min-width: 224px;
  max-width: 290px;
  max-height: 76vh;
  overflow-y: auto;
  background: #121722;
  border: 1px solid #283147;
  border-radius: 10px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .62);
  padding: 6px;
  color: #e2e8f0;
  display: none;
}
.gf-popover.open {
  display: block;
}
.gf-pop-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e2e8f0;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.gf-pop-action:hover {
  background: #1c2436;
}
.gf-pop-action.active {
  background: rgba(243, 128, 32, .16);
  color: #ff9d47;
  font-weight: 600;
}
.gf-pop-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}
.gf-pop-group-title:hover {
  color: #94a3b8;
}
.gf-pop-divider {
  height: 1px;
  background: #222a3d;
  margin: 5px 4px;
}
.gf-star-btn {
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.gf-star-btn.starred,
.gf-star-btn:hover {
  color: #f59e0b;
}

/* Modal Backdrop & Dialogs (Symbol Search, Indicators, Alert) */
.gf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(5, 8, 15, .72);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gf-modal-backdrop.open {
  display: flex;
}
.gf-modal-card {
  width: 100%;
  max-width: 780px;
  max-height: 82vh;
  background: #101520;
  border: 1px solid #263047;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #e2e8f0;
}
.gf-modal-card.narrow {
  max-width: 440px;
}
.gf-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #1e2638;
}
.gf-modal-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.gf-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #273147;
  background: #161d2c;
  color: #cbd5e1;
  font-size: 15px;
  cursor: pointer;
}
.gf-modal-close:hover {
  background: #232d42;
  color: #fff;
}
.gf-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #1e2638;
  background: #0d111a;
}
.gf-search-bar input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #f8fafc;
  font-size: 14px;
  outline: none;
}
.gf-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 16px;
  border-bottom: 1px solid #1c2436;
  background: #101520;
}
.gf-cat-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #263148;
  background: #151c2b;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.gf-cat-pill.active {
  background: #f8fafc;
  color: #0b0f17;
  border-color: #f8fafc;
}
.gf-symbol-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px;
}
.gf-symbol-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(30, 41, 59, .55);
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  border-radius: 7px;
}
.gf-symbol-row:hover {
  background: #172033;
}
.gf-sym-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  flex: 0 0 auto;
}
.gf-sym-meta {
  flex: 1;
  min-width: 0;
}
.gf-sym-code {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}
.gf-sym-desc {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gf-sym-right {
  text-align: right;
  font-size: 11px;
  color: #94a3b8;
}
.gf-sym-type {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 9px;
  font-weight: 700;
  margin-left: 5px;
}

/* Modal Indicators 2-Kolom */
.gf-ind-body {
  display: grid;
  grid-template-columns: 185px 1fr;
  flex: 1;
  min-height: 340px;
  overflow: hidden;
}
.gf-ind-side {
  border-right: 1px solid #1e2638;
  padding: 10px 8px;
  background: #0d121c;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gf-ind-side-label {
  padding: 8px 8px 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #64748b;
  text-transform: uppercase;
}
.gf-ind-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.gf-ind-nav-btn.active {
  background: #1b2436;
  color: #fff;
  font-weight: 600;
}
.gf-ind-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gf-ind-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px;
}
.gf-ind-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(30, 41, 59, .5);
  font-size: 12px;
}
.gf-ind-toggle {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #2e3a54;
  background: #151d2e;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.gf-ind-toggle.on {
  background: rgba(34, 197, 94, .16);
  border-color: #22c55e;
  color: #4ade80;
}

/* Replay Floating Bar */
.gf-replay-bar {
  position: fixed;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  z-index: 1100;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(15, 20, 32, .96);
  border: 1px solid #f38020;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .65);
  color: #f8fafc;
  font-size: 12px;
}
.gf-replay-bar.open {
  display: inline-flex;
}
.gf-replay-bar button,
.gf-replay-bar select {
  background: #1b2436;
  color: #f8fafc;
  border: 1px solid #2d3952;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
}
.gf-replay-bar button:hover {
  border-color: #f38020;
}

/* Alert Toast Notification */
.gf-alert-toast {
  position: fixed;
  right: 16px;
  bottom: 46px;
  z-index: 1600;
  max-width: 340px;
  background: #131b2c;
  border: 1px solid #f38020;
  border-left: 4px solid #f38020;
  border-radius: 9px;
  padding: 10px 14px;
  color: #f8fafc;
  font-size: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .65);
  display: none;
}
.gf-alert-toast.open {
  display: block;
}

@media (max-width: 640px) {
  .gf-ind-body {
    grid-template-columns: 1fr;
  }
  .gf-ind-side {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #1e2638;
  }
  .gf-ind-side-label {
    display: none;
  }
}