/* ============================================================
   DASHBOARD-HOF.CSS - kartu statistik dashboard user + Hall of Fame
   (Sumber: app-common.css baris 392-596 - dipindah apa adanya)
   JANGAN ubah urutan <link> di header: cascade mengikuti urutan load.
   ============================================================ */

/* ============================================================
   35. DASHBOARD - STAT CARDS
    ============================================================ */
.saas-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-balance {
  background: linear-gradient(135deg, var(--ui-bg-card) 60%, #f0f7ff 100%);
}

.stat-card-orders {
  background: linear-gradient(135deg, var(--ui-bg-card) 60%, #f0f7ff 100%);
}

.stat-card-month {
  background: linear-gradient(135deg, var(--ui-bg-card) 60%, #fffbeb 100%);
}


.saas-stat-info h4 {
  font-size: 11.5px;
  color: var(--ui-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 8px;
  font-weight: 600;
}

.saas-stat-info h2 {
  font-size: 22px;
  color: var(--ui-text-main);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.saas-stat-info p {
  font-size: 12.5px;
  color: var(--ui-text-muted);
  margin: 6px 0 0;
  font-weight: 500;
}


.saas-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.icon-blue {
  background: var(--ui-accent-light);
  color: var(--ui-accent);
}

.icon-amber {
  background: var(--ui-warning-light);
  color: var(--ui-warning);
}


/* ============================================================
   37. DASHBOARD - QUICK LINKS
    ============================================================ */
.saas-link-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saas-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--ui-text-main);
  text-decoration: none;
  background: var(--ui-bg-subtle);
  border: 1px solid var(--ui-border-soft);
  font-size: 13px;
  font-weight: 600;
}

.saas-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.saas-link i.link-icon {
  color: var(--ui-text-muted);
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.saas-link i.arrow-icon {
  color: #cbd5e1;
  font-size: 11px;
}


/* ============================================================
   38. DASHBOARD - CHART OVERFLOW GUARD
    ============================================================ */
#last-order-chart {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#last-order-chart svg {
  max-width: 100% !important;
}


/* ============================================================
   41. HALL OF FAME (HOF)
    ============================================================ */
.hof-title-section {
  margin-bottom: 20px;
  margin-top: 0;
}

.hof-title-section h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--ui-text-main);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hof-title-section h3 i {
  color: #f59e0b;
}

.hof-title-section p {
  font-size: 13px;
  color: var(--ui-text-muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}


.saas-empty {
  text-align: center;
  padding: 32px 14px;
  color: var(--ui-text-muted);
  font-size: 13px;
}


.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.rank-1 {
  background-color: #fef3c7;
  color: #d97706;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.1);
}

.rank-2 {
  background-color: var(--ui-border-soft);
  color: #475569;
  border: 1px solid rgba(71, 85, 105, 0.1);
}

.rank-3 {
  background-color: #ffedd5;
  color: #c2410c;
  border: 1px solid rgba(194, 65, 12, 0.1);
}

.rank-other {
  background-color: var(--ui-bg-subtle);
  color: var(--ui-text-muted);
  border: 1px solid var(--ui-border);
}

/* ============================================================
   DASHBOARD REDESIGN v6 2026-08-25 - EDITORIAL MONO
   TANPA KARTU: tipografi sebagai antarmuka, pemisah garis 1px.
   Monokrom slate penuh; tidak memakai class saas-card theme,
   jadi kebal konflik CSS antar halaman. Namespace ed-*.
   JANGAN ubah urutan <link> di header (cascade mengikuti load).
   ============================================================ */
@keyframes dbx-fade-up {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}
.dbx-anim { animation: dbx-fade-up 0.28s ease both; }

.ed-wrap { padding: 4px 2px 8px; }

/* Panel ber-border untuk tiap seksi */
.ed-panel {
background: var(--ui-bg-card);
border: 1px solid var(--ui-border);
border-radius: 16px;
padding: 26px 28px;
}
.ed-panel + .ed-panel { margin-top: 20px; }
@media (max-width: 767.98px) {
.ed-panel { padding: 20px 16px; }
}

/* Label kecil universal (uppercase, renggang) */
.ed-label {
font-size: 11px;
font-weight: 700;
letter-spacing: 1.2px;
text-transform: uppercase;
color: var(--ui-text-muted);
}

/* Garis pemisah tipis */
.ed-rule { border: 0; border-top: 1px solid var(--ui-border-soft); margin: 0; }

/* ===== BARIS ATAS: SALDO + AKSI ===== */
.ed-top {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 24px;
flex-wrap: wrap;
}
.ed-balance-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.ed-balance {
font-size: 48px;
font-weight: 700;
letter-spacing: -1.5px;
line-height: 1;
color: var(--ui-text-main);
font-variant-numeric: tabular-nums;
}
.ed-sub { font-size: 13px; color: var(--ui-text-muted); margin-top: 10px; }
.dbx-eye {
background: transparent;
border: 0;
padding: 6px;
cursor: pointer;
font-size: 15px;
line-height: 0;
color: var(--ui-text-muted);
transition: color 0.15s ease;
}
.dbx-eye:hover { color: var(--ui-text-main); }

/* Tombol pill monokrom */
.ed-top-actions { display: flex; gap: 10px; }
.ed-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 20px;
border-radius: 999px;
font-size: 13px;
font-weight: 600;
line-height: 1;
text-decoration: none !important;
transition: all 0.15s ease;
}
.ed-btn i { font-size: 13px; }
.ed-btn-solid { background: var(--ui-success); color: #ffffff; }
.ed-btn-solid:hover { background: #059669; color: #ffffff; }
.ed-btn-line { background: transparent; border: 1px solid var(--ui-border); color: var(--ui-text-main); }
.ed-btn-line:hover { border-color: var(--ui-text-muted); color: var(--ui-text-main); }


/* ===== STATISTIK: 3 KOLOM TEKS MURNI ===== */
.ed-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 32px;
}
.ed-stat { border-left: 2px solid var(--ui-border-soft); padding-left: 18px; }
.ed-stat-value {
font-size: 26px;
font-weight: 700;
letter-spacing: -0.6px;
margin-top: 8px;
color: var(--ui-text-main);
font-variant-numeric: tabular-nums;
}
.ed-stat-sub { font-size: 12.5px; color: var(--ui-text-muted); margin-top: 4px; }

/* ===== BERITA: DAFTAR GARIS TIPIS ===== */
.ed-news { }
.ed-list { margin-top: 12px; }
.ed-news-item {
display: flex;
gap: 20px;
padding: 16px 0;
border-top: 1px solid var(--ui-border-soft);
}
.ed-news-item:first-child { border-top: 0; padding-top: 8px; }
.ed-news-date {
flex: 0 0 170px;
font-size: 12.5px;
color: var(--ui-text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-top: 2px;
}
.ed-news-body {
flex: 1;
min-width: 0;
font-size: 13.5px;
line-height: 1.65;
color: var(--ui-text-main);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.ed-more {
display: inline-flex;
align-items: center;
gap: 6px;
margin-top: 10px;
font-size: 12.5px;
font-weight: 600;
color: var(--ui-accent);
text-decoration: none;
transition: color 0.15s ease;
}
.ed-more:hover { color: #1d4fd8; text-decoration: none; }
.ed-more i { font-size: 11px; transition: transform 0.15s ease; }
.ed-more:hover i { transform: translateX(3px); }
.ed-empty {
padding: 36px 0;
text-align: center;
color: var(--ui-text-muted);
font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
.ed-top { flex-direction: column; align-items: stretch; padding-bottom: 24px; }
.ed-balance { font-size: 38px; letter-spacing: -1px; }
.ed-top-actions { width: 100%; }
.ed-btn { flex: 1; justify-content: center; }
.ed-stats { grid-template-columns: 1fr; gap: 18px; padding: 22px 0; }
.ed-news { padding-top: 22px; }
.ed-news-item { flex-direction: column; gap: 4px; }
.ed-news-date { flex-basis: auto; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
.dbx-anim { animation: none !important; }
.ed-btn, .ed-more i, .dbx-eye { transition: none !important; }
}


/* ============================================================
   POLISH v6.3 - sapaan + tanggal (efek hover/animasi dihapus)
   ============================================================ */

/* --- SAPAAN + TANGGAL --- */
.ed-greet {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
margin-bottom: 16px;
padding: 0 2px;
}
.ed-greet-hi { font-size: 15px; font-weight: 700; color: var(--ui-text-main); }
.ed-greet-date { font-size: 12.5px; color: var(--ui-text-muted); }

/* --- WARNA AKSEN STATISTIK (statis, tanpa efek) ---
   Hijau = deposit, biru = pemesanan, kuning = bulan ini.
   Warna token dari assets/css/base/variables.css. */
.ed-c-green { border-left-color: var(--ui-success); }
.ed-c-blue { border-left-color: var(--ui-accent); }
.ed-c-yellow { border-left-color: var(--ui-warning); }

