/* ==========================================================================
   PDIKM Statistik — Dashboard modern
   ========================================================================== */

.stat-dashboard {
  min-height: 100vh;
  padding: 28px 16px 40px;
  font-family: var(--pdikm-font-body);
  color: #fff;
  background:
    linear-gradient(165deg, rgba(8, 12, 22, 0.92) 0%, rgba(8, 12, 22, 0.78) 45%, rgba(8, 12, 22, 0.95) 100%),
    url('/assets/img/pdikm/bgpdikm.jpg') center / cover no-repeat;
  box-sizing: border-box;
}

.stat-dashboard > * {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.stat-hero {
  text-align: center;
  margin-bottom: 28px;
  animation: statFadeUp 0.55s ease-out both;
}

.stat-hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 14px;
}

.stat-hero-logo {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.35));
}

.stat-float-anim {
  animation: statFloat 3s ease-in-out infinite;
}

.stat-hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 202, 40, 0.35);
  background: rgba(255, 202, 40, 0.1);
  color: #ffca28;
  font-family: var(--pdikm-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.stat-hero-title {
  margin: 0 0 8px;
  font-family: var(--pdikm-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.stat-hero-sub {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* Cards */
.stat-highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
  animation: statFadeUp 0.55s 0.08s ease-out both;
}

.stat-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
  animation: statFadeUp 0.55s 0.14s ease-out both;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat-card--featured {
  padding: 18px 14px;
  min-height: 118px;
}

.stat-card--accent-emerald {
  border-color: rgba(0, 255, 136, 0.22);
  background: linear-gradient(145deg, rgba(0, 255, 136, 0.08), rgba(255, 255, 255, 0.03));
}

.stat-card--accent-gold {
  border-color: rgba(255, 202, 40, 0.28);
  background: linear-gradient(145deg, rgba(255, 202, 40, 0.1), rgba(255, 255, 255, 0.03));
}

.stat-card--compact {
  padding: 14px 12px;
  min-height: 96px;
}

.stat-card--live {
  border-color: rgba(66, 165, 245, 0.25);
  background: linear-gradient(145deg, rgba(66, 165, 245, 0.08), rgba(255, 255, 255, 0.03));
}

.stat-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-card-value {
  font-family: var(--pdikm-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #fff;
}

.stat-card--accent-emerald .stat-card-value {
  color: #5dffb8;
}

.stat-card--accent-gold .stat-card-value {
  color: #ffd54f;
}

.stat-card-value--sm {
  font-size: 1.35rem;
}

.stat-card-meta {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
  margin-top: auto;
}

.stat-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42a5f5;
  box-shadow: 0 0 8px #42a5f5;
  animation: statPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Feature / tutorial */
.stat-feature {
  text-align: center;
  padding: 22px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 202, 40, 0.2);
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.12), rgba(255, 202, 40, 0.08));
  backdrop-filter: blur(10px);
  margin-bottom: 24px;
  animation: statFadeUp 0.55s 0.2s ease-out both;
}

.stat-feature-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stat-feature-title {
  margin: 0 0 10px;
  font-family: var(--pdikm-font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffca28;
}

.stat-feature-desc {
  margin: 0 0 18px;
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.stat-feature .btn-eticket {
  max-width: 280px;
  margin: 0 auto;
}

/* Footer */
.stat-footer {
  text-align: center;
  animation: statFadeUp 0.55s 0.26s ease-out both;
}

.stat-footer-link {
  display: inline-block;
  padding: 8px 4px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.stat-footer-link:hover {
  color: #fff;
}

.stat-footer-cta {
  display: block;
  margin-top: 10px;
  color: #ffca28;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  transition: opacity 0.15s ease;
}

.stat-footer-cta:hover {
  opacity: 0.85;
}

@keyframes statFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

@keyframes statFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 380px) {
  .stat-dashboard {
    padding: 22px 12px 32px;
  }

  .stat-highlight-grid,
  .stat-metrics-grid {
    gap: 8px;
  }

  .stat-card-value {
    font-size: 1.5rem;
  }

  .stat-card-value--sm {
    font-size: 1.2rem;
  }

  .stat-hero-title {
    font-size: 1.2rem;
  }

  .stat-hero-logo {
    max-width: 220px;
  }
}

@media (min-width: 520px) {
  .stat-dashboard > * {
    max-width: 480px;
  }
}
