/* Rollback package 2.2.36.1: create-post promotion widget removed. */
/* ============================================================
   Voxel Promoted Listings Pro — Frontend CSS
   ============================================================ */

:root {
  --vxpl-primary:    #7C3AED;
  --vxpl-primary-lt: rgba(124,58,237,.1);
  --vxpl-blue:       #3B82F6;
  --vxpl-blue-lt:    rgba(59,130,246,.1);
  --vxpl-green:      #10B981;
  --vxpl-green-lt:   rgba(16,185,129,.1);
  --vxpl-orange:     #F59E0B;
  --vxpl-orange-lt:  rgba(245,158,11,.1);
  --vxpl-red:        #EF4444;
  --vxpl-red-lt:     rgba(239,68,68,.1);
  --vxpl-gray-50:    #F9FAFB;
  --vxpl-gray-100:   #F3F4F6;
  --vxpl-gray-200:   #E5E7EB;
  --vxpl-gray-300:   #D1D5DB;
  --vxpl-gray-400:   #9CA3AF;
  --vxpl-gray-600:   #4B5563;
  --vxpl-gray-800:   #1F2937;
  --vxpl-radius:     12px;
  --vxpl-shadow:     0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --vxpl-shadow-md:  0 4px 24px rgba(0,0,0,.1);
  --vxpl-transition: 0.18s ease;
}

html.vxpl-modal-open,
html.vxpl-modal-open body { overflow: hidden !important; }

/* ── Utility ──────────────────────────────────────────────── */
.vxpl-notice {
  padding: 16px 20px;
  background: var(--vxpl-gray-50);
  border: 1px solid var(--vxpl-gray-200);
  border-radius: var(--vxpl-radius);
  color: var(--vxpl-gray-600);
}

.vxpl-loader {
  padding: 32px;
  text-align: center;
  color: var(--vxpl-gray-400);
  font-size: .875rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.vxpl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--vxpl-transition);
  text-decoration: none;
  line-height: 1;
}
.vxpl-btn--primary {
  background: var(--vxpl-primary);
  color: #fff;
}
.vxpl-btn--primary:hover {
  background: #6d28d9;
  color: #fff;
}
.vxpl-btn--ghost {
  background: transparent;
  border-color: var(--vxpl-gray-200);
  color: var(--vxpl-gray-600);
}
.vxpl-btn--ghost:hover {
  background: var(--vxpl-gray-100);
}
.vxpl-promo-action--danger {
  border-color: rgba(239,68,68,.18);
  color: #b42318;
}
.vxpl-promo-action--danger:hover {
  background: rgba(239,68,68,.06);
  border-color: rgba(239,68,68,.28);
  color: #b42318;
}
.vxpl-promo-action--edit {
  background: #111827;
  border-color: #111827;
  color: #fff;
}
.vxpl-promo-action--edit:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}
.vxpl-promo-action--pause {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}
.vxpl-promo-action--pause:hover {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}
.vxpl-promo-action--resume {
  background: var(--vxpl-primary);
  border-color: var(--vxpl-primary);
  color: #fff;
}
.vxpl-promo-action--resume:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #fff;
}
.vxpl-promo-action--cancel {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}
.vxpl-promo-action--cancel:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}
.vxpl-btn--sm {
  padding: 8px 12px;
  font-size: .8125rem;
  border-radius: 10px;
}
.vxpl-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ── Dashboard ────────────────────────────────────────────── */
.vxpl-dashboard {
  --vxpl-section-gap: 22px;
  --vxpl-chart-height: 320px;
  --vxpl-modal-chart-height: 220px;
  --vxpl-promotion-popup-width: 1100px;
  --vxpl-promotion-popup-max-height: calc(100vh - 40px);
  --vxpl-promotion-popup-offset: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 64px;
  font-family: inherit;
}

.vxpl-dashboard > .vxpl-kpi-grid,
.vxpl-dashboard > .vxpl-card,
.vxpl-dashboard > .vxpl-chart-card,
.vxpl-dashboard > .vxpl-section {
  margin-top: var(--vxpl-section-gap);
}

.vxpl-dashboard > .vxpl-section:last-child {
  margin-bottom: 0;
}

.vxpl-dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 0 24px;
}
.vxpl-dash-header__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vxpl-gray-800);
  margin: 0 0 4px;
}
.vxpl-dash-header__sub {
  font-size: .875rem;
  color: var(--vxpl-gray-400);
  margin: 0;
}
.vxpl-dash-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.vxpl-performance-wrap {
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .vxpl-dash-header__right {
    width: 100%;
    align-items: flex-start;
  }
  .vxpl-performance-wrap {
    justify-content: flex-start;
  }
}

/* Period bar */
.vxpl-period-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.vxpl-period-label { font-size: .8rem; color: var(--vxpl-gray-400); }
.vxpl-period-tabs {
  display: flex;
  gap: 4px;
  background: var(--vxpl-gray-100);
  border-radius: 8px;
  padding: 3px;
}
.vxpl-period-tab {
  padding: 5px 14px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: .8rem;
  font-weight: 500;
  color: var(--vxpl-gray-600);
  cursor: pointer;
  transition: var(--vxpl-transition);
}
.vxpl-period-tab.active {
  background: #fff;
  color: var(--vxpl-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* Stats grid */
.vxpl-stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width:960px) { .vxpl-stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:480px) { .vxpl-stats-grid { grid-template-columns: 1fr; } }

.vxpl-stat-card {
  background: #fff;
  border-radius: var(--vxpl-radius);
  box-shadow: var(--vxpl-shadow);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.vxpl-stat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vxpl-stat-card__icon--purple { background: var(--vxpl-primary-lt); color: var(--vxpl-primary); }
.vxpl-stat-card__icon--blue   { background: var(--vxpl-blue-lt); color: var(--vxpl-blue); }
.vxpl-stat-card__icon--green  { background: var(--vxpl-green-lt); color: var(--vxpl-green); }
.vxpl-stat-card__icon--orange { background: var(--vxpl-orange-lt); color: var(--vxpl-orange); }

.vxpl-stat-card__body { display: flex; flex-direction: column; }
.vxpl-stat-card__value {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--vxpl-gray-800);
  line-height: 1;
}
.vxpl-stat-card__label {
  font-size: .75rem;
  color: var(--vxpl-gray-400);
  margin-top: 4px;
}

/* Charts row */
.vxpl-charts-row {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width:860px) { .vxpl-charts-row { grid-template-columns: 1fr; } }

.vxpl-chart-card {
  background: #fff;
  border-radius: var(--vxpl-radius);
  box-shadow: var(--vxpl-shadow);
  overflow: hidden;
}
.vxpl-chart-card__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--vxpl-gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.vxpl-chart-card__title { font-size: .9375rem; font-weight: 600; margin: 0; }
.vxpl-chart-wrap { padding: 16px 20px; min-height: var(--vxpl-chart-height); }
.vxpl-chart-insight {
  margin: 0 20px 20px;
  padding: 14px 16px;
  border: 1px solid var(--vxpl-gray-200);
  border-radius: 12px;
  background: var(--vxpl-gray-50);
}
.vxpl-chart-insight__title {
  margin: 0 0 6px;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--vxpl-gray-800);
}
.vxpl-chart-insight__text {
  margin: 0;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--vxpl-gray-600);
}

.vxpl-chart-tabs { display: flex; gap: 4px; }
.vxpl-chart-tab {
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--vxpl-gray-200);
  background: transparent;
  font-size: .78rem;
  font-weight: 500;
  color: var(--vxpl-gray-600);
  cursor: pointer;
  transition: var(--vxpl-transition);
}
.vxpl-chart-tab.active {
  background: var(--vxpl-primary);
  border-color: var(--vxpl-primary);
  color: #fff;
}

/* Sections */
.vxpl-section { margin-bottom: 0; }
.vxpl-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vxpl-gray-800);
  margin: 0 0 14px;
}

/* Card header split (title + controls) */
.vxpl-card__header--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Promo filters */
.vxpl-filter-tabs {
  display: inline-flex;
  gap: 6px;
  background: var(--vxpl-gray-100);
  border: 1px solid var(--vxpl-gray-200);
  border-radius: 999px;
  padding: 4px;
}
.vxpl-filter-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--vxpl-gray-700);
  cursor: pointer;
  transition: var(--vxpl-transition);
}
.vxpl-filter-tab.active {
  background: #fff;
  box-shadow: var(--vxpl-shadow);
  color: var(--vxpl-gray-900);
}

