/* Area Borsa — landing iscrizione + login a destra */
@keyframes borsa-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes landing-feed-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes som-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.15); filter: brightness(1.35); }
}
@keyframes win-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(93, 191, 160, 0); }
  50% { box-shadow: 0 0 28px rgba(93, 191, 160, 0.18); }
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes phrase-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-landing {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ticker landing */
#borsa-access .landing-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
}

/* Area personale: menu+ticker in un blocco fisso attaccato in cima */
.borsa-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
}
.borsa-chrome .header {
  position: relative;
  top: auto;
  inset: auto;
  width: 100%;
}
.borsa-chrome .header-inner {
  padding: 0.55rem 0;
  min-height: 52px;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow: visible;
}
.borsa-chrome .logo {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  font-size: 0.88rem;
}
.borsa-chrome .nav-main {
  flex-wrap: nowrap;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.borsa-chrome .nav-main a {
  padding: 0.38rem 0.48rem;
  font-size: 0.68rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.borsa-chrome #borsa-user-pill,
.borsa-chrome .status-pill,
.borsa-chrome #borsa-logout {
  flex-shrink: 0;
}
.borsa-chrome .app-ticker {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  display: flex !important;
}
body.borsa-unlocked,
html.borsa-has-session {
  --header-h: 52px;
  --chrome-h: calc(var(--theme-h) + var(--header-h) + var(--ticker-h) + var(--journey-h, 0px));
  --nav-offset: var(--chrome-h);
}

body.borsa-unlocked #landing-ticker-bar,
body.borsa-unlocked #landing-ticker-tooltip,
html.borsa-has-session #landing-ticker-bar,
html.borsa-has-session #landing-ticker-tooltip {
  display: none !important;
}

/* Sessione già attiva: niente flash landing prima del gate JS */
html.borsa-has-session #borsa-access {
  display: none !important;
}
html.borsa-has-session #borsa-chrome[hidden],
html.borsa-has-session #borsa-protected[hidden] {
  display: block !important;
}
#borsa-chrome[hidden] { display: none !important; }

/* Menu hamburger prima del wrap — evita che «Guida» copra il titolo ILLOGICO */
@media (max-width: 1120px) {
  .borsa-chrome .nav-main {
    display: none;
  }
  .borsa-chrome .nav-main.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-offset);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 1.25rem 1.15rem 2rem;
    background: rgba(32, 42, 54, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 195;
    gap: 0.4rem;
    overflow-y: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
  }
  .borsa-chrome .nav-main.open a {
    font-size: 1.05rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid transparent;
    white-space: normal;
  }
  .borsa-chrome .nav-main.open a.is-active {
    border-color: rgba(93, 191, 160, 0.35);
  }
  .borsa-chrome .menu-btn {
    display: flex;
    margin-left: auto;
  }
  .borsa-chrome .status-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  .borsa-chrome .header-inner {
    padding: 0.45rem 0;
    min-height: 48px;
  }
  body.borsa-unlocked,
  html.borsa-has-session {
    --header-h: 48px;
    --chrome-h: calc(var(--theme-h) + var(--header-h) + var(--ticker-h) + var(--journey-h, 0px));
    --nav-offset: var(--chrome-h);
  }
}

.borsa-access-gate {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--theme-h) + var(--ticker-h) + clamp(1.25rem, 3vw, 2rem)) clamp(1rem, 3vw, 2rem) 3rem;
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, var(--vignette-b), transparent 55%),
    radial-gradient(ellipse 55% 45% at 92% 18%, var(--vignette-a), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, var(--gold-soft), transparent 45%),
    var(--body-bg);
  overflow: hidden;
}

