:root {
  --page: #dfe5e8;
  --shell: rgba(248, 248, 247, 0.88);
  --card: rgba(255, 255, 255, 0.78);
  --card-solid: #ffffff;
  --ink: #090b12;
  --muted: #767982;
  --line: rgba(21, 27, 38, 0.08);
  --line-strong: rgba(21, 27, 38, 0.12);
  --blue: #0b7cff;
  --blue-2: #1d4ed8;
  --purple: #5636d9;
  --violet: #7253ff;
  --green: #0ba56b;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(41, 49, 60, 0.16);
  --soft-shadow: 0 12px 40px rgba(41, 49, 60, 0.10);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; color: var(--ink); font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif; background: var(--page); scroll-behavior: smooth; }
body { padding: 56px; overflow-x: hidden; }
.background-blur { position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 10% 10%, rgba(255,255,255,.95), transparent 26%), radial-gradient(circle at 95% 15%, rgba(206,215,222,.85), transparent 32%), linear-gradient(130deg, #eef2f4, #cfd8dd 45%, #edf1f3); filter: saturate(.95); }
.background-blur::after { content: ''; position: absolute; inset: 0; backdrop-filter: blur(12px); background: rgba(255,255,255,.18); }
.dashboard-shell { max-width: 1540px; margin: 0 auto; padding: 28px; border-radius: 14px; background: var(--shell); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(28px); }
.topbar { position: sticky; top: 16px; z-index: 50; display: grid; grid-template-columns: 300px 1fr minmax(330px, auto); align-items: center; gap: 22px; margin: -10px -10px 34px; padding: 10px; border-radius: 22px; background: rgba(248,248,247,.82); border: 1px solid rgba(255,255,255,.72); backdrop-filter: blur(24px); box-shadow: 0 18px 40px rgba(42,48,59,.09); }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 14px; font-size: 23px; font-weight: 700; letter-spacing: -0.04em; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; color: white; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: linear-gradient(145deg, var(--blue), var(--purple)); box-shadow: inset 0 -8px 16px rgba(255,255,255,.25); }
.nav-pills { justify-self: center; display: flex; gap: 4px; padding: 4px; min-width: 470px; justify-content: space-between; background: rgba(255,255,255,.46); border-radius: 999px; }
.nav-pills a { text-decoration: none; color: #3d414a; padding: 12px 24px; border-radius: 999px; font-size: 14px; }
.nav-pills a.active { color: var(--ink); background: white; box-shadow: 0 7px 24px rgba(33, 39, 49, .08); font-weight: 600; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.top-search { height: 44px; min-width: 250px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: white; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(42, 48, 59, .04); }
.top-search span { color: #111; font-size: 18px; }
.top-search input { border: 0; outline: 0; width: 100%; font: inherit; background: transparent; }
.icon-button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: white; box-shadow: 0 8px 22px rgba(42, 48, 59, .04); }
.account-chip { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 999px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #111827, #286cff); font-size: 11px; font-weight: 800; }
.account-chip strong { display: block; font-size: 14px; line-height: 1.15; }
.account-chip small { color: var(--muted); font-size: 12px; }
.main-layout { display: grid; grid-template-columns: 34% 1fr; gap: 24px; }
.hero-panel { min-height: 610px; position: relative; padding: 18px 22px 22px; border-radius: 28px; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; }
.muted-title { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
h1 { margin: 0; max-width: 540px; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.02; letter-spacing: -0.065em; }
.hero-copy p:last-child { color: #4e535d; margin-top: 14px; }
.orb-wrap { position: absolute; inset: 138px 26px 130px; display: grid; place-items: center; }
.performance-orb { width: min(310px, 72%); aspect-ratio: 1; border-radius: 45% 55% 48% 52%; display: grid; place-items: center; align-content: center; gap: 9px; color: white; background: radial-gradient(circle at 40% 28%, rgba(255,255,255,.95), rgba(94,139,255,.68) 16%, transparent 17%), radial-gradient(circle at 30% 30%, #56a1ff, #286cff 38%, #5135dd 70%, #151a44); box-shadow: inset 22px -28px 64px rgba(0,0,0,.2), inset -20px 28px 54px rgba(255,255,255,.27), 0 32px 64px rgba(42, 94, 210, .24); }
.performance-orb span { font-family: 'JetBrains Mono', monospace; letter-spacing: .18em; opacity: .82; font-size: 13px; }
.performance-orb strong { font-size: 56px; line-height: .9; letter-spacing: -.07em; }
.performance-orb small { opacity: .8; }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; padding: 13px; min-width: 178px; border-radius: 18px; background: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(18px); box-shadow: var(--soft-shadow); }
.floating-card span { display: block; color: var(--muted); font-size: 12px; }
.floating-card strong { display: block; margin-top: 4px; font-size: 18px; letter-spacing: -.04em; }
.spend-card { right: 0; top: 230px; }
.revenue-card { left: 8px; top: 292px; }
.purchase-card { right: 6px; top: 355px; }
.mini-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #18b36f, #0b7cff); }
.mini-icon.blue { background: linear-gradient(145deg, #0b7cff, #5636d9); }
.mini-icon.purple { background: linear-gradient(145deg, #7253ff, #111827); }
.quick-chips { position: absolute; left: 22px; right: 22px; bottom: 22px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.quick-chip { border: 1px solid var(--line-strong); background: rgba(255,255,255,.75); border-radius: 18px; padding: 13px 14px; min-height: 66px; display: flex; flex-direction: column; justify-content: center; cursor: pointer; transition: .2s ease; }
.quick-chip:hover, .quick-chip.active { border-color: rgba(11,124,255,.65); box-shadow: 0 10px 30px rgba(11,124,255,.10); transform: translateY(-1px); }
.quick-chip strong { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quick-chip small { color: var(--muted); margin-top: 8px; }
.right-stack { display: flex; flex-direction: column; gap: 22px; }
.filter-row { position: sticky; top: 94px; z-index: 40; display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 48px; padding: 8px; margin: -8px -8px 14px; border-radius: 22px; background: rgba(248,248,247,.74); border: 1px solid rgba(255,255,255,.66); backdrop-filter: blur(20px); box-shadow: 0 14px 32px rgba(42,48,59,.07); }
.pill-select { height: 46px; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.74); border: 1px solid var(--line); color: #222833; font-size: 13px; box-shadow: 0 8px 22px rgba(42, 48, 59, .04); }
.pill-select select { border: 0; background: transparent; outline: 0; font: inherit; max-width: 150px; }
.period-tabs { min-height: 46px; display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(42,48,59,.04); }
.period-btn { height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #4e535d; font: inherit; font-size: 12px; cursor: pointer; }
.period-btn.active { color: white; background: linear-gradient(135deg, #176bff, #5636d9); box-shadow: 0 8px 20px rgba(42,88,214,.18); }
.custom-range { height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); }
.custom-range input { width: 132px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 12px; color: #222833; }
.gradient-button { height: 46px; padding: 0 18px; border: 0; color: white; border-radius: 999px; background: linear-gradient(135deg, #176bff, #5636d9); font-weight: 600; box-shadow: 0 12px 28px rgba(42, 88, 214, .22); cursor: pointer; }
.analysis-card, .list-card, .schedule-card, .wide-card { background: var(--card); border: 1px solid rgba(255,255,255,.75); border-radius: 24px; box-shadow: var(--soft-shadow); backdrop-filter: blur(18px); }
.analysis-card { padding: 20px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.section-heading.compact { margin-bottom: 16px; }
.section-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #eef2f8; color: var(--blue); font-weight: 700; }
.live-pill { margin-left: auto; padding: 10px 16px; background: white; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi-card { padding: 16px; min-height: 142px; border-radius: 18px; background: white; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(42,48,59,.04); }
.kpi-label { display: flex; justify-content: space-between; color: var(--ink); font-size: 13px; }
.kpi-pill { color: #454a54; background: #f1f1f1; padding: 5px 8px; border-radius: 999px; font-size: 11px; }
.kpi-value { margin-top: 26px; color: var(--blue-2); font-size: 34px; font-weight: 500; letter-spacing: -.065em; }
.kpi-sub { margin-top: 8px; color: var(--muted); font-size: 12px; }
.lower-grid { display: grid; grid-template-columns: 1fr 48%; gap: 22px; }
.list-card, .schedule-card { padding: 20px; }
.campaign-list, .recommendations { display: flex; flex-direction: column; gap: 12px; max-height: 470px; overflow: auto; padding-right: 4px; }
.campaign-item, .rec { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; min-height: 72px; padding: 12px; border-radius: 999px; background: white; border: 1px solid var(--line); }
.campaign-item.scale { color: white; background: linear-gradient(135deg, #1374ff, #5636d9); }
.campaign-item.scale .campaign-sub, .campaign-item.scale .item-metric small { color: rgba(255,255,255,.72); }
.item-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #f1f4f7; color: var(--blue); font-weight: 700; }
.campaign-item.scale .item-icon { background: rgba(255,255,255,.9); color: var(--blue); }
.campaign-main { min-width: 0; }
.campaign-main strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campaign-sub { margin-top: 4px; color: var(--muted); font-size: 12px; }
.item-metric { text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.item-metric small { display: block; color: var(--muted); font-family: Inter, sans-serif; }
.side-cards { display: flex; flex-direction: column; gap: 22px; }
.rec { grid-template-columns: 12px 1fr; border-radius: 18px; align-items: start; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.rec-title { font-weight: 700; font-size: 13px; }
.rec-body { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.issue-card { min-height: 132px; position: relative; overflow: hidden; padding: 20px; color: white; border-radius: 24px; display: flex; justify-content: space-between; align-items: flex-start; background: radial-gradient(circle at 75% 30%, rgba(255,255,255,.28), transparent 20%), linear-gradient(135deg, #1d1e22, #020204); box-shadow: var(--soft-shadow); }
.issue-card p { max-width: 360px; margin: 10px 0 0; color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.45; }
.issue-arrow { width: 52px; height: 52px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.22); font-size: 24px; }
.wide-card { grid-column: 1 / -1; padding: 20px; }
#overview, #campaigns, #insights, #raw-table { scroll-margin-top: 176px; }
.trend-card canvas { width: 100%; max-height: 300px; }
.table-heading { justify-content: space-between; }
.table-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.leaderboard-sort { height: 46px; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 999px; background: white; border: 1px solid var(--line); color: #4e535d; font-size: 13px; box-shadow: 0 8px 22px rgba(42,48,59,.04); }
.leaderboard-sort select { border: 0; outline: 0; background: transparent; font: inherit; color: #222833; min-width: 150px; }
.table-wrap { overflow: auto; border-radius: 20px; background: white; border: 1px solid var(--line); }
table { width: 100%; min-width: 1120px; border-collapse: collapse; }
th, td { padding: 15px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: var(--muted); font-weight: 600; cursor: pointer; background: #fbfbfb; position: sticky; top: 0; }
td { color: #252a33; }
.campaign-name { max-width: 390px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; background: #f7f8fa; color: #3b414c; font-size: 11px; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.badge.paused::before { background: var(--muted); }
.action { font-weight: 700; }
.action.scale { color: var(--green); }
.action.watch { color: var(--amber); }
.action.pause { color: var(--red); }
.action.maintain { color: var(--blue); }
.mono { font-family: 'JetBrains Mono', monospace; }
@media (max-width: 1300px) { body { padding: 24px; } .topbar { top: 10px; grid-template-columns: 1fr; } .filter-row { top: 210px; } .nav-pills { justify-self: stretch; min-width: unset; } .top-actions { justify-self: stretch; flex-wrap: wrap; } .main-layout { grid-template-columns: 1fr; } .hero-panel { min-height: 620px; } #overview, #campaigns, #insights, #raw-table { scroll-margin-top: 310px; } }
@media (max-width: 860px) { .dashboard-shell { padding: 16px; } .kpi-grid, .lower-grid { grid-template-columns: 1fr; } .quick-chips { grid-template-columns: 1fr; position: static; margin-top: 390px; } .performance-orb strong { font-size: 44px; } .spend-card { right: 4px; top: 230px; } .revenue-card { left: 4px; top: 296px; } .purchase-card { right: 4px; top: 362px; } .nav-pills { overflow-x: auto; } .top-search { min-width: 100%; } }