/* Make the table section look like the rest (avoid "floating title" on dark bg) */
.vxpl-promos-card { overflow: hidden; }

/* Top posts list */
.vxpl-top-list { display: flex; flex-direction: column; gap: 8px; }
.vxpl-top-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: var(--vxpl-shadow);
  transition: var(--vxpl-transition);
}
.vxpl-top-item:hover { transform: translateY(-1px); box-shadow: var(--vxpl-shadow-md); }
.vxpl-top-item__thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--vxpl-gray-100);
  flex-shrink: 0;
}
.vxpl-top-item__info { flex: 1; min-width: 0; }
.vxpl-top-item__title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--vxpl-gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.vxpl-top-item__meta { font-size: .75rem; color: var(--vxpl-gray-400); }
.vxpl-top-item__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.vxpl-top-item__val { font-size: 1.125rem; font-weight: 700; color: var(--vxpl-primary); }
.vxpl-top-item__key { font-size: .7rem; color: var(--vxpl-gray-400); }

/* Promo list */
.vxpl-promo-list { display: flex; flex-direction: column; gap: 12px; }
.vxpl-promo-item {
  background: #fff;
  border-radius: var(--vxpl-radius);
  box-shadow: var(--vxpl-shadow);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--vxpl-transition);
}
.vxpl-promo-item:hover { transform: translateY(-1px); box-shadow: var(--vxpl-shadow-md); }
.vxpl-promo-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--vxpl-gray-100);
  flex-shrink: 0;
}
.vxpl-promo-item__info { flex: 1; min-width: 0; }
.vxpl-promo-item__title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--vxpl-gray-800);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vxpl-promo-item__meta { font-size: .78rem; color: var(--vxpl-gray-400); margin-top: 2px; }
.vxpl-promo-item__stats {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}
.vxpl-promo-item__stat { text-align: center; }
.vxpl-promo-item__stat-val { font-size: 1rem; font-weight: 700; color: var(--vxpl-gray-800); display: block; }
.vxpl-promo-item__stat-lbl { font-size: .7rem; color: var(--vxpl-gray-400); }

/* Status badges */
.vxpl-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
}
.vxpl-badge-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.vxpl-badge-pill--active   { background: var(--vxpl-green-lt); color: var(--vxpl-green); }
.vxpl-badge-pill--expired  { background: var(--vxpl-gray-100); color: var(--vxpl-gray-400); }
.vxpl-badge-pill--canceled { background: var(--vxpl-red-lt); color: var(--vxpl-red); }
.vxpl-badge-pill--inactive { background: var(--vxpl-gray-100); color: var(--vxpl-gray-400); }


/* ── Performance score pills ─────────────────────────────── */
.vxpl-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  transition: var(--vxpl-transition);
  white-space: nowrap;
}
.vxpl-score-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.vxpl-score-pill--sm {
  padding: 7px 12px;
  font-size: .75rem;
}
.vxpl-score-pill--global {
  box-shadow: var(--vxpl-shadow);
}
.vxpl-score-pill--excellent {
  background: var(--vxpl-green-lt);
  color: var(--vxpl-green);
  border-color: rgba(16,185,129,.16);
}
.vxpl-score-pill--good {
  background: rgba(59,130,246,.10);
  color: var(--vxpl-blue);
  border-color: rgba(59,130,246,.14);
}
.vxpl-score-pill--fair {
  background: var(--vxpl-orange-lt);
  color: var(--vxpl-orange);
  border-color: rgba(245,158,11,.18);
}
.vxpl-score-pill--low {
  background: var(--vxpl-red-lt);
  color: var(--vxpl-red);
  border-color: rgba(239,68,68,.16);
}
.vxpl-score-pill--neutral {
  background: var(--vxpl-gray-100);
  color: var(--vxpl-gray-600);
  border-color: var(--vxpl-gray-200);
}
.vxpl-score-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--vxpl-shadow-md);
}

/* ── Detail Panel ─────────────────────────────────────────── */
.vxpl-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.vxpl-panel-overlay.active { display: block; }

.vxpl-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100dvh;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
}
.vxpl-detail-panel.open { transform: translateX(0); }
.vxpl-detail-panel__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--vxpl-gray-100);
  flex-shrink: 0;
}
.vxpl-panel-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--vxpl-gray-100);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--vxpl-transition);
  flex-shrink: 0;
}
.vxpl-panel-close:hover { background: var(--vxpl-gray-200); }
#vxpl-panel-title {
  font-size: .9375rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vxpl-detail-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ── Advanced modal (Analyse détaillée) ───────────────────── */
.vxpl-modal { display: none; position: fixed; inset: 0; z-index: 10010; }
.vxpl-modal.is-open { display: block; }
.vxpl-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
}
.vxpl-modal__dialog {
  position: relative;
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: 16px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vxpl-modal__header {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(180deg, rgba(124,58,237,.08), rgba(255,255,255,0));
}
.vxpl-modal__header-main {
  flex: 1 1 auto;
  min-width: 0;
}
.vxpl-modal__header-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 280px;
}
.vxpl-modal__title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--vxpl-gray-800); }
.vxpl-modal__close {
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--vxpl-transition);
  box-shadow: 0 8px 22px rgba(17,24,39,.08);
}
.vxpl-modal__close:hover { background: var(--vxpl-gray-200); }
.vxpl-modal__body {
  padding: 20px 22px 22px;
  overflow: auto;
}

/* ── Promo detail modal ───────────────────────────────────── */
.vxpl-promo-modal-kpi {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--vxpl-gray-200);
  border-radius: 12px;
  margin-bottom: 14px;
  background: #fff;
}
.vxpl-promo-modal-kpi__val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--vxpl-gray-900);
}
.vxpl-promo-modal-kpi__lbl {
  font-size: .875rem;
  color: var(--vxpl-gray-600);
}

@media (max-width: 520px) {
  .vxpl-modal__dialog { width: calc(100vw - 16px); margin: 8px auto; border-radius: 12px; }
  .vxpl-modal__body { padding: 14px; }
}

.vxpl-panel-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.vxpl-panel-stat {
  background: var(--vxpl-gray-50);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.vxpl-panel-stat__val { font-size: 1.25rem; font-weight: 700; color: var(--vxpl-gray-800); display: block; }
.vxpl-panel-stat__lbl { font-size: .7rem; color: var(--vxpl-gray-400); }

.vxpl-panel-conversions { margin: 6px 0 18px; }
.vxpl-panel-conversions__title { font-weight: 700; color: var(--vxpl-gray-800); margin-bottom: 10px; }
.vxpl-panel-conversions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.vxpl-panel-conv {
  background: #fff;
  border: 1px solid var(--vxpl-gray-100);
  border-radius: 10px;
  padding: 10px 12px;
}
.vxpl-panel-conv__key { display:block; font-size: .8rem; color: var(--vxpl-gray-500); }
.vxpl-panel-conv__val { display:block; font-size: 1.1rem; font-weight: 800; color: var(--vxpl-gray-800); }
.vxpl-panel-conv__sub { display:block; font-size: .72rem; color: var(--vxpl-gray-400); margin-top: 2px; }

.vxpl-panel-chart-tabs { display:flex; flex-wrap:wrap; gap:8px; margin: 4px 0 10px; }
.vxpl-panel-chart-tab {
  background: #fff;
  border: 1px solid var(--vxpl-gray-100);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .8rem;
  cursor: pointer;
}
.vxpl-panel-chart-tab.is-active {
  background: var(--vxpl-accent);
  border-color: var(--vxpl-accent);
  color: #fff;
}

.vxpl-panel-info { display: flex; flex-direction: column; gap: 8px; }
.vxpl-panel-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--vxpl-gray-100);
  font-size: .875rem;
}
.vxpl-panel-info-row__key { color: var(--vxpl-gray-400); }
.vxpl-panel-info-row__val { font-weight: 600; color: var(--vxpl-gray-800); }

