/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
}

body {
  background: #0e0f12;
  color: #e5e7eb;
  min-height: 100vh;
  padding-bottom: 80px; /* spazio per navbar */
}

/* =========================
   COLORI GLOBALI
========================= */
:root {
  --bg-main: #0e0f12;
  --bg-card: #16181d;
  --bg-soft: #1e2128;

  --gold: #d4af37;
  --gold-dark: #b8962e;
  --green: #2ecc71;
  --red: #e74c3c;
  --gray: #9ca3af;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 420px;
  margin: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px; /* SPAZIATURA VERA */
}

/* =========================
   TITOLI
========================= */
h1 {
  font-size: 22px;
  color: #fff;
}

h2 {
  font-size: 18px;
  color: #fff;
}

/* =========================
   CARD
========================= */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px; /* evita effetto “attaccato” */
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.card h3 {
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

/* =========================
   INPUT & FORM
========================= */
input, select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid #2a2d35;
  border-radius: 12px;
  padding: 13px;
  color: white;
  font-size: 14px;
}

input::placeholder {
  color: var(--gray);
}

input:focus, select:focus {
  outline: none;
  border-color: var(--gold);
}

.asset-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
}

.asset-field {
  position: relative;
}

.asset-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid #2a2d35;
  border-radius: 12px;
  max-height: 240px;
  overflow: auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  z-index: 20;
}

.asset-results.hidden {
  display: none;
}

.asset-item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #23262e;
}

.asset-item:last-child {
  border-bottom: none;
}

.asset-item:hover,
.asset-item.active {
  background: #1f232b;
}

.asset-symbol {
  font-weight: 600;
  color: #fff;
}

.asset-name {
  color: var(--gray);
  font-size: 12px;
}

.tv-widget {
  background: var(--bg-soft);
  border: 1px solid #2a2d35;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tv-widget__inner {
  min-height: 150px;
}

.tv-widget__note {
  font-size: 12px;
  color: var(--gray);
}

@media (max-width: 460px) {
  .asset-row {
    grid-template-columns: 1fr;
  }
}

/* =========================
   BOTTONI (FIX ATTACCATI)
========================= */
.btn {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
/*
.btn + .btn {
  margin-top: 12px; /* SPAZIO TRA BOTTONI 
}
*/
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0e0f12;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.25);
}

.forum-btn{
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color:#0e0f12;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.forum-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.25);
}

.btn-danger {
  background: var(--red);
  color: white;
}

/* =========================
   DASHBOARD STATS
========================= */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-box {
  background: var(--bg-soft);
  padding: 14px;
  border-radius: 14px;
  text-align: center;
}

.stat-box span {
  font-size: 12px;
  color: var(--gray);
}

.stat-box strong {
  font-size: 17px;
  display: block;
  margin-top: 4px;
}

/* =========================
   TRADE LIST
========================= */
.trade {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-soft);
}

.trade-left,
.trade-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trade-right {
  gap: 10px;
}

.trade-dir {
  opacity: 0.85;
  font-size: 13px;
}

.trade-badge {
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(212,175,55,0.18);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.35);
}

.trade-badge.scalp {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.15);
}

.trade-swing {
  border-left: 4px solid var(--gold);
  box-shadow: 0 6px 16px rgba(212,175,55,0.12);
}

.trade-scalp {
  border-left: 4px solid rgba(255,255,255,0.12);
}

.trade + .trade {
  margin-top: 10px;
}

.trade.profit {
  border-left: 4px solid var(--green);
}

.trade.loss {
  border-left: 4px solid var(--red);
}

.trade .asset {
  font-weight: 600;
}

.trade .profit {
  font-weight: bold;
}

.partials-inline-title {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray);
}

.partials-inline {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px;
}

.partials-inline.empty {
  color: var(--gray);
  font-size: 13px;
}

.partial-inline-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

/* =========================
   CHECKLIST CONFERME
========================= */
.confirmations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.confirm-button {
  background: var(--bg-soft);
  border: 1px solid #2a2d35;
  color: var(--gray);
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  cursor: pointer;
  transition: .15s;
}

.confirm-button.active {
  background: rgba(212,175,55,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* =========================
   GRAFICO (LINEA ONDULATA)
========================= */
.chart {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 16px;
}

.chart svg {
  width: 100%;
  height: 120px;
}

.chart path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================
   NAV BAR
========================= */
.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
  border-top: 1px solid #2a2d35;
}

.navbar a {
  color: var(--gray);
  text-decoration: none;
  font-size: 12px;
}

.navbar a.active {
  color: var(--gold);
  font-weight: 600;
}
/* =========================
   AUTH BAR (PICCOLA)
========================= */
.auth-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
}

