:root {
  --bg: #0f1015;
  --panel: #17181f;
  --panel-2: #1d1f27;
  --panel-3: #242731;
  --text: #f4f5f7;
  --muted: #999eaa;
  --muted-2: #6f7582;
  --border: rgba(255,255,255,.08);
  --accent: #ff5b24;
  --accent-soft: rgba(255,91,36,.16);
  --green: #26cf7c;
  --green-soft: rgba(38,207,124,.16);
  --red: #ff4d6d;
  --red-soft: rgba(255,77,109,.16);
  --blue: #4d83ff;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar: 76px;
  --ease: 180ms ease;
}

html[data-theme="light"] {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #f7f8fb;
  --panel-3: #eceff4;
  --text: #16171c;
  --muted: #6f7582;
  --muted-2: #8d93a0;
  --border: rgba(18,20,26,.08);
  --shadow: 0 18px 50px rgba(33,39,55,.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  background: radial-gradient(circle at 76% 8%, rgba(255,91,36,.08), transparent 27%), var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.strong { font-weight: 700; }
.money { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(137,143,157,.28); border-radius: 20px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


/* SYNCORA_GLOBAL_PRODUCT_FOOTER */
.global-product-footer {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 850;
  max-width: calc(100vw - 36px);
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--muted-2);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .015em;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.global-product-footer span {
  color: var(--accent);
  font-weight: 780;
}

html[data-theme="light"] .global-product-footer {
  background: color-mix(in srgb, white 78%, transparent);
}

/* Su mobile resta sopra la navigazione inferiore della piattaforma. */
@media (max-width: 520px) {
  .global-product-footer {
    right: 16px;
    bottom: 86px;
    max-width: calc(100vw - 24px);
    font-size: .64rem;
  }

  /* Nel login non esiste la barra di navigazione inferiore. */
  body:has(.auth-page) .global-product-footer {
    bottom: 14px;
  }
}

@media (max-width: 380px) {
  .global-product-footer {
    right: 12px;
    padding: 4px 8px;
  }
}