/* ── Widget: Promoted Listings ────────────────────────────── */
.vxpl-grid {
  display: grid;
  gap: 20px;
}
.vxpl-cols-2 { grid-template-columns: repeat(2,1fr); }
.vxpl-cols-3 { grid-template-columns: repeat(3,1fr); }
.vxpl-cols-4 { grid-template-columns: repeat(4,1fr); }

@media (max-width:1024px) {
  .vxpl-cols-4 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width:768px) {
  .vxpl-cols-3, .vxpl-cols-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:480px) {
  .vxpl-cols-2, .vxpl-cols-3, .vxpl-cols-4 { grid-template-columns: 1fr; }
}

.vxpl-grid--list .vxpl-card { display: flex; }
.vxpl-grid--list .vxpl-card__thumb { width: 120px; height: 90px; flex-shrink: 0; }

.vxpl-card {
  background: #fff;
  border-radius: var(--vxpl-radius);
  box-shadow: var(--vxpl-shadow);
  overflow: hidden;
  transition: var(--vxpl-transition);
}
.vxpl-card:hover { transform: translateY(-3px); box-shadow: var(--vxpl-shadow-md); }
.vxpl-card__link { display: block; text-decoration: none; color: inherit; }
.vxpl-card__thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--vxpl-gray-100);
}
.vxpl-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.vxpl-card:hover .vxpl-card__thumb img { transform: scale(1.04); }
.vxpl-card__no-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--vxpl-gray-400);
}

.vxpl-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--vxpl-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}

/* When rendering Voxel card templates, the badge is overlaid on top of the
 * template output rather than inside a custom thumbnail wrapper. Voxel already
 * sets `.ts-preview` to `position: relative`, but we keep this as a safety net
 * in case the selector changes. */
.vxpl-promoted-card,
.vxpl-voxel-card {
  position: relative;
}
.vxpl-badge--overlay {
  z-index: 50;
  pointer-events: none;
}

.vxpl-card__body { padding: 14px 16px; }
.vxpl-card__title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--vxpl-gray-800);
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vxpl-card__type {
  font-size: .75rem;
  color: var(--vxpl-primary);
  font-weight: 500;
  display: block;
}
.vxpl-card__meta {
  font-size: .7rem;
  color: var(--vxpl-gray-400);
  display: block;
  margin-top: 4px;
}
.vxpl-no-results {
  padding: 32px;
  text-align: center;
  color: var(--vxpl-gray-400);
  background: var(--vxpl-gray-50);
  border-radius: var(--vxpl-radius);
}

/* ── Form ─────────────────────────────────────────────────── */
.vxpl-form-wrap {
  --vxpl-form-accent: #c084fc;
  --vxpl-form-surface: #17141f;
  --vxpl-form-surface-alt: #221c2e;
  --vxpl-form-border: rgba(255,255,255,.12);
  --vxpl-form-text: #f8fafc;
  --vxpl-form-muted: rgba(226,232,240,.72);
  --vxpl-form-success: #34d399;
  --vxpl-form-radius: 28px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 16px 72px;
  color: var(--vxpl-form-text);
}

.vxpl-form-shell {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(192,132,252,.20), transparent 30%),
    radial-gradient(circle at bottom left, rgba(99,102,241,.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)),
    var(--vxpl-form-surface);
  border: 1px solid var(--vxpl-form-border);
  border-radius: var(--vxpl-form-radius);
  box-shadow: 0 24px 70px rgba(2,6,23,.28);
  backdrop-filter: blur(18px);
}

.vxpl-form-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.07), transparent 38%, transparent 62%, rgba(255,255,255,.03));
  pointer-events: none;
}

.vxpl-form-header,
.vxpl-step-panel,
.vxpl-step-panel--success {
  position: relative;
  z-index: 1;
}

.vxpl-form-header {
  padding: 34px 34px 26px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.vxpl-form-header__main {
  max-width: 720px;
}

.vxpl-pf-header-align-center .vxpl-form-header__main {
  margin-inline: auto;
}

.vxpl-pf-header-align-center .vxpl-form-header__eyebrow {
  justify-content: center;
}

.vxpl-pf-header-align-center .vxpl-form-header__sub {
  margin-inline: auto;
}

.vxpl-form-header__eyebrow,
.vxpl-step-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--vxpl-form-accent);
}

.vxpl-form-header__eyebrow::before,
.vxpl-step-panel__eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.vxpl-form-header__title {
  margin: 16px 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--vxpl-form-text);
}

.vxpl-form-header__sub {
  margin: 0;
  max-width: 660px;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--vxpl-form-muted);
}

.vxpl-steps {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(36px,1fr) minmax(0,1fr) minmax(36px,1fr) minmax(0,1fr);
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 720px;
  margin-top: 28px;
}

.vxpl-pf-header-align-center .vxpl-steps {
  margin-inline: auto;
}

.vxpl-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.vxpl-pf-header-align-center .vxpl-step {
  align-items: center;
  text-align: center;
}

.vxpl-step__dot {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--vxpl-form-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .92rem;
  font-weight: 800;
  transition: all .25s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.vxpl-step span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--vxpl-form-muted);
}

.vxpl-step--active .vxpl-step__dot {
  background: var(--vxpl-form-accent);
  border-color: var(--vxpl-form-accent);
  color: #fff;
  box-shadow: 0 14px 28px rgba(192,132,252,.28);
}

.vxpl-step--done .vxpl-step__dot {
  background: rgba(52,211,153,.16);
  border-color: rgba(52,211,153,.3);
  color: var(--vxpl-form-success);
}

.vxpl-step--active span,
.vxpl-step--done span {
  color: var(--vxpl-form-text);
}

.vxpl-step__line {
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  position: relative;
  overflow: hidden;
}

.vxpl-step__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: translateX(-100%);
  animation: vxplStepLineGlow 3.6s linear infinite;
}

@keyframes vxplStepLineGlow {
  to { transform: translateX(100%); }
}

.vxpl-step-panel {
  display: none;
  margin: 20px;
  padding: 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.vxpl-step-panel--active {
  display: block;
}

.vxpl-step-panel__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.vxpl-step-panel__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
  font-weight: 750;
  color: var(--vxpl-form-text);
}

.vxpl-step-panel__desc {
  margin: 0 0 18px;
  color: var(--vxpl-form-muted);
}

.vxpl-step-panel__desc p:last-child {
  margin-bottom: 0;
}

.vxpl-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 700px) {
  .vxpl-post-grid {
    grid-template-columns: 1fr;
  }
}

.vxpl-form-card,
.vxpl-pkg-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.vxpl-form-card::before,
.vxpl-pkg-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.10), transparent 36%);
  opacity: .6;
  pointer-events: none;
}

.vxpl-form-card:hover,
.vxpl-pkg-card:hover {
  transform: translateY(-2px);
  border-color: rgba(192,132,252,.55);
  box-shadow: 0 18px 34px rgba(8,15,33,.28), 0 0 0 1px rgba(192,132,252,.14) inset;
}

.vxpl-form-card--selected,
.vxpl-pkg-card--selected {
  border-color: rgba(192,132,252,.82);
  background: linear-gradient(180deg, rgba(192,132,252,.18), rgba(255,255,255,.05));
  box-shadow: 0 18px 38px rgba(8,15,33,.32), 0 0 0 1px rgba(192,132,252,.22) inset;
}

.vxpl-pkg-card--selected {
  border-color: var(--vxpl-pkg-accent, rgba(192,132,252,.82));
  box-shadow: 0 18px 38px rgba(8,15,33,.32), 0 0 0 1px var(--vxpl-pkg-accent, rgba(192,132,252,.22)) inset;
}

.vxpl-form-card--promoted {
  border-color: rgba(52,211,153,.35);
}

.vxpl-form-card {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.vxpl-form-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.06);
}

.vxpl-form-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vxpl-form-card__badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(52,211,153,.92);
  color: #082118;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vxpl-form-card__no-img {
  color: rgba(255,255,255,.46);
}

.vxpl-form-card__info {
  flex: 1;
  min-width: 0;
}

.vxpl-form-card__name,
.vxpl-pkg-card__name {
  margin: 0;
  color: var(--vxpl-form-text);
}

