/* ============================================================================
   UPLIFT FRAMED TOKENS — the framed cut's colour-and-effects language,
   defined ONCE here. CJ's order 2026-12-02 ~21:57: "make all the platforms
   have the affects and colors and stuff" (the framed-screen cut he called
   perfect; the cut itself is an approved look, NOT a device frame imposed
   on every page — this file carries its LANGUAGE only).
   Central source: https://airesourcespro.com/assets/css/uplift-framed.css
   Every platform links this file after its own sheets / after
   uplift-theme.css. Where an app's architecture genuinely prevents the
   link, its worker copies these VALUES verbatim into the app's own sheet
   and names this file as the source. Never restyle the values per app.
   Effects with restraint: motion is subtle and meaningful only; every
   animation dies under prefers-reduced-motion.
   ============================================================================ */
:root{
  /* ground + panels (the cut's deep navy family) */
  --uf-ground:#04070C;
  --uf-bg:#05080D;
  --uf-panel:#0A0E14;
  --uf-panel2:#0D1420;
  --uf-panel-grad:linear-gradient(180deg,#0A0E14,#0D1420);
  /* edges + steel */
  --uf-edge:#24405A;
  --uf-edge-soft:#1C2B3A;
  --uf-steel:#2C4967;
  /* glow family (house cyan #00E5FF) */
  --uf-cyan:#00E5FF;
  --uf-cyan-hi:#19E3FF;
  --uf-cyan-deep:#00A8C9;
  --uf-magenta:#FF2EA6;
  --uf-btn-grad:linear-gradient(180deg,#19E3FF,#00A8C9);
  --uf-on-cyan:#03141B;
  /* ink */
  --uf-text:#E6EDF3;
  --uf-muted:#8FA3B5;
  /* the framed signatures */
  --uf-edge-light:rgba(160,240,255,.30);          /* light catching the top edge */
  --uf-glow-in:inset 0 0 60px rgba(0,229,255,.05); /* calm inner glow */
  --uf-shadow-card:inset 0 1px 0 rgba(160,240,255,.30), inset 0 0 60px rgba(0,229,255,.05), 0 18px 44px rgba(0,0,0,.5), 0 0 34px rgba(0,229,255,.10);
  --uf-shadow-card-hover:inset 0 1px 0 rgba(160,240,255,.38), inset 0 0 60px rgba(0,229,255,.07), 0 18px 44px rgba(0,0,0,.5), 0 0 44px rgba(0,229,255,.22);
  --uf-radius-card:14px;
  --uf-radius-frame:28px;
}

/* --- Lit cards: gradient panel, framed edge, light-catching top edge,
       layered soft shadow. Same generic card set the house theme dresses. */
.card,.panel,.box,.tile,.widget,.module{
  background:linear-gradient(180deg,#0A0E14,#0D1420);
  border:1px solid #24405A;
  border-radius:14px;
  box-shadow:inset 0 1px 0 rgba(160,240,255,.30), inset 0 0 60px rgba(0,229,255,.05), 0 18px 44px rgba(0,0,0,.5), 0 0 34px rgba(0,229,255,.10);
}
.card:hover,.panel:hover,.tile:hover,.widget:hover,.module:hover{
  border-color:#00E5FF;
  box-shadow:inset 0 1px 0 rgba(160,240,255,.38), inset 0 0 60px rgba(0,229,255,.07), 0 18px 44px rgba(0,0,0,.5), 0 0 44px rgba(0,229,255,.22);
}

/* --- The framed piece: ONE hero/framed element per surface may carry the
       deep 28px frame (the dashboard's framed finish is the reference).
       This is a class a worker adds deliberately — never automatic. */
.uf-frame{
  position:relative;
  border:1px solid #24405A;
  border-radius:28px;
  background:linear-gradient(180deg,#04070C,#05080D);
  box-shadow:inset 0 1px 0 rgba(160,240,255,.30), inset 0 0 90px rgba(0,229,255,.045), 0 24px 60px rgba(0,0,0,.5), 0 0 44px rgba(0,229,255,.07);
}

/* --- Travelling beam of light around a framed piece's border
       (the front-face beam, 7s — for surfaces whose sheets do not already
       carry .uplift-beam from uplift-theme.css; use ONE per surface). */
@property --uf-beam{ syntax:"<angle>"; initial-value:0deg; inherits:false; }
.uf-beam{ position:relative; }
.uf-beam::before{
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background:conic-gradient(from var(--uf-beam,0deg), transparent 0 68%, rgba(0,229,255,.9) 82%, rgba(255,46,166,.55) 90%, transparent 100%);
  -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, linear-gradient(#000 0 0);
  mask-composite:exclude; pointer-events:none;
  animation:uf-beam-spin 7s linear infinite;
}
@keyframes uf-beam-spin{ to{ --uf-beam:360deg; } }

/* --- Shine sweep across ONE hero headline per surface
       (same motion as .uplift-shine, for sheets that do not carry it). */
.uf-shine{
  background:linear-gradient(90deg,#fff 0%,#fff 35%,#00E5FF 68%,#7EBCE2 100%);
  background-size:240% 100%; background-position:0% 50%;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation:uf-shine-sweep 7s ease-in-out infinite alternate;
}
@keyframes uf-shine-sweep{ to{ background-position:100% 50%; } }

/* --- Breathing LIVE dot: a worker adds .uf-live-dot to a surface's REAL
       live/status indicator only (never a decorative fake). */
.uf-live-dot{
  display:inline-block; width:9px; height:9px; border-radius:50%;
  background:#3DDC97; vertical-align:middle;
  box-shadow:0 0 0 0 rgba(61,220,151,.55);
  animation:uf-breathe 2.4s ease-in-out infinite;
}
@keyframes uf-breathe{
  0%{ box-shadow:0 0 0 0 rgba(61,220,151,.55); }
  50%{ box-shadow:0 0 0 6px rgba(61,220,151,0); }
  100%{ box-shadow:0 0 0 0 rgba(61,220,151,0); }
}

/* --- Moving money bars: ONLY on bars that chart real moving data
       (a worker adds .uf-bar to each real data bar; delays stagger). */
.uf-bar{ transform-origin:bottom; animation:uf-bar-sway 3.4s ease-in-out infinite alternate; }
.uf-bar:nth-child(2){ animation-delay:.35s; } .uf-bar:nth-child(3){ animation-delay:.7s; }
.uf-bar:nth-child(4){ animation-delay:1.05s; } .uf-bar:nth-child(5){ animation-delay:1.4s; }
.uf-bar:nth-child(6){ animation-delay:1.75s; } .uf-bar:nth-child(7){ animation-delay:2.1s; }
.uf-bar:nth-child(8){ animation-delay:2.45s; }
@keyframes uf-bar-sway{ from{ transform:scaleY(.94); } to{ transform:scaleY(1.03); } }

/* --- Primary buttons keep the house cyan gradient, with the framed glow. */
.btn-primary,.button-primary,.btn.primary{
  box-shadow:0 0 18px rgba(0,229,255,.18), inset 0 1px 0 rgba(255,255,255,.35);
}

@media (prefers-reduced-motion: reduce){
  .uf-beam::before,.uf-shine,.uf-live-dot,.uf-bar{ animation:none !important; }
}

/* === Animation pack (#669 remainder, 2026-12-03): scroll reveal, floating
   frame, gradient drift. House code, kinds recreated and bettered; motion
   serves readability — reading text never animates; reduced-motion = still. */
.uf-reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.uf-reveal.uf-in{opacity:1;transform:none}
.uf-float{animation:ufFloat 7s ease-in-out infinite}
@keyframes ufFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.uf-drift{background-size:200% 100%;animation:ufDrift 9s ease-in-out infinite alternate}
@keyframes ufDrift{from{background-position:0% 50%}to{background-position:100% 50%}}
@media (prefers-reduced-motion:reduce){.uf-reveal{opacity:1;transform:none;transition:none}.uf-float,.uf-drift{animation:none}}
