/* ==========================================================================
   Hengxin Cloud · iOS Reminders inspired stat modules
   Loaded last so the colored tiles keep crisp white typography.
   ========================================================================== */

.stat-card {
  min-height: 132px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 18px;
  background: linear-gradient(145deg, #67d4ff 0%, #2f9ff5 48%, #0a6cff 100%);
  box-shadow: 0 9px 22px rgba(15, 23, 42, .12);
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .21), rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}
.stat-card::after {
  z-index: 0;
  background: rgba(255, 255, 255, .15);
  opacity: 1;
}
.stat-card.ios-blue,
.stat-card.stat-blue { background: linear-gradient(145deg, #67d4ff 0%, #2f9ff5 48%, #0a6cff 100%); }
.stat-card.ios-coral,
.stat-card.red { background: linear-gradient(145deg, #ffadaf 0%, #ff7272 48%, #ff3b30 100%); }
.stat-card.ios-charcoal,
.stat-card.gold,
.stat-card.violet { background: linear-gradient(145deg, #66666a 0%, #404043 48%, #1c1c1e 100%); }
.stat-card.ios-silver,
.stat-card.blue { background: linear-gradient(145deg, #d6d6db 0%, #a8a8b0 46%, #6f6f76 100%); }

.stat-card .stat-label {
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 2px rgba(20, 35, 60, .16);
}
.stat-card .stat-label .icon {
  color: rgba(255, 255, 255, .86);
}
.stat-card .stat-index {
  min-width: 20px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  background: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .9);
  text-shadow: none;
}
.stat-card .stat-icon {
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .24);
  backdrop-filter: blur(9px);
}
.stat-card .stat-value {
  color: #fff;
  text-shadow: 0 1px 3px rgba(20, 40, 80, .18);
}
.stat-card .stat-value .unit,
.stat-card .stat-value .prefix {
  color: rgba(255, 255, 255, .82);
  text-shadow: none;
}
.stat-card .stat-foot {
  color: rgba(255, 255, 255, .9);
}
.stat-card .stat-trend,
.stat-card .stat-trend.up,
.stat-card .stat-trend.warn,
.stat-card .stat-trend.danger {
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 2px rgba(20, 35, 60, .12);
}
.stat-card .stat-trend .icon {
  color: rgba(255, 255, 255, .82);
}
.stat-card .stat-note {
  color: rgba(255, 255, 255, .72);
}
