/* Offer cards: campaigns shown like promos. Ink card in both themes, two-tone uppercase headline (white, then the pay in red),
   one outlined button, and a tilted speaker photo that breaks out of the card top. Hover: the card lifts, the photo straightens
   and rises, the frame lights red, a sheen crosses the card and the button fills. */
.pcg { --spring: cubic-bezier(.34, 1.56, .64, 1); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px 16px; padding-top: 18px; }
.pc { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 40%; gap: 8px; min-height: 228px; padding: 20px 18px 20px 20px; border-radius: 18px;
  background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .07) 48%, transparent 60%) 160% 0 / 260% 100% no-repeat, linear-gradient(160deg, #1D1D21, #141416 60%);
  border: 1px solid rgb(255 255 255 / .09); color: #F5F5F7; text-decoration: none; box-shadow: 0 1px 0 rgb(255 255 255 / .05) inset, 0 18px 40px -28px rgb(0 0 0 / .7);
  transition: transform .5s var(--spring), border-color .3s, box-shadow .5s, background-position .9s cubic-bezier(.2, .8, .2, 1); }
.pc-x { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pc-h { display: grid; font: 800 clamp(17px, 1.35vw, 21px)/1.08 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.pc-h span:last-child { color: #FF3B47; }
.pc-d { font-size: 15px; line-height: 1.35; color: #E5E5EA; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-m { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12.5px; color: #8E8E93; }
.pc-m i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.pc-b { position: relative; overflow: hidden; isolation: isolate; margin-top: auto; align-self: flex-start; height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px;
  border: 1px solid rgb(255 255 255 / .3); font: 600 14px var(--body); color: #fff; transition: border-color .25s, color .25s; }
.pc-art { position: relative; min-height: 150px; }
.pc-fr { position: absolute; inset: 6% 2% 0 8%; border-radius: 18px; border: 1px solid rgb(255 255 255 / .14); background: radial-gradient(90% 80% at 50% 100%, rgb(232 32 47 / .22), transparent 70%), rgb(255 255 255 / .03);
  transition: border-color .35s, box-shadow .5s; }
.pc-ph { position: absolute; left: 16%; right: 8%; top: -22%; bottom: 14%; border-radius: 16px; background: #2A2A2E center 28% / cover;
  box-shadow: 0 26px 40px -18px rgb(0 0 0 / .85), 0 0 0 1px rgb(255 255 255 / .12); rotate: 5deg; transform-origin: 50% 90%;
  transition: rotate .6s var(--spring), translate .6s var(--spring), scale .6s var(--spring), box-shadow .5s; }
.pc-pl { position: absolute; left: 2%; bottom: 4%; display: flex; gap: 2px; padding: 5px 7px; border-radius: 99px; background: rgb(20 20 22 / .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); font-size: 14px; color: #fff; transition: translate .6s var(--spring); }
.pc.off { filter: saturate(.3); } .pc.off .pc-h span:last-child { color: #A1A1A6; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pc:hover { transform: translateY(-4px); border-color: rgb(255 255 255 / .2); background-position: -60% 0, 0 0; box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 28px 60px -28px rgb(232 32 47 / .55); }
  .pc:hover .pc-ph { rotate: -1.5deg; translate: 0 -8px; scale: 1.06; box-shadow: 0 34px 50px -20px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .2); }
  .pc:hover .pc-fr { border-color: rgb(255 59 71 / .55); box-shadow: 0 0 30px -6px rgb(232 32 47 / .45); }
  .pc:hover .pc-pl { translate: -4px -2px; }
  .pc:hover .pc-b { border-color: transparent; background: #E8202F; }
  .pc-b { transition: border-color .25s, color .25s, background .3s; }
  .pc:active { transform: translateY(-1px) scale(.99); }
}
.pc:focus-visible { outline: 2px solid #FF3B47; outline-offset: 3px; }
@media (max-width: 560px) { .pc { grid-template-columns: minmax(0, 1fr) 38%; min-height: 200px; padding: 16px; } .pc-d { font-size: 14px; } }

/* Public campaigns page: featured row sits on the dark wall */
.pc-feat { margin: 8px 0 28px; }

/* Rail: each group in its own rounded box, like a control panel */
.rail .rgrp { display: grid; gap: 2px; padding: 4px; border-radius: 14px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); }
.rail .rgrp + .rgrp { margin-top: 10px; }
.rail .grp + .rgrp { margin-top: 0; }
.rail .rgrp a.nv[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .08), inset 0 0 0 1px var(--line); }

/* Dashboard cards share the lift */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .dkpi, .kpi, .cstat > div, .cg-c { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .45s, border-color .3s; }
  .dkpi:hover, .kpi:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--signal) 35%, var(--line)); box-shadow: var(--card-sh), 0 18px 40px -24px color-mix(in srgb, var(--signal) 45%, transparent); }
}

/* Route changes: rail, top bar and tab bar stay put; only the page content fades */
.rail { view-transition-name: rail; } .appbar { view-transition-name: appbar; } .tabbar { view-transition-name: tabbar; }
::view-transition-group(rail), ::view-transition-group(appbar), ::view-transition-group(tabbar) { animation: none; }
::view-transition-old(rail), ::view-transition-old(appbar), ::view-transition-old(tabbar) { display: none; }
::view-transition-new(rail), ::view-transition-new(appbar), ::view-transition-new(tabbar) { animation: none; }