.auth-email {
  color: var(--gray);
  font-size: 12px;
}

/* Bottoni piccoli */
.auth-btn {
  background: transparent;
  border: 1px solid #2a2d35;
  color: var(--gray);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.auth-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.auth-btn.logout {
  border-color: var(--red);
  color: var(--red);
}
.chart-center-text {
  position: relative;
  top: -120px;
  text-align: center;
  font-weight: 600;
  color: white;
  pointer-events: none;
}
.hidden {
  display: none !important;
}
/* ===== CONFERME OPERAZIONE ===== */
.conf {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.conf-btn {
  background: #FFD700;          /* giallo */
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.conf-btn:hover {
  background: #e6c200;
}

/* STATO SELEZIONATO */
.conf-btn.active {
  background: #c9a600;          /* giallo scuro */
  color: #000;
  box-shadow: inset 0 0 0 2px #00000030;
}
/* ===== NOTE INPUT MODERNO ===== */
.notes-input {
  width: 100%;
  min-height: 42px;              /* 1 riga */
  max-height: 180px;             /* limite */
  padding: 10px 14px;
  background: #f7f7f4;           /* bianco sporco */
  color: #111;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: none;                  /* niente resize manuale */
  line-height: 1.4;
  transition: all 0.2s ease;
}

/* focus moderno */
.notes-input:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25);
  background: #fffdf5;
}

/* placeholder soft */
.notes-input::placeholder {
  color: #999;
}
/* HERO SECTION */
.hero {
  padding: 32px 20px;
  margin: 20px auto 10px;
  max-width: 900px;
  text-align: center;
}

.hero-title {
  font-size: 28px;
  font-weight: 600;
  color: #f5c400; /* giallo principale */
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto 18px;
  line-height: 1.5;
}

.hero-points {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-points span {
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(245, 196, 0, 0.25);
}
/* GRAPH INFO SECTION */
.graph-info {
  max-width: 800px;
  margin: 24px auto 40px;
  padding: 0 20px;
  text-align: center;
}

.graph-info-title {
  font-size: 18px;
  font-weight: 600;
  color: #f5c400; /* giallo principale */
  margin-bottom: 10px;
}

.graph-info-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.graph-info-text.muted {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* STATS – PILL STYLE */
#stats {
  max-width: 900px;
  margin: 30px auto 45px;
  padding: 0 20px;

  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 10px 14px;
  min-width: 120px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 196, 0, 0.25);
  border-radius: 999px; /* pill vera */

  backdrop-filter: blur(6px);
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: #f5c400; /* giallo */
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  white-space: nowrap;
}
/* SAVED TRADES SECTION */
.trades-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #f5c400;
  text-align: center;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

/* LIST */
.trades-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CARD */
.trade-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 196, 0, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}

