:root {
  --bg: #f5f7ff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #111827;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #5b5cf6;
  --primary-2: #eef2ff;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --green: #22c55e;
  --amber: #f59e0b;
  --pink: #ec4899;
  --coral: #fb7185;
  --danger: #ef4444;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 26px 80px rgba(31, 41, 71, .14);
  --shadow-sm: 0 14px 38px rgba(31, 41, 71, .09);
  --sidebar: 260px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(91, 92, 246, .28), transparent 26rem),
    radial-gradient(circle at 86% 0%, rgba(6, 182, 212, .22), transparent 24rem),
    radial-gradient(circle at 76% 46%, rgba(251, 113, 133, .16), transparent 25rem),
    radial-gradient(circle at 24% 88%, rgba(34, 197, 94, .14), transparent 23rem),
    linear-gradient(135deg, #f8fbff 0%, #f5f0ff 38%, #eef9ff 70%, #fff7ed 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 92, 246, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(#000, transparent 76%);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }

.app-shell { padding-left: var(--sidebar); }
.container { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 32px 0 56px; }
.app-shell .container { width: min(1280px, calc(100% - 72px)); }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar);
  padding: 22px 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20, 24, 46, .88), rgba(32, 35, 72, .92)),
    radial-gradient(circle at 22% 14%, rgba(6, 182, 212, .65), transparent 12rem),
    radial-gradient(circle at 88% 36%, rgba(236, 72, 153, .58), transparent 12rem),
    radial-gradient(circle at 30% 82%, rgba(245, 158, 11, .55), transparent 13rem);
  box-shadow: 18px 0 50px rgba(31, 41, 71, .16);
  overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 28px; }