.landing-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.landing-scan-bar {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.5rem 0.85rem;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8fa3b8;
  animation: borsa-fade-up 0.5s ease both;
}
.landing-scan-bar strong { color: #dce8f4; font-weight: 700; }
.landing-scan-sep { opacity: 0.35; user-select: none; }
.landing-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--emerald);
  font-weight: 700;
}
.landing-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(93, 191, 160, 0.65);
}
.landing-live-dot.blink { animation: live-blink 1s ease infinite; }
.landing-last.gold { color: #ffc107; }
.landing-last.silver { color: #5ed4f0; }

.reveal-landing {
  opacity: 0;
  animation: reveal-landing 0.65s ease forwards;
  animation-delay: var(--d, 80ms);
}

.borsa-access-lead-sub {
  font-size: clamp(0.82rem, 1.5vw, 0.92rem);
  color: #8fa3b8;
  line-height: 1.6;
  max-width: 38rem;
  margin-top: 0.5rem;
}
.borsa-access-lead-sub strong { color: #b0bec8; }

#landing-phrase {
  color: var(--emerald);
  font-weight: 600;
  display: inline-block;
  min-width: 12ch;
  transition: opacity 0.3s, transform 0.3s;
}
#landing-phrase.phrase-out { opacity: 0; transform: translateY(-4px); }
#landing-phrase.phrase-in { animation: phrase-in 0.4s ease both; }

/* Mini SOM preview */
.landing-som-wrap {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(12, 18, 28, 0.55);
  border: 1px solid rgba(107, 159, 212, 0.2);
}
.landing-som-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.landing-som-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
  font-weight: 700;
}
.landing-som-hint { font-size: 0.65rem; color: #6d8094; }
.landing-som-stage { display: flex; flex-direction: column; gap: 0.55rem; }
.landing-som-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  aspect-ratio: 1.6;
  max-width: 420px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(8, 12, 20, 0.65);
  border: 1px solid rgba(70, 95, 125, 0.35);
  cursor: crosshair;
}
.som-cell {
  border-radius: 2px;
  background: rgba(50, 63, 80, 0.55);
  transition: background 0.35s, transform 0.25s, box-shadow 0.25s;
}
.som-cell.c-gold { background: rgba(255, 193, 7, 0.75); box-shadow: 0 0 8px rgba(255, 193, 7, 0.4); }
.som-cell.c-silver { background: rgba(0, 229, 255, 0.65); box-shadow: 0 0 8px rgba(0, 229, 255, 0.35); }
.som-cell.c-up { background: rgba(93, 255, 168, 0.45); }
.som-cell.c-down { background: rgba(212, 137, 137, 0.5); }
.som-cell.c-hot { background: rgba(107, 159, 212, 0.5); }
.som-cell.som-pulse { animation: som-pulse 1.2s ease; }
.som-cell.som-hover {
  transform: scale(1.25);
  z-index: 1;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  background: rgba(242, 246, 250, 0.35) !important;
}
.landing-som-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: #7a92a8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lg-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 0.25rem;
  vertical-align: middle;
}
.lg-gold { background: #ffc107; }
.lg-silver { background: #00e5ff; }
.lg-up { background: #5dffa8; }
.lg-down { background: #d48989; }

/* Live feed */
.landing-feed-wrap {
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(14, 20, 32, 0.6);
  border: 1px solid rgba(70, 95, 125, 0.28);
}
.landing-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.landing-feed-head h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--heading);
}
.landing-feed-badge {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(212, 174, 114, 0.12);
  border: 1px solid rgba(212, 174, 114, 0.28);
  color: var(--gold);
}
.landing-feed {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 168px;
  overflow: hidden;
}
.landing-feed-item {
  display: grid;
  grid-template-columns: auto 3.5rem 1fr auto auto auto;
  gap: 0.45rem 0.55rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(18, 26, 38, 0.65);
  border-left: 3px solid rgba(107, 159, 212, 0.45);
  font-size: 0.68rem;
  opacity: 0;
}
.landing-feed-item.feed-in { animation: landing-feed-in 0.45s ease forwards; }
.landing-feed-item.feed-gold { border-left-color: #ffc107; }
.landing-feed-item.feed-silver { border-left-color: #00e5ff; }
.feed-time { font-family: var(--mono); font-size: 0.58rem; color: #6d8094; }
.feed-sym { font-family: var(--mono); font-weight: 700; color: var(--heading); letter-spacing: 0.04em; }
.feed-pattern { color: #9eb0c4; font-weight: 600; }
.feed-dir { font-size: 0.6rem; color: #7a92a8; }
.feed-move { font-family: var(--mono); color: #5dffa8; font-weight: 700; }
.feed-score { font-family: var(--mono); font-size: 0.58rem; color: var(--gold); }

.landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
  color: #7a92a8;
}
.landing-trust span {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(12, 18, 28, 0.5);
  border: 1px solid rgba(70, 95, 125, 0.3);
}

.borsa-access-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 380px);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.borsa-access-pitch {
  padding-top: 0.25rem;
}

.borsa-access-brand {
  margin-bottom: 1.5rem;
  animation: borsa-fade-up 0.55s ease both;
}
.borsa-access-brand .logo {
  display: inline-block;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.borsa-access-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0.55rem;
}
.borsa-access-brand h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--heading);
  margin-bottom: 0.85rem;
}
.borsa-access-brand h1 span {
  background: linear-gradient(135deg, #f2f6fa 0%, #5dbfa0 50%, #d4ae72 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.borsa-access-lead {
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  color: #b0bec8;
  line-height: 1.65;
  max-width: 38rem;
}
.borsa-access-lead strong { color: #dce8f4; font-weight: 600; }

.borsa-access-steps {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}
.borsa-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(18, 26, 38, 0.45);
  border: 1px solid rgba(107, 159, 212, 0.14);
  opacity: 0;
  animation: borsa-fade-up 0.5s ease forwards;
  animation-delay: calc(var(--i, 0) * 80ms + 120ms);
  transition: border-color 0.2s, background 0.2s;
}
.borsa-step:hover {
  border-color: rgba(93, 191, 160, 0.28);
  background: rgba(22, 32, 46, 0.55);
}
.borsa-step-n {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(93, 191, 160, 0.18);
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.borsa-step h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.2rem;
}
.borsa-step p {
  margin: 0;
  font-size: 0.78rem;
  color: #8fa3b8;
  line-height: 1.45;
}

.borsa-access-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.borsa-stat {
  text-align: center;
  padding: 0.65rem 0.45rem;
  border-radius: 10px;
  background: rgba(12, 18, 28, 0.5);
  border: 1px solid rgba(70, 95, 125, 0.3);
  opacity: 0;
  animation: borsa-fade-up 0.45s ease forwards;
  animation-delay: calc(var(--i, 0) * 60ms + 280ms);
}
.borsa-stat:nth-child(1) { --i: 0; }
.borsa-stat:nth-child(2) { --i: 1; }
.borsa-stat:nth-child(3) { --i: 2; }
.borsa-stat:nth-child(4) { --i: 3; }
.borsa-stat b {
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--emerald);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.borsa-stat span {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a92a8;
}

.borsa-wins {
  margin-bottom: 1rem;
  opacity: 0;
  animation: borsa-fade-up 0.55s ease forwards;
  animation-delay: 0.35s;
}
.borsa-wins-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.25rem;
}
.borsa-wins-sub {
  font-size: 0.72rem;
  color: #7a92a8;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}
.borsa-wins-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}
.borsa-win {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(14, 20, 32, 0.72);
  border: 1px solid rgba(70, 95, 125, 0.32);
  border-left: 3px solid rgba(107, 159, 212, 0.5);
  opacity: 0;
  animation: borsa-fade-up 0.45s ease forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 420ms);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.borsa-win:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(8, 14, 24, 0.28);
}
.borsa-win.win-spotlight {
  animation: win-glow 2.8s ease infinite;
  border-color: rgba(93, 191, 160, 0.35);
  transform: translateY(-2px);
}
.borsa-win-gold { border-left-color: #ffc107; }
.borsa-win-silver { border-left-color: #00e5ff; }
.borsa-win header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.borsa-win header strong {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--heading);
  letter-spacing: 0.04em;
}
.borsa-win-tier {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.borsa-win-silver .borsa-win-tier { color: #5ed4f0; }
.borsa-win-pattern {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9eb0c4;
  margin: 0 0 0.35rem;
  letter-spacing: 0.03em;
}
.borsa-win-move {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c5d3e2;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}
.borsa-win-up {
  color: #5dffa8;
  font-family: var(--mono);
}
.borsa-win-note {
  font-size: 0.68rem;
  color: #6d8094;
  line-height: 1.4;
  margin: 0;
}

.borsa-access-foot {
  font-size: 0.68rem;
  color: #6d8094;
  line-height: 1.5;
  max-width: 36rem;
}
.borsa-access-foot strong { color: #8ec8a8; }

/* Login — colonna destra */
.borsa-access-side {
  position: sticky;
  top: clamp(1rem, 3vw, 2rem);
  justify-self: end;
  width: 100%;
  max-width: 380px;
  opacity: 0;
  animation: borsa-fade-up 0.55s ease forwards;
  animation-delay: 0.2s;
}

.borsa-access-card {
  --gx: 50%;
  --gy: 0%;
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(ellipse 80% 60% at var(--gx) var(--gy), color-mix(in srgb, var(--emerald) 12%, transparent), transparent 55%),
    var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-shadow), 0 24px 48px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: box-shadow 0.3s, background 0.35s ease;
}
.borsa-access-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(93, 191, 160, 0.35), transparent 40%, rgba(107, 159, 212, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.borsa-access-card-head {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(107, 159, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fa3b8;
}
.borsa-encrypt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(93, 191, 160, 0.12);
  border: 1px solid rgba(93, 191, 160, 0.28);
  color: var(--emerald);
  font-size: 0.56rem;
}
.auth-head { padding: 1rem 1.15rem 0; }
.auth-head h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 0.35rem;
}
.auth-head p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0.85rem 1.15rem 0;
  padding: 0.25rem;
  border-radius: 10px;
  background: rgba(12, 18, 28, 0.55);
  border: 1px solid rgba(70, 95, 125, 0.35);
}
.auth-tab {
  flex: 1;
  padding: 0.45rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: #8fa3b8;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.auth-tab.active {
  background: rgba(93, 191, 160, 0.18);
  color: var(--emerald);
}
.auth-panel {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.85rem;
}
.auth-panel.active { display: flex; }
.auth-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.auth-panel label span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8fa3b8;
}
.auth-panel input {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(107, 159, 212, 0.3);
  background: rgba(12, 18, 28, 0.65);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
}
.auth-panel input:focus {
  outline: none;
  border-color: rgba(93, 191, 160, 0.55);
  box-shadow: 0 0 0 3px rgba(93, 191, 160, 0.12);
}
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.auth-submit {
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(93, 191, 160, 0.9), rgba(75, 165, 140, 0.95));
  color: #0f1a14;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(93, 191, 160, 0.25);
}
.auth-submit-reg {
  background: linear-gradient(135deg, rgba(107, 159, 212, 0.85), rgba(85, 130, 185, 0.95));
  color: #0c1420;
}
.auth-msg {
  margin: 0 1.15rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.45;
}
.auth-msg.error {
  background: rgba(212, 137, 137, 0.14);
  color: #e8b4b4;
  border: 1px solid rgba(212, 137, 137, 0.3);
}
.auth-msg.warn {
  background: rgba(212, 174, 114, 0.12);
  color: var(--gold);
  border: 1px solid rgba(212, 174, 114, 0.28);
}
.auth-msg.info {
  background: rgba(93, 191, 160, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(93, 191, 160, 0.25);
}
.auth-success {
  margin: 0 1.15rem 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(93, 191, 160, 0.1);
  border: 1px solid rgba(93, 191, 160, 0.28);
}
.auth-success strong {
  display: block;
  color: var(--heading);
  margin-bottom: 0.35rem;
}
.auth-success p {
  font-size: 0.8rem;
  color: #a8b8c8;
  line-height: 1.5;
  margin-bottom: 0.45rem;
}
.auth-demo-note {
  font-family: var(--mono);
  font-size: 0.58rem !important;
  color: var(--gold) !important;
}
.auth-confirm-link {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  background: var(--emerald);
  color: #0f1a14;
  font-size: 0.78rem;
  font-weight: 700;
}
.auth-confirm-link:hover { filter: brightness(1.08); }
.auth-logged {
  margin: 0.75rem 1.15rem 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(93, 191, 160, 0.1);
  border: 1px solid rgba(93, 191, 160, 0.25);
  font-size: 0.78rem;
  color: #b8c8d8;
}
.auth-logged strong { color: var(--emerald); }

.borsa-access-perks {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.15rem 1.1rem;
  border-top: 1px solid rgba(70, 95, 125, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.borsa-access-perks li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.72rem;
  color: #8fa3b8;
  line-height: 1.4;
}
.borsa-access-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.68rem;
}

body:not(.borsa-unlocked) #market-bg,
body:not(.borsa-unlocked) .market-vignette {
  display: none;
}

#borsa-logout {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 137, 137, 0.35);
  background: rgba(212, 137, 137, 0.1);
  color: #e8b4b4;
  cursor: pointer;
}
#borsa-user-pill {
  font-family: var(--mono);
  font-size: 0.62rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(93, 191, 160, 0.12);
  border: 1px solid rgba(93, 191, 160, 0.3);
  color: var(--emerald);
}

.confirm-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(165deg, #283442 0%, #2e3d4d 100%);
}
.confirm-box {
  width: min(480px, 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(107, 159, 212, 0.35);
  background: rgba(40, 52, 66, 0.95);
  padding: 1.5rem;
  text-align: center;
}
.confirm-ok { color: var(--emerald); font-weight: 700; margin-bottom: 0.5rem; }
.confirm-error { color: #e8b4b4; margin-bottom: 0.75rem; }

@media (max-width: 900px) {
  .borsa-access-shell {
    grid-template-columns: 1fr;
  }
  .borsa-access-side {
    position: static;
    max-width: none;
    justify-self: stretch;
    order: -1;
  }
  .borsa-access-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .borsa-wins-grid {
    grid-template-columns: 1fr;
  }
  .landing-feed-item {
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.5rem;
  }
  .landing-som-grid { max-width: 100%; }
}

@media (max-width: 520px) {
  .landing-scan-bar { font-size: 0.56rem; }
  .landing-feed-item { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .auth-row { grid-template-columns: 1fr; }
}