/*
 * Moneymaker · estilos de la parte NUEVA (login + dashboard).
 * Se apoya en el grafismo del sitio: misma tipografía (Proxima Nova, cargada por style.css) y
 * los mismos azules de marca (#43CCF8 → #2882FB → #5432FF). Todo prefijado `mm-` para no chocar
 * con las clases del sitio original, que queda intacto.
 */
.mm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 28, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.mm-modal {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(28, 28, 28, 0.25);
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
  font-family: 'Proxima Nova', sans-serif;
  color: #1c1c1c;
}
.mm-x {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #757577;
  cursor: pointer;
  padding: 0;
}
.mm-logo {
  height: 34px;
  width: auto;
  display: block;
  margin: 0 auto 18px;
}
.mm-form {
  display: grid;
  gap: 14px;
}
.mm-form h2 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  color: #1c1c1c;
}
.mm-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #757577;
}
.mm-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e3e6ef;
  border-radius: 10px;
  background: #f4f6fa;
  color: #1c1c1c;
  font-size: 15px;
  font-family: inherit;
}
.mm-form input:focus {
  outline: 2px solid #43ccf8;
  outline-offset: 1px;
}

/* Botones — mismos azules que el sitio (button{background:#43CCF8; hover #2882FB}). */
.mm-btn {
  background: #43ccf8;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mm-btn:hover {
  background: #2882fb;
}
.mm-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.mm-btn-ghost {
  background: transparent;
  color: #757577;
  border: 1px solid #e3e6ef;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.mm-error {
  color: #d23c3c;
  font-size: 13px;
  margin: 2px 0 0;
  text-align: center;
}
.mm-muted {
  color: #757577;
  font-size: 13px;
  text-align: center;
  margin: 0;
}

/* Dashboard — overlay a pantalla completa sobre la landing. */
.mm-dash {
  position: fixed;
  inset: 0;
  background: #f6f7fb;
  overflow-y: auto;
  z-index: 1000;
  font-family: 'Proxima Nova', sans-serif;
  color: #1c1c1c;
}
.mm-dash-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}
.mm-dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.mm-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.mm-dash-head h2 {
  margin: 0 0 4px;
  font-size: 26px;
}
.mm-badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: #edf0f3;
  color: #2882fb;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
.mm-period-picker {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #757577;
  font-weight: 600;
}
.mm-period-picker select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e3e6ef;
  background: #fff;
  color: #1c1c1c;
  font-size: 14px;
  font-family: inherit;
}