.vxpl-form-card__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vxpl-form-card__type,
.vxpl-form-card__promo-label,
.vxpl-pkg-card__desc,
.vxpl-pkg-card__duration {
  color: var(--vxpl-form-muted);
}

.vxpl-form-card__type {
  display: inline-block;
  margin-top: 4px;
  font-size: .82rem;
}

.vxpl-form-card__promo-label {
  display: block;
  margin-top: 6px;
  font-size: .75rem;
  font-weight: 700;
}

.vxpl-form-card__check {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--vxpl-form-accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(192,132,252,.28);
}

.vxpl-form-card--selected .vxpl-form-card__check {
  display: flex;
}

.vxpl-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.vxpl-pkg-card {
  cursor: pointer;
  padding: 22px 20px;
}

.vxpl-pkg-card__icon,
.vxpl-pkg-card__dot {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.vxpl-pkg-card__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: var(--vxpl-pkg-indicator-bg, var(--vxpl-pkg-accent, var(--vxpl-form-accent)));
  border: 0 solid transparent;
  box-shadow: 0 0 20px rgba(255,255,255,.16);
}

.vxpl-pkg-card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: var(--vxpl-pkg-accent, var(--vxpl-form-accent));
  box-shadow: 0 14px 28px rgba(8,15,33,.24);
}

.vxpl-pkg-card__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
  stroke: currentColor;
}

.vxpl-pkg-card__icon img,
.vxpl-pkg-card__icon .vxpl-pkg-card__icon-media {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.vxpl-pkg-card__icon i {
  font-size: 16px;
}

.vxpl-pkg-card--selected .vxpl-pkg-card__dot,
.vxpl-pkg-card--selected .vxpl-pkg-card__icon {
  transform: scale(1.08);
}

.vxpl-pkg-card__desc {
  margin: 10px 0 18px;
  font-size: .9rem;
  line-height: 1.55;
}

.vxpl-pkg-card__price {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--vxpl-form-text);
}

.vxpl-pkg-card__duration {
  margin-top: 6px;
  font-size: .82rem;
  line-height: 1.55;
  white-space: normal;
}

.vxpl-summary {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  padding: 18px;
}

.vxpl-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .94rem;
}

.vxpl-summary-row:last-child {
  border-bottom: none;
}

.vxpl-summary-row__key {
  color: var(--vxpl-form-muted);
}

.vxpl-summary-row__val {
  font-weight: 700;
  text-align: right;
  color: var(--vxpl-form-text);
}

.vxpl-summary-row--total .vxpl-summary-row__val {
  color: var(--vxpl-form-accent);
  font-size: 1.12rem;
}

.vxpl-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.vxpl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
}

.vxpl-btn:hover,
.vxpl-btn:focus {
  transform: translateY(-1px);
}

.vxpl-btn--primary {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0)), var(--vxpl-form-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 32px rgba(192,132,252,.26);
}

.vxpl-btn--primary:hover,
.vxpl-btn--primary:focus {
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.08)), var(--vxpl-form-accent);
  color: #fff;
}

.vxpl-btn--ghost {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.12);
  color: var(--vxpl-form-text);
}

.vxpl-btn--ghost:hover,
.vxpl-btn--ghost:focus {
  background: rgba(255,255,255,.07);
  color: var(--vxpl-form-text);
}

.vxpl-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.vxpl-notice {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--vxpl-form-muted);
}

.vxpl-step-panel--success {
  text-align: center;
  margin: 20px;
  padding: 44px 24px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
}

.vxpl-success-icon {
  color: var(--vxpl-form-success);
  margin-bottom: 18px;
}

.vxpl-step-panel--success h3 {
  margin: 0 0 10px;
  color: var(--vxpl-form-text);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.vxpl-step-panel--success p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--vxpl-form-muted);
}

@media (max-width: 1024px) {
  .vxpl-form-header {
    padding: 28px 24px 22px;
  }

  .vxpl-step-panel,
  .vxpl-step-panel--success {
    margin: 16px;
    padding: 22px;
  }
}

@media (max-width: 767px) {
  .vxpl-form-wrap {
    padding: 0 0 48px;
  }

  .vxpl-form-shell {
    border-radius: 22px;
  }

  .vxpl-form-header {
    padding: 24px 18px 20px;
  }

  .vxpl-steps {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: none;
    width: 100%;
  }

  .vxpl-step {
    flex-direction: row;
    align-items: center;
  }

  .vxpl-step__line {
    display: none;
  }

  .vxpl-step-panel,
  .vxpl-step-panel--success {
    margin: 12px;
    padding: 18px;
  }

  .vxpl-form-card {
    align-items: flex-start;
  }

  .vxpl-form-card__check {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .vxpl-form-actions {
    justify-content: stretch;
  }

  .vxpl-form-actions .vxpl-btn {
    width: 100%;
  }
}

/* ── Dashboard V3 (simplified) ───────────────────────────────────────────── */
.vxpl-hero {
  background: #fff;
  border: 1px solid var(--vxpl-gray-200);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}
.vxpl-hero__main { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.vxpl-hero__kpi-title { color: var(--vxpl-gray-600); font-size: .9rem; }
.vxpl-hero__kpi-value { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.vxpl-hero__kpi-sub { color: var(--vxpl-gray-600); margin-top: 4px; font-size: .9rem; }
.vxpl-hero__meta { margin-top: 10px; color: var(--vxpl-gray-600); font-size: .9rem; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.vxpl-dot { opacity: .5; }
.vxpl-hero__status { text-align: right; min-width: 220px; }
.vxpl-hero__status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  border: 1px solid var(--vxpl-gray-200);
}
.vxpl-hero__status-text { margin-top: 8px; color: var(--vxpl-gray-600); font-size: .9rem; }
.vxpl-pill--good { background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.25); color: #065f46; }
.vxpl-pill--ok { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.25); color: #92400e; }
.vxpl-pill--bad { background: rgba(239, 68, 68, 0.10); border-color: rgba(239, 68, 68, 0.25); color: #7f1d1d; }

.vxpl-chart-card--wide { margin-top: 0; }
.vxpl-btn--ghost {
  background: transparent;
  border: 1px solid var(--vxpl-gray-200);
  color: var(--vxpl-gray-700);
}
.vxpl-btn--ghost:hover { border-color: var(--vxpl-gray-300); }

.vxpl-two-col {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 860px) {
  .vxpl-two-col { grid-template-columns: 1fr; }
  .vxpl-hero__main { flex-direction: column; }
  .vxpl-hero__status { text-align: left; min-width: 0; }
}

.vxpl-card {
  background: #fff;
  border: 1px solid var(--vxpl-gray-200);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}
.vxpl-card__header { padding: 14px 16px 0; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.vxpl-card__title { margin: 0; font-size: 1rem; font-weight: 800; }
.vxpl-card__body { padding: 14px 16px 16px; }
.vxpl-muted { color: var(--vxpl-gray-600); margin: 0 0 12px; }

.vxpl-actions-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .vxpl-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vxpl-actions-block__title{font-weight:600;color:rgba(255,255,255,.78);margin:0 0 8px;font-size:13px;letter-spacing:.2px;text-transform:uppercase;}

.vxpl-action {
  border: 1px solid var(--vxpl-gray-200);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(17,24,39,0.015), rgba(255,255,255,0));
  transition: var(--vxpl-transition);
}
.vxpl-action:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,0.06); }
.vxpl-action__val { font-size: 1.35rem; font-weight: 800; }
.vxpl-action__lbl { color: var(--vxpl-gray-600); font-size: .9rem; margin-top: 2px; }

/* Per-annonce modal chart */
.vxpl-actions-chart {
  border: 1px solid var(--vxpl-gray-200);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(124,58,237,.03), rgba(255,255,255,0));
  min-height: var(--vxpl-modal-chart-height);
  height: var(--vxpl-modal-chart-height);
}
.vxpl-actions-chart canvas { width: 100% !important; height: 100% !important; display: block; }

.vxpl-device__row { display:flex; justify-content:space-between; padding: 8px 0; border-bottom: 1px solid var(--vxpl-gray-200); }
.vxpl-device__row:last-child { border-bottom: none; }

/* Chart.js canvas containment: prevent oversized doughnut charts on wide screens */
#vxpl-device-chart {
  display: block;
  width: 100% !important;
  height: 240px !important;
  max-height: 240px !important;
}

