/* Arena: the app's dark-only look. Charcoal panels with crisp hairlines, boxed menu groups with a sliding glow line,
   a menu that folds to icons, a light beam that runs around card borders on hover, and fixture-style campaign tiles. */
:root { --canvas: #111113; --card-r: 14px; --red-glow: #FF3B47; --spring: cubic-bezier(.34, 1.56, .64, 1); --card-sh: none; }
.shell { transition: grid-template-columns .45s cubic-bezier(.2, .8, .2, 1); }
.rail { background: #111113; border-right-color: #232327; }
.appbar { background: color-mix(in srgb, #111113 80%, transparent); border-bottom-color: #232327; }
.panel, .kpi, .dkpi, .dcard, .dcard2, .pcard, .sheet, .sup, .ern, .wh-card, .wh-task, .ctop, .un-card, .queue button, .cg-c, .chd, .cstat, .cw-main, .cw-sum { background: #1C1C1F; border-color: #2A2A2F; }

/* ---------- Menu groups: boxed, with a glow line that slides to the hovered item ---------- */
.rail .rgrp { position: relative; background: #18181B; box-shadow: inset 0 0 0 1px #2A2A2F; border-radius: 12px; }
.rail .rgrp::after { content: ""; position: absolute; left: -1px; top: var(--gy, 0); width: 2px; height: var(--gh, 0); border-radius: 2px; pointer-events: none;
  background: linear-gradient(transparent, var(--red-glow) 30%, #FF8A92 50%, var(--red-glow) 70%, transparent); box-shadow: 0 0 10px 1px rgb(232 32 47 / .7);
  opacity: 0; transition: top .4s var(--spring), height .3s, opacity .3s; }
.rail .rgrp:has([aria-current=page])::after { opacity: .85; }
.rail .rgrp:hover::after { opacity: 1; }
.rail .rgrp a.nv { position: relative; }
.rail .rgrp a.nv:hover { background: #232327; color: #fff; }
.rail .rgrp a.nv[aria-current="page"] { background: #26262B; box-shadow: inset 0 0 0 1px #34343A; color: #fff; }
.rail .rgrp a.nv[aria-current="page"] i { color: var(--red-glow); }
.rail .brand { justify-content: space-between; gap: 8px; }
.rcol { width: 34px; height: 34px; flex: none; border: 0; border-radius: 10px; display: grid; place-items: center; background: transparent; color: #8E8E93; font-size: 19px; cursor: pointer; transition: background .2s, color .2s; }
.rcol:hover { background: #232327; color: #fff; }

/* Folded menu (desktop only): icons, tooltips from the title attribute */
@media (min-width: 961px) {
  .rail-min .shell { grid-template-columns: 84px minmax(0, 1fr); }
  .rail-min .rail { padding-inline: 12px; overflow-x: hidden; }
  .rail-min .rail .brand { flex-direction: column; padding: 8px 0 12px; }
  .rail-min .rail .brand .wm, .rail-min .rail .grp, .rail-min .rail .acct > :not(.av), .rail-min .rail-card, .rail-min .rail .acct .caret { display: none; }
  .rail-min .rail .acct { justify-content: center; padding: 6px; }
  .rail-min .rail a.nv { justify-content: center; padding: 0; font-size: 0; gap: 0; }
  .rail-min .rail a.nv i { font-size: 21px; }
  .rail-min .rail a.nv .ct { position: absolute; top: 3px; right: 5px; padding: 0 5px; font-size: 10px; }
  .rail-min .rail .rgrp + .rgrp { margin-top: 8px; }
  .rail-min .rail .bottom a { justify-content: center; font-size: 0; } .rail-min .rail .bottom a i { font-size: 20px; }
}

/* ---------- Beam: a light runs around the border while hovered ---------- */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pc, .cc, .cg-c, .dkpi { position: relative; }
.pc::after, .cc::after, .cg-c::after, .dkpi::after {
  content: ""; position: absolute; inset: -1px; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--beam), transparent 0 62%, rgb(232 32 47 / .0) 66%, var(--red-glow) 78%, #FFD1D4 82%, var(--red-glow) 86%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity .35s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pc:hover::after, .cc:hover::after, .cg-c:hover::after, .dkpi:hover::after { opacity: 1; animation: beam 2.4s linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .pc:hover::after, .cc:hover::after, .cg-c:hover::after, .dkpi:hover::after { opacity: .9; } }
@keyframes beam { to { --beam: 360deg; } }

/* ---------- Clipper campaigns page ---------- */
.ch-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 260px; padding: clamp(24px, 3vw, 40px); border-radius: 18px;
  background: radial-gradient(70% 120% at 0% 0%, rgb(232 32 47 / .16), transparent 60%), #18181B; border: 1px solid #2A2A2F; }
.ch-hx { position: relative; z-index: 1; display: grid; align-content: center; gap: 14px; max-width: 560px; }
.ch-hero h1 { font: 800 clamp(30px, 3.4vw, 46px)/1.02 var(--display); letter-spacing: -.035em; color: #fff; }
.ch-hero h1 em { font-style: normal; color: var(--red-glow); display: block; }
.ch-hero h1 .r1, .ch-hero h1 .r2 { font-weight: inherit; }
.ch-hero p { font-size: 15.5px; line-height: 1.55; color: #A1A1A6; max-width: 34em; }
.ch-ha { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ch-ha .btn { height: 46px; padding: 0 20px; border-radius: 12px; font-weight: 600; }
.ch-ha .btn:not(.primary) { background: #26262B; border-color: transparent; color: #fff; }
.ch-pat { position: absolute; inset: -40% -20% -40% 42%; display: grid; align-content: center; gap: 6px; rotate: -24deg; pointer-events: none;
  font: 900 clamp(34px, 4vw, 56px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .07);
  -webkit-mask: linear-gradient(90deg, transparent, #000 30%); mask: linear-gradient(90deg, transparent, #000 30%); }
.ch-pat span:nth-child(odd) { translate: -18% 0; } .ch-pat span:nth-child(3n) { -webkit-text-stroke-color: rgb(232 32 47 / .14); }
@media (prefers-reduced-motion: no-preference) { .ch-pat { animation: pat 40s linear infinite; } @keyframes pat { to { translate: -12% 0; } } }
.ch-off { margin-top: 4px; }
.ch-q { margin-top: 22px; height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 12px; background: #0C0C0E; border: 1px solid #2A2A2F; color: #8E8E93; transition: border-color .2s, box-shadow .2s; }
.ch-q:focus-within { border-color: #4A4A52; box-shadow: 0 0 0 4px rgb(255 255 255 / .05); }
.ch-q i { font-size: 20px; } .ch-q input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: #fff; font-size: 15.5px; } .ch-q input:focus { outline: none; } .ch-q input::placeholder { color: #6E6E73; }
.ch-tabs { margin-top: 18px; display: inline-flex; gap: 4px; padding: 5px; border-radius: 14px; background: #0C0C0E; border: 1px solid #232327; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ch-tabs button { flex: none; height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: 10px; background: none; color: #A1A1A6; font: 600 14.5px var(--body); cursor: pointer; transition: background .25s, color .25s; }
.ch-tabs button:hover { color: #fff; }
.ch-tabs button[aria-pressed="true"] { background: #26262B; color: #fff; box-shadow: inset 0 0 0 1px #34343A; }
.ch-tabs button[aria-pressed="true"] i { color: var(--red-glow); }
.ch-tabs i { font-size: 18px; }
.ch-sec { margin-top: 30px; }
.ch-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ch-h h2 { display: flex; align-items: center; gap: 10px; font: 700 21px var(--display); letter-spacing: -.02em; color: #fff; }
.ch-h h2 i { color: var(--red-glow); font-size: 20px; }
.ch-h h2 .r1, .ch-h h2 .r2 { font-weight: inherit; }
.ch-n { font: 500 12.5px var(--mono); color: #8E8E93; padding: 3px 9px; border-radius: 99px; background: #1C1C1F; }
.ch-nav { display: flex; gap: 6px; }
.ch-nav button { width: 40px; height: 40px; border-radius: 11px; border: 0; background: #1C1C1F; color: #fff; display: grid; place-items: center; font-size: 16px; cursor: pointer; transition: background .2s; }
.ch-nav button:hover { background: #2A2A2F; }
.ch-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 32px) / 3)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; margin: -2px; }
.ch-row::-webkit-scrollbar { display: none; }
.ch-row > * { scroll-snap-align: start; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ch-none { color: #8E8E93; padding: 24px 0; }

/* Campaign tile */
.cc { display: grid; grid-template-rows: auto 1fr auto; border-radius: 14px; background: #1C1C1F; border: 1px solid #2A2A2F; color: #fff; text-decoration: none; overflow: visible;
  transition: transform .45s var(--spring), border-color .3s, background .3s; }
.cc[hidden] { display: none; }
.cc:hover { transform: translateY(-3px); background: #202024; }
/* 16:9 thumbnail, YouTube style: full-bleed photo, time pill top left, length bottom right, budget bar along the bottom edge */
.cc-th { position: relative; display: block; aspect-ratio: 16 / 9; margin: 6px 6px 0; border-radius: 10px; overflow: hidden; background: #2A2A2E center 30% / cover;
  transition: background-size .6s var(--spring); }
.cc-th::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .35), transparent 32%, transparent 62%, rgb(0 0 0 / .5)); transition: opacity .3s; }
.cc-th > * { position: absolute; z-index: 1; }
.cc-pill { top: 8px; left: 8px; height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 7px; background: rgb(12 12 14 / .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 12px var(--body); color: #F5F5F7; }
.cc-pill.hot { background: rgb(232 32 47 / .9); color: #fff; }
.cc-dur { right: 8px; bottom: 9px; padding: 2px 6px; border-radius: 5px; background: rgb(0 0 0 / .78); font-size: 11.5px; color: #fff; }
.cc-bar { left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / .22); }
.cc-bar i { display: block; height: 100%; background: var(--red-glow); }
.cc:hover .cc-th::after { opacity: .6; }
.cc-pl { display: inline-flex; gap: 5px; margin-left: auto; color: #8E8E93; font-size: 14px; }
.cc-mid { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px 14px; }
.cc-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--body); color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .12); }
.cc-t { min-width: 0; display: grid; gap: 3px; }
.cc-t b { font-size: 16px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-t small { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #8E8E93; min-width: 0; } .cc-t small i { color: var(--red-glow); font-size: 13px; }
.cc-odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; border-top: 1px solid #2A2A2F; }
.cc-odds > span { display: grid; justify-items: center; gap: 2px; padding: 9px 4px; border-radius: 9px; background: #141416; transition: background .25s, color .25s; }
.cc-odds small { font-size: 12px; color: #8E8E93; } .cc-odds b { font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; }
.cc:hover .cc-odds > span:first-child { background: rgb(232 32 47 / .16); }
.cc-odds > span:hover { background: #2A2A2F; }
.cc.off { opacity: .55; }

@media (max-width: 960px) { .ch-hero { grid-template-columns: minmax(0, 1fr); } .ch-pat { inset: -60% -40% -60% 20%; opacity: .7; } .ch-row { grid-auto-columns: minmax(280px, 78%); } }
@media (max-width: 760px) { .ch-hero { padding: 22px 18px; min-height: 0; } .ch-tabs { display: flex; } .ch-nav { display: none; } .ch-row { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; } }

/* Public pages: wall cards get the same beam; home page campaign row */
.cr .vc { position: relative; }
.cr .vc::before { content: ""; position: absolute; inset: -1px; z-index: 3; border-radius: 16px; padding: 1px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--beam), transparent 0 62%, var(--red-glow) 78%, #FFD1D4 82%, var(--red-glow) 86%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); transition: opacity .35s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .cr .vc:hover::before { opacity: 1; animation: beam 2.4s linear infinite; } }
.lx-camps .pcg { max-width: 1180px; margin: 36px auto 0; text-align: left; }
.lx-camps .close-cta { margin-top: 32px; }

/* Home hero "lowd.": glossy red like the megaphone (light top, deep red base), with a sheen that sweeps across the letters every few seconds */
.cr .spiral .sp, .cr .spiral .sp:nth-child(n) {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(105deg, transparent 36%, rgb(255 255 255 / .16) 50%, transparent 64%), linear-gradient(180deg, #FF8F97 0%, #FF4552 22%, #E8202F 52%, #B3101C 82%, #8A0A14 100%);
  background-size: 260% 100%, 100% 100%; background-position: 160% 0, 0 0; background-repeat: no-repeat;
  filter: drop-shadow(0 .04em .02em rgb(120 0 10 / .55)) drop-shadow(0 .12em .3em rgb(232 32 47 / .35)); }
@media (prefers-reduced-motion: no-preference) {
  .cr .spiral .sp { animation: louder2 .8s cubic-bezier(.2, 1.4, .35, 1) both, lowd-shine 9s ease-in-out infinite;
    animation-delay: calc(1.2s + var(--k) * .13s), calc(2.6s + var(--k) * .09s); }
}
@keyframes lowd-shine { 0%, 62% { background-position: 160% 0, 0 0; } 90%, 100% { background-position: -60% 0, 0 0; } }
