/* ==========================================================================
   DONGVON.COM - UI/UX PRO MAX FINTECH DESIGN SYSTEM (TIER-1 STANDARD)
   Chắt lọc tinh hoa từ ui-ux-pro-max-skill: Bento Grid, Skeleton Shimmer, Odometer
   ========================================================================== */

/* 1. BENTO GRID SYSTEM FOR FINTECH PRODUCTS */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 28px 0;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.bento-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  box-shadow: 0 4px 16px rgba(0, 32, 70, 0.04);
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 32, 70, 0.1), 0 0 0 1px rgba(197, 160, 89, 0.3);
  border-color: rgba(197, 160, 89, 0.6);
}

/* Bento Hero Span 2 Columns */
@media (min-width: 1024px) {
  .bento-card.bento-span-2 {
    grid-column: span 2;
  }
}

/* Bento Featured Hero Styling (Navy & Gold Deluxe) */
.bento-card-hero {
  background: linear-gradient(135deg, #001738 0%, #00224d 55%, #053366 100%);
  border: 2px solid #dfba6b;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 24, 54, 0.25), 0 0 20px rgba(197, 160, 89, 0.15);
}

.bento-card-hero:hover {
  box-shadow: 0 20px 44px rgba(0, 24, 54, 0.35), 0 0 28px rgba(223, 186, 107, 0.35);
  border-color: #ffd700;
}

.bento-card-hero .bento-title {
  color: #ffffff;
}

.bento-card-hero .bento-desc {
  color: #cbd5e1;
}

.bento-card-hero .bento-list {
  color: #e2e8f0;
}

.bento-badge-gold {
  position: absolute;
  top: 14px;
  right: 16px;
  background: linear-gradient(135deg, #dfba6b 0%, #c5a059 100%);
  color: #001c3d;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.4);
}

/* 2. SKELETON SHIMMER & HIGH-TECH RADAR SCAN TRANSITION */
.shimmer-scan-overlay {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 16px 40px rgba(0, 32, 70, 0.08);
  padding: 36px 24px;
  text-align: center;
  max-width: 640px;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
}

.shimmer-radar-circle {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 186, 107, 0.3) 0%, rgba(0, 32, 70, 0.95) 100%);
  border: 2.5px solid #dfba6b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 24px rgba(223, 186, 107, 0.4);
  animation: radarBeacon 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes radarBeacon {
  0% { transform: scale(0.94); box-shadow: 0 0 10px rgba(223, 186, 107, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 32px rgba(223, 186, 107, 0.7); }
  100% { transform: scale(0.94); box-shadow: 0 0 10px rgba(223, 186, 107, 0.3); }
}

.shimmer-progress-track {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 20px;
  position: relative;
}

.shimmer-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c5a059 0%, #dfba6b 50%, #10b981 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(223, 186, 107, 0.5);
}

.shimmer-pulse-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f5f9 25%, #fef3c7 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmerFlow 1.4s infinite;
  margin-bottom: 10px;
}

@keyframes shimmerFlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.shimmer-status-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: #002046;
  min-height: 24px;
  transition: opacity 0.2s ease;
}

/* 3. ODOMETER & TABULAR NUMBERS SYSTEM */
.tabular-odometer {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: inline-block;
  transition: color 0.3s ease;
}

.countup-active {
  animation: popNumber 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popNumber {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}


/* 4. CLEAN FINTECH STATUS DOT SYSTEM (ZERO-EMOJI OVERLAP) */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
.status-dot.green {
  background-color: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
}
.status-dot.yellow {
  background-color: #F59E0B;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}
.status-dot.red {
  background-color: #EF4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
}