/* Ensure canvases never break layout */
.vxpl-chart-wrap canvas,
.vxpl-card__body canvas {
  max-width: 100% !important;
}
#vxpl-main-chart {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.vxpl-card__body--flush { padding: 0; }
.vxpl-table--hidden { display: none; }
.vxpl-table { width: 100%; border-collapse: collapse; }
.vxpl-table th, .vxpl-table td { padding: 12px 14px; border-bottom: 1px solid var(--vxpl-gray-200); text-align: left; font-size: .95rem; }
.vxpl-table th { color: var(--vxpl-gray-600); font-weight: 700; font-size: .85rem; letter-spacing: .02em; text-transform: uppercase; }
.vxpl-table tr:hover td { background: rgba(17,24,39,0.02); }
.vxpl-table a { text-decoration: none; }
.vxpl-status-badge { display:inline-flex; align-items:center; gap:6px; font-weight:700; }
.vxpl-status-dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.vxpl-dot--good { background: #10b981; }
.vxpl-dot--ok { background: #f59e0b; }
.vxpl-dot--bad { background: #ef4444; }
.vxpl-dot--muted { background: var(--vxpl-gray-300); }



/* V3.6 Modal meta + tabs */
.vxpl-modal__meta { margin-top: 4px; font-size: 13px; color: rgba(0,0,0,0.6); }
.vxpl-modal__meta-title { font-weight: 600; color: rgba(0,0,0,0.85); }
.vxpl-modal__meta-row { margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vxpl-dot { opacity: .6; }

#vxpl-actions-modal-status.is-active { color: #0a7b3b; font-weight: 600; }
#vxpl-actions-modal-status.is-expired { color: #b42318; font-weight: 600; }
#vxpl-actions-modal-status.is-paused { color: #b54708; font-weight: 600; }
#vxpl-actions-modal-status.is-canceled,
#vxpl-actions-modal-status.is-inactive { color: var(--vxpl-gray-600); font-weight: 600; }

.vxpl-modal__header-actions { display:flex; flex-direction:column; align-items:flex-end; justify-content:flex-start; gap:10px; width:100%; }
.vxpl-modal__campaign-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.vxpl-modal__campaign-actions .vxpl-btn { white-space: nowrap; }
@media (max-width: 820px) {
  .vxpl-modal__header { padding: 18px 16px; }
  .vxpl-modal__header-side { width: 100%; min-width: 0; align-items: stretch; }
  .vxpl-modal__header-actions { align-items: stretch; }
  .vxpl-modal__campaign-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .vxpl-modal__meta-row { gap: 6px; }
  .vxpl-modal__campaign-actions .vxpl-btn { width: 100%; justify-content: center; }
}

.vxpl-modal__tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  /* Space between header divider and tabs */
  margin: 14px 18px 14px 18px;
  /* Prevent flex stretching (keeps the segmented control compact) */
  align-self: flex-start;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 999px;
}
.vxpl-tab {
  font: inherit;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  color: rgba(0,0,0,0.72);
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.vxpl-tab:hover { background: rgba(0,0,0,0.04); }
.vxpl-tab:focus-visible {
  outline: 2px solid rgba(124,58,237,.35);
  outline-offset: 2px;
}
.vxpl-tab.is-active {
  background: var(--vxpl-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.vxpl-tab.is-disabled { opacity: .35; cursor: not-allowed; }

.vxpl-tabpanel { padding: 0; }
.vxpl-coming-soon { padding: 18px; background: rgba(0,0,0,0.02); border: 1px dashed rgba(0,0,0,0.12); border-radius: 12px; margin: 18px; }
.vxpl-coming-soon__title { font-weight: 700; margin-bottom: 6px; }
.vxpl-coming-soon__text { margin: 0; color: rgba(0,0,0,0.65); }

/* ── Analytics dashboard refresh ─────────────────────────────────────────── */
.vxpl-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 0;
}
@media (max-width: 1024px) {
  .vxpl-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vxpl-kpi-grid { grid-template-columns: 1fr; }
}

.vxpl-kpi-card {
  background: #fff;
  border: 1px solid var(--vxpl-gray-200);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  padding: 18px;
  min-width: 0;
}
.vxpl-kpi-card__label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--vxpl-gray-400);
  margin-bottom: 10px;
}
.vxpl-kpi-card__value {
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--vxpl-gray-800);
  letter-spacing: -0.02em;
}
.vxpl-kpi-card__meta {
  margin-top: 8px;
  font-size: .88rem;
  color: var(--vxpl-gray-600);
}

.vxpl-funnel-card { margin-bottom: 0; }
.vxpl-funnel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1024px) {
  .vxpl-funnel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vxpl-funnel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vxpl-funnel-step {
  position: relative;
  padding: 14px 16px;
  border: 1px solid var(--vxpl-gray-200);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(124,58,237,.04), rgba(255,255,255,0));
  min-width: 0;
}
.vxpl-funnel-step__label {
  display: block;
  font-size: .8rem;
  color: var(--vxpl-gray-400);
  margin-bottom: 6px;
}
.vxpl-funnel-step__value {
  display: block;
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--vxpl-gray-800);
}

.vxpl-modal-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 720px) {
  .vxpl-modal-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .vxpl-modal-kpis { grid-template-columns: 1fr; }
}
.vxpl-modal-kpi {
  border: 1px solid var(--vxpl-gray-200);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.vxpl-modal-kpi__label {
  color: var(--vxpl-gray-400);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.vxpl-modal-kpi__value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--vxpl-gray-800);
}
.vxpl-modal-breakdown {
  display: grid;
  gap: 10px;
}
.vxpl-modal-breakdown__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--vxpl-gray-200);
  border-radius: 12px;
  background: rgba(17,24,39,0.02);
}
.vxpl-modal-breakdown__row span {
  color: var(--vxpl-gray-600);
}
.vxpl-modal-breakdown__row strong {
  color: var(--vxpl-gray-800);
}

.vxpl-modal__meta-row { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:.8125rem; color: var(--vxpl-gray-400); margin-top:4px; }
.vxpl-dot { color: var(--vxpl-gray-300); }
.vxpl-modal__meta { margin-top: 8px; }
.vxpl-modal__meta-title { font-size: 1rem; }
.vxpl-modal__header-side .vxpl-score-pill { align-self: flex-end; }
@media (max-width: 820px) {
  .vxpl-modal__header-side .vxpl-score-pill { align-self: flex-start; }
}

.vxpl-modal-kpi__desc {
  color: var(--vxpl-gray-400);
  font-size: .75rem;
  line-height: 1.45;
  margin: 0 0 10px;
}
.vxpl-chart-insight--campaign {
  margin: 18px 0 20px;
}
.vxpl-modal-breakdown {
  margin-top: 4px;
}
.vxpl-chart-insight__tips {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--vxpl-gray-200);
}
.vxpl-chart-insight__tips-title {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--vxpl-gray-800);
  margin-bottom: 8px;
}
.vxpl-chart-insight__tips-list {
  margin: 0;
  padding-left: 18px;
  color: var(--vxpl-gray-600);
}
.vxpl-chart-insight__tips-list li {
  margin: 0 0 6px;
  line-height: 1.55;
}


