/* Account Analyser: the "Bold" look - a trial second copy of the design (user 2026-11-14: "more extreme colouring,
   especially the background gradient; thin border lines on the boxes, fixed or gradient, or only corners with shades;
   colour combinations of the current colour with a nice dark purple; the target is more charm").
   Active only with <html data-look="bold"> (?look=bold, or the sparkle button in the top bar; remembered as aa-look).
   It changes tokens and decoration only, never the layout. The classic look stays the default. */

/* ---------- palette (cyan + deep violet + the card edge) and the plain-card surfaces: resolved into kq-style.css
   (plan 26, 2026-11-18); this file keeps only the Edge decoration rules ---------- */



/* ---------- cards: glass surface + a thin gradient edge, bright at the top-left corner, a magenta hint at the far
   corner, nearly gone along the middle (the "corners with shades" border) ---------- */
:root[data-look="bold"] .card{
  border:1px solid transparent;
  background:linear-gradient(var(--surface),var(--surface)) padding-box,var(--edge) border-box;
  -webkit-backdrop-filter:blur(14px) saturate(1.2); backdrop-filter:blur(14px) saturate(1.2);
}
:root[data-look="bold"] .card::before{   /* a soft corner glow inside the top-left corner */
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(260px 140px at 0% 0%,rgba(47,224,242,.10),transparent 70%),radial-gradient(260px 160px at 100% 100%,rgba(124,77,255,.10),transparent 70%);
}
:root[data-look="bold"][data-theme="light"] .card::before{
  background:radial-gradient(260px 140px at 0% 0%,rgba(34,184,214,.07),transparent 70%),radial-gradient(260px 160px at 100% 100%,rgba(124,77,255,.06),transparent 70%);
}
:root[data-look="bold"] .card>*{position:relative}
:root[data-look="bold"] .card:hover{box-shadow:var(--shadow-2)}

/* top bar and rail: glass over the glow */
:root[data-look="bold"] .top{background:color-mix(in srgb,var(--bg) 60%,transparent);border-bottom-color:var(--line)}
:root[data-look="bold"] .rail{background:transparent}

/* headings: the big title and the score in the gradient, section rules as gradient hairlines */
:root[data-look="bold"] h1{background:linear-gradient(100deg,var(--text) 0%,var(--text) 55%,var(--violet-2) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
:root[data-look="bold"][data-theme="light"] h1{background:linear-gradient(100deg,var(--text) 0%,var(--text) 55%,var(--accent-deep) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
:root[data-look="bold"] .sec-h::after{background:linear-gradient(90deg,rgba(47,224,242,.55),rgba(124,77,255,.35) 35%,transparent 80%)}

/* buttons and inputs sit on the glass */
:root[data-look="bold"] .btn,:root[data-look="bold"] .fsel-btn,:root[data-look="bold"] .tools input{background:var(--surface-2);border-color:var(--line)}
:root[data-look="bold"] .btn:hover,:root[data-look="bold"] .fsel-btn:hover{border-color:var(--line-strong)}

/* KPI net figure: a faint glow under positive / negative results */
:root[data-look="bold"] .kpi .val.pos{text-shadow:0 0 24px rgba(52,227,160,.25)}
:root[data-look="bold"] .kpi .val.neg{text-shadow:0 0 24px rgba(255,92,134,.22)}
:root[data-look="bold"][data-theme="light"] .kpi .val.pos,:root[data-look="bold"][data-theme="light"] .kpi .val.neg{text-shadow:none}

@media print{:root[data-look="bold"] .card{background:#fff;border:1px solid #ddd;backdrop-filter:none}:root[data-look="bold"] .card::before{display:none}}

/* ---------- the "Edge" look (trial 3, user 2026-11-14: "the rest is okay, only the boxes should have the plain colouring
   just like v1, yet the border of the boxes stays"): Bold everywhere, but cards and their inner chips take the classic
   solid surfaces (no glass, no corner glow); the gradient edge stays. Active with <html data-look="bold" data-cards="plain">
   (?look=edge). ---------- */


:root[data-look="bold"][data-cards="plain"] .card{-webkit-backdrop-filter:none;backdrop-filter:none}
:root[data-look="bold"][data-cards="plain"] .card::before{display:none}

/* ---------- bars (Bold and Edge, user 2026-11-14: "the upper bar and the left panel do not look like a bar because of
   their plain colouring; the left bar is wider than needed"): the top bar is a tinted glass panel with a gradient
   hairline under it and a soft shadow; on desktop the rail is a floating glass pill, only as tall as its buttons,
   with the same gradient edge as the cards ---------- */
:root[data-look="bold"] .top{
  background:linear-gradient(90deg,rgba(47,224,242,.07),rgba(124,77,255,.10) 55%,rgba(178,107,255,.06)),color-mix(in srgb,var(--surface) 82%,transparent);
  border-bottom:0;box-shadow:0 10px 30px -18px rgba(40,10,120,.7);
  -webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3);
}
:root[data-look="bold"] .top::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,rgba(47,224,242,.0),rgba(47,224,242,.55) 12%,rgba(124,77,255,.55) 55%,rgba(232,107,216,.35) 85%,rgba(232,107,216,0))}
:root[data-look="bold"][data-theme="light"] .top{
  background:linear-gradient(90deg,rgba(34,184,214,.07),rgba(124,77,255,.08) 55%,rgba(232,107,216,.05)),rgba(255,255,255,.78);
  box-shadow:0 8px 24px -16px rgba(92,52,220,.35)}
@media screen and (min-width:768px){
  :root[data-look="bold"] .rail{
    top:calc(var(--top) + 16px);bottom:auto;left:10px;width:54px;padding:8px 0;gap:4px;border-radius:18px;
    border:1px solid transparent;
    background:linear-gradient(180deg,rgba(124,77,255,.10),rgba(47,224,242,.05)) padding-box,linear-gradient(var(--surface),var(--surface)) padding-box,var(--edge) border-box;
    box-shadow:var(--card-shadow);
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  }
  :root[data-look="bold"] .rail a{width:40px;height:40px;border-radius:12px}
  :root[data-look="bold"] .rail a.on{background:var(--grad);color:#fff;box-shadow:0 6px 16px -6px rgba(110,91,255,.7)}
  :root[data-look="bold"] .rail a.on::before{display:none}
  :root[data-look="bold"].bar-hidden .rail{top:16px}   /* the pill follows the bar up when it hides */
}
@media screen and (max-width:767px){
  :root[data-look="bold"] .rail{background:color-mix(in srgb,var(--surface) 86%,transparent);border-bottom:1px solid var(--line)}
}