.mm-total {
  background: linear-gradient(135deg, #43ccf8, #5432ff);
  color: #fff;
  border-radius: 18px;
  padding: 28px;
  display: grid;
  gap: 6px;
  box-shadow: 0 12px 30px rgba(84, 50, 255, 0.18);
}
.mm-total-label {
  font-size: 13px;
  opacity: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mm-total-amount {
  font-size: clamp(36px, 7vw, 54px);
  font-weight: 800;
  letter-spacing: -1.5px;
}
.mm-total-note {
  font-size: 13px;
  opacity: 0.92;
}

.mm-streams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 640px) {
  .mm-streams {
    grid-template-columns: 1fr;
  }
}
.mm-stream {
  background: #fff;
  border: 1px solid #e3e6ef;
  border-radius: 18px;
  padding: 20px;
}
.mm-stream-title {
  font-size: 13px;
  color: #757577;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mm-stream-amount {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 6px 0 12px;
  color: #2882fb;
}
.mm-stream ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.mm-stream li {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e3e6ef;
  padding-top: 8px;
  font-size: 14px;
}
.mm-stream li span {
  color: #757577;
}
.mm-warn {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #fff6e6;
  border-radius: 10px;
  color: #a35b00;
  font-size: 13px;
}
.mm-disclaimer {
  margin-top: 20px;
  font-size: 13px;
  color: #757577;
}
[hidden] {
  display: none !important;
}

/* ── Simulador "¿y si…?" (solo visible si el backend expone la tarifa aplicada) ── */
.mm-sim {
  margin-top: 24px;
  padding: 18px 20px;
  background: #f6f7fb;
  border-radius: 14px;
}
.mm-sim-title {
  margin: 0 0 4px;
  font-size: 18px;
  color: #1c1c1c;
}
.mm-sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 12px;
  align-items: end;
}
.mm-sim-grid select {
  padding: 10px 12px;
  border: 1px solid #e3e6ef;
  border-radius: 10px;
  background: #fff;
  color: #1c1c1c;
  font-size: 16px;
  text-transform: capitalize;
}
.mm-sim-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #757577;
}
.mm-sim-grid input {
  padding: 10px 12px;
  border: 1px solid #e3e6ef;
  border-radius: 10px;
  background: #fff;
  color: #1c1c1c;
  font-size: 16px;
}
/* Línea de tarifa del nivel SIMULADO: pegada al título, a la izquierda (el site viejo centra). */
.mm-sim-rates {
  text-align: left;
  font-size: 13px;
  color: #757577;
  margin: 2px 0 14px;
}
/* Resultado en su PROPIA caja, no embutido en la 4ª columna del grid. */
.mm-sim-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e3e6ef;
  border-radius: 12px;
}
.mm-sim-result-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.mm-sim-total {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #2882fb;
}
.mm-sim-note {
  font-size: 12px;
  color: #a35b00;
  text-align: right;
  max-width: 55%;
}
@media (max-width: 640px) {
  .mm-sim-note {
    text-align: left;
    max-width: 100%;
  }
}
.mm-ladder-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2882fb;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .mm-sim-grid {
    grid-template-columns: 1fr;
  }
}

/* Rollover de «Cerrar sesión»: el CSS del site viejo tiene `button:hover{background:#2882FB}`
   (especificidad 0-1-1) que pisaba al ghost (0-1-0) y dejaba texto gris sobre azul. Este hover
   explícito empata especificidad y gana por orden de carga. */
.mm-btn-ghost:hover {
  background: #eef1f7;
  color: #1c1c1c;
}

/* ── Escalera de niveles («si fueras star…») ── */
.mm-ladder {
  margin-top: 16px;
  display: grid;
  gap: 6px;
}
.mm-ladder-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e3e6ef;
  font-size: 14px;
}
.mm-ladder-row.mm-ladder-current {
  border-color: #2882fb;
  background: #f0f6ff;
}
.mm-ladder-row b {
  color: #2882fb;
}
.mm-ladder-level {
  text-transform: capitalize;
  color: #1c1c1c;
  font-weight: 600;
}
.mm-ladder-rate {
  color: #757577;
  font-size: 12px;
}

/* ── Evolución (últimos 6 meses) ── */
.mm-history {
  margin-top: 24px;
  padding: 18px 20px;
  background: #f6f7fb;
  border-radius: 14px;
}
.mm-history-title {
  margin: 0 0 12px;
  font-size: 18px;
  color: #1c1c1c;
}
.mm-history-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: end;
  height: 110px;
}
.mm-history-col {
  display: grid;
  gap: 4px;
  align-content: end;
  justify-items: center;
  height: 100%;
}
.mm-history-bar {
  width: 100%;
  max-width: 46px;
  background: linear-gradient(180deg, #43ccf8, #2882fb);
  border-radius: 6px 6px 0 0;
  min-height: 3px;
}
.mm-history-amount {
  font-size: 11px;
  font-weight: 700;
  color: #2882fb;
}
.mm-history-label {
  font-size: 11px;
  color: #757577;
  text-transform: capitalize;
}
.mm-projection {
  margin-top: 10px;
  font-size: 13px;
  color: #1c1c1c;
  background: #f0f6ff;
  border-radius: 10px;
  padding: 10px 12px;
}
