/* ==========================================================================
   GRGR MARKETING REPORT V1.2 / V1.1 — PREMIUM EXECUTIVE STYLESHEET
   Clean · Data-Dense · Flat 2.0 · Progressive Disclosure · Responsive
   Typography: Inter + Plus Jakarta Sans
   ========================================================================== */

:root {
  --primary-dark: #00214D;
  --primary-navy: #002B66;
  --primary: #004AAD;
  --primary-light: #00B0F0;
  --bg-page: #F4F7FC;
  --surface: #FFFFFF;
  --surface-subtle: #F8FAFC;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-faint: #94A3B8;
  --success: #16A34A;
  --success-bg: #DCFCE7;
  --warning: #D97706;
  --warning-bg: #FEF3C7;
  --danger: #DC2626;
  --danger-bg: #FEE2E2;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.v11-body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -0.011em;
}

/* ==========================================================================
   1. SIDEBAR (Matching Exact Mockup)
   ========================================================================== */
.v11-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  background: var(--primary-dark) !important;
  padding: 20px 14px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
  overflow-y: auto;
}

.v11-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFFFFF;
  padding: 4px 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.v11-brand-badge {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #004AAD;
  color: #00D2FF;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.v11-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: #FFFFFF;
}

.v11-nav-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #627D98;
  letter-spacing: 0.06em;
  padding: 12px 10px 4px;
  text-transform: uppercase;
}

.v11-nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v11-nav-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #B2C7E0;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.v11-nav-group a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.v11-nav-group a.selected {
  background: #0E3566 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 0 1px #1E4E8C;
}

.v11-nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v11-nav-icon {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.v11-ver-tag {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.v11-ver-tag.active {
  background: #00B0F0;
  color: #00214D;
}

.v11-ver-tag.muted {
  background: #19385C;
  color: #8EABC9;
}

.v11-logout {
  margin-top: auto;
  color: #8EABC9;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.15s ease;
}

.v11-logout:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   2. MAIN CONTENT AREA & TOP TABS
   ========================================================================== */
.v11-main {
  margin-left: 236px;
  padding: 20px 28px 48px;
  min-width: 0;
}

/* Top Tab Switcher (Tuyển dụng vs Social Media) */
.v11-top-tabs {
  display: inline-flex;
  background: #E2E8F0;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.v11-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.v11-tab-btn:hover {
  color: var(--primary);
}

.v11-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Header Bar */
.v11-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.v11-header-titles h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #0E1B33;
  margin: 0 0 4px;
  letter-spacing: -0.025em;
}

.v11-header-titles p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.v11-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #16A34A;
  border-radius: 50%;
  margin: 0 4px;
}

.v11-controls-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Pill Group Switcher */
.v11-pill-group {
  display: inline-flex;
  background: #E8EEF5;
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.v11-pill-btn {
  border: none;
  background: transparent;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.v11-pill-btn:hover {
  color: var(--primary);
}

.v11-pill-btn.active {
  background: #FFFFFF;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.v11-select {
  height: 34px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #1E293B;
  cursor: pointer;
  outline: none;
  font-family: var(--font-sans);
}

.v11-select:hover {
  border-color: #94A3B8;
}

.v11-action-btn {
  height: 34px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.v11-action-btn:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
}

.v11-action-btn.primary {
  background: #002B66;
  border-color: #002B66;
  color: #FFFFFF;
}

.v11-action-btn.primary:hover {
  background: #004AAD;
  border-color: #004AAD;
}

/* ==========================================================================
   3. TOOLTIP ON HOVER (GIẢI THÍCH Ý NGHĨA CHỈ SỐ)
   ========================================================================== */
.v11-has-tooltip {
  position: relative;
  cursor: help;
}

.v11-tooltip-box {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #F8FAFC;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.45;
  white-space: normal;
  width: 260px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 150;
  font-weight: 400;
  text-align: left;
}

.v11-tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0F172A;
}

.v11-has-tooltip:hover .v11-tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

/* ==========================================================================
   4. TUYỂN DỤNG TAB COMPONENTS
   ========================================================================== */
.v11-top-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Left Card: TỔNG CHI PHÍ */
.v11-cost-card {
  background: linear-gradient(145deg, #071C38 0%, #0E2B52 100%);
  border: 1px solid #1A3E6D;
  border-radius: 10px;
  padding: 20px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 33, 77, 0.12);
}

.v11-cost-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.v11-cost-title {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.v11-cost-delta {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: #7DD3FC;
  padding: 2px 8px;
  border-radius: 10px;
}

.v11-cost-amount-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 2px;
}

.v11-cost-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.v11-cost-unit {
  font-size: 15px;
  font-weight: 600;
  color: #93C5FD;
}

.v11-cost-sub {
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 14px;
}

/* Stacked Multi-bar */
.v11-stacked-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 14px;
}

