:root {
  --p: #2e36fd;
  --s: #f18911;
  --d: #202e54;
  --pl: #eef0ff;
  --sl: #fff5e8;
  --gray-50: #f8f9fc;
  --gray-100: #f0f2f8;
  --gray-200: #e2e6f3;
  --gray-600: #6b7a99;
  --gray-800: #2d3748;
  --white: #fff;
  --r8: 8px;
  --r14: 14px;
  --r20: 20px;
  --r28: 28px;
  --sm: 0 8px 32px rgba(46, 54, 253, .12);
}


/* ── HERO BI DASHBOARD CARD ── */
.bi-dash {
  /* background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .11); */
  background: linear-gradient(132deg, #1a1a58, #010a22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -20px 80px rgba(92, 59, 255, 0.25);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  overflow: hidden;
}

.bi-dash::before {
  display: none;
}

.bd-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  color: #fff;
  margin-bottom: 14px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.kpi-box {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  transition: all .3s;
}

.kpi-box:hover {
  background: rgba(46, 54, 253, .2);
  border-color: rgba(46, 54, 253, .4);
}

.kbn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  line-height: 1;
}

.kbl {
  font-size: .62rem;
  color: rgba(255, 255, 255, .42);
  margin-top: 6px;
  line-height: 1;
}

.kbc {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 8px;
  line-height: 1.4;
}

.up {
  color: #6dfa8c;
}

.dn {
  color: #f87171;
}

/* bar chart visual */
.chart-area {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  margin-bottom: 10px;
}

.chart-lbl {
  font-size: .68rem;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.br-label {
  font-size: .65rem;
  color: rgba(255, 255, 255, .5);
  width: 34px;
  text-align: right;
  flex-shrink: 0;
}

.br-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, .08);
  border-radius: 4px;
  overflow: hidden;
}

.br-fill {
  height: 100%;
  border-radius: 4px;
}

.br-val {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .65rem;
  color: #fff;
  width: 36px;
  flex-shrink: 0;
}

/* AI query strip */
.ai-query {
  background: rgba(46, 54, 253, .18);
  border: 1px solid rgba(46, 54, 253, .35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-query i {
  color: #a0aeff;
  font-size: 1rem;
  flex-shrink: 0;
}

.ai-query span {
  font-size: .75rem;
  color: rgba(255, 255, 255, .7);
  /* flex: 1; */
}

.ai-ans {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  color: #6dfa8c;
  flex-shrink: 0;
}

/* ── SECTIONS ── */
section {
  padding: 88px 0;
}

.ey {
  font-family: 'Poppins', sans-serif;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p);
  margin-bottom: 9px;
}

.tit {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 600;
  color: var(--d);
  letter-spacing: -.5px;
  line-height: 1.2;
  margin-bottom: 13px;
}

.tit .hi {
  color: var(--p);
}

.tit .ho {
  color: var(--s);
}

.tit .hb {
  color: #0ea5e9;
}

.desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.dl {
  width: 52px;
  height: 4px;
  background: linear-gradient(90deg, var(--p), var(--s));
  border-radius: 4px;
  margin-bottom: 16px;
}

.tbar {
  background: var(--gray-50);
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.ti2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .86rem;
  color: var(--gray-600);
}

/* ── FINANCIAL DASHBOARD SECTION ── */
.fin-s {
  background: var(--gray-50);
}

.dash-card {
  background: var(--whitehite);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
}

.dash-card:hover {
  border-color: var(--primary);
  box-shadow: var(--sm);
}

.dc-hdr {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dc-hdr h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--d);
  margin: 0;
}

.dc-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 600;
  color: #22c55e;
}

.dc-live i {
  font-size: .7rem;
}

.chart-bar-wrap {
  padding: 6px 20px 16px;
}

.c-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.cr-label {
  font-size: .75rem;
  color: var(--gray-600);
  width: 76px;
  flex-shrink: 0;
  text-align: right;
}

.cr-track {
  flex: 1;
  height: 10px;
  background: var(--gray-100);
  border-radius: 5px;
  overflow: hidden;
}

.cr-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 1.2s ease;
}

.cr-val {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  color: var(--p);
  width: 52px;
  flex-shrink: 0;
}

.mini-kpi {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--gray-200);
}

.mk-n {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
}

.mk-l {
  font-size: .65rem;
  color: var(--gray-600);
}

/* ── OPERATIONAL INSIGHTS ── */
.ops-s {
  background: var(--d);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.ops-s::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(46, 54, 253, .14) 0%, transparent 60%), radial-gradient(ellipse at 20% 70%, rgba(241, 137, 17, .08) 0%, transparent 60%);
}

.ops-node {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: all .3s;
  height: 100%;
}

.ops-node:hover {
  background: rgba(46, 54, 253, .2);
  border-color: rgba(46, 54, 253, .4);
  transform: translateY(-4px);
}