.vxpl-license-required{padding:18px 20px;border-radius:16px;border:1px solid rgba(239,68,68,.18);background:#fff7ed;color:#7c2d12;box-shadow:0 10px 30px rgba(15,23,42,.04)}
.vxpl-license-required strong{display:block;font-size:15px;line-height:1.5}
.vxpl-license-required__link{display:inline-flex;margin-top:10px;font-weight:700;color:inherit;text-decoration:underline;text-underline-offset:3px}


/* ============================================================
   Compact dashboard refresh — 2.2.35.17
   ============================================================ */
.vxpl-dashboard {
  max-width: 1160px;
}

.vxpl-dash-header {
  padding: 24px 0 20px;
  gap: 14px;
}

.vxpl-dash-header__title {
  font-size: 1.42rem;
  letter-spacing: -.03em;
}

.vxpl-dash-header__sub {
  color: #64748b;
}

.vxpl-period-bar {
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.vxpl-period-tabs {
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--vxpl-gray-200);
  background: rgba(15, 23, 42, 0.04);
}

.vxpl-period-tab,
.vxpl-filter-tab {
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid transparent;
  font-weight: 700;
}

.vxpl-period-tab.active,
.vxpl-filter-tab.active {
  box-shadow: 0 10px 24px rgba(124,58,237,.14);
}

.vxpl-kpi-grid {
  gap: 14px;
}

.vxpl-kpi-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.vxpl-kpi-card__label {
  grid-column: 1;
  margin: 0;
  font-size: .72rem;
  letter-spacing: .08em;
}

.vxpl-kpi-card__desc {
  grid-column: 1;
  margin: 0;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vxpl-kpi-card__value {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  text-align: right;
  font-size: 1.75rem;
  line-height: 1;
}

.vxpl-kpi-card__meta {
  grid-column: 1 / -1;
  margin-top: 2px;
  font-size: .82rem;
  color: #475569;
}

.vxpl-card,
.vxpl-chart-card {
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(15,23,42,.05);
}

.vxpl-card__header,
.vxpl-chart-card__header {
  padding: 18px 20px 14px;
}

.vxpl-card__body,
.vxpl-chart-wrap {
  padding: 18px 20px;
}

.vxpl-chart-card__title,
.vxpl-card__title {
  letter-spacing: -.02em;
}

.vxpl-funnel-grid {
  gap: 10px;
}

.vxpl-funnel-step {
  padding: 13px 14px;
  border-radius: 16px;
}

.vxpl-funnel-step__label {
  margin-bottom: 4px;
  font-size: .76rem;
}

.vxpl-funnel-step__value {
  font-size: 1.22rem;
}

.vxpl-chart-insight {
  border-radius: 16px;
}

.vxpl-chart-insight__text {
  margin-bottom: 0;
}

.vxpl-table thead th {
  padding-top: 14px;
  padding-bottom: 14px;
}

.vxpl-table tbody td {
  padding-top: 14px;
  padding-bottom: 14px;
}

@media (max-width: 1024px) {
  .vxpl-kpi-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .vxpl-kpi-card__value {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
    margin-top: 2px;
  }

  .vxpl-kpi-card__desc {
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 640px) {
  .vxpl-card__header,
  .vxpl-chart-card__header,
  .vxpl-card__body,
  .vxpl-chart-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* ============================================================
   Dashboard and form refinement — 2.2.35.18
   ============================================================ */

.vxpl-dashboard {
  --vxpl-section-gap: 18px;
}

.vxpl-dash-header {
  padding: 24px 0 18px;
  gap: 14px;
}

.vxpl-period-bar {
  margin-bottom: 18px;
}

.vxpl-kpi-grid {
  gap: 12px;
}

.vxpl-kpi-card {
  padding: 14px 16px;
  border-radius: 16px;
  gap: 4px 12px;
}

.vxpl-kpi-card__label {
  font-size: .69rem;
}

.vxpl-kpi-card__value {
  font-size: 1.5rem;
}

.vxpl-kpi-card__desc {
  font-size: .76rem;
}

.vxpl-kpi-card__meta {
  font-size: .78rem;
}

.vxpl-card,
.vxpl-chart-card {
  border-radius: 18px;
}

.vxpl-card__header,
.vxpl-chart-card__header {
  padding: 16px 18px 12px;
}

.vxpl-card__body,
.vxpl-chart-wrap {
  padding: 16px 18px;
}

.vxpl-funnel-grid {
  gap: 8px;
}

.vxpl-funnel-step {
  padding: 12px 13px;
  border-radius: 14px;
}

.vxpl-funnel-step__label {
  margin-bottom: 3px;
  font-size: .73rem;
}

.vxpl-funnel-step__value {
  font-size: 1.08rem;
}

.vxpl-chart-insight {
  margin: 0 18px 18px;
  padding: 12px 14px;
  border-radius: 14px;
}

.vxpl-modal__dialog {
  border-radius: 20px;
}

@media (max-width: 640px) {
  .vxpl-card__header,
  .vxpl-chart-card__header,
  .vxpl-card__body,
  .vxpl-chart-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .vxpl-chart-insight {
    margin-left: 14px;
    margin-right: 14px;
  }
}


.vxpl-modal--promotion.is-open {
  display: flex;
  align-items: var(--vxpl-promotion-popup-align, flex-start);
  justify-content: center;
  padding: var(--vxpl-promotion-popup-viewport-gap, 16px);
}
.vxpl-modal__dialog--promotion {
  position: relative;
  width: min(var(--vxpl-promotion-popup-width, 1100px), calc(100vw - (var(--vxpl-promotion-popup-viewport-gap, 16px) * 2)));
  max-height: min(var(--vxpl-promotion-popup-max-height, calc(100dvh - 40px)), calc(100dvh - (var(--vxpl-promotion-popup-viewport-gap, 16px) * 2)));
  margin: 0;
  margin-top: var(--vxpl-promotion-popup-offset, 16px);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.vxpl-popup-position-center .vxpl-modal--promotion .vxpl-modal__dialog--promotion {
  margin-top: 0;
}
.vxpl-modal__close--promotion {
  position: absolute;
  top: clamp(14px, 1.6vw, 22px);
  right: clamp(14px, 1.6vw, 22px);
  z-index: 8;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(12px);
}
.vxpl-modal__close--promotion:hover,
.vxpl-modal__close--promotion:focus {
  background: rgba(124, 58, 237, 0.28);
  border-color: rgba(196, 181, 253, 0.44);
}
.vxpl-modal__body--promotion {
  padding: 0;
  overflow: auto;
  min-height: 0;
}
.vxpl-modal__dialog--promotion .vxpl-form-wrap {
  max-width: none;
  padding: 0;
}
.vxpl-modal__dialog--promotion .vxpl-form-shell {
  margin: 0;
}
.vxpl-pf-popup-align-center .vxpl-modal--promotion .vxpl-form-header__main,
.vxpl-pf-popup-align-center .vxpl-modal--promotion .vxpl-steps {
  margin-inline: auto;
}
.vxpl-pf-popup-align-center .vxpl-modal--promotion .vxpl-form-header__eyebrow {
  justify-content: center;
}
.vxpl-pf-popup-align-center .vxpl-modal--promotion .vxpl-form-header__sub {
  margin-inline: auto;
}
.vxpl-pf-popup-align-center .vxpl-modal--promotion .vxpl-step {
  align-items: center;
  text-align: center;
}
@media (max-width: 767px) {

  .vxpl-modal__dialog--promotion {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
  }
  .vxpl-modal__close--promotion {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}


/* ============================================================
   Wow dashboard redesign — 2.2.35.26
   Visual-only refresh for frontend analytics dashboard
   ============================================================ */
.vxpl-dashboard {
  --vxpl-surface: #ffffff;
  --vxpl-surface-soft: #f8fafc;
  --vxpl-surface-strong: #0f172a;
  --vxpl-text: #0f172a;
  --vxpl-text-soft: #64748b;
  --vxpl-border-soft: rgba(148, 163, 184, 0.22);
  --vxpl-border-strong: rgba(255, 255, 255, 0.16);
  --vxpl-shadow-xl: 0 28px 70px rgba(15, 23, 42, 0.14);
  --vxpl-shadow-lg: 0 18px 46px rgba(15, 23, 42, 0.10);
  max-width: 1280px;
  padding: 24px 18px 80px;
}

.vxpl-dashboard-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--vxpl-section-gap);
}

.vxpl-dashboard-shell__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: .6;
  pointer-events: none;
  z-index: -1;
}

.vxpl-dashboard-shell__glow--one {
  top: -48px;
  left: -24px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.32) 0%, rgba(124, 58, 237, 0) 72%);
}

.vxpl-dashboard-shell__glow--two {
  top: 220px;
  right: -10px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0) 74%);
}

.vxpl-dashboard .vxpl-hero-panel {
  position: relative;
  overflow: hidden;
  padding: 30px 30px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.45), rgba(124, 58, 237, 0) 34%),
    radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0) 30%),
    linear-gradient(135deg, #0f172a 0%, #111827 48%, #1e1b4b 100%);
  box-shadow: var(--vxpl-shadow-xl);
}

.vxpl-dashboard .vxpl-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
  pointer-events: none;
}

