* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,.58), rgba(0,0,0,.84)),
    url("assets/background-finance.jpg") center center / cover no-repeat fixed;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 0, 0, .30), transparent 28%),
    radial-gradient(circle at 80% 65%, rgba(255, 30, 30, .18), transparent 35%),
    linear-gradient(115deg, transparent 5%, rgba(255,0,0,.10) 42%, transparent 78%);
  animation: pulse 5.5s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes pulse {
  from { opacity: .55; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 34px 20px;
}

.panel {
  width: 100%;
  max-width: 1040px;
  background: rgba(7, 7, 7, .84);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 32, 32, .35);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 0 55px rgba(255, 0, 0, .42);
}

.hero {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 26px;
  align-items: center;
  margin-bottom: 22px;
}

.logo-wrap { position: relative; }
.logo {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 28px rgba(255, 0, 0, .28);
  animation: logoFloat 3.2s ease-in-out infinite alternate;
}
.logo-glow {
  position: absolute;
  inset: 12px;
  background: rgba(255,0,0,.28);
  filter: blur(30px);
  z-index: 1;
}
@keyframes logoFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.eyebrow {
  display: inline-block;
  color: #ff3434;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  font-size: 60px;
  line-height: 1;
  letter-spacing: 1px;
}

h2 { margin: 0 0 14px; font-size: 20px; }

.hero-text p, .chart-header p, .disclaimer p {
  color: #cfcfcf;
  line-height: 1.5;
  margin: 12px 0 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}
.hero-badges span, .badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #ddd;
  font-size: 13px;
}

.info-section, .form-card, .result-card, .chartBox, .tableBox, .disclaimer {
  background: rgba(15,15,15,.88);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 18px;
}

.info-section { margin-bottom: 18px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.steps div {
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px;
}
.steps b {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: #ff2020;
  border-radius: 50%;
  margin-right: 7px;
}

.layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
}

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  color: #e2e2e2;
  font-size: 14px;
}

input {
  width: 100%;
  padding: 14px;
  border-radius: 13px;
  border: 1px solid #343434;
  background: rgba(25,25,25,.95);
  color: white;
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: #ff2020;
  box-shadow: 0 0 14px rgba(255,0,0,.28);
}

button, .telegram {
  width: 100%;
  margin-top: 18px;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #9f0000, #ff2020);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: block;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(255,0,0,.28);
}

.telegram, .secondary {
  background: linear-gradient(90deg, #141414, #353535);
  border: 1px solid #ff2020;
  line-height: 1.35;
}


.result {
  background: rgba(32,32,32,.92);
  padding: 16px;
  border-radius: 14px;
  border-left: 4px solid #ff2020;
  line-height: 1.7;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.kpi {
  background: rgba(5,5,5,.72);
  border: 1px solid #363636;
  border-radius: 15px;
  padding: 14px;
}

.kpi span {
  display: block;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 6px;
}

.kpi strong { font-size: 21px; }

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.actions button { margin-top: 14px; }

.chartBox, .tableBox, .disclaimer { margin-top: 18px; }

canvas {
  width: 100%;
  height: 420px;
  background: rgba(6,6,6,.88);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
}

.legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 12px;
  font-size: 13px;
  color: #ccc;
  flex-wrap: wrap;
}

.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: -1px;
}
.red { background: #ff2020; }
.silver { background: #d9d9d9; }
.area { background: rgba(255, 32, 32, .35); }

.tableWrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  text-align: left;
  font-size: 14px;
}
th { color: #ff3b3b; background: rgba(255,0,0,.08); }

.note {
  font-size: 12px;
  color: #aaa;
  margin: 16px 0 0;
  text-align: center;
}

.hidden { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0,0,0,.76);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-card {
  width: 100%;
  max-width: 440px;
  background: rgba(12,12,12,.96);
  border: 1px solid rgba(255,32,32,.45);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 0 50px rgba(255,0,0,.42);
  position: relative;
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  width: auto;
  margin: 0;
  padding: 6px 10px;
  background: transparent;
  box-shadow: none;
  font-size: 28px;
}

@media (max-width: 920px) {
  .hero, .layout, .steps { grid-template-columns: 1fr; }
  h1 { font-size: 44px; text-align: center; }
  .hero-text { text-align: center; }
  .hero-badges { justify-content: center; }
}

@media (max-width: 520px) {
  .app { padding: 16px 10px; }
  .panel { padding: 15px; border-radius: 22px; }
  h1 { font-size: 38px; }
  canvas { height: 320px; }
  .kpi-grid, .actions { grid-template-columns: 1fr; }
}


.modal-logo {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 22px rgba(255,0,0,.30);
}

.exclusive {
  background: rgba(255, 32, 32, .10);
  border: 1px solid rgba(255, 32, 32, .35);
  padding: 12px;
  border-radius: 14px;
  color: #f1f1f1;
  line-height: 1.5;
}

.modal-secondary {
  margin-top: 12px;
}

.countdown {
  text-align: center;
  color: #aaa;
  font-size: 12px;
  margin-top: 12px;
}






/* CTA Telegram premium senza freccia */
.telegram-cta {
  margin-top: 18px;
}

.premium-cta {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 32, 32, .25);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}

.cta-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .3px;
  text-shadow: 0 0 10px rgba(255,0,0,.42);
}

.cta-subtitle {
  color: #cfcfcf;
  font-size: 13px;
  margin-top: 4px;
  margin-bottom: 10px;
}

.telegram-cta .telegram {
  margin-top: 10px;
  animation: telegramGlowSoft 2.6s ease-in-out infinite;
}

.modal-telegram-cta {
  margin-top: 14px;
}

@keyframes telegramGlowSoft {
  0% {
    box-shadow: 0 0 10px rgba(255,0,0,.16);
  }
  50% {
    box-shadow: 0 0 22px rgba(255,0,0,.50), 0 0 36px rgba(255,0,0,.22);
  }
  100% {
    box-shadow: 0 0 10px rgba(255,0,0,.16);
  }
}

@media (max-width: 520px) {
  .premium-cta {
    padding: 12px;
  }

  .cta-title {
    font-size: 15px;
  }

  .cta-subtitle {
    font-size: 12px;
  }
}


/* Popup centrato premium */
.modal-card{
    text-align:center;
}

.modal-card h2,
.modal-card p{
    text-align:center;
}

.modal-logo{
    display:block;
    margin:0 auto 16px auto;
}

.modal-card .telegram{
    margin-left:auto;
    margin-right:auto;
}


/* Centra completamente Disclaimer e Come Funziona */
.info-section,
.info-section h2,
.info-section p,
.info-section span,
.info-section strong,
.steps,
.steps div,
.disclaimer,
.disclaimer h2,
.disclaimer p {
    text-align:center !important;
}

.steps b{
    margin:0 auto 12px auto !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
}

.disclaimer p{
    font-size:11px !important;
    line-height:1.5 !important;
    max-width:800px;
    margin:0 auto !important;
}