.ops-node .on-icon {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.ops-node h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  color: #fff;
  margin-bottom: 4px;
}

.ops-node p {
  font-size: .75rem;
  color: rgba(255, 255, 255, .5);
  margin: 0;
}

.ops-center {
  background: linear-gradient(135deg, var(--p), #1a23e8);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 0 12px rgba(46, 54, 253, .12), 0 0 0 24px rgba(46, 54, 253, .06);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .78rem;
  color: #fff;
  text-align: center;
  line-height: 1.4;
}

/* ── AI QUERY SECTION ── */
.ai-q-section {
  background: var(--white);
}

.query-card {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow: hidden;
}

.qc-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.qc-hdr .qh-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--p), #1a23e8);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qc-hdr h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--d);
  margin: 0;
}

.q-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all .3s;
}

.q-item:hover {
  border-color: var(--p);
  background: var(--pl);
}

.q-item .qi-q {
  font-size: .84rem;
  color: var(--gray-800);
  flex: 1;
  line-height: 1.5;
}

.q-item .qi-q i {
  color: var(--p);
  margin-right: 6px;
}

.q-item .qi-a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  color: var(--p);
  flex-shrink: 0;
  white-space: nowrap;
}

.qi-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 600;
  padding: 1px 9px;
  border-radius: 50px;
  flex-shrink: 0;
}

/* ── ROLE-BASED INSIGHTS ── */
.role-s {
  background: var(--gray-50);
}

.role-tab-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.rtab {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all .2s;
}

.rtab:hover,
.rtab.active {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}

.role-panel {
  display: none;
}

.role-panel.active {
  display: block;
}

.rp-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  height: 100%;
  transition: all .3s;
}

.rp-card:hover {
  border-color: var(--p);
  box-shadow: var(--sm);
}

.rp-card h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .92rem;
  color: var(--d);
  margin-bottom: 10px;
}

.rp-card p {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.6;
}

.rp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rp-list li {
  font-size: .83rem;
  color: var(--gray-800);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px solid var(--gray-100);
}

.rp-list li:last-child {
  border-bottom: none;
}

.rp-list li i {
  color: var(--p);
  flex-shrink: 0;
  margin-top: 2px;
}


/* ── DRILL-DOWN SECTION ── */
.drill-s {
  background: var(--white);
}

.drill-tree {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dt-level {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  transition: all .3s;
  cursor: default;
}

.dt-level:hover {
  transform: translateX(6px);
}

.dtl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dtl-line {
  width: 2px;
  height: 22px;
  border-radius: 2px;
  margin-left: 5px;
}

.dtl-content h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 2px;
}

.dtl-content p {
  font-size: .78rem;
  color: var(--gray-600);
  margin: 0;
}

.dtl-arrow {
  margin-left: auto;
  font-size: 1.1rem;
}


/* ── INTEGRATION ── */

.int-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50px;
  padding: 10px 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .83rem;
  color: #fff;
  margin: 5px;
  transition: all .25s;
}

.int-pill:hover {
  background: rgba(46, 54, 253, .25);
  border-color: rgba(46, 54, 253, .4);
}

.int-pill i {
  font-size: 1rem;
}

.int-hub {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1a23e8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 14px rgba(46, 54, 253, .1), 0 0 0 28px rgba(46, 54, 253, .05);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .82rem;
  color: #fff;
  text-align: center;
  line-height: 1.4;
  margin: 0 auto;
}


.anom-card {
  background: rgba(239, 68, 68, .06);
  border: 1px solid rgba(239, 68, 68, .2);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all .3s;
  margin-bottom: 10px;
}

.anom-card:hover {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .35);
}

.ac-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.anom-card h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .87rem;
  color: #fff;
  margin-bottom: 3px;
}

.anom-card p {
  font-size: .78rem;
  color: rgba(255, 255, 255, .5);
  margin: 0;
  line-height: 1.5;
}

.rec-card {
  background: rgba(34, 197, 94, .06);
  border: 1px solid rgba(34, 197, 94, .2);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all .3s;
  margin-bottom: 10px;
}

.rec-card:hover {
  background: rgba(34, 197, 94, .12);
}

.rec-card h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .87rem;
  color: #6dfa8c;
  margin-bottom: 3px;
}

.rec-card p {
  font-size: .78rem;
  color: rgba(255, 255, 255, .5);
  margin: 0;
  line-height: 1.5;
}

/* role tab */
.role-tab-nav {
  display: flex;
  flex-wrap: wrap;
}

.rtab {
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

.rtab.active {
  color: #fff;
}

.rtab .progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: #7d9eff;
}

.rtab.active .progress {
  animation: progressBar 5s linear forwards;
}

@keyframes progressBar {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

@media(max-width:767px) {
  .q-item {
    display: block;
  }

  .q-item .qi-q {
    margin-bottom: 10px;
  }
}