/* Trading Intelligence — VIP theme (global) */
/* VIP panels */
.vip-panel-card {
  overflow: hidden;
  border-radius: 0.85rem !important;
}
.vip-panel-header {
  padding: 1.1rem 1.35rem 0.85rem;
}
.vip-panel-header--dark {
  background: linear-gradient(135deg, #384551 0%, #233446 55%, #1a2a3a 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.vip-panel-header__left {
  flex: 1;
  min-width: min(100%, 280px);
}
.vip-panel-header--dark .vip-panel-header__main {
  margin-bottom: 0.75rem;
}
.vip-panel-header--learning {
  background: linear-gradient(135deg, #5f61e6 0%, #696cff 45%, #4e52c8 100%);
}
.vip-panel-header--primary {
  background: linear-gradient(135deg, #696cff 0%, #5f61e6 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.vip-panel-header--warning {
  background: linear-gradient(135deg, #ffab00 0%, #ff9f43 55%, #e68a2e 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.vip-panel-header__main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 200px;
}
.vip-panel-header__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  flex-shrink: 0;
}
.vip-panel-header__sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  margin-top: 0.25rem;
}
.vip-panel-header__actions {
  flex-shrink: 0;
  align-self: center;
}
.vip-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.vip-header-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff !important;
  transform: translateY(-1px);
}
.vip-header-btn .bx {
  font-size: 1.1rem;
  opacity: 0.9;
}
.vip-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #71dd37;
  background: rgba(113, 221, 55, 0.15);
  border: 1px solid rgba(113, 221, 55, 0.45);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.vip-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #71dd37;
  animation: vipPulse 1.8s infinite;
}
@keyframes vipPulse {
  0% { box-shadow: 0 0 0 0 rgba(113, 221, 55, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(113, 221, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(113, 221, 55, 0); }
}
.vip-market-window-meta {
  flex-shrink: 0;
  align-self: center;
  text-align: right;
  line-height: 1.4;
  padding-left: 1rem;
  border: none;
  background: none;
  box-shadow: none;
}
.vip-market-window-meta__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.02em;
}
.vip-market-window-meta__hours {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.12rem !important;
  white-space: nowrap;
}
.vip-market-window-meta__tz {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}
.vip-market-window-meta__status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-top: 0.2rem !important;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
}
.vip-market-window-meta__status.is-open {
  color: #9ae86a;
}
.vip-market-window-meta__status.is-closed {
  color: rgba(255, 255, 255, 0.72);
}
.vip-market-window-meta__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #71dd37;
  flex-shrink: 0;
}
@media (max-width: 767.98px) {
  .vip-market-window-meta {
    align-self: flex-start;
    width: 100%;
    padding-left: 0;
    padding-top: 0.35rem;
    text-align: left;
  }
  .vip-market-window-meta__status {
    justify-content: flex-start;
  }
}
.vip-panel-status-bar,
.live-panel-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.live-status-chip,
.vip-status-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.live-status-chip--mode {
  background: rgba(105, 108, 255, 0.35);
  border-color: rgba(105, 108, 255, 0.5);
}
.live-status-chip--time {
  background: rgba(3, 195, 236, 0.2);
  border-color: rgba(3, 195, 236, 0.35);
}
.live-status-chip.is-live {
  background: rgba(113, 221, 55, 0.25);
  border-color: rgba(113, 221, 55, 0.5);
  color: #d4f5c0;
}
.live-status-chip.is-warn {
  background: rgba(255, 171, 0, 0.25);
  border-color: rgba(255, 171, 0, 0.45);
}
.live-status-chip.is-error {
  background: rgba(255, 62, 29, 0.25);
  border-color: rgba(255, 62, 29, 0.45);
}
.vip-panel-body {
  padding: 1.25rem 1.35rem 1.35rem;
  background: #fff;
}
.vip-panel-subsection {
  padding: 1.25rem 1.35rem;
  background: #fff;
}
.vip-subsection-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #566a7f;
}
.vip-column-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #566a7f;
}
.vip-panel-table-wrap {
  background: #fff;
}
.vip-pro-table thead th {
  background: #f5f6f8;
  color: #566a7f;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #e8ecf4;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}
.vip-pro-table tbody td {
  padding: 0.8rem 1rem;
  vertical-align: middle;
  border-color: #f0f2f6;
}
.vip-pro-table tbody tr:hover {
  background: rgba(105, 108, 255, 0.04);
}
.live-cell-highlight {
  color: #696cff;
  font-weight: 600;
}
.vip-empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #697a8d;
}
.vip-empty-state i {
  font-size: 2.75rem;
  color: #c5cad6;
  margin-bottom: 0.75rem;
  display: block;
}
.vip-engine-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.vip-engine-pills {
  display: inline-flex;
  gap: 0;
  padding: 0.2rem;
  margin: 0;
  list-style: none;
  background: #eef0f6;
  border: 1px solid #e4e6ef;
  border-radius: 2rem;
  box-shadow: inset 0 1px 2px rgba(67, 89, 113, 0.06);
}
.vip-engine-pills .nav-item {
  margin: 0;
}
.vip-engine-pills .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: #697a8d;
  background: transparent;
  border: none;
  border-radius: 2rem;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.vip-engine-pills .nav-link .bx {
  font-size: 1rem;
  line-height: 1;
}
.vip-engine-pills .nav-link:hover {
  color: #566a7f;
  background: rgba(255, 255, 255, 0.55);
}
.vip-engine-pills .nav-link.active,
.vip-engine-pills button.nav-link.active,
.vip-engine-pills .nav-link.active:hover,
.vip-engine-pills .nav-link.active:focus,
.vip-engine-pills .nav-link.active .bx {
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(67, 89, 113, 0.15);
}
.vip-engine-pills .nav-link.active[aria-controls="tab-a-plus"],
.vip-engine-pills .nav-link.active[data-engine="a_plus"] {
  background: linear-gradient(135deg, #696cff, #5f61e6) !important;
}
.vip-engine-pills .nav-link.active[aria-controls="tab-fast-news"],
.vip-engine-pills .nav-link.active[data-engine="fast_news"] {
  background: linear-gradient(135deg, #ffab00, #ff9f43) !important;
}
.vip-engine-pills .nav-link.active[data-engine="all"] {
  background: linear-gradient(135deg, #566a7f, #384551) !important;
}
.alert-feed-scroll {
  max-height: min(520px, 58vh);
  overflow-y: auto;
  overflow-x: auto;
  background: #fff;
}
.alert-feed-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.alert-feed-scroll::-webkit-scrollbar-track {
  background: #eef1f7;
}
.alert-feed-scroll::-webkit-scrollbar-thumb {
  background: #c5cad6;
  border-radius: 8px;
}
.alert-feed-scroll::-webkit-scrollbar-thumb:hover {
  background: #a8afbd;
}
.alert-feed-meta {
  padding: 0.5rem 1.25rem 0;
  font-size: 0.75rem;
  color: #a1acb8;
  background: #fff;
}
.alert-feed-pagination {
  padding: 0.75rem 1.25rem;
  background: #f8f9fc;
  border-top: 1px solid #e8ecf4;
}
/* Page hero */
.vip-page-header { border-radius: 0.85rem; overflow: hidden; box-shadow: 0 4px 18px rgba(67,89,113,.1); margin-bottom: 1.5rem; }
.vip-page-header__inner { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.15rem 1.35rem; }
.vip-page-header--primary .vip-page-header__inner { background: linear-gradient(135deg,#696cff 0%,#5f61e6 55%,#5648e8 100%); }
.vip-page-header--learning .vip-page-header__inner { background: linear-gradient(135deg,#5f61e6 0%,#696cff 45%,#4e52c8 100%); }
.vip-page-header--warning .vip-page-header__inner { background: linear-gradient(135deg,#ffab00 0%,#ff9f43 55%,#e68a2e 100%); }
.vip-page-header--dark .vip-page-header__inner { background: linear-gradient(135deg,#384551 0%,#233446 55%,#1a2a3a 100%); }
.vip-page-header--info .vip-page-header__inner { background: linear-gradient(135deg,#03c3ec 0%,#00b5d8 55%,#0099b8 100%); }
.vip-page-header--success .vip-page-header__inner { background: linear-gradient(135deg,#71dd37 0%,#56ca00 55%,#4ab800 100%); }
.vip-page-header__icon { width: 3rem; height: 3rem; border-radius: 0.75rem; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; flex-shrink: 0; }
.vip-page-header__title { color: #fff; font-weight: 700; font-size: 1.35rem; }
.vip-page-header__sub { color: rgba(255,255,255,.82); font-size: 0.88rem; margin-top: 0.2rem; }
.vip-page-header__actions { margin-left: auto; }
.vip-panel-header--info { background: linear-gradient(135deg,#03c3ec 0%,#00b5d8 100%); display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.vip-panel-header--success { background: linear-gradient(135deg,#71dd37 0%,#56ca00 100%); display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.vip-panel-header--danger { background: linear-gradient(135deg,#ff3e1d 0%,#e6381a 100%); display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.vip-panel-header h5, .vip-panel-header .h5 { color: #fff !important; }
.vip-callout { border-radius: 0.75rem; padding: 1rem 1.15rem; border: 1px solid rgba(105,108,255,.25); background: linear-gradient(135deg,rgba(105,108,255,.08),rgba(105,108,255,.04)); color: #566a7f; margin-bottom: 1.5rem; }
.vip-nav-card .list-group-item { border-color: #f0f2f6; font-size: 0.88rem; font-weight: 500; color: #566a7f; }
.vip-nav-card .list-group-item:hover { background: rgba(105,108,255,.08); color: #696cff; }
.vip-ticker-badge { font-size: 0.85rem; font-weight: 600; padding: 0.45rem 0.75rem; border-radius: 0.5rem; background: linear-gradient(135deg,#696cff,#5f61e6); color: #fff; box-shadow: 0 2px 8px rgba(105,108,255,.25); }
.vip-btn-back { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 1rem; font-size: 0.8rem; font-weight: 600; color: #fff !important; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); border-radius: 0.5rem; text-decoration: none; }
.vip-btn-back:hover { background: rgba(255,255,255,.28); color: #fff !important; }
.telegram-inline-preview { background: #f8f9fc; border: 1px solid #e8ecf4; border-left: 3px solid #696cff; border-radius: 0.5rem; padding: 0.75rem 1rem; }
.telegram-inline-preview-text { white-space: pre-line; font-size: 0.875rem; line-height: 1.55; }
.alert-preview-row td {
  background: transparent;
  padding-top: 0.35rem !important;
  padding-bottom: 0.65rem !important;
}
.alert-preview-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(90deg, rgba(105, 108, 255, 0.07) 0%, #fafbfe 45%);
  border: 1px solid #e8ecf4;
  border-left: 3px solid #696cff;
  border-radius: 0.5rem;
}
.alert-preview-card__content {
  flex: 1;
  min-width: 0;
}
.alert-preview-card__headline {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #696cff;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}
.alert-preview-card__text {
  font-size: 0.8125rem;
  line-height: 1.42;
  color: #566a7f;
  white-space: pre-line;
}
.alert-preview-card__action {
  flex-shrink: 0;
  align-self: center;
}
.alert-preview-card .btn-view-telegram-message {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 0.45rem;
}
.vip-pro-table.table-bordered { border-color: #e8ecf4; }
.vip-pro-table.table-bordered > :not(caption) > * > * { border-color: #f0f2f6; }
/* KPI + learning (dashboard & shared) */
/* KPI stat boxes */
.dashboard-kpi > [class*="col"] {
  display: flex;
}
.kpi-small-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 148px;
  border-radius: 0.75rem;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 4px 16px rgba(67, 89, 113, 0.15);
}
.kpi-small-box__body {
  flex: 1;
  position: relative;
  padding: 1rem 1.1rem 0.5rem;
  overflow: hidden;
}
.kpi-small-box__icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 3.5rem;
  opacity: 0.2;
  line-height: 1;
  pointer-events: none;
}
.kpi-small-box__value {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  line-height: 1.15;
  color: #fff !important;
}
.kpi-small-box__label {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: #fff !important;
  opacity: 0.95;
}
.kpi-small-box__meta {
  font-size: 0.72rem;
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.kpi-small-box__footer {
  display: flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.15) !important;
  color: #fff !important;
  text-decoration: none;
  transition: background 0.15s ease;
}
.kpi-small-box__footer:hover {
  background: rgba(0, 0, 0, 0.25) !important;
  color: #fff !important;
}
.kpi-small-box__footer--spacer {
  pointer-events: none;
}
.kpi-small-box--primary {
  background: linear-gradient(135deg, #696cff 0%, #5f61e6 100%);
}
.kpi-small-box--success {
  background: linear-gradient(135deg, #71dd37 0%, #56ca00 100%);
}
.kpi-small-box--warning {
  background: linear-gradient(135deg, #ffab00 0%, #ff9f43 100%);
}
.kpi-small-box--danger {
  background: linear-gradient(135deg, #ff3e1d 0%, #e6381a 100%);
}
.kpi-small-box--info {
  background: linear-gradient(135deg, #03c3ec 0%, #00b5d8 100%);
}
.kpi-mini-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #e8ecf4;
  box-shadow: 0 4px 14px rgba(67, 89, 113, 0.06);
  height: 100%;
}
.kpi-mini-stat__icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
}
.kpi-mini-stat--primary .kpi-mini-stat__icon { background: linear-gradient(135deg, #696cff, #5f61e6); }
.kpi-mini-stat--success .kpi-mini-stat__icon { background: linear-gradient(135deg, #71dd37, #56ca00); }
.kpi-mini-stat--warning .kpi-mini-stat__icon { background: linear-gradient(135deg, #ffab00, #ff9f43); }
.kpi-mini-stat--danger .kpi-mini-stat__icon { background: linear-gradient(135deg, #ff3e1d, #e6381a); }
.kpi-mini-stat--info .kpi-mini-stat__icon { background: linear-gradient(135deg, #03c3ec, #00b5d8); }
.kpi-mini-stat--secondary .kpi-mini-stat__icon { background: linear-gradient(135deg, #8592a3, #697a8d); }
.kpi-mini-stat__value {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: #566a7f;
}
.kpi-mini-stat__label {
  font-size: 0.72rem;
  color: #a1acb8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.1rem;
}
.learning-grid-card {
  border: 1px solid #e8ecf4;
  border-left: 3px solid #696cff;
  border-radius: 0.65rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(67, 89, 113, 0.06);
}
.learning-scroll-panel .telegram-inline-preview {
  border-left: 3px solid #03c3ec;
  background: #f8f9fc;
}
.learning-grid-card:last-child {
  margin-bottom: 0;
}
.learning-column-title {
  flex-shrink: 0;
}
.learning-scroll-panel {
  max-height: min(420px, 55vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  border: 1px solid #e8ecf4;
  border-radius: 0.85rem;
  background: #f8f9fc;
  padding: 0.65rem;
}
.learning-scroll-panel::-webkit-scrollbar {
  width: 8px;
}
.learning-scroll-panel::-webkit-scrollbar-track {
  background: #eef1f7;
  border-radius: 8px;
}
.learning-scroll-panel::-webkit-scrollbar-thumb {
  background: #c5cad6;
  border-radius: 8px;
}
.learning-scroll-panel::-webkit-scrollbar-thumb:hover {
  background: #a8afbd;
}

.learning-grid-card { border: 1px solid #e8ecf4; border-left: 3px solid #696cff; border-radius: 0.65rem; padding: 0.9rem 1rem; margin-bottom: 0.75rem; background: #fff; box-shadow: 0 4px 12px rgba(67,89,113,.06); }
.learning-scroll-panel { max-height: min(420px,55vh); overflow-y: auto; border: 1px solid #e8ecf4; border-radius: 0.85rem; background: #f8f9fc; padding: 0.65rem; }
.learning-scroll-panel .telegram-inline-preview { border-left-color: #03c3ec; }
.dashboard-kpi > [class*="col"] { display: flex; }

.vip-guide-toc .btn-label-primary {
  font-weight: 600;
}

.vip-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.vip-form-actions form {
  margin: 0;
}

/* Sidebar active item — white text on brand gradient */
.layout-menu .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle) {
  background: linear-gradient(135deg, #696cff 0%, #5f61e6 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(105, 108, 255, 0.35);
}
.layout-menu .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle) .menu-icon,
.layout-menu .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle) div {
  color: #fff !important;
}