.trade-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.trade-asset {
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.trade-result {
  font-size: 14px;
  font-weight: 600;
}

.trade-result.positive {
  color: #4caf50;
}

.trade-result.negative {
  color: #f44336;
}

.trade-details {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
/* WHY SAVE TRADES SECTION */
.why-section {
  max-width: 800px;
  margin: 30px auto 45px;
  padding: 0 20px;
  text-align: center;
}

.why-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.why-points {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.why-points span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 196, 0, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
/* PERFORMANCE INSIGHTS SECTION */
.performance-section {
  max-width: 850px;
  margin: 40px auto 45px;
  padding: 0 20px;
  text-align: center;
}

.performance-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}

.performance-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.performance-tip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 196, 0, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
/* FINAL MESSAGE SECTION */
.final-section {
  max-width: 900px;
  margin: 60px auto 70px;
  padding: 0 20px;
  text-align: center;
}

.final-text {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: #f5c400; /* giallo focus */
}
.trade-pnl {
  font-weight: 600;
}

/* DEMO NOTICE */
.demo-notice {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 8, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.demo-notice__box {
  width: min(520px, 92vw);
  background: #0f1116;
  border: 1px solid rgba(245, 196, 0, 0.25);
  border-radius: 14px;
  padding: 18px 18px 16px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.demo-notice__box h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #f5c400;
}

.demo-notice__box p {
  margin: 0 0 14px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
}

.demo-notice__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.trade-pnl.positive {
  color: #4caf50; /* verde */
}

.trade-pnl.negative {
  color: #f44336; /* rosso */
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

.btn.ghost:hover {
  border-color: #f5c400;
  color: #f5c400;
}
.trade {
  cursor: pointer;
}

.trade * {
  pointer-events: none;
}
/* ===== STATS CIRCLES ===== */
.stats-circles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.stat-circle {
  border: 2px solid #FFD700;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 215, 0, 0.05);
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
}

.stat-label {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 900px) {
  .stats-circles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fake-chart {
  background: linear-gradient(
    to top,
    rgba(212,175,55,0.08),
    transparent
  );
  border-radius: 22px;

  /* QUI È IL FIX */
  padding: 22px 14px;   /* meno spazio laterale */
  margin: 22px auto 18px;
  max-width: 94%;       /* grafico più “incassato” */
}

.fake-chart svg {
  width: 100%;
  height: 300px;
}

.fake-chart path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* =========================
   STATISTICHE — VALORI %
========================= */
.stat-box strong {
  color: var(--gold);
}


/* ===== WELCOME TEXT ===== */
.welcome-text {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #FFD700;
  margin: 40px 0 30px;
  letter-spacing: 0.5px;
}

/* Sottile separatore elegante */
.welcome-text::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, #FFD700, transparent);
  border-radius: 2px;
}

/* Mobile */
@media (max-width: 600px) {
  .welcome-text {
    font-size: 22px;
    margin: 25px 0 20px;
  }
}
.trial-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.trial-box {
  background: #111;
  border: 1px solid #FFD700;
  padding: 30px;
  max-width: 420px;
  width: 90%;
  border-radius: 12px;
  text-align: center;
}

.trial-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.hidden {
  display: none;
}
.premium-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.premium-box {
  background: #0f0f0f;
  border: 1px solid #FFD700;
  padding: 32px;
  max-width: 520px;
  width: 92%;
  border-radius: 14px;
  text-align: center;
}

.premium-title {
  color: #FFD700;
  margin-bottom: 20px;
}

.premium-graph {
  height: 120px;
  margin: 20px 0;
  position: relative;
  background: rgba(255,215,0,0.05);
  border-radius: 8px;
}

.graph-line {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #4caf50);
  transform: rotate(-5deg);
}

.premium-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.premium-stats .stat strong {
  color: #FFD700;
  font-size: 20px;
}

.premium-stats .stat span {
  font-size: 12px;
  opacity: 0.8;
}

.premium-plans {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.close-premium {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #aaa;
  cursor: pointer;
}

.close-premium:hover {
  color: #fff;
}

/* === FIX DEFINITIVO PULSANTI PREMIUM === */
.premium-plans button {
  flex: 1 !important;
  height: 48px !important;
  padding: 0 !important;

  display: flex !important;
  align-items: center;
  justify-content: center;

  font-size: 14px !important;
  font-weight: 600 !important;

  border-radius: 10px;
  box-sizing: border-box !important;
}

/* --- CALC WRAPPER --- */
.calc-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.calc-link {
  width: 92%;
  max-width: 420px;
  background: #141720;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  color: #fff;
  border: none;
}

/* ===== MODAL BACKDROP ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 18px;
}

.hidden {
  display: none !important;
}

/* ===== MODAL CONTENT ===== */
.modal-content {
  width: 100%;
  max-width: 420px;
  background: #0f1115;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: slideUp .18s ease-out;
}

/* Title */
.modal-content h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

/* Inputs */
.modal-content input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: #1a1d24;
  color: #fff;
  font-size: 15px;
  text-align: center;
}

/* Results */
.results {
  background: #141720;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.results p {
  margin: 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.results strong { font-weight: 600; }

/* Buttons */
.modal-content .btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn.primary {
  background: linear-gradient(180deg, #ffd84d 0%, #f5c400 100%);
  color: #000;
  border: none;
  box-shadow:
    0 4px 10px rgba(245, 196, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn.ghost {
  background: transparent;
  border: 1px solid #2a2e3a;
  color: #ccc;
}

.note {
  font-size: 12px;
  opacity: 0.75;
}

.modal-text {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions .btn {
  flex: 1;
}

@keyframes slideUp {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* small screens adjustments (optional but safe) */
@media (max-width: 420px) {
  .modal-content { padding: 16px; border-radius: 14px; }
  .calc-link { padding: 10px; font-size: 14px; }
}

.calc-link {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 15px;
}



.app-footer {
  margin-top: 40px;
  padding: 20px 12px;
  text-align: center;
  font-size: 12px;
  opacity: 0.55;
}

.app-footer p {
  margin: 6px 0;
}

.footer-links a {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer-note {
  max-width: 420px;
  margin: 10px auto 0;
  line-height: 1.4;
  text-align: center;
}


/* ===== LEGAL MODALS ===== */
.modal-content.legal {
  max-height: 80vh;
  overflow-y: auto;
}

.legal-text {
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.85;
}

.legal-text p {
  margin-bottom: 10px;
}

/* ===== FOOTER CENTER FIX DEFINITIVO ===== */

.footer-center {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.footer-center p {
  text-align: center;
}

.footer-note-center {
  margin-top: 10px;
  line-height: 1.4;
  opacity: 0.75;
}

.footer-settings {
  margin-top: 14px;
  padding: 12px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}

.footer-settings h4 {
  margin: 0 0 8px;
  font-size: 13px;
  opacity: 0.9;
}

.settings-toggle{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}

.settings-panel{
  margin-top:10px;
  padding:10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(0,0,0,0.25);
  display:none;
}

.settings-panel.active{
  display:block;
}

.footer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 6px;
}

.chat-badge {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  color: #ffd166;
}

.footer-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:8px 0;
  font-size:12px;
  opacity:0.9;
}

.switch{
  position:relative;
  display:inline-block;
  width:44px;
  height:24px;
}
.switch input{opacity:0;width:0;height:0}
.slider{
  position:absolute;
  cursor:pointer;
  top:0;left:0;right:0;bottom:0;
  background:rgba(255,255,255,0.08);
  border-radius:24px;
  transition:all .2s ease;
}
.slider:before{
  position:absolute;
  content:"";
  height:18px;width:18px;
  left:3px;top:3px;
  background:#fff;
  border-radius:50%;
  transition:all .2s ease;
}
.switch input:checked + .slider{
  background:rgba(255,209,102,0.35);
}
.switch input:checked + .slider:before{
  transform:translateX(20px);
  background:#ffd166;
}

.floating-chat-badge{
  position:fixed;
  right:16px;
  bottom:16px;
  width:58px;
  height:58px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.18);
  background:radial-gradient(circle at 30% 20%, #fff3c4 0%, #ffd166 35%, #ffb703 100%);
  color:#1b1b1b;
  font-weight:700;
  box-shadow:0 12px 30px rgba(0,0,0,0.4);
  display:none;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:50;
  letter-spacing:0.5px;
}
.floating-chat-badge.active{display:flex;}

.floating-chat-badge::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  border:1px solid rgba(255,209,102,0.4);
  box-shadow:0 0 20px rgba(255,209,102,0.35);
  opacity:0;
  animation:chatPulse 2.4s infinite;
}

@keyframes chatPulse{
  0%{transform:scale(0.92);opacity:0;}
  30%{opacity:0.8;}
  70%{transform:scale(1.08);opacity:0.2;}
  100%{transform:scale(1.12);opacity:0;}
}


.disclaimer-text {
  opacity: 0.7;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

.card-title {
  text-align: center;
}

#openCalcBtn {
   background: linear-gradient(180deg, #ffd84d 0%, #f5c400 100%);
  color: #000;
  border: none;
  box-shadow:
    0 4px 10px rgba(245, 196, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.4);

  /* 👇 QUESTO è il punto chiave per il testo */
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  text-align: center;

  cursor: pointer;
}



.discipline-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.discipline-box {
  max-width: 520px;
  background: #111;
  color: #fff;
  padding: 28px;
  border-radius: 12px;
  text-align: center;
  font-family: system-ui, sans-serif;
}

.discipline-box h2 {
  color: #ff4d4d;
  margin-bottom: 16px;
}

.discipline-box p {
  margin-bottom: 14px;
  line-height: 1.5;
  font-size: 15px;
}

.discipline-box button {
  margin-top: 18px;
  padding: 10px 22px;
  border: none;
  background: #ff4d4d;
  color: #fff;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
}


/* ================= CONTAINER DASHBOARD ================= */
.control-console,
.report-section {
  margin-top: 40px;
  padding: 28px;
  background: linear-gradient(180deg, #0e0e0e, #0b0b0b);
  border: 1px solid #222;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.04);
}

/* ================= HEADER ================= */
.console-header,
.report-section h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.console-header h3,
.report-section h2 {
  color: #ffd700;
  font-size: 22px;
  margin: 0;
}

.console-sub {
  font-size: 13px;
  color: #999;
}

/* ================= STATUS ================= */
.console-status {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 200, 120, 0.12);
  color: #00d084;
  border: 1px solid rgba(0, 200, 120, 0.3);
}

/* ================= METRICHE ================= */
.console-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.console-metric {
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.metric-title {
  display: block;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 6px;
}

.metric-number {
  font-size: 26px;
  font-weight: 700;
  color: #ffd700;
}

/* ================= REPORT ACTIONS ================= */
.report-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

/* ================= BOTTONI ================= */
.btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  background: #ffd700;
  color: #000;
  border: none;
}

.btn.primary:hover {
  opacity: 0.85;
}

.btn.ghost {
  background: transparent;
  color: #ffd700;
  border: 1px solid #333;
}

.btn.ghost:hover {
  background: rgba(255, 215, 0, 0.08);
}

.btn.small {
  padding: 6px 12px;
  font-size: 12px;
}

/* ================= REPORT PREVIEW ================= */
.report-preview {
  margin-top: 22px;
  padding: 22px;
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 14px;
}

.report-preview h3 {
  color: #ffd700;
  margin-bottom: 10px;
}

.report-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 14px;
}

.report-columns h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.positive {
  color: #00d084;
}

.negative {
  color: #ff5f5f;
}

.report-footer {
  margin-top: 18px;
  text-align: right;
}

/* ================= LISTE ================= */
.report-columns ul {
  padding-left: 18px;
  font-size: 13px;
  color: #ccc;
}

/* ================= SUGGERIMENTI ================= */
.suggestion-box {
  margin-top: 18px;
  padding: 22px;
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #ddd;
}

.suggestion-actions {
  margin-top: 16px;
  text-align: right;
}

/* Stati colore */
.status-loss {
  background: rgba(255, 80, 80, 0.15);
  color: #ff5f5f;
  border-color: rgba(255, 80, 80, 0.4);
}

.status-profit {
  background: rgba(0, 208, 132, 0.15);
  color: #00d084;
  border-color: rgba(0, 208, 132, 0.4);
}

.status-neutral {
  background: rgba(180, 180, 180, 0.15);
  color: #bbb;
  border-color: rgba(180, 180, 180, 0.4);
}

.panel-separator {
  margin: 28px 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 215, 0, 0.15),
    transparent
  );
}

/* ================= PRE GRAPH SECTION ================= */
.pre-graph-section {
  margin: 50px auto 30px;
  padding: 32px;
  max-width: 1000px;
  background: linear-gradient(180deg, #0e0e0e, #0b0b0b);
  border: 1px solid #222;
  border-radius: 16px;
  text-align: center;
}

.pre-graph-section h2 {
  color: #ffd700;
  font-size: 24px;
  margin-bottom: 8px;
}

.pre-graph-subtitle {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 30px;
}

/* Box pillole */
.pill-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* Singola pillola */
.pill {
  padding: 18px 16px;
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pill:hover {
  transform: translateY(-4px);
  border-color: #ffd70055;
}

.pill-title {
  display: block;
  color: #ffd700;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
}

.pill p {
  color: #ccc;
  font-size: 13px;
  line-height: 1.5;
}

/* CTA finale */
.pre-graph-cta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #1f1f1f;
  color: #ffd700;
  font-size: 14px;
}


/* ================= TRADER PROFILE ================= */
.trader-profile-section {
  margin: 50px auto;
  padding: 32px;
  max-width: 1000px;
  background: linear-gradient(180deg, #0e0e0e, #0b0b0b);
  border: 1px solid #222;
  border-radius: 16px;
  text-align: center;
}

.trader-profile-section h2 {
  color: #ffd700;
  font-size: 24px;
  margin-bottom: 8px;
}

.profile-subtitle {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 30px;
}

/* GRID */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* CARD */
.profile-card {
  padding: 16px;
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  text-align: left;
}

.profile-card.full {
  grid-column: span 2;
}

.profile-label {
  display: block;
  color: #ffd700;
  font-size: 13px;
  margin-bottom: 6px;
}

.profile-card input,
.profile-card select,
.profile-card textarea {
  width: 100%;
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 10px;
  color: #eee;
  font-size: 13px;
}

.profile-card textarea {
  min-height: 80px;
  resize: vertical;
}

/* BUTTON */
.save-profile-btn {
  margin-top: 26px;
  padding: 12px 26px;
  background: linear-gradient(90deg, #ffd700, #e6c200);
  border: none;
  border-radius: 30px;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}

.save-profile-btn:hover {
  opacity: 0.9;
}

/* INFO */
.profile-info {
  margin-top: 18px;
  color: #999;
  font-size: 13px;
}

.trader-profile-section {
  margin: 40px auto;
  padding: 28px;
  max-width: 1000px;
  background: linear-gradient(180deg,#0e0e0e,#0b0b0b);
  border: 1px solid #222;
  border-radius: 14px;
  color: #ddd;
}

.trader-profile-section h2 { color: #ffd700; margin-bottom: 6px; }
.profile-subtitle { color: #aaa; margin-bottom: 16px; }

.insight-box {
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 12px;
}

.insight-list { margin: 8px 0 16px 18px; color: #ccc; }

.insights-controls {
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:10px;
}

.save-profile-btn { padding:10px 18px; border-radius:26px; border:none; cursor:pointer; background: linear-gradient(90deg,#ffd700,#e6c200); color:#000; font-weight:600;}
.save-profile-btn.alt { background: transparent; color:#ffd700; border:1px solid #ffd700; }

.ai-text-output { margin-top:12px; color:#cfcfcf; font-size:14px; background:#0b0b0b; padding:12px; border-radius:8px; border:1px solid #1b1b1b; min-height:40px; }


/* base section */
/* ================= TRADER PROFILE AUTO ================= */

.trader-profile-section {
  margin: 50px auto;
  padding: 32px;
  max-width: 1000px;
  background: linear-gradient(180deg, #0e0e0e, #0b0b0b);
  border: 1px solid #222;
  border-radius: 16px;
  text-align: center;
}

.trader-profile-section h2 {
  color: #ffd700;
  font-size: 24px;
  margin-bottom: 6px;
}

.profile-subtitle {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 30px;
}

.section-title {
  text-align: center;
  color: #ffd700;
  margin: 28px 0 12px;
  font-size: 16px;
}

/* GRID */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* CARD */
.profile-card {
  padding: 16px;
  background: #0f0f0f;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  text-align: left;
}

.profile-label {
  color: #ffd700;
  font-size: 13px;
  margin-bottom: 6px;
}

.profile-value {
  color: #eee;
  font-size: 15px;
  font-weight: 500;
}

/* STATUS */
.good { border-left: 4px solid #2ecc71; }
.warn { border-left: 4px solid #f39c12; }
.bad  { border-left: 4px solid #e74c3c; }

/* valore automatico (sostituisce input/select) */
.profile-value {
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 10px;
  color: #eee;
  font-size: 13px;
  min-height: 38px;
  display: flex;
  align-items: center;
  white-space: pre-wrap;
}



.mindset-wrapper {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
}

.mindset-box {
  max-width: 800px;
  text-align: center;
  border-radius: 20px;
  display: flex;              /* 👈 CHIAVE */
  flex-direction: column;     /* 👈 CHIAVE */
  align-items: center;
}

.mindset-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.mindset-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 35px;
  opacity: 0.9;
}

.mindset-btn {
  display: block;
  padding: 14px 28px;
  background: #000;
  color: #FFD700;
  border: 2px solid #FFD700;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.mindset-btn:hover {
  background: #FFD700;
  color: #000;
}

/* 🔥 QUESTA È LA CHIAVE */
.mindset-btn + .mindset-btn {
  margin-top: 16px;
}







/* WRAPPER */
.calendar-wrapper {
  max-width: 420px;
  margin: 40px auto;
}

/* CARD */
.calendar {
  background: linear-gradient(180deg, #0e0e0e, #0b0b0b);
  border: 1px solid #222;
  border-radius: 16px;
  padding: 18px;
}

/* HEADER */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.calendar-header h2 {
  color: #ffd700;
  font-size: 15px;
}

.calendar-header button {
  background: #0b0b0b;
  border: 1px solid #222;
  color: #ffd700;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

/* WEEKDAYS */
.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar-weekdays div {
  font-size: 11px;
  color: #777;
  margin-bottom: 6px;
}

/* DAYS */
.calendar-days div {
  background: #0b0b0b;
  border: 1px solid #1f1f1f;
  border-radius: 8px;
  padding: 8px 0;
  font-size: 13px;
  cursor: pointer;
}

/* STATES */
.calendar-days .today {
  background: #ffd700;
  color: #000;
  font-weight: 700;
}

.calendar-days .profit {
  border-color: #2ecc71;
  color: #2ecc71;
}

.calendar-days .loss {
  border-color: #e74c3c;
  color: #e74c3c;
}

.calendar-days .inactive {
  visibility: hidden;
}

.calendar-wrapper {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}
.hidden {
  display: none !important;
}
.calendar-note {
  margin-top: 16px;
  font-size: 13px;
  color: #aaa;
  line-height: 1.5;
  text-align: center;
}

.calendar-note .note-profit {
  color: #2ecc71;
  font-weight: 500;
}

.calendar-note .note-loss {
  color: #e74c3c;
  font-weight: 500;
}


.trader-profile-section {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.trader-profile-section.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}
.add-profile-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

 /* wrapper compatto quando la tendina è chiusa */
.add-profile-wrapper.compact {
  margin-bottom: 4px;
  transition: margin-bottom 0.25s ease;
}


/* BUTTON - AGGIUNGI PROFILO */
.add-profile-btn {
  margin-top: 26px;
  padding: 12px 26px;
  background: linear-gradient(90deg, #ffd700, #e6c200);
  border: none;
  border-radius: 30px;
  color: #000;
  font-weight: 600;
  cursor: pointer;

  /* centratura */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.add-profile-btn:hover {
  opacity: 0.9;
}
/* MOBILE */
@media (max-width: 768px) {

  /* wrapper compatto SOLO da chiuso */
  .add-profile-wrapper.compact {
    margin-bottom: 2px; /* super compatto */
  }

  /* opzionale: bottone leggermente più compatto su mobile */
  .add-profile-btn {
    padding: 10px 22px;
    font-size: 14px;
  }

}




.export-mode button {
  display: none !important;
}
/* blocca animazioni durante export */
.export-mode * {
  transition: none !important;
  animation: none !important;
}

/* garantisce larghezza corretta */
.export-section {
  width: 100%;
  box-sizing: border-box;
}


/* ===== ANALIZZIAMO (profilo) ===== */
.analysis-grid {
  display: grid;
  gap: 12px;
}

.analysis-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.analysis-q {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-grid {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 8px;
}

.trend-item {
  flex: 1;
  text-align: center;
}

.trend-title {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 6px;
}

.trend-select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid #2a2d35;
  color: #fff;
}

.analysis-decision {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

#analysisSuggestion {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 10px;
  border-radius: 10px;
}

/* mobile minor tweaks */
@media (max-width: 600px) {
  .trend-grid {
    flex-direction: column;
  }
}


.analysis-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analysis-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
}

.analysis-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.analysis-row label {
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}


.analysis-section {
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.analysis-section.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.analysis-section:not(.collapsed) {
  max-height: 1200px; /* abbastanza per tutto */
  opacity: 1;
}



/* ===== ANALIZZIAMO – TESTI ===== */

.analysis-wrapper {
  max-width: 1040px;
  margin: 40px auto;
   padding: 0 16px; /* respiro su mobile */
}

.analysis-intro,
.analysis-outro {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px 20px;
}

.analysis-title {
  text-align: center;
  color: #FFD700;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}

.analysis-intro p,
.analysis-outro p {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.analysis-emphasis {
  color: #fff;
  font-weight: 500;
}

.analysis-note {
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}


#partialsList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partial-row {
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
}

.muted-text {
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
}



.daily-performance {
  margin-top: 10px;
}

.profile-card .delta {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.75;
}

.profile-card .delta.positive {
  color: #4caf50;
}

.profile-card .delta.negative {
  color: #f44336;
}

.profile-card .delta.muted {
  color: #9ca3af;
}

.profile-card.full {
  grid-column: span 2;
}

.profile-value.positive {
  color: #4caf50;
}

.profile-value.negative {
  color: #f44336;
}


/* 🔥 NASCONDE I SOTTO-RISULTATI GIORNALIERI */
.daily-performance .delta {
  display: none;
}



/* =========================
   DELETE ACCOUNT – COMPACT
========================= */
#deleteAccount {
  width: fit-content !important;   /* 🔥 override totale */
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;

  background: #e74c3c;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

#deleteAccount:hover {
  background: #d63b2b;
}


.consistency-card {
  text-align: center;
}

.consistency-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.consistency-note {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 10px;
}

.consistency-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.toggle-btn {
  background: transparent;
  border: 1px solid #222;
  color: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}

.toggle-btn.active {
  background: #FFD700;
  color: #111;
  border-color: #FFD700;
}

.toggle-btn:hover {
  border-color: #FFD700;
  color: #FFD700;
}

.consistency-chart-wrap {
  position: relative;
  width: 100%;
  height: 260px;
}

.consistency-note {
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}



.consistency-card {
  background: linear-gradient(
    180deg,
    #1f1f1f 0%,
    #181a20 50%,
    #0f1116 100%
  );
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow:
    0 18px 55px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.025);
}


.register-top-bar {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;

  text-align: center;
  font-size: 13px;
  font-weight: 500;

  color: #0e0f12;
  background: linear-gradient(135deg, #FFD700, #e6c200);
  border-radius: 12px;

  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.25);
}

.register-top-bar strong {
  font-weight: 700;
}
.fast-register-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.fast-register-hint strong {
  color: #FFD700;
  font-weight: 600;
}


.hero-cta {
  padding: 16px;
  text-align: center;
  background: #0F1116;
  color: #FFF;
  margin-bottom: 20px;
}

.hero-problem {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD700;
}

.hero-benefit {
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.hero-urgency {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #FF5F57;
}

.fast-register-bar {
  font-size: 14px;
  margin: 12px 0;
  color: #FFF;
  background: #333;
  padding: 8px;
  border-radius: 8px;
}

.hero-testimonial {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

.btn-primary {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  background: #FFD700;
  color: #0E0F12;
  border-radius: 8px;
}




/* ===============================
   IMPATTO DECISIONALE – SEZIONE
================================ */

.decision-impact-card {
  max-width: 900px;
  margin: 60px auto;
  padding: 28px 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 215, 0, 0.04),
    rgba(255, 215, 0, 0.01)
  );
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 22px;
  text-align: center;
}

.decision-impact-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.decision-impact-title .hl {
  color: #FFD700;
}

.decision-impact-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

/* GRAFICO */
.impact-chart {
  background: rgba(255, 215, 0, 0.05);
  border-radius: 18px;
  padding: 20px 14px;
  margin: 26px auto 30px;
  max-width: 95%;
}

.impact-chart svg {
  width: 100%;
  height: 260px;
}

.impact-chart path {
  fill: none;
  stroke: #FFD700;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* STATISTICHE */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.impact-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 16px;
  padding: 16px 12px;
}

.impact-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}

.impact-value {
  font-size: 22px;
  font-weight: 700;
}

.impact-value.positive {
  color: #4CAF50;
}

.impact-value.negative {
  color: #F44336;
}

/* DISCLAIMER */
.impact-disclaimer {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .impact-stats {
    grid-template-columns: 1fr;
  }

  .impact-chart svg {
    height: 220px;
  }
}
/* ===== MULTI-LINE CHART ===== */

.impact-chart svg {
  width: 100%;
  height: 260px;
}

/* base */
.line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* linee */
.line.impulsive {
  stroke: #F44336;
  opacity: 0.9;
}

.line.discipline {
  stroke: #FFD700;
}

.line.awareness {
  stroke: #4CAF50;
  opacity: 0.9;
}

/* legenda */
.impact-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
}

.legend-item::before {
  content: "";
  width: 12px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.legend-item.impulsive::before {
  background: #F44336;
}

.legend-item.discipline::before {
  background: #FFD700;
}

.legend-item.awareness::before {
  background: #4CAF50;
}



/* ===== HOW IT WORKS – PRE LOGIN ===== */
.how-it-works {
  max-width: 820px;
  margin: 50px auto 60px;
  padding: 0 20px;
  text-align: center;
}

.how-title {
  font-size: 20px;
  font-weight: 600;
  color: #f5c400;
  margin-bottom: 10px;
}

.how-subtitle {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 35px;
}

.how-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,196,0,0.2);
  border-radius: 12px;
  padding: 14px 16px;
}

.step-number {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5c400;
  color: #111;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.how-step p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

.how-cta {
  margin-top: 20px;
}

.cta-text {
  font-size: 16px;
  color: #f5c400;
  margin-bottom: 14px;
}

.cta-note {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}


/* ===== FILTER SECTION ===== */
.filter-section {
  max-width: 760px;
  margin: 60px auto 70px;
  padding: 0 20px;
  text-align: center;
}

.filter-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
}

.filter-text.muted {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
}

.filter-text.highlight {
  color: #f5c400;
  font-weight: 500;
}

.filter-text.final {
  font-size: 17px;
  font-weight: 600;
  color: #f5c400;
  margin-top: 18px;
}

/* ===== SERIOUS TRADER CTA ===== */
.serious-btn {
  margin-top: 24px;
  max-width: 320px;
}

/* =========================
   TOAST NOTIFICATIONS
========================= */
.toast-area {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10050;
  max-width: min(92vw, 360px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #15181f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #c9a600;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: toast-in 0.2s ease;
}

.toast--success { border-left-color: #2ecc71; }
.toast--error { border-left-color: #e74c3c; }
.toast--warn { border-left-color: #f5c400; }
.toast--info { border-left-color: #c9a600; }

.toast__message {
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-line;
  flex: 1;
}

.toast__close {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}

.toast__close:hover {
  color: #fff;
}

.toast--hide {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .toast-area {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: 12px;
    max-width: 92vw;
  }
}

/* =========================
   COACH DISCLIPLY
========================= */

.coach-evidence {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.coach-evidence .evidence-line {
  padding: 2px 0;
}

.coach-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-custom {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

.coach-legend {
  margin: 10px 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}

.coach-templates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.coach-template label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

.coach-template textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  resize: vertical;
}

.coach-template textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.coach-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9998;
  padding: 16px;
}

.coach-modal.hidden {
  display: none;
}

.coach-modal-box {
  width: min(560px, 92vw);
  background: linear-gradient(140deg, #111319 0%, #171c26 55%, #10141d 100%);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.coach-modal-box h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: 0.2px;
}

.coach-modal-header {
  margin-bottom: 12px;
}

.coach-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 206, 84, 0.15);
  border: 1px solid rgba(255, 206, 84, 0.35);
  color: #ffd66b;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.coach-modal-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.coach-modal-message {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: #fff;
}

.coach-popup-evidence {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 15, 22, 0.7);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
}

.coach-popup-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}