.v11-bar-os { background: #00B0F0; }
.v11-bar-bpo { background: #2563EB; }
.v11-bar-sbpo { background: #F59E0B; }
.v11-bar-other { background: #64748B; }

/* 2x2 Breakdown Grid */
.v11-cost-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  font-size: 12px;
  color: #CBD5E1;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.v11-cost-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.v11-sq {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.v11-cost-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #94A3B8;
}

.v11-btn-budget {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: #93C5FD;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}

.v11-btn-budget:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* Right Card: Phễu chuyển đổi */
.v11-funnel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v11-funnel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.v11-funnel-header-left h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 2px;
}

.v11-funnel-header-left p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Funnel 4 Columns Layout */
.v11-funnel-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.v11-funnel-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #F1F5F9;
  padding-right: 12px;
}

.v11-funnel-col:last-child {
  border-right: none;
  padding-right: 0;
}

.v11-col-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.v11-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.v11-col-val-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.v11-col-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.v11-rate-badge {
  font-size: 11px;
  font-weight: 700;
  background: #E0F2FE;
  color: #0284C7;
  padding: 2px 6px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.v11-rate-badge.warning {
  background: #FEF3C7;
  color: #D97706;
}

.v11-col-bar {
  height: 2px;
  background: #F1F5F9;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.v11-col-bar-fill {
  height: 100%;
  background: #0284C7;
  border-radius: 2px;
}

.v11-col-cost {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}

.v11-col-cost b {
  color: #0F172A;
  font-weight: 700;
}

/* Middle Row */
.v11-mid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.v11-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.v11-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.v11-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 2px;
}

.v11-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.v11-tag-count {
  font-size: 11px;
  font-weight: 600;
  background: #F1F5F9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}

/* Left Table: 3 Models */
.v11-model-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.v11-model-table th {
  text-align: right;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.v11-model-table th:first-child { text-align: left; }
.v11-model-table th:last-child { text-align: left; padding-left: 12px; }

.v11-model-table td {
  padding: 10px 8px;
  text-align: right;
  border-bottom: 1px solid #F8FAFC;
  font-variant-numeric: tabular-nums;
  color: #0F172A;
}

.v11-model-table td:first-child { text-align: left; font-weight: 700; }
.v11-model-table td:last-child { text-align: left; padding-left: 12px; }

.v11-benchmark-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v11-micro-bar {
  width: 70px;
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  position: relative;
}

.v11-micro-bar-tick {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 1.5px;
  background: #0F172A;
  left: 70%;
}

.v11-micro-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.v11-micro-bar-fill.pass { background: #16A34A; }
.v11-micro-bar-fill.warn { background: #F59E0B; }
.v11-micro-bar-fill.fail { background: #DC2626; }

.v11-model-note {
  background: #F0F7FF;
  border: 1px solid #E0F2FE;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: #1E40AF;
  margin-top: 14px;
  line-height: 1.5;
}

/* Right List: Khu vực trọng điểm */
.v11-region-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
  margin: 10px 0 6px;
  text-transform: uppercase;
}

.v11-region-section-label.warn {
  color: #DC2626;
  margin-top: 14px;
}

.v11-region-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #F8FAFC;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.v11-region-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v11-rank-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #EFF6FF;
  color: #2563EB;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
}

.v11-rank-badge.warn {
  background: #FEE2E2;
  color: #DC2626;
}

.v11-region-tag {
  font-size: 10.5px;
  color: #64748B;
  background: #F1F5F9;
  padding: 1px 5px;
  border-radius: 3px;
}

.v11-btn-open-drawer {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 9px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #004AAD;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
}

.v11-btn-open-drawer:hover {
  background: #EEF4FC;
  border-color: #CBD5E1;
}

/* Bottom Card: Chi phí theo ngày */
.v11-daily-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.v11-daily-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.v11-daily-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.v11-daily-title-row h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.v11-pill-mock {
  font-size: 10.5px;
  font-weight: 600;
  background: #FEF9C3;
  color: #A16207;
  padding: 1px 6px;
  border-radius: 4px;
}

.v11-daily-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #475569;
}

.v11-chart-container {
  width: 100%;
  overflow-x: auto;
}

/* ==========================================================================
   5. SOCIAL MEDIA COMPONENTS
   ========================================================================== */
.v11-social-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.v11-social-kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.v11-social-kpi-card.hero {
  background: linear-gradient(145deg, #071C38 0%, #0E2B52 100%);
  border: 1px solid #1A3E6D;
  color: #FFFFFF;
}

.v11-social-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.v11-social-kpi-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.v11-social-kpi-card.hero .v11-social-kpi-label {
  color: #94A3B8;
}

.v11-social-kpi-val {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.v11-social-kpi-card.hero .v11-social-kpi-val {
  color: #FFFFFF;
}

.v11-social-kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v11-social-kpi-card.hero .v11-social-kpi-sub {
  color: #94A3B8;
}

/* Channel Breakdown List */
.v11-channel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.v11-channel-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.v11-channel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.v11-channel-name {
  font-weight: 600;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v11-channel-val {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0F172A;
  font-size: 12px;
}

.v11-channel-bar {
  height: 6px;
  background: #EEF2F6;
  border-radius: 999px;
  overflow: hidden;
}

.v11-channel-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Fanpage Table (Bỏ cột trạng thái) */
.v11-fanpage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.v11-fanpage-table th {
  text-align: right;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.v11-fanpage-table th:first-child { text-align: left; }

.v11-fanpage-table td {
  padding: 10px;
  text-align: right;
  border-bottom: 1px solid #F8FAFC;
  font-variant-numeric: tabular-nums;
  color: #0F172A;
}

.v11-fanpage-table td:first-child { text-align: left; }

.v11-fanpage-badge {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}

/* Post List */
.v11-post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v11-post-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #EEF2F6;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.v11-post-item:hover {
  background: #EEF4FC;
  border-color: #CBD5E1;
}

.v11-post-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #E2E8F0;
  display: grid;
  place-items: center;
  color: #475569;
  flex-shrink: 0;
}

.v11-post-info {
  flex: 1;
  min-width: 0;
}

.v11-post-title {
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v11-post-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.v11-post-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.v11-post-badge.ads { background: #EEF2FF; color: #4F46E5; }
.v11-post-badge.organic { background: #DCFCE7; color: #15803D; }

.v11-post-views {
  text-align: right;
  flex-shrink: 0;
}

.v11-post-views b {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  display: block;
}

.v11-post-views span {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   6. PREMIUM UX DRAWER / MODAL (BẢNG CHI TIẾT 10 / 19 KHU VỰC)
   ========================================================================== */
.v11-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.v11-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.v11-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 820px;
  max-width: 95vw;
  background: #FFFFFF;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.v11-drawer-panel.open {
  transform: translateX(0);
}

.v11-drawer-header {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.v11-drawer-header h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #0E1B33;
  margin: 0 0 2px;
}

.v11-drawer-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.v11-drawer-close {
  background: #F1F5F9;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #64748B;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.v11-drawer-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Drawer Ribbon Quick Stats */
.v11-drawer-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--line);
}

.v11-ribbon-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 8px 12px;
  font-variant-numeric: tabular-nums;
}

.v11-ribbon-card span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

.v11-ribbon-card b {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}

/* Drawer Toolbar & Filter Tabs */
.v11-drawer-toolbar {
  padding: 12px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.v11-drawer-tabs {
  display: flex;
  gap: 4px;
  background: #E8EEF5;
  padding: 3px;
  border-radius: 6px;
}

.v11-drawer-tab {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-sans);
}

.v11-drawer-tab.active {
  background: #FFFFFF;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.v11-drawer-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.v11-drawer-search-wrap {
  position: relative;
  width: 220px;
}

.v11-drawer-search {
  width: 100%;
  height: 32px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0 10px 0 28px;
  font-size: 12px;
  outline: none;
  font-family: var(--font-sans);
}

.v11-search-icon {
  position: absolute;
  left: 9px;
  top: 9px;
  width: 13px;
  height: 13px;
  color: #94A3B8;
}

.v11-btn-tool {
  height: 32px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
}

.v11-btn-tool:hover {
  background: #F8FAFC;
}

/* Drawer Table Container */
.v11-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 24px;
}

.v11-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 10px;
}

.v11-table th {
  position: sticky;
  top: 0;
  background: #F8FAFC;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #CBD5E1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.v11-table th:hover {
  background: #EDF2F8;
  color: var(--primary);
}

.v11-table th.sort-active {
  color: var(--primary);
}

.v11-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #EEF2F6;
  font-variant-numeric: tabular-nums;
  color: #0F172A;
}

.v11-table tr.clickable:hover {
  background: #F0F6FF;
  cursor: pointer;
}

.v11-table tr.expanded {
  background: #F0F7FF;
}

.v11-table-total-row {
  background: #EAF2FB !important;
  font-weight: 800;
}

.v11-table-total-row td {
  border-top: 2px solid #CBD5E1;
  color: #002B66;
  font-variant-numeric: tabular-nums;
}

/* Expanded Detail Row */
.v11-expanded-box {
  background: #F8FBFE;
  border: 1px solid #D6E4F5;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 6px 0;
  font-size: 12px;
  color: #334155;
}

.v11-expanded-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.v11-expanded-kpi {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 8px 10px;
  font-variant-numeric: tabular-nums;
}

.v11-expanded-kpi span {
  font-size: 10.5px;
  color: #64748B;
  display: block;
}

.v11-expanded-kpi b {
  font-size: 13.5px;
  color: #0F172A;
}

.v11-expanded-advice {
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.v11-expanded-advice.good {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.v11-expanded-advice.warn {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.v11-expanded-advice.info {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

/* Toast */
.v11-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 200;
  animation: v11FadeIn 0.2s ease-out;
}

@keyframes v11FadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   CHI TIẾT THEO TỈNH/THÀNH & CHART TOOLTIP
   ========================================================================== */
.v11-province-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.v11-province-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Biểu đồ so sánh tỉnh thành */
.v11-province-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  margin-bottom: 20px;
}

.v11-prov-chart-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: #FFFFFF;
  border-radius: 6px;
  border: 1px solid #EDF2F7;
  transition: all 0.18s ease;
  cursor: pointer;
}

.v11-prov-chart-item:hover {
  border-color: #004AAD;
  box-shadow: 0 4px 12px rgba(0, 74, 173, 0.08);
  transform: translateY(-1px);
}

.v11-prov-chart-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.v11-prov-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #0F172A;
}

.v11-prov-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.v11-badge-freq {
  padding: 2px 7px;
  background: #F1F5F9;
  color: #475569;
  border-radius: 4px;
  font-weight: 500;
}

.v11-badge-msg {
  padding: 2px 7px;
  background: #EFF6FF;
  color: #1D4ED8;
  border-radius: 4px;
  font-weight: 600;
}

.v11-badge-cost {
  padding: 2px 7px;
  background: #F0FDF4;
  color: #15803D;
  border-radius: 4px;
  font-weight: 600;
}

.v11-prov-bar-track {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.v11-prov-bar-fill {
  height: 14px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding-left: 6px;
  font-size: 9.5px;
  font-weight: 700;
  transition: width 0.3s ease;
  min-width: 24px;
}

.v11-prov-bar-fill.reach {
  background: #2563EB;
  color: #FFFFFF;
}

.v11-prov-bar-fill.imp {
  background: #93C5FD;
  color: #1E3A8A;
}

/* Bảng chi tiết tỉnh thành (Khớp 100% form ảnh) */
.v11-province-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.v11-province-table th {
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748B;
  border-bottom: 1px solid #E2E8F0;
  background: #FFFFFF;
  white-space: nowrap;
}

.v11-province-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #F1F5F9;
  color: #1E293B;
  white-space: nowrap;
}

.v11-province-table tbody tr:hover td {
  background: #F8FAFC;
}

.v11-province-footnote {
  margin-top: 14px;
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.5;
}

/* Floating Chart Tooltip */
.v11-chart-tooltip {
  position: fixed;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  z-index: 999999;
  display: none;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* Hover effects for SVG columns */
.v11-social-chart-col {
  cursor: pointer;
}

.v11-social-chart-col:hover .v11-chart-hover-bg {
  fill: rgba(0, 74, 173, 0.08);
}

.v11-social-chart-col:hover .v11-bar-org {
  filter: brightness(1.1);
}

.v11-social-chart-col:hover .v11-bar-paid {
  filter: brightness(1.1);
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .v11-top-grid { grid-template-columns: 1fr; }
  .v11-mid-grid { grid-template-columns: 1fr; }
  .v11-social-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .v11-drawer-panel { width: 100vw; }
}

.v11-mobile-bar { display: none; }
.v11-sidebar-backdrop { display: none; }
.v11-mobile-sidebar-close { display: none; }

@media (max-width: 768px) {
  .v11-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--primary-dark);
    color: #FFFFFF;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 33, 77, 0.2);
  }
  .v11-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .v11-mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .v11-sidebar-backdrop.open {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 33, 77, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1000;
  }
  .v11-sidebar {
    position: fixed !important;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px !important;
    max-width: 85vw;
    z-index: 1001 !important;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
    display: flex !important;
  }
  .v11-sidebar.open {
    transform: translateX(0) !important;
  }
  .v11-mobile-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    cursor: pointer;
  }
  .v11-main {
    margin-left: 0 !important;
    padding: 14px 12px !important;
    box-sizing: border-box;
    width: 100% !important;
  }
  .v11-top-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    scrollbar-width: none;
  }
  .v11-funnel-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .v11-social-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .v11-social-kpi-card {
    padding: 12px 14px !important;
  }
  .v11-social-kpi-card .v11-cost-num {
    font-size: 24px !important;
  }
  .v11-table-responsive {
    -webkit-overflow-scrolling: touch;
  }
}

/* Print Rules */
@media print {
  .v11-sidebar, .v11-top-tabs, .v11-controls-wrap, .v11-btn-open-drawer, .v11-drawer-backdrop, .v11-drawer-panel {
    display: none !important;
  }
  .v11-main {
    margin: 0 !important;
    padding: 0 !important;
  }
  body.v11-body {
    background: #FFFFFF !important;
  }
}
