* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0e1a; --surface: #111827; --surface2: #1a2235;
  --border: #1e293b; --text: #e2e8f0; --text-dim: #64748b;
  --accent: #6366f1; --accent-glow: rgba(99,102,241,0.15);
  --green: #22c55e; --blue: #3b82f6; --purple: #a855f7; --orange: #f59e0b;
  --radius: 14px;
}
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* Layout */
.app { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: 250px; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 24px 16px; position: fixed; top: 0; left: 0; bottom: 0; z-index: 10;
}
.logo { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; font-weight: 700; font-size: 18px; color: var(--accent); }
.logo-icon { width: 40px; height: 40px; background: var(--accent-glow); border-radius: 10px; display: grid; place-items: center; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; color: var(--text-dim); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: all 0.2s;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { background: var(--accent-glow); color: var(--accent); }
.sidebar-footer { border-top: 1px solid var(--border); padding-top: 16px; }
.pub-id { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.pub-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.pub-value { font-size: 11px; font-family: monospace; color: var(--accent); word-break: break-all; }

/* Main */
.main { flex: 1; margin-left: 250px; padding: 32px 40px; }
.header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.header h1 { font-size: 26px; font-weight: 700; }
.header-sub { color: var(--text-dim); font-size: 14px; margin-top: 4px; }
.status-badge {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-radius: 50px; font-size: 13px; font-weight: 600;
}
.status-badge.verified { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); } 50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; } }

/* Verification Banner */
.verification-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.08));
  border: 1px solid rgba(99,102,241,0.2); border-radius: var(--radius);
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px;
  animation: fadeSlideIn 0.5s ease-out;
}
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.banner-content { display: flex; align-items: center; gap: 16px; }
.banner-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent);
  display: grid; place-items: center; font-size: 20px; color: white; font-weight: 700;
}
.banner-content h3 { font-size: 15px; font-weight: 600; }
.banner-content p { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.banner-code code { font-size: 12px; padding: 6px 12px; background: var(--surface); border-radius: 8px; color: var(--accent); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeSlideIn 0.5s ease-out both;
}
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.stat-label { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.stat-icon { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.stat-icon.green { background: rgba(34,197,94,0.1); color: var(--green); }
.stat-icon.blue { background: rgba(59,130,246,0.1); color: var(--blue); }
.stat-icon.purple { background: rgba(168,85,247,0.1); color: var(--purple); }
.stat-icon.orange { background: rgba(245,158,11,0.1); color: var(--orange); }
.stat-value { font-size: 28px; font-weight: 700; }
.stat-change { font-size: 12px; margin-top: 6px; }
.stat-change.positive { color: var(--green); }
.stat-change.neutral { color: var(--text-dim); }

/* Content Grid */
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin-bottom: 28px; }
.chart-card, .checklist-card, .ad-preview-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-header h2 { font-size: 16px; font-weight: 600; }
.chart-tabs { display: flex; gap: 4px; }
.tab {
  padding: 6px 14px; border-radius: 8px; border: none; background: transparent;
  color: var(--text-dim); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.tab.active { background: var(--accent); color: white; }
.tab:hover:not(.active) { background: var(--surface2); }
.chart-area { height: 220px; position: relative; }
canvas { width: 100% !important; height: 100% !important; }

/* Checklist */
.checklist { display: flex; flex-direction: column; gap: 14px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 10px; background: var(--surface2); }
.check-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.check-icon.done { background: rgba(34,197,94,0.15); color: var(--green); }
.check-icon.pending { background: rgba(245,158,11,0.15); color: var(--orange); }
.check-item strong { font-size: 13px; }
.check-item p { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* Ad Preview */
.badge { font-size: 11px; padding: 4px 10px; border-radius: 6px; background: rgba(34,197,94,0.1); color: var(--green); font-weight: 600; }
.ad-slot { min-height: 100px; border: 2px dashed var(--border); border-radius: 10px; display: grid; place-items: center; position: relative; }
.ad-placeholder { text-align: center; padding: 30px; color: var(--text-dim); }
.ad-placeholder p { font-size: 13px; margin-top: 10px; }

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .verification-banner { flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .header { flex-direction: column; gap: 12px; }
}
