.stat-profit-card{position:relative;min-width:0;cursor:pointer}
.stat-profit-head{display:flex;align-items:center;gap:6px;min-width:0}
.stat-profit-head small{flex:1;min-width:0}
.stat-profit-open{
  flex:0 0 28px;width:28px;height:28px;border:0;border-radius:9px;cursor:pointer;
  background:#efe8ff;color:#6930e9;display:grid;place-items:center;padding:0;
  box-shadow:0 0 0 1px rgba(105,48,233,.12);
}
.stat-profit-open:hover{background:#6930e9;color:#fff}
.stat-profit-open .icon{width:15px;height:15px}
.hero .stats #statProfit{white-space:normal!important;overflow:visible!important;text-overflow:unset!important;display:flex!important;flex-direction:column;align-items:flex-start;gap:2px}
.stat-profit-spent-inline{color:#c2410c;font-weight:800;margin-left:4px;white-space:nowrap}
.stat-profit-spent{display:block;margin-top:3px;color:#c2410c;font-size:clamp(8px,.72vw,10px);font-weight:700;font-style:normal}
body.dark .stat-profit-spent,body.dark .stat-profit-spent-inline{color:#fb923c}
body.dark .stat-profit-open{background:#2a2340;color:#c4b5fd}

#profitModal .dz-modal-panel.dz-profit-panel{
  width:min(1120px,calc(100vw - 24px));
  max-height:calc(100vh - 24px);
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border-radius:22px;
  border:1px solid rgba(105,48,233,.12);
}
.dz-profit-head{
  display:flex;align-items:flex-start;gap:12px;padding:16px 56px 14px 18px;
  border-bottom:1px solid #eceaf2;background:linear-gradient(180deg,#faf8ff,#fff);
}
.dz-profit-head-icon{
  width:44px;height:44px;border-radius:14px;background:#efe8ff;color:#6930e9;
  display:grid;place-items:center;flex:0 0 auto;
}
.dz-profit-head-icon .icon{width:22px;height:22px}
.dz-profit-head h2{margin:0;font-size:20px;letter-spacing:-.4px}
.dz-profit-head p{margin:2px 0 0;color:#7a7788;font-size:12px}
.dz-profit-date{margin-left:auto;font-size:12px;font-weight:700;color:#5b5670;background:#f4f1fb;border-radius:999px;padding:6px 12px;white-space:nowrap}
#profitModal .dz-modal-close{top:14px;right:14px;z-index:3}
.dz-profit-body{overflow:auto;padding:14px 16px 18px;background:#f4f2fa}
.dz-profit-loading{margin:24px;color:#6b6578}
.dz-profit-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.dz-profit-chip{border:1px solid #e4e0ee;background:#fff;border-radius:999px;padding:6px 12px;font-size:11px;font-weight:700;cursor:pointer;color:#3d3850}
.dz-profit-chip.is-on{background:#6930e9;border-color:#6930e9;color:#fff}

.dz-profit-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 230px;
  grid-template-areas:
    "hero hero illu"
    "kpis kpis illu"
    "break trend sources"
    "cheer cheer sources";
  gap:10px;
  align-items:stretch;
}
.dz-profit-hero{grid-area:hero;background:#fff;border:1px solid #eceaf2;border-radius:16px;padding:16px 18px 8px}
.dz-profit-illu{grid-area:illu;background:#fff;border:1px solid #eceaf2;border-radius:16px;display:flex;align-items:center;justify-content:center;padding:10px;min-height:180px}
.dz-profit-illu img{max-width:100%;max-height:220px;object-fit:contain}
.dz-profit-kpis{grid-area:kpis;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.dz-profit-break{grid-area:break;background:#fff;border:1px solid #eceaf2;border-radius:16px;padding:14px}
.dz-profit-trend{grid-area:trend;background:#fff;border:1px solid #eceaf2;border-radius:16px;padding:14px}
.dz-profit-side{grid-area:sources;background:#fff;border:1px solid #eceaf2;border-radius:16px;padding:14px;display:flex;flex-direction:column}
.dz-profit-cheer{grid-area:cheer}

.dz-profit-hero small{display:block;font-size:10px;letter-spacing:.08em;font-weight:800;color:#7a748c}
.dz-profit-hero-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px 16px;margin:6px 0 4px}
.dz-profit-hero strong{font-size:clamp(24px,3vw,34px);letter-spacing:-.8px;color:#171522;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.dz-profit-spent-inline{font-size:16px;color:#c2410c;font-weight:800;letter-spacing:0}
.dz-profit-delta{margin:0;font-size:14px;font-weight:800}
.dz-profit-delta.is-up{color:#15803d}
.dz-profit-delta.is-down{color:#c2410c}
.dz-profit-delta em{font-style:normal;font-weight:600;color:#7a748c;margin-left:6px}
.dz-profit-mini{max-width:280px}
.dz-profit-kpis > div{background:#fff;border:1px solid #eceaf2;border-radius:12px;padding:10px 12px}
.dz-profit-kpis span{display:block;font-size:10px;font-weight:800;color:#8a8498;letter-spacing:.04em}
.dz-profit-kpis b{display:block;margin-top:4px;font-size:14px}
.dz-profit-break h3,.dz-profit-trend h3,.dz-profit-side h3{margin:0 0 10px;font-size:13px}
.dz-profit-donut-wrap{display:grid;grid-template-columns:110px 1fr;gap:10px;align-items:center}
.dz-profit-donut-wrap svg{width:110px;height:110px}
.dz-profit-donut-wrap ul,.dz-profit-sources{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.dz-profit-donut-wrap li{display:flex;align-items:center;gap:8px;font-size:12px}
.dz-profit-donut-wrap i{width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.dz-profit-donut-wrap b,.dz-profit-sources b{margin-left:auto}
.dz-profit-line{width:100%;height:110px;display:block}
.dz-profit-hint{margin:8px 0 0;font-size:11px;color:#8a8498;line-height:1.4}
.dz-profit-sources li{display:flex;gap:8px;font-size:13px;padding:8px 0;border-bottom:1px solid #f1eef6}
.dz-profit-report{
  margin-top:auto;width:100%;border:0;border-radius:12px;background:#6930e9;color:#fff;
  font-weight:800;padding:11px 14px;cursor:pointer;
}
.dz-profit-report:hover{filter:brightness(1.06)}
.dz-profit-cheer{display:flex;gap:10px;align-items:flex-start;background:#ecfdf3;border:1px solid #bbf7d0;border-radius:14px;padding:12px 14px}
.dz-profit-cheer span{width:26px;height:26px;border-radius:50%;background:#15803d;color:#fff;display:grid;place-items:center;font-weight:800;flex:0 0 auto}
.dz-profit-cheer b{display:block;font-size:13px}
.dz-profit-cheer p{margin:2px 0 0;font-size:12px;color:#3f5b4a}
.dz-profit-cheer.is-soft{background:#fff7ed;border-color:#fed7aa}
.dz-profit-cheer.is-soft span{background:#c2410c}
.dz-profit-cheer.is-soft p{color:#7c4a1e}

@media (max-width:900px){
  .dz-profit-grid{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "hero hero"
      "kpis kpis"
      "break trend"
      "cheer cheer"
      "sources sources";
  }
  .dz-profit-illu{display:none}
  .dz-profit-date{display:none}
  .dz-profit-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .dz-profit-grid{
    grid-template-columns:1fr;
    grid-template-areas:"hero" "kpis" "break" "trend" "sources" "cheer";
  }
}

body.dark #profitModal .dz-modal-panel.dz-profit-panel{background:#171720}
body.dark .dz-profit-head{background:linear-gradient(180deg,#1e1b2c,#171720);border-color:#2e2c3a}
body.dark .dz-profit-head h2,body.dark .dz-profit-hero strong,body.dark .dz-profit-kpis b,
body.dark .dz-profit-break h3,body.dark .dz-profit-trend h3,body.dark .dz-profit-side h3{color:#f4f2ff}
body.dark .dz-profit-body{background:#12121a}
body.dark .dz-profit-hero,body.dark .dz-profit-kpis > div,body.dark .dz-profit-break,
body.dark .dz-profit-trend,body.dark .dz-profit-side,body.dark .dz-profit-illu{background:#1b1b27;border-color:#2e2c3a}
body.dark .dz-profit-chip{background:#22212c;border-color:#3a3848;color:#ddd}
body.dark .dz-profit-date{background:#2a2340;color:#ddd}
body.dark .dz-profit-cheer{background:#163022;border-color:#245c38}
body.dark .dz-profit-cheer p{color:#b7e4c7}
body.dark .dz-profit-spent-inline{color:#fb923c}
