.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 22px;
}
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px;
  color: white;
  box-shadow: 0 12px 30px #18315320;
}
.stat-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  right: -45px;
  top: -55px;
  background: #ffffff18;
}
.stat-today { background: linear-gradient(135deg, #1267e5, #5b8ff5); }
.stat-week { background: linear-gradient(135deg, #18263f, #44546d); }
.stat-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  position: relative;
  z-index: 1;
}
.stat-heading span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .82;
}
.stat-heading strong { font-size: 38px; line-height: 1; }
.stat-details {
  display: flex;
  gap: 16px;
  margin-top: 17px;
  position: relative;
  z-index: 1;
  font-size: 12px;
}
.stat-details span { display: flex; align-items: center; gap: 6px; }
.stat-details b { font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.delivered { background: #65efb4; }
.dot.cancelled { background: #ff9aa3; }
.dot.arbitration { background: #ffd166; }
.top-products-panel { background: white; border: 1px solid #e1e6ec; border-radius: 22px; padding: 20px; margin-bottom: 22px; }
.top-products-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.top-products-heading h2 { margin: 4px 0 0; font-size: 24px; }
.top-badge { background: #172033; color: white; border-radius: 999px; padding: 7px 11px; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.top-products { display: grid; gap: 8px; }
.top-product { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; background: #f7f9fb; }
.rank { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #e7efff; color: #1267e5; font-size: 13px; font-weight: 900; }
.top-product:nth-child(1) .rank { background: #fff0bd; color: #946b00; }
.top-product:nth-child(2) .rank { background: #e9edf2; color: #596579; }
.top-product:nth-child(3) .rank { background: #ffe0cc; color: #9a4f20; }
.top-product-main { min-width: 0; display: grid; gap: 3px; }
.top-product-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.top-product-main code { color: #7a8492; font-size: 11px; }
.top-product > b { color: #172033; font-size: 18px; white-space: nowrap; }
.top-product > b small { color: #7a8492; font-size: 10px; }
.top-progress { height: 4px; border-radius: 99px; background: #e6ebf0; overflow: hidden; margin-top: 3px; }
.top-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1267e5, #65a3ff); }
.top-empty { text-align: center; color: #7a8492; padding: 20px; }
.urgent-section { margin: 0 0 22px; padding: 16px; border: 1px solid #ffbdc3; border-radius: 22px; background: linear-gradient(145deg, #fff3f4, #fff); box-shadow: 0 12px 32px #d9384515; }
.urgent-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.urgent-heading span { color: #d93845; font-size: 11px; font-weight: 1000; letter-spacing: .16em; }
.urgent-heading h2 { margin: 4px 0 0; font-size: 20px; color: #8c1f29; }
.urgent-heading > strong { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 14px; background: #d93845; color: white; font-size: 22px; }
.urgent-orders .card { border-color: #ffccd1; box-shadow: 0 6px 20px #d9384512; }
.urgent-empty { margin: 0; padding: 12px; text-align: center; color: #77818f; font-size: 13px; }
.urgent-section.clear { border-color: #dfe5eb; background: white; box-shadow: none; }
.urgent-section.clear .urgent-heading span { color: #77818f; }
.urgent-section.clear .urgent-heading h2 { color: #334155; }
.urgent-section.clear .urgent-heading > strong { background: #e9edf2; color: #667085; }
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 16px; }
  .top-products-panel { padding: 15px; }
  .top-product { grid-template-columns: 30px 1fr auto; gap: 8px; padding: 10px 8px; }
  .urgent-section { padding: 12px; }
  .urgent-heading h2 { font-size: 16px; max-width: 240px; }
}
