/* ========================================
   DASHBOARD - HOME PAGE
   ======================================== */

/* Hero Banner */
.dashboard-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.hero-accent {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* Hero User */
.hero-user {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 2.5px solid #667eea;
}

.hero-user-info {
  color: #fff;
}

.hero-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #fff;
}

.hero-identifiers {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-uid, .hero-email {
  font-size: 12.5px;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.hero-chip i {
  font-size: 13px;
  opacity: 0.8;
}

/* Hero Counters */
.hero-counters {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.hero-counter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-counter-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hero-counter-bm {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero-counter-ads {
  background: rgba(255, 255, 255, 0.2);
  color: #fbbf24;
}

.hero-counter-page {
  background: rgba(255, 255, 255, 0.2);
  color: #34d399;
}

.hero-counter-data {
  display: flex;
  flex-direction: column;
}

.hero-counter-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.hero-counter-label {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  white-space: nowrap;
}

.hero-counter-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Dashboard Cards */
.dashboard-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}

.dashboard-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
}

.dcard-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dcard-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.dcard-icon-ads { background: #fff7ed; color: #f97316; }
.dcard-icon-bm { background: #eef2ff; color: #6366f1; }
.dcard-icon-page { background: #f0fdf4; color: #22c55e; }
.dcard-icon-detail { background: #fdf2f8; color: #ec4899; }
.dcard-icon-chart { background: #fef3c7; color: #f59e0b; }
.dcard-icon-history { background: #f0f9ff; color: #0ea5e9; }

.dcard-title {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
  color: #1e293b;
}

.dcard-link {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.dcard-link:hover {
  color: #4f46e5;
}

.dcard-link i {
  font-size: 16px;
}

.dcard-body {
  padding: 0 18px 16px;
  min-height: 80px;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
  color: #94a3b8;
}

.empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.empty-icon i {
  font-size: 24px;
  color: #94a3b8;
}

.empty-state p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

/* Ad Details List */
.ad-details-list {
  padding: 0;
}

.ad-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
}

.ad-detail-item:hover {
  background: #f8fafc;
}

.detail-label {
  color: #64748b;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-label i {
  font-size: 15px;
  color: #94a3b8;
}

.detail-value {
  font-weight: 600;
  color: #1e293b;
}

/* BM Chart */
.bm-chart-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bm-chart-wrapper {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.bm-chart-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Versions List */
.versions-list {
  max-height: 300px;
  overflow-y: auto;
}

.versions-list::-webkit-scrollbar {
  width: 4px;
}

.versions-list::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .hero-counters {
    width: 100%;
    justify-content: space-around;
  }
}