.vxpl-dashboard .vxpl-dash-header,
.vxpl-dashboard .vxpl-hero-panel__footer {
  position: relative;
  z-index: 1;
}

.vxpl-dashboard .vxpl-dash-header {
  padding: 0;
  gap: 22px;
}

.vxpl-dashboard .vxpl-dash-header__left,
.vxpl-dashboard .vxpl-dash-header__right {
  min-width: 0;
}

.vxpl-dashboard .vxpl-dash-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.76);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.vxpl-dashboard .vxpl-dash-header__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #a3e635);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.vxpl-dashboard .vxpl-dash-header__title {
  margin: 16px 0 10px;
  font-size: clamp(1.9rem, 2vw, 2.45rem);
  letter-spacing: -.045em;
  color: #fff;
}

.vxpl-dashboard .vxpl-dash-header__title svg {
  color: #c4b5fd;
}

.vxpl-dashboard .vxpl-dash-header__sub {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  line-height: 1.6;
}

.vxpl-dashboard .vxpl-dash-header__right {
  align-items: flex-end;
  gap: 14px;
}

.vxpl-dashboard .vxpl-btn--new-promotion {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 48%, #3b82f6 100%);
  box-shadow: 0 18px 36px rgba(76, 29, 149, 0.24);
}

.vxpl-dashboard .vxpl-btn--new-promotion:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(76, 29, 149, 0.28);
}

.vxpl-dashboard .vxpl-performance-wrap {
  width: 100%;
}

.vxpl-dashboard .vxpl-score-pill--global {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color: #fff;
  box-shadow: none;
}

.vxpl-dashboard .vxpl-hero-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.vxpl-dashboard .vxpl-hero-panel__hint {
  margin: 0;
  max-width: 520px;
  color: rgba(255,255,255,0.70);
  font-size: .92rem;
  line-height: 1.6;
  text-align: right;
}

.vxpl-dashboard .vxpl-period-bar {
  margin: 0;
  gap: 12px;
}

.vxpl-dashboard .vxpl-period-label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.vxpl-dashboard .vxpl-period-tabs {
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.vxpl-dashboard .vxpl-period-tab,
.vxpl-dashboard .vxpl-filter-tab {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: all .2s ease;
}

.vxpl-dashboard .vxpl-period-tab {
  color: rgba(255,255,255,0.72);
}

.vxpl-dashboard .vxpl-period-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.vxpl-dashboard .vxpl-period-tab.active {
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.vxpl-dashboard .vxpl-kpi-grid {
  gap: 18px;
}

.vxpl-dashboard .vxpl-kpi-card {
  --vxpl-kpi-accent: #8b5cf6;
  --vxpl-kpi-accent-soft: rgba(139, 92, 246, 0.12);
  --vxpl-kpi-accent-border: rgba(139, 92, 246, 0.18);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--vxpl-border-soft);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.98)),
    linear-gradient(135deg, rgba(124,58,237,0.06), rgba(59,130,246,0.04));
  box-shadow: var(--vxpl-shadow-lg);
  overflow: hidden;
}

.vxpl-dashboard .vxpl-kpi-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 0 16px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vxpl-kpi-accent), rgba(255,255,255,0));
  opacity: .9;
}

.vxpl-dashboard .vxpl-kpi-card:hover {
  transform: translateY(-4px);
  border-color: var(--vxpl-kpi-accent-border);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12);
}

.vxpl-dashboard .vxpl-kpi-card--ctr {
  --vxpl-kpi-accent: #7c3aed;
  --vxpl-kpi-accent-soft: rgba(124, 58, 237, 0.12);
  --vxpl-kpi-accent-border: rgba(124, 58, 237, 0.18);
}

.vxpl-dashboard .vxpl-kpi-card--conversions {
  --vxpl-kpi-accent: #10b981;
  --vxpl-kpi-accent-soft: rgba(16, 185, 129, 0.12);
  --vxpl-kpi-accent-border: rgba(16, 185, 129, 0.18);
}

.vxpl-dashboard .vxpl-kpi-card--revenue {
  --vxpl-kpi-accent: #f59e0b;
  --vxpl-kpi-accent-soft: rgba(245, 158, 11, 0.12);
  --vxpl-kpi-accent-border: rgba(245, 158, 11, 0.20);
}

.vxpl-dashboard .vxpl-kpi-card--roas {
  --vxpl-kpi-accent: #3b82f6;
  --vxpl-kpi-accent-soft: rgba(59, 130, 246, 0.12);
  --vxpl-kpi-accent-border: rgba(59, 130, 246, 0.18);
}

.vxpl-dashboard .vxpl-kpi-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--vxpl-kpi-accent-soft);
  color: var(--vxpl-kpi-accent);
  border: 1px solid var(--vxpl-kpi-accent-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.vxpl-dashboard .vxpl-kpi-card__main {
  min-width: 0;
}

.vxpl-dashboard .vxpl-kpi-card__label {
  margin: 0 0 8px;
  color: var(--vxpl-text);
  font-size: .80rem;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.vxpl-dashboard .vxpl-kpi-card__desc {
  margin: 0;
  color: var(--vxpl-text-soft);
  font-size: .87rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vxpl-dashboard .vxpl-kpi-card__metric {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.vxpl-dashboard .vxpl-kpi-card__value {
  font-size: clamp(1.9rem, 2.4vw, 2.45rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--vxpl-text);
  white-space: nowrap;
}

.vxpl-dashboard .vxpl-kpi-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--vxpl-surface-soft);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--vxpl-text-soft);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.vxpl-dashboard .vxpl-card,
.vxpl-dashboard .vxpl-chart-card {
  border: 1px solid var(--vxpl-border-soft);
  border-radius: 28px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--vxpl-shadow-lg);
  overflow: hidden;
}

.vxpl-dashboard .vxpl-card__header,
.vxpl-dashboard .vxpl-chart-card__header {
  padding: 24px 24px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.vxpl-dashboard .vxpl-card__body,
.vxpl-dashboard .vxpl-chart-wrap {
  padding: 24px;
}

.vxpl-dashboard .vxpl-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #6d28d9;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.vxpl-dashboard .vxpl-section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.08);
}

.vxpl-dashboard .vxpl-card__title,
.vxpl-dashboard .vxpl-chart-card__title {
  margin: 0;
  color: var(--vxpl-text);
  font-size: clamp(1.2rem, 1.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.vxpl-dashboard .vxpl-section-subtitle {
  margin: 10px 0 0;
  color: var(--vxpl-text-soft);
  font-size: .92rem;
  line-height: 1.6;
}

.vxpl-dashboard .vxpl-funnel-card {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(124,58,237,0.09), rgba(124,58,237,0) 30%),
    linear-gradient(180deg, rgba(248,250,252,0.9), rgba(255,255,255,0.98));
}

.vxpl-dashboard .vxpl-funnel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: vxpl-funnel;
}

.vxpl-dashboard .vxpl-funnel-step {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  counter-increment: vxpl-funnel;
}

.vxpl-dashboard .vxpl-funnel-step::before {
  content: counter(vxpl-funnel, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.10);
  color: #6d28d9;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.vxpl-dashboard .vxpl-funnel-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  right: -10px;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.26), rgba(124, 58, 237, 0));
}

.vxpl-dashboard .vxpl-funnel-step__label {
  margin: 0 0 8px;
  color: var(--vxpl-text-soft);
  font-size: .80rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.vxpl-dashboard .vxpl-funnel-step__value {
  color: var(--vxpl-text);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.04em;
}

.vxpl-dashboard .vxpl-chart-card {
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.08), rgba(59,130,246,0) 26%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
}

.vxpl-dashboard .vxpl-chart-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .95fr);
  gap: 22px;
  padding: 24px;
}

