/* ==========================================================
   Dbuglab: "Your All-in-One Dashboard" section
   Partial: portal-showcase.php  |  Sab classes "dps-" prefix ke saath
   Colors/icons style.css ke :root variables aur SVG sprite (index.php) se aate hain
   ========================================================== */

.dps {
  position: relative;
  padding: 12px 0 10px;
  background:
radial-gradient(800px 360px at 50% 0%, rgb(201 214 255 / 1%), transparent 70%), linear-gradient(360deg, #eef2ffa8 23%, #f7f9ff 45%, #fff 100%)  ;overflow: hidden;
}

.dps__wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.dps__head { text-align: center; max-width: 760px; margin: 0 auto 10px; }
.dps__title {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}
.dps__title span {
  background: linear-gradient(90deg, #8b8f9e 0%, #c99a3c 55%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.dps__lead { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ---------- Stage: 3 cards | dashboard | 3 cards ---------- */
.dps__stage {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) 228px;
  grid-template-rows: repeat(3, auto);
  grid-template-areas:
    "l1 dash r1"
    "l2 dash r2"
    "l3 dash r3";
  column-gap: 26px;
  row-gap: 40px;
  align-items: center;
}

.dps-feat--l1 { grid-area: l1; }
.dps-feat--l2 { grid-area: l2; }
.dps-feat--l3 { grid-area: l3; }
.dps-feat--r1 { grid-area: r1; }
.dps-feat--r2 { grid-area: r2; }
.dps-feat--r3 { grid-area: r3; }

.dps-feat {
  --c: var(--blue);
  --c-soft: var(--blue-soft);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 30px -18px rgba(28, 54, 140, .35);
}
.dps-feat--red    { --c: var(--red);    --c-soft: var(--red-soft); }
.dps-feat--purple { --c: var(--purple); --c-soft: var(--purple-soft); }
.dps-feat--gold   { --c: var(--gold);   --c-soft: var(--gold-soft); }
.dps-feat--green  { --c: var(--green);  --c-soft: var(--green-soft); }

.dps-feat__ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--c-soft);
  color: var(--c);
}
.dps-feat__ico svg { width: 24px; height: 24px; }
.dps-feat__ico svg.is-lg { width: 36px; height: 36px; }
.dps-feat strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.dps-feat small { display: block; font-size: 11.5px; line-height: 1.5; color: var(--muted); margin-top: 3px; }

/* dashed connector towards dashboard */
.dps-feat__link {
  position: absolute;
  width: 48px; height: 32px;
  color: var(--c);
  opacity: .8;
  bottom: -30px;
}
.dps-feat--l1 .dps-feat__link,
.dps-feat--l2 .dps-feat__link,
.dps-feat--l3 .dps-feat__link { right: 18px; }
.dps-feat--r1 .dps-feat__link,
.dps-feat--r2 .dps-feat__link,
.dps-feat--r3 .dps-feat__link { left: 18px; transform: scaleX(-1); }

/* ---------- Dashboard frame ---------- */
.dps-dash {
  grid-area: dash;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dde4f6;
  box-shadow: 0 40px 80px -36px rgba(15, 33, 99, .45);
  font-size: 11px;
}

.dps-dash__side {
  background: linear-gradient(180deg, #0c1638, #0a1230);
  padding: 16px 12px;
  color: #b7c2e6;
}
.dps-dash__logo { width: 96px; margin: 0 0 16px 6px; filter: brightness(1.15); }
.dps-dash__side ul { display: grid; gap: 4px; }
.dps-dash__side li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11.5px;
}
.dps-dash__side li svg { width: 15px; height: 15px; flex: none; }
.dps-dash__side li.is-active { background: var(--blue); color: #fff; font-weight: 600; }

.dps-dash__main {
  padding: 14px 16px 16px;
  background: #f6f8fe;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.dps-top { display: flex; align-items: center; gap: 14px; }
.dps-search {
  flex: 1;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #9aa3b9;
}
.dps-search svg { width: 14px; height: 14px; flex: none; }
.dps-bell { position: relative; margin-left: auto; color: var(--ink-2); }
.dps-bell svg { width: 20px; height: 20px; display: block; }
.dps-bell i {
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  background: var(--red);
  border: 2px solid #f6f8fe;
  border-radius: 50%;
}
.dps-user { display: flex; align-items: center; gap: 8px; }
.dps-user b {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}
.dps-user strong { display: block; font-size: 11.5px; color: var(--ink); line-height: 1.2; }
.dps-user small { display: block; font-size: 10px; color: var(--muted); }

.dps-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.dps-hero-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; }

.dps-ai { display: flex; gap: 12px; }
.dps-ai__robot { width: 56px; height: 56px; flex: none; }
.dps-ai__body { min-width: 0; flex: 1; }
.dps-ai strong { display: block; font-size: 13px; color: var(--ink); }
.dps-ai small { display: block; color: var(--muted); line-height: 1.5; margin: 3px 0 8px; }
.dps-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dps-chips i {
  font-style: normal;
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--blue-soft);
  color: var(--blue);
}
.dps-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #9aa3b9;
}
.dps-input b {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
}

