:root {
  --ref-bg: #eef0fb;
  --ref-bg-2: #f7f8ff;
  --ref-sidebar-1: #2d1547;
  --ref-sidebar-2: #41206a;
  --ref-surface: rgba(255,255,255,.92);
  --ref-border: rgba(120, 124, 166, .16);
  --ref-shadow: 0 24px 70px rgba(58, 51, 99, .16);
  --ref-panel-shadow: 0 14px 32px rgba(88, 91, 140, .09);
  --ref-violet: #7c3aed;
  --ref-violet-2: #8b5cf6;
  --ref-teal: #42c0cf;
  --ref-pink: #f35fb5;
  --ref-ink: #191a26;
  --ref-muted: #6d7284;
}
html, body { min-height: 100%; }
body {
  background:
    radial-gradient(70rem 70rem at -8% 110%, rgba(71,197,232,.28) 0 36%, transparent 36.5%),
    radial-gradient(54rem 54rem at 100% 95%, rgba(109,112,242,.22) 0 34%, transparent 34.5%),
    radial-gradient(40rem 40rem at 24% -8%, rgba(130,190,255,.48) 0 28%, transparent 28.5%),
    linear-gradient(180deg, #f5f7ff 0%, #eef1ff 100%);
  background-attachment: fixed;
}
body::before,
body::after {
  content:"";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
}
body::before {
  inset: -10% auto auto -15%;
  width: 34rem;
  height: 24rem;
  background: rgba(103, 168, 255, .24);
  border-radius: 52% 48% 42% 58%/55% 36% 64% 45%;
  transform: rotate(18deg);
}
body::after {
  inset: auto -12% -12% auto;
  width: 46rem;
  height: 32rem;
  background: rgba(119, 112, 255, .18);
  border-radius: 58% 42% 67% 33%/40% 54% 46% 60%;
}
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 36px auto;
  min-height: calc(100vh - 72px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.58);
  box-shadow: var(--ref-shadow);
  background: linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,.18));
  backdrop-filter: blur(18px);
}
.sidebar {
  width: 236px;
  flex-basis: 236px;
  padding: 18px 12px 16px;
  background: linear-gradient(180deg, var(--ref-sidebar-1) 0%, var(--ref-sidebar-2) 100%);
  box-shadow: inset -1px 0 rgba(255,255,255,.05);
}
.brand-lockup {
  padding: 10px 14px 22px;
  display: flex;
  align-items: center;
}
.brand-logo-white {
  display: block;
  width: 142px;
  height: auto;
  object-fit: contain;
}
.brand-mark-white {
  display: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.main-nav { gap: 6px; }
.nav-section { gap: 4px; }
.nav-section-title {
  margin: 10px 0 6px;
  padding: 0 14px;
  color: rgba(231,228,255,.46);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}
.nav-item {
  min-height: 38px;
  padding: 0 12px;
  gap: 11px;
  color: rgba(244,241,255,.84);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.nav-item svg { width: 17px; height: 17px; color: rgba(224,215,255,.7); }
.nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nav-item.is-unavailable{cursor:help;opacity:.62}.nav-item.is-unavailable:hover{background:rgba(255,255,255,.045);color:rgba(244,241,255,.84)}
.nav-item.is-active {
  background: linear-gradient(90deg, rgba(124,58,237,.28) 0%, rgba(124,58,237,.15) 100%);
  box-shadow: inset 0 0 0 1px rgba(189,168,255,.18);
}
.nav-item.is-active::before {
  content:"";
  position:absolute;
  left:8px;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:999px;
  background: linear-gradient(180deg, #ac8bff, #7c3aed);
}
.nav-item b,
.nav-item i,
.help-icon {
  background: rgba(255,255,255,.12);
}
.help-card,
.account-card {
  border-radius: 14px;
}
.sidebar-footer { padding-top: 14px; }
.workspace {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
}
.topbar {
  height: 74px;
  padding: 0 26px;
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(114, 121, 154, .12);
}
.brand-switcher {
  height: 44px;
  min-width: 315px;
  border-radius: 14px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(124, 131, 167, .16);
  box-shadow: 0 10px 22px rgba(106,110,154,.06);
}
.topbar-actions { gap: 8px; }
.icon-button, .top-avatar {
  border-radius: 12px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(124, 131, 167, .16);
}
.search-button {
  width: 140px;
  justify-content: flex-start;
  padding: 0 14px;
  font-size: 11px;
  color: var(--ref-muted);
}
.notification-button b { box-shadow: 0 0 0 4px rgba(255,255,255,.88); }
.content {
  max-width: none;
  padding: 26px;
}
.page-heading {
  margin-bottom: 16px;
}
.page-heading .eyebrow {
  color: #8f93a4;
  font-size: 11px;
}
.page-heading h1 {
  color: var(--ref-ink);
  font-size: clamp(24px,1.9vw,31px);
  font-weight: 700;
  letter-spacing: -.04em;
}
.page-heading > div > p:last-child { font-size: 12.5px; color: var(--ref-muted); }
.heading-actions .button {
  height: 42px;
  border-radius: 999px;
  font-size: 12px;
}
.button-primary {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  box-shadow: 0 10px 22px rgba(124,58,237,.18);
}
.button-secondary {
  background: rgba(255,255,255,.72);
}
.quick-strip {
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 16px;
  border: 1px solid rgba(124,131,167,.14);
  background: rgba(255,255,255,.62);
  box-shadow: var(--ref-panel-shadow);
}
.metric-grid {
  gap: 14px;
}
.metric-card,
.panel,
.channel-card,
.copilot-card {
  border-radius: 22px;
  border: 1px solid rgba(124, 131, 167, .14);
  background: rgba(255,255,255,.82);
  box-shadow: var(--ref-panel-shadow);
}
.metric-card { min-height: 168px; padding: 20px; }
.metric-icon {
  border-radius: 13px;
}
.metric-icon.green { color: var(--ref-teal); background: rgba(66,192,207,.13); }
.metric-icon.blue { color: var(--ref-violet); background: rgba(124,58,237,.12); }
.metric-icon.purple { color: var(--ref-pink); background: rgba(243,95,181,.12); }
.metric-icon.amber { color: #f59e0b; background: rgba(245,158,11,.13); }
.metric-value,
.metric-value.currency {
  font-size: 28px;
  letter-spacing: -.05em;
}
.metric-title { font-size: 11px; color: #8a91a2; }
.metric-change { font-size: 10px; }
.metric-spark i:nth-child(3n+1) { background: rgba(66,192,207,.5); }
.metric-spark i:nth-child(3n+2) { background: rgba(243,95,181,.45); }
.metric-spark i:nth-child(3n) { background: rgba(124,58,237,.35); }
.dashboard-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .78fr);
  gap: 18px;
}
.panel-heading {
  min-height: 72px;
  padding: 18px 20px 12px;
}
.panel-heading h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.panel-heading p {
  font-size: 11px;
  color: #8f93a4;
}
.text-button {
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
}
.campaign-row.table-head {
  min-height: 44px;
  font-size: 10px;
}
.campaign-row {
  min-height: 70px;
  background: transparent;
}
.campaign-name strong { font-size: 12px; }
.campaign-name small { font-size: 10.5px; }
.campaign-icon.lime { color: var(--ref-violet); background: rgba(124,58,237,.12); }
.campaign-icon.sky { color: var(--ref-pink); background: rgba(243,95,181,.12); }
.campaign-icon.gray { color: var(--ref-teal); background: rgba(66,192,207,.13); }
.progress { height: 7px; border-radius: 999px; background: rgba(122,130,164,.14); }
.progress i { border-radius: inherit; background: linear-gradient(90deg, var(--ref-violet), var(--ref-pink)); }
.progress.blue-progress i { background: linear-gradient(90deg, var(--ref-violet), var(--ref-teal)); }
.progress.neutral i { background: linear-gradient(90deg, #a8adbf, #d1d6e6); }
.status {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.status.running { background: rgba(66,192,207,.12); color: #1c8f9b; border-color: rgba(66,192,207,.18); }
.status.running i { background: #42c0cf; }
.status.scheduled { background: rgba(124,58,237,.12); color: #6d28d9; border-color: rgba(124,58,237,.18); }
.status.scheduled i { background: #7c3aed; }
.status.completed { background: rgba(243,95,181,.12); color: #d13890; border-color: rgba(243,95,181,.17); }
.status.completed i { background: #f35fb5; }
.conversation-list { border-top-color: rgba(122,130,164,.12); }
.conversation-row {
  min-height: 76px;
  padding: 12px 18px;
  border-bottom-color: rgba(122,130,164,.12);
}
.conversation-row:hover { background: rgba(124,58,237,.04); }
.avatar-af { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.avatar-sr { background: linear-gradient(135deg, #f35fb5, #f9a8d4); }
.avatar-ds { background: linear-gradient(135deg, #42c0cf, #7dd3fc); }
.copilot-card {
  padding: 16px;
  background: linear-gradient(180deg, rgba(252,251,255,.95) 0%, rgba(246,243,255,.92) 100%);
}
.copilot-head h2 { font-size: 16px; }
.copilot-logo {
  background: linear-gradient(135deg, #7c3aed, #f35fb5);
}
.copilot-intro {
  border-radius: 18px;
  padding: 18px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(245,243,255,.9));
  border: 1px solid rgba(124,58,237,.12);
}
.copilot-actions button {
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(124,131,167,.14);
}
.copilot-actions button > span {
  background: rgba(124,58,237,.12);
}
.copilot-insight,
.copilot-response {
  border-radius: 18px;
}
.channel-card .panel-heading.compact {
  min-height: 66px;
}
.channel-row { min-height: 60px; }
.channel-symbol.wa { color: var(--ref-violet); background: rgba(124,58,237,.12); }
.channel-symbol.device { color: var(--ref-teal); background: rgba(66,192,207,.13); }
.channel-status.success { color: #1f8c78; background: rgba(66,192,207,.14); }
.channel-status.muted { background: rgba(124,131,167,.12); color: #757a8d; }
.payment-flow-notice {
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(246,243,255,.92));
}
@media (max-width: 1240px) {
  .app-shell { margin: 22px; }
}
@media (max-width: 1010px) {
  .sidebar { width: 76px; flex-basis: 76px; }
  .brand-lockup { padding: 6px 8px 18px; justify-content: center; }
  .brand-logo-white { display: none; }
  .brand-mark-white { display: block; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-shell {
    margin: 0;
    min-height: 100vh;
    border-radius: 0;
  }
  body::before, body::after { display: none; }
  .sidebar { width: 272px; }
  .brand-lockup { padding: 8px 14px 18px; justify-content: flex-start; }
  .brand-logo-white { display: block; width: 128px; }
  .brand-mark-white { display: none; }
  .topbar { padding: 0 14px; }
  .content { padding: 18px 14px 28px; }
  .quick-strip, .metric-card, .panel, .copilot-card, .channel-card { border-radius: 18px; }
  .conversation-row { min-height: 68px; }
}

/* Core dashboard labels should remain readable without browser zoom. */
.metric-title{font-size:12.5px}.metric-change{font-size:12px}.panel-heading h2{font-size:18px}.panel-heading p{font-size:13px}.campaign-row.table-head{font-size:11px}.campaign-name strong{font-size:13px}.campaign-name small{font-size:12px}.status{font-size:11px}


/* Fullscreen dashboard override — no decorative outer background */
html, body {
  min-height: 100%;
  margin: 0;
  background: #eef0f7 !important;
}
body::before,
body::after {
  display: none !important;
  content: none !important;
}
.app-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}
.sidebar {
  min-height: 100vh;
  border-radius: 0;
}
.workspace {
  min-height: 100vh;
  background: #f5f6fa;
  backdrop-filter: none;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  border-radius: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
@media (max-width: 1240px) {
  .app-shell { margin: 0; }
}
@media (max-width: 720px) {
  .app-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }
}