.vxpl-dashboard .vxpl-chart-wrap {
  min-height: var(--vxpl-chart-height);
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.vxpl-dashboard .vxpl-chart-wrap canvas,
.vxpl-dashboard .vxpl-chart-wrap > canvas {
  min-height: var(--vxpl-chart-height);
}

.vxpl-dashboard .vxpl-chart-insight {
  margin: 0;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  background:
    linear-gradient(180deg, rgba(124,58,237,0.08), rgba(59,130,246,0.03)),
    rgba(255,255,255,0.96);
}

.vxpl-dashboard .vxpl-chart-insight__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4c1d95;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.vxpl-dashboard .vxpl-chart-insight__title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

.vxpl-dashboard .vxpl-chart-insight__text {
  margin: 14px 0 0;
  color: var(--vxpl-text);
  font-size: .94rem;
  line-height: 1.7;
}

.vxpl-dashboard .vxpl-chart-insight__tips {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(124, 58, 237, 0.10);
}

.vxpl-dashboard .vxpl-chart-insight__tips-title {
  color: var(--vxpl-text);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vxpl-dashboard .vxpl-chart-insight__tips-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.vxpl-dashboard .vxpl-chart-insight__tips-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--vxpl-text-soft);
  line-height: 1.6;
}

.vxpl-dashboard .vxpl-chart-insight__tips-list li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

.vxpl-dashboard .vxpl-promos-card {
  background:
    radial-gradient(circle at top right, rgba(124,58,237,0.08), rgba(124,58,237,0) 24%),
    rgba(255,255,255,0.98);
}

.vxpl-dashboard .vxpl-card__header--split {
  align-items: flex-end;
}

.vxpl-dashboard .vxpl-filter-tabs {
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.vxpl-dashboard .vxpl-filter-tab {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(148, 163, 184, 0.16);
  color: var(--vxpl-text-soft);
}

.vxpl-dashboard .vxpl-filter-tab:hover {
  color: var(--vxpl-text);
  border-color: rgba(124, 58, 237, 0.18);
  background: rgba(124, 58, 237, 0.06);
}

.vxpl-dashboard .vxpl-filter-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.22);
}

.vxpl-dashboard .vxpl-card__body--flush {
  padding-top: 20px;
}

.vxpl-dashboard .vxpl-table-wrap {
  position: relative;
  overflow: auto;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.vxpl-dashboard .vxpl-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: var(--vxpl-text-soft);
  font-size: .92rem;
  background: linear-gradient(180deg, rgba(248,250,252,0.88), rgba(255,255,255,0.96));
}

.vxpl-dashboard .vxpl-table {
  min-width: 980px;
}

.vxpl-dashboard .vxpl-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(248,250,252,0.96);
  backdrop-filter: blur(12px);
  color: var(--vxpl-text-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.vxpl-dashboard .vxpl-table tbody td {
  padding: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  color: var(--vxpl-text);
  font-size: .94rem;
  vertical-align: middle;
  background: transparent;
}

.vxpl-dashboard .vxpl-table tbody tr {
  transition: transform .18s ease, background-color .18s ease;
}

.vxpl-dashboard .vxpl-table tbody tr:hover td {
  background: rgba(124, 58, 237, 0.04);
}

.vxpl-dashboard .vxpl-table tbody tr:hover {
  transform: translateX(2px);
}

.vxpl-dashboard .vxpl-muted {
  margin: 6px 0 0;
  color: var(--vxpl-text-soft);
  font-size: .78rem;
}

.vxpl-dashboard .vxpl-status-badge {
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248,250,252,0.9);
  color: var(--vxpl-text);
  font-size: .78rem;
}

.vxpl-dashboard .vxpl-dot--good { color: #10b981; }
.vxpl-dashboard .vxpl-dot--muted { color: #94a3b8; }
.vxpl-dashboard .vxpl-dot--bad { color: #ef4444; }

.vxpl-dashboard .vxpl-promo-details {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border-color: rgba(124, 58, 237, 0.14);
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.05);
}

.vxpl-dashboard .vxpl-promo-details:hover {
  border-color: rgba(124, 58, 237, 0.22);
  background: rgba(124, 58, 237, 0.10);
  color: #4c1d95;
}

.vxpl-dashboard .vxpl-score-pill {
  border-radius: 999px;
  border-width: 1px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.vxpl-dashboard .vxpl-score-pill--row {
  box-shadow: none;
}

.vxpl-dashboard .vxpl-modal__overlay {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
}

.vxpl-dashboard .vxpl-modal__dialog:not(.vxpl-modal__dialog--promotion) {
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.vxpl-dashboard .vxpl-modal__header:not(.vxpl-modal__header--promotion) {
  padding: 22px 24px;
  background:
    radial-gradient(circle at top right, rgba(124,58,237,0.08), rgba(124,58,237,0) 26%),
    rgba(255,255,255,0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.vxpl-dashboard .vxpl-modal__body:not(.vxpl-modal__body--promotion) {
  padding: 24px;
}

.vxpl-dashboard .vxpl-modal__close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248,250,252,0.96);
}

.vxpl-dashboard .vxpl-modal__close:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.18);
}

.vxpl-dashboard .vxpl-modal__meta-title {
  color: var(--vxpl-text);
  font-size: 1.08rem;
  font-weight: 800;
}

.vxpl-dashboard .vxpl-modal__meta-row {
  color: var(--vxpl-text-soft);
}

@media (max-width: 1180px) {
  .vxpl-dashboard .vxpl-chart-card__body {
    grid-template-columns: 1fr;
  }

  .vxpl-dashboard .vxpl-chart-insight {
    order: 2;
  }
}

@media (max-width: 1024px) {
  .vxpl-dashboard .vxpl-funnel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vxpl-dashboard .vxpl-funnel-step:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .vxpl-dashboard .vxpl-hero-panel {
    padding: 24px 22px 22px;
    border-radius: 24px;
  }

  .vxpl-dashboard .vxpl-hero-panel__footer,
  .vxpl-dashboard .vxpl-card__header--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .vxpl-dashboard .vxpl-hero-panel__hint {
    text-align: left;
  }

  .vxpl-dashboard .vxpl-dash-header__right {
    width: 100%;
    align-items: flex-start;
  }

  .vxpl-dashboard .vxpl-performance-wrap {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .vxpl-dashboard {
    padding: 16px 12px 56px;
  }

  .vxpl-dashboard .vxpl-kpi-grid,
  .vxpl-dashboard .vxpl-funnel-grid {
    grid-template-columns: 1fr;
  }

  .vxpl-dashboard .vxpl-kpi-card {
    padding: 18px;
    gap: 14px;
  }

  .vxpl-dashboard .vxpl-kpi-card__metric {
    flex-direction: column;
    align-items: flex-start;
  }

  .vxpl-dashboard .vxpl-kpi-card__meta {
    white-space: normal;
  }

  .vxpl-dashboard .vxpl-funnel-step::after {
    display: none;
  }

  .vxpl-dashboard .vxpl-card,
  .vxpl-dashboard .vxpl-chart-card,
  .vxpl-dashboard .vxpl-modal__dialog:not(.vxpl-modal__dialog--promotion) {
    border-radius: 22px;
  }

  .vxpl-dashboard .vxpl-card__header,
  .vxpl-dashboard .vxpl-chart-card__header,
  .vxpl-dashboard .vxpl-card__body,
  .vxpl-dashboard .vxpl-chart-card__body,
  .vxpl-dashboard .vxpl-chart-wrap,
  .vxpl-dashboard .vxpl-modal__header:not(.vxpl-modal__header--promotion),
  .vxpl-dashboard .vxpl-modal__body:not(.vxpl-modal__body--promotion) {
    padding-left: 18px;
    padding-right: 18px;
  }

  .vxpl-dashboard .vxpl-chart-card__body {
    gap: 16px;
  }

  .vxpl-dashboard .vxpl-table {
    min-width: 860px;
  }
}


/* ============================================================
   Layout spacing + Elementor selector alignment — 2.2.35.27
   ============================================================ */
.vxpl-dashboard .vxpl-dashboard-shell > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.vxpl-dashboard .vxpl-dashboard-shell > .vxpl-dashboard-shell__glow {
  margin: 0 !important;
}

.vxpl-dashboard .vxpl-kpi-grid,
.vxpl-dashboard .vxpl-funnel-grid,
.vxpl-dashboard .vxpl-chart-card__body {
  gap: clamp(16px, 1.25vw, 22px);
}

.vxpl-dashboard .vxpl-card__body,
.vxpl-dashboard .vxpl-chart-wrap,
.vxpl-dashboard .vxpl-chart-insight,
.vxpl-dashboard .vxpl-chart-card__body {
  box-sizing: border-box;
}