.dps-help { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.dps-help__top { display: flex; gap: 10px; }
.dps-help__ico {
  width: 38px; height: 38px;
  flex: none;
  padding: 8px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.dps-help strong { display: block; font-size: 12.5px; color: var(--ink); }
.dps-help small { display: block; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.dps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  margin: auto;
}

.dps-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dps-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.dps-stat > svg { width: 30px; height: 30px; flex: none; }
.dps-stat small { display: block; font-size: 9.5px; color: var(--muted); line-height: 1.3; }
.dps-stat b { display: block; font-size: 17px; color: var(--ink); line-height: 1.2; }

.dps-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dps-list__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dps-list__head strong { font-size: 12.5px; color: var(--ink); }
.dps-list__head span { font-size: 10.5px; color: var(--blue); font-weight: 600; }
.dps-list__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #f0f3fa;
}
.dps-list__row:first-of-type { border-top: 0; }
.dps-dot {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 8px;
}
.dps-dot svg { width: 16px; height: 16px; }
.dps-dot--blue   { background: var(--blue-soft);   color: var(--blue); }
.dps-dot--gold   { background: var(--gold-soft);   color: var(--gold); }
.dps-dot--purple { background: var(--purple-soft); color: var(--purple); }
.dps-dot--green  { background: var(--green-soft);  color: var(--green); }
.dps-dot--red    { background: var(--red-soft);    color: var(--red); }
.dps-list__txt { flex: 1; min-width: 0; }
.dps-list__txt strong {
  display: block;
  font-size: 11px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dps-list__txt small {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dps-list__meta { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.dps-badge {
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.dps-badge--blue { background: #e6f7f4; color: #0f9d7a; }
.dps-badge--gold { background: var(--gold-soft); color: #d48700; }
.dps-badge--red  { background: var(--red-soft); color: var(--red); }

.dps__note {
  text-align: right;
  font-size: 11.5px;
  color: #9aa3b9;
  margin-top: 14px;
  padding-right: 254px;
}

/* ---------- Image mode (assets/dashboard.png) ---------- */
.dps__image { display: none; }
.dps--has-image .dps__image {
  display: block;
  max-width: 1240px;
  margin: 0 auto;
}
.dps--has-image .dps__image img {
  width: 100%;
  height: auto;
  /* image ke kinare section background me fade ho jaayein */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-composite: intersect;
}
.dps--has-image .dps__stage { display: none; }
.dps--has-image .dps__note { padding-right: 0; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .dps__stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "dash dash dash"
      "l1 l2 l3"
      "r1 r2 r3";
    row-gap: 18px;
    column-gap: 18px;
  }
  .dps-dash { margin-bottom: 12px; }
  .dps-feat__link { display: none; }
  .dps__note { padding-right: 0; text-align: center; }
}

@media (max-width: 860px) {
  .dps-dash { grid-template-columns: minmax(0, 1fr); }
  .dps-dash__side { display: none; }
  .dps-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .perk-ico {
    width: 40px;
    height: 40px;
}
  /* mobile pe image ki jagah responsive HTML dashboard */
  .dps--has-image .dps__image { display: none; }
  .dps--has-image .dps__stage { display: grid; }
  .dps__wrap { padding: 0 18px; }
  .dps__stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "dash dash"
      "l1 r1"
      "l2 r2"
      "l3 r3";
  }
  .dps-hero-row,
  .dps-lists { grid-template-columns: minmax(0, 1fr); }
  .dps-dash__main { padding: 12px; }
  .dps-ai__robot { width: 42px; height: 42px; }
  .dps-user span { display: none; }
}

@media (max-width: 520px) {
  .dps__stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "dash" "l1" "l2" "l3" "r1" "r2" "r3";
  }
  .dps-search { max-width: none; }
}