/* ── HOME PAGE ── */
.home-page { display: flex; flex-direction: column; gap: 20px; }

/* ── BANNER ── */
.home-banner {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 60%, var(--brand-mid) 100%);
  border-radius: 20px; padding: 24px 20px;
  position: relative; overflow: hidden;
}
.home-banner::before {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.07); border-radius: 50%;
}
.home-banner-left { position: relative; z-index: 1; }
.home-banner-greeting { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.home-banner-name { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.2; }
.home-banner-sub { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 6px; }
.home-banner-logo {
  width: 70px; height: 70px; object-fit: contain;
  opacity: .85; position: relative; z-index: 1;
  flex-shrink: 0;
}

/* ── STAT GRID ── */
.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.sk-card { min-height: 80px; }
.stat-card-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-card-value { font-size: 28px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-card-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; margin-bottom: 4px;
}
.stat-card-icon.brown  { background: var(--brand-pale); color: var(--brand-primary); }
.stat-card-icon.green  { background: var(--success-bg); color: var(--success); }
.stat-card-icon.blue   { background: var(--info-bg);    color: var(--info); }
.stat-card-icon.purple { background: #f3e8ff;           color: #7c3aed; }

/* ── SECTION ── */
.home-section { display: flex; flex-direction: column; gap: 12px; }
.home-section-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }

/* ── USERS LIST ── */
.home-users-list { position: relative; }
.home-users-empty { font-size: 13px; color: var(--text-muted); padding: 16px 0; text-align: center; }

.home-bubble-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-page);
  touch-action: none;
}
.home-bubble {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  background: var(--brand-pale);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 16px;
  user-select: none;
  will-change: transform;
}
.home-bubble img { width: 100%; height: 100%; object-fit: cover; }
.home-bubble.badge-kurir  { border: 2px solid var(--info); }
.home-bubble.badge-sales  { border: 2px solid var(--success); }
.home-bubble.badge-hunter { border: 2px solid #7c3aed; }

.home-bubble-tooltip {
  position: absolute;
  transform: translate(-50%, -100%) scale(0.8);
  background: var(--brand-dark);
  color: #fff;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 5;
}
.home-bubble-tooltip::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--brand-dark);
}
.home-bubble-tooltip.show {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

.home-user-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border-card);
  border-radius: 14px; padding: 12px 14px;
}
.home-user-avatar {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-pale), var(--brand-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--text-white);
  flex-shrink: 0; overflow: hidden;
}
.home-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-user-info { flex: 1; min-width: 0; }
.home-user-nama { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-user-role { font-size: 11px; color: var(--text-muted); margin-top: 2px; text-transform: capitalize; }
.home-user-badge {
  font-size: 10px; font-weight: 700; padding: 3px 10px;
  border-radius: 99px; flex-shrink: 0;
}
.badge-kurir   { background: var(--info-bg);    color: var(--info); }
.badge-sales   { background: var(--success-bg); color: var(--success); }
.badge-hunter  { background: #f3e8ff;           color: #7c3aed; }
.badge-adminCabang { background: var(--brand-pale); color: var(--brand-primary); }
.badge-produksi    { background: var(--warning-bg); color: var(--warning); }