.sidebar-brand:hover { color: #fff; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6 48%, #fb7185);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .24);
}
.sidebar-brand strong { display: block; font-size: 18px; letter-spacing: -.03em; }
.sidebar-brand small { display: block; color: rgba(255,255,255,.72); font-size: 12px; }
.sidebar-section { margin: 20px 0 10px; color: rgba(255,255,255,.48); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 8px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  color: rgba(255,255,255,.78);
  font-weight: 800;
}
.sidebar-nav a:hover,
.sidebar-nav a.is-active { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.sidebar-footer { margin-top: 24px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.78); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 36px;
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(226,232,240,.85);
}
.topnav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topnav a { padding: 10px 13px; border-radius: 999px; color: #475569; font-weight: 800; font-size: 13px; }
.topnav a:hover { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 10px 0 22px; }
.eyebrow { margin: 0 0 8px; color: var(--primary); font-weight: 950; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
h1,h2,h3 { line-height: 1.12; margin: 0 0 10px; }
h1 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -.055em; }
h2 { font-size: 22px; letter-spacing: -.03em; }
h3 { font-size: 18px; letter-spacing: -.02em; }
.muted { color: var(--muted); }

.card {
  position: relative;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin: 16px 0;
  overflow: hidden;
}
.card--lift { box-shadow: var(--shadow); }
.hero-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
  padding: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 14%, rgba(255,255,255,.34), transparent 10rem),
    linear-gradient(135deg, #5b5cf6 0%, #8b5cf6 34%, #06b6d4 68%, #22c55e 100%);
}
.hero-card .eyebrow,
.hero-card .muted { color: rgba(255,255,255,.82); }
.hero-card .btn--ghost { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.28); }
.hero-visual { position: relative; min-height: 210px; border-radius: 26px; background: linear-gradient(160deg, rgba(255,255,255,.34), rgba(255,255,255,.10)); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.hero-visual::before { content: "✈"; position: absolute; right: 28px; top: 22px; font-size: 58px; filter: drop-shadow(0 18px 22px rgba(31,41,71,.25)); transform: rotate(-12deg); }
.hero-visual::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 24px; height: 98px; background: linear-gradient(135deg, #22c55e 0 28%, #f59e0b 29% 39%, #fb7185 40% 52%, #8b5cf6 53% 64%, #06b6d4 65% 100%); clip-path: polygon(0 86%, 16% 42%, 32% 76%, 48% 24%, 62% 68%, 78% 38%, 100% 78%, 100% 100%, 0 100%); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 18px 0; }
.stat-tile { position: relative; padding: 19px; border: 1px solid rgba(255,255,255,.78); border-radius: 20px; background: rgba(255,255,255,.9); box-shadow: 0 14px 30px rgba(31,41,71,.07); overflow: hidden; }
.stat-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--primary), var(--cyan)); }
.stat-tile::after { content: ""; position: absolute; right: 16px; top: 18px; width: 44px; height: 44px; border-radius: 16px; background: linear-gradient(135deg, rgba(91,92,246,.18), rgba(6,182,212,.18)); }
.stat-tile:nth-child(2)::before { background: linear-gradient(180deg, var(--amber), var(--pink)); }
.stat-tile:nth-child(3)::before { background: linear-gradient(180deg, var(--purple), var(--coral)); }
.stat-tile:nth-child(4)::before { background: linear-gradient(180deg, var(--teal), var(--green)); }
.stat-tile:nth-child(5)::before { background: linear-gradient(180deg, var(--pink), var(--amber)); }
.stat-tile p { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.stat-tile strong { display: block; font-size: 26px; letter-spacing: -.045em; }
.stat-tile small { color: var(--muted); }

.btn,button { appearance: none; border: 0; border-radius: 14px; padding: 11px 16px; background: linear-gradient(135deg, var(--primary), #2563eb); color: #fff; font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; transition: .18s ease; text-decoration: none; box-shadow: 0 14px 26px rgba(91,92,246,.24); }
.btn:hover,button:hover { transform: translateY(-1px); filter: brightness(1.02); }
.btn--secondary { background: #111827; }
.btn--ghost { background: #fff; color: #334155; border: 1px solid var(--line); box-shadow: none; }
.btn--soft { background: var(--primary-2); color: var(--primary); box-shadow: none; }
.btn--danger,.danger { background: linear-gradient(135deg,#ef4444,#dc2626); }
.action-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.watch-actions { display: grid; justify-items: center; width: 100%; min-width: 0; padding: 4px 0 2px; }
.watch-actions__form { display: grid; justify-items: center; row-gap: 16px; width: 100%; max-width: 100%; min-width: 0; margin-inline: auto; }
.watch-actions__row { display: flex; justify-content: center; align-items: center; gap: 16px 20px; flex-wrap: wrap; width: 100%; margin-inline: auto; }
.watch-actions .btn,.watch-actions button { flex: 0 0 auto; min-width: 98px; white-space: nowrap; padding-inline: 20px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: #e2e8f0; color: #334155; font-weight: 900; font-size: 12px; text-transform: capitalize; }
.badge span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge--active,.badge--completed { background: #dcfce7; color: #166534; }
.badge--paused { background: #f1f5f9; color: #475569; }
.badge--due,.badge--running,.badge--partial { background: #fef3c7; color: #92400e; }
.badge--failed { background: #fee2e2; color: #991b1b; }
.badge--no-results { background: #e0f2fe; color: #075985; }
.alert { padding: 14px 16px; border-radius: 16px; margin: 14px 0; border: 1px solid; }
.alert--error { background: #fff1f2; color: #991b1b; border-color: #fecaca; }
.alert--info { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.watch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.watch-card { display: flex; flex-direction: column; gap: 16px; }
.watch-card__top { display: flex; justify-content: space-between; gap: 14px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.pill { padding: 7px 10px; border-radius: 999px; background: #f8fafc; border: 1px solid var(--line); }
label { display: block; color: #334155; font-weight: 900; font-size: 13px; margin-bottom: 12px; }
input,select,textarea { width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid #d7deea; border-radius: 14px; background: #fff; color: var(--text); font: inherit; transition: .18s ease; box-shadow: 0 1px 0 rgba(15,23,42,.02); }
input:focus,select:focus,textarea:focus { outline: 4px solid rgba(91,92,246,.14); border-color: var(--primary); }
input[type=checkbox] { width: auto; margin: 0 8px 0 0; }
.help { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 4px; }
.form-section { padding: 20px; border: 1px solid rgba(226,232,240,.9); border-radius: 20px; background: rgba(255,255,255,.72); margin: 16px 0; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: inset 0 1px #fff; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; }
th,td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #f8fafc; }
tr:hover td { background: #fbfdff; }
tr:last-child td { border-bottom: 0; }
.empty-state { text-align: center; padding: 58px 24px; border: 1px dashed #cbd5e1; border-radius: 24px; background: rgba(255,255,255,.78); }
.empty-state__icon { font-size: 48px; margin-bottom: 12px; }
.public-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px,100%); padding: 32px; }
.login-hero { text-align: center; margin-bottom: 22px; }
.offer-card { border: 1px solid var(--line); border-radius: 20px; padding: 18px; margin: 14px 0; background: #fff; }
.offer-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.price { font-size: 28px; font-weight: 950; letter-spacing: -.05em; }
.segments { display: grid; gap: 10px; }
.segment { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }

@media (max-width: 920px) {
  .app-shell { padding-left: 0; }
  .sidebar { position: static; width: auto; padding: 14px 18px; }
  .sidebar-brand { margin-bottom: 14px; }
  .sidebar-section,.sidebar-footer { display: none; }
  .sidebar-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sidebar-nav a { justify-content: center; font-size: 13px; }
  .topbar { position: static; padding: 12px 18px; justify-content: flex-start; }
  .app-shell .container { width: min(100% - 36px, 1180px); padding-top: 22px; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-visual { min-height: 150px; }
  .page-header,.offer-head { flex-direction: column; align-items: stretch; }
  .topnav,.action-bar { width: 100%; }
  .topnav a,.action-bar .btn,.action-bar button { flex: 1; }
  .card { padding: 18px; }
  .segment { grid-template-columns: 1fr; }
  .watch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 22px; }
  .topnav,.sidebar-nav { grid-template-columns: 1fr 1fr; }
  .watch-card__top { flex-direction: column; }
}

/* Multicolor dashboard enhancement: brighter gradients and per-card color accents. */
body {
  background:
    radial-gradient(circle at 8% 5%, rgba(99, 102, 241, .30), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(6, 182, 212, .26), transparent 24rem),
    radial-gradient(circle at 80% 48%, rgba(236, 72, 153, .18), transparent 28rem),
    radial-gradient(circle at 18% 86%, rgba(245, 158, 11, .15), transparent 25rem),
    linear-gradient(135deg, #f7fbff 0%, #f5efff 30%, #eafcff 62%, #fff7ed 100%);
}
.sidebar {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(30, 27, 75, .92)),
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, .75), transparent 11rem),
    radial-gradient(circle at 92% 34%, rgba(236, 72, 153, .70), transparent 13rem),
    radial-gradient(circle at 26% 86%, rgba(245, 158, 11, .68), transparent 14rem),
    radial-gradient(circle at 90% 86%, rgba(34, 197, 94, .40), transparent 12rem);
}
.sidebar-nav a:nth-child(1).is-active,
.sidebar-nav a:nth-child(1):hover { background: linear-gradient(135deg, rgba(99,102,241,.42), rgba(6,182,212,.22)); }
.sidebar-nav a:nth-child(2):hover { background: linear-gradient(135deg, rgba(34,197,94,.30), rgba(20,184,166,.18)); }
.sidebar-nav a:nth-child(3):hover { background: linear-gradient(135deg, rgba(245,158,11,.32), rgba(251,113,133,.18)); }
.sidebar-nav a:nth-child(4):hover { background: linear-gradient(135deg, rgba(236,72,153,.30), rgba(139,92,246,.20)); }
.hero-card {
  background:
    radial-gradient(circle at 84% 12%, rgba(255,255,255,.38), transparent 11rem),
    radial-gradient(circle at 18% 88%, rgba(255,255,255,.24), transparent 14rem),
    linear-gradient(135deg, #5b5cf6 0%, #8b5cf6 25%, #ec4899 48%, #06b6d4 73%, #22c55e 100%);
}
.hero-visual::after {
  background: linear-gradient(135deg, #22c55e 0 20%, #14b8a6 21% 35%, #f59e0b 36% 47%, #fb7185 48% 61%, #8b5cf6 62% 76%, #06b6d4 77% 100%);
}
.stats-grid .stat-tile:nth-child(1) { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(238,242,255,.96)); }
.stats-grid .stat-tile:nth-child(2) { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,237,.96)); }
.stats-grid .stat-tile:nth-child(3) { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(253,242,248,.96)); }
.stats-grid .stat-tile:nth-child(4) { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(236,253,245,.96)); }
.stats-grid .stat-tile:nth-child(5) { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(236,254,255,.96)); }
.stats-grid .stat-tile:nth-child(1)::after { background: linear-gradient(135deg, rgba(91,92,246,.28), rgba(6,182,212,.22)); }
.stats-grid .stat-tile:nth-child(2)::after { background: linear-gradient(135deg, rgba(245,158,11,.28), rgba(236,72,153,.20)); }
.stats-grid .stat-tile:nth-child(3)::after { background: linear-gradient(135deg, rgba(236,72,153,.24), rgba(139,92,246,.20)); }
.stats-grid .stat-tile:nth-child(4)::after { background: linear-gradient(135deg, rgba(20,184,166,.28), rgba(34,197,94,.20)); }
.stats-grid .stat-tile:nth-child(5)::after { background: linear-gradient(135deg, rgba(6,182,212,.25), rgba(245,158,11,.18)); }
.watch-card:hover,
.stat-tile:hover {
  transform: translateY(-2px);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 24px 58px rgba(31, 41, 71, .12);
}
/* Multicolor dashboard enhancement: safe override file so app.css stays conflict-free. */
body {
  background:
    radial-gradient(circle at 8% 5%, rgba(99, 102, 241, .30), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(6, 182, 212, .26), transparent 24rem),
    radial-gradient(circle at 80% 48%, rgba(236, 72, 153, .18), transparent 28rem),
    radial-gradient(circle at 18% 86%, rgba(245, 158, 11, .15), transparent 25rem),
    linear-gradient(135deg, #f7fbff 0%, #f5efff 30%, #eafcff 62%, #fff7ed 100%);
}
.sidebar {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(30, 27, 75, .92)),
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, .75), transparent 11rem),
    radial-gradient(circle at 92% 34%, rgba(236, 72, 153, .70), transparent 13rem),
    radial-gradient(circle at 26% 86%, rgba(245, 158, 11, .68), transparent 14rem),
    radial-gradient(circle at 90% 86%, rgba(34, 197, 94, .40), transparent 12rem);
}
.sidebar-nav a:nth-child(1).is-active,
.sidebar-nav a:nth-child(1):hover { background: linear-gradient(135deg, rgba(99,102,241,.42), rgba(6,182,212,.22)); }
.sidebar-nav a:nth-child(2):hover { background: linear-gradient(135deg, rgba(34,197,94,.30), rgba(20,184,166,.18)); }
.sidebar-nav a:nth-child(3):hover { background: linear-gradient(135deg, rgba(245,158,11,.32), rgba(251,113,133,.18)); }
.sidebar-nav a:nth-child(4):hover { background: linear-gradient(135deg, rgba(236,72,153,.30), rgba(139,92,246,.20)); }
.hero-card {
  background:
    radial-gradient(circle at 84% 12%, rgba(255,255,255,.38), transparent 11rem),
    radial-gradient(circle at 18% 88%, rgba(255,255,255,.24), transparent 14rem),
    linear-gradient(135deg, #5b5cf6 0%, #8b5cf6 25%, #ec4899 48%, #06b6d4 73%, #22c55e 100%);
}
.hero-visual::after {
  background: linear-gradient(135deg, #22c55e 0 20%, #14b8a6 21% 35%, #f59e0b 36% 47%, #fb7185 48% 61%, #8b5cf6 62% 76%, #06b6d4 77% 100%);
}
.stats-grid .stat-tile:nth-child(1) { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(238,242,255,.96)); }
.stats-grid .stat-tile:nth-child(2) { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,237,.96)); }
.stats-grid .stat-tile:nth-child(3) { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(253,242,248,.96)); }
.stats-grid .stat-tile:nth-child(4) { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(236,253,245,.96)); }
.stats-grid .stat-tile:nth-child(5) { background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(236,254,255,.96)); }
.stats-grid .stat-tile:nth-child(1)::after { background: linear-gradient(135deg, rgba(91,92,246,.28), rgba(6,182,212,.22)); }
.stats-grid .stat-tile:nth-child(2)::after { background: linear-gradient(135deg, rgba(245,158,11,.28), rgba(236,72,153,.20)); }
.stats-grid .stat-tile:nth-child(3)::after { background: linear-gradient(135deg, rgba(236,72,153,.24), rgba(139,92,246,.20)); }
.stats-grid .stat-tile:nth-child(4)::after { background: linear-gradient(135deg, rgba(20,184,166,.28), rgba(34,197,94,.20)); }
.stats-grid .stat-tile:nth-child(5)::after { background: linear-gradient(135deg, rgba(6,182,212,.25), rgba(245,158,11,.18)); }
.watch-card:hover,
.stat-tile:hover {
  transform: translateY(-2px);
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 24px 58px rgba(31, 41, 71, .12);
}
