/* H4X Shop · Actividad de créditos, Recargar e Información adicional.
   Se carga después de interface.css y reutiliza sus variables. */

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

/* ================= Actividad de créditos ================= */
.txf { margin: 0; padding: 0; list-style: none; }
.txf-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px 0;
  animation: txf-in 360ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.txf-item + .txf-item { border-top: 1px solid var(--border-subtle); }
.txf-compact > .txf-item:first-child { padding-top: 4px; }
.txf-compact > .txf-item:last-child { padding-bottom: 4px; }

.txf-ico {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  background: var(--surface-3);
}
.txf-ico .icon { width: 18px; height: 18px; }
.txf-topup .txf-ico { color: var(--success); background: var(--success-soft); border-color: #2e5039; }
.txf-purchase .txf-ico { color: var(--warning); background: var(--warning-soft); border-color: #4f4128; }
.txf-renew .txf-ico { color: var(--info); background: var(--info-soft); border-color: #2a464d; }
.txf-refund .txf-ico { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.txf-adjust .txf-ico { color: var(--text-secondary); background: var(--surface-3); border-color: var(--border); }

.txf-body { min-width: 0; padding-top: 1px; }
.txf-head { display: flex; min-height: 22px; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.txf-kind { color: var(--text); font-size: .875rem; font-weight: 690; letter-spacing: -.012em; }
.txf-tag {
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  background: var(--surface-2);
  font-size: .6875rem;
  font-weight: 650;
  line-height: 1.55;
}
.txf-user { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .75rem; }
.txf-user .icon { width: 13px; height: 13px; }
.txf-meta { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: .75rem; line-height: 1.55; }
/* El separador del primer elemento de cada línea queda fuera (recortado): nunca hay "·" colgando. */
.txf-meta-in { display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; margin-left: -15px; }
.txf-meta-in > * { position: relative; padding-left: 15px; }
.txf-meta-in > *::before { content: "·"; position: absolute; left: 5px; color: var(--border-strong); }
.txf-time { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.txf-note { overflow-wrap: anywhere; }
.txf-acc { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; text-decoration: none; }
.txf-acc .icon { width: 12px; height: 12px; }
a.txf-acc:hover span { text-decoration: underline; text-underline-offset: 3px; }
.txf-acc.is-static { color: var(--text-secondary); }

.txf-money { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding-top: 1px; text-align: right; font-variant-numeric: tabular-nums; }
.txf-amt { font-size: .9375rem; font-weight: 720; letter-spacing: -.015em; white-space: nowrap; }
.is-in > .txf-money .txf-amt { color: var(--success); }
.is-out > .txf-money .txf-amt { color: var(--danger); }
.txf-bal { color: var(--muted); font-size: .6875rem; white-space: nowrap; }
.txf-bal span { color: var(--text-secondary); font-weight: 600; }

/* Agrupado por día (Movimientos) */
.txf-days { display: grid; gap: 26px; }
.txf-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.txf-day-name { color: var(--text); font-size: .9375rem; font-weight: 720; letter-spacing: -.02em; }
.txf-day-head > small { color: var(--muted); font-size: .75rem; }
.txf-day-net { margin-left: auto; font-size: .8125rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.txf-day-net.is-in { color: var(--success); }
.txf-day-net.is-out { color: var(--danger); }
.txf-day-net small { margin-left: 6px; color: var(--muted); font-size: .6875rem; font-weight: 500; }
.txf-day .txf > .txf-item:last-child { padding-bottom: 2px; }

/* Resumen de Movimientos */
.txf-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; overflow: hidden; }
.txf-sum { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 18px 22px; }
.txf-sum + .txf-sum { border-left: 1px solid var(--border-subtle); }
.txf-sum > span:last-child { min-width: 0; }
.txf-sum-ico { display: inline-flex; width: 38px; height: 38px; flex: none; align-items: center; justify-content: center; border-radius: 11px; }
.txf-sum-ico .icon { width: 18px; height: 18px; }
.txf-sum.is-in .txf-sum-ico { color: var(--success); background: var(--success-soft); }
.txf-sum.is-out .txf-sum-ico { color: var(--danger); background: var(--danger-soft); }
.txf-sum.is-count .txf-sum-ico { color: var(--info); background: var(--info-soft); }
.txf-sum small { display: block; color: var(--muted); font-size: .75rem; font-weight: 600; }
.txf-sum b { display: block; margin-top: 2px; color: var(--text); font-size: 1.5rem; font-weight: 740; letter-spacing: -.04em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.txf-sum.is-in b { color: var(--success); }
.txf-sum.is-out b { color: var(--danger); }
.txf-sum em { display: block; margin-top: 2px; color: var(--muted); font-size: .6875rem; font-style: normal; }

@media (max-width: 599px) {
  .txf-item { gap: 10px; padding: 13px 0; }
  .txf-ico { width: 34px; height: 34px; border-radius: 10px; }
  .txf-ico .icon { width: 16px; height: 16px; }
  .txf-amt { font-size: .875rem; }
  .txf-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .txf-sum { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px; }
  .txf-sum-ico { width: 30px; height: 30px; border-radius: 9px; }
  .txf-sum-ico .icon { width: 15px; height: 15px; }
  .txf-sum b { font-size: 1.125rem; }
  .txf-sum em { display: none; }
}

/* ================= Recargar ================= */
.tp-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .75rem; font-weight: 620; }
.tp-label .icon { width: 15px; height: 15px; color: var(--accent); }
.tp-sub { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.tp-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.tp-big b { color: var(--text); font-size: clamp(2.1rem, 3.4vw, 2.75rem); font-weight: 760; letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.tp-big small { color: var(--text-secondary); font-size: .875rem; }

.tp-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  border-color: var(--accent-line);
  background: linear-gradient(125deg, #222b20, var(--surface) 62%);
}
.tp-sum { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 10px; padding: 22px 24px; }
.tp-sum + .tp-sum { border-left: 1px solid var(--border-subtle); }
.tp-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--text); font-size: 1.375rem; font-weight: 730; letter-spacing: -.035em; line-height: 1.15; }
.tp-rate > span { color: var(--muted); font-weight: 500; }
.tp-accent { color: var(--accent); }
.tp-user { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 5px 5px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--field); }
.tp-user .mono { min-width: 0; color: var(--text); font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }

.tp-grid { display: grid; align-items: start; gap: 16px; }
.tp-side { display: grid; min-width: 0; gap: 16px; }
@media (min-width: 1100px) {
  .tp-grid { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr); }
}

/* Pasos */
.tp-steps { margin: 10px 0 0; padding: 0; list-style: none; }
.tp-step { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding-bottom: 28px; }
.tp-step:last-child { padding-bottom: 2px; }
.tp-step::before { content: ""; position: absolute; top: 42px; bottom: 6px; left: 16px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent-line), var(--border-subtle)); }
.tp-step:last-child::before { display: none; }
.tp-step-n {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  background: var(--surface-3);
  box-shadow: 0 0 0 4px var(--surface);
  font-size: .875rem;
  font-weight: 760;
}
.tp-step:first-child .tp-step-n { color: var(--on-accent); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tp-step-body { min-width: 0; }
.tp-step-body h4 { margin: 6px 0 4px; color: var(--text); font-size: 1rem; font-weight: 710; letter-spacing: -.02em; }
.tp-step-body > p { margin: 0 0 14px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.tp-step:last-child .tp-step-body > p { margin-bottom: 0; }

/* Montos */
.tp .tp-packs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tp .tp-pack {
  position: relative;
  align-items: flex-start;
  gap: 3px;
  padding: 14px 14px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms, background 160ms, transform 160ms, box-shadow 160ms;
}
.tp .tp-pack:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.tp .tp-pack:active { transform: translateY(0); }
.tp .tp-pack .package-usd { color: var(--text); font-size: 1.375rem; font-weight: 760; letter-spacing: -.045em; line-height: 1.15; }
.tp .tp-pack .package-cr { color: var(--text-secondary); font-size: .8125rem; font-weight: 500; }
.tp .tp-pack .package-cr b { color: var(--text); font-weight: 680; }
.tp .tp-pack .package-hint { color: var(--muted); font-size: .6875rem; }
.tp-pack-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--on-accent);
  background: var(--accent);
  opacity: 0;
  transform: scale(.5);
  transition: opacity 160ms, transform 200ms var(--ease);
}
.tp-pack-check .icon { width: 12px; height: 12px; stroke-width: 3; }
.tp .tp-pack.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tp .tp-pack.is-selected .package-usd { color: var(--accent); }
.tp .tp-pack.is-selected .tp-pack-check { opacity: 1; transform: scale(1); }

/* Solicitud */
.tp .tp-request { display: block; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-soft); }
.tp-msg { padding: 16px 18px; }
.tp-msg-head { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: .6875rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.tp-msg-head .icon { width: 14px; height: 14px; }
.tp .tp-msg p { margin: 8px 0 0; color: var(--text); font-size: .9375rem; line-height: 1.6; }
.tp-msg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--accent-line); background: rgb(0 0 0 / 18%); }
.tp-msg-total small { display: block; color: var(--muted); font-size: .6875rem; }
.tp-msg-total b { color: var(--text); font-size: 1rem; font-variant-numeric: tabular-nums; }

/* Calculadora */
.tp-field + .tp-field { margin-top: 22px; }
.tp-field-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tp-field-label { color: var(--text-secondary); font-size: .8125rem; font-weight: 650; }
.tp-num { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8125rem; }
.tp .tp-num .input, .tp .tp-stepper .input {
  width: 72px;
  min-height: 38px;
  padding: 0 6px;
  color: var(--text);
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.tp input[type="number"]::-webkit-inner-spin-button,
.tp input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.tp-stepper { display: inline-flex; align-items: stretch; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--field); }
.tp .tp-stepper .input { width: 54px; border: 0; border-radius: 0; background: transparent; }
.tp .tp-stepper .input:focus { box-shadow: inset 0 0 0 1px var(--accent-strong); }
.tp-step-btn { width: 38px; border: 0; color: var(--text); background: var(--surface-2); font-size: 1.125rem; font-weight: 600; cursor: pointer; transition: background 140ms, color 140ms; }
.tp-step-btn:hover { color: var(--accent); background: var(--surface-3); }

.tp-range {
  width: 100%;
  height: 6px;
  margin: 6px 0 2px;
  border-radius: 99px;
  outline: none;
  background: linear-gradient(90deg, var(--accent) 0 var(--p, 0%), var(--surface-3) var(--p, 0%) 100%);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.tp-range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 2px 8px rgb(0 0 0 / 45%);
  transition: transform 140ms;
  -webkit-appearance: none;
  appearance: none;
}
.tp-range::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid var(--bg); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tp-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.tp-range:focus-visible { box-shadow: 0 0 0 4px var(--accent-soft); }

.tp-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tp-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-secondary);
  background: var(--surface-2);
  font-size: .75rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 140ms, border-color 140ms, color 140ms;
}
.tp-chip .icon { width: 13px; height: 13px; }
.tp-chip:hover { border-color: var(--border-strong); color: var(--text); }
.tp-chip.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.tp-result { margin-top: 22px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--field); }
.tp-result-main { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: radial-gradient(130% 150% at 100% 0%, rgb(196 244 119 / 11%), transparent 60%); }
.tp-result .tp-big b { color: var(--accent); }
.tp-breakdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--border-subtle); }
.tp-breakdown > div { min-width: 0; padding: 10px 14px; }
.tp-breakdown > div + div { border-left: 1px solid var(--border-subtle); }
.tp-breakdown dt { color: var(--muted); font-size: .6875rem; }
.tp-breakdown dd { margin: 2px 0 0; color: var(--text); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-afford { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: .8125rem; line-height: 1.5; }
.tp-afford > .icon { width: 17px; height: 17px; flex: none; }
.tp-afford > span { flex: 1 1 150px; min-width: 0; }
.tp-afford b { color: var(--text); }
.tp-afford .btn { margin-left: auto; }
.tp-afford.is-ok > .icon { color: var(--success); }
.tp-afford.is-short { background: rgb(246 207 132 / 6%); }
.tp-afford.is-short > .icon { color: var(--warning); }

/* Precios de referencia */
.tp-ref-caption { display: block; margin-bottom: 8px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.tp-ref-seg { width: 100%; scrollbar-width: none; }
.tp-ref-seg .icon { width: 14px; height: 14px; }
.tp-ref-seg::-webkit-scrollbar { display: none; }
.tp .tp-ref-seg > button { flex: 1 0 auto; gap: 5px; min-height: 36px; padding: 6px 10px; font-variant-numeric: tabular-nums; }
.tp-ref-list { display: grid; margin-top: 10px; }
.tp-ref-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--text-secondary);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 140ms;
  animation: txf-in 260ms var(--ease) both;
}
.tp-ref-row + .tp-ref-row { box-shadow: inset 0 1px 0 var(--border-subtle); }
.tp-ref-row:hover { background: var(--surface-2); }
.tp-ref-row.is-on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.tp-ref-days b { color: var(--text); font-size: .875rem; font-weight: 650; }
.tp-ref-days small { margin-left: 8px; color: var(--muted); font-size: .6875rem; }
.tp-ref-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tp-ref-price b { color: var(--text); font-size: .9375rem; font-weight: 700; }
.tp-ref-row.is-on .tp-ref-price b { color: var(--accent); }
.tp-ref-price small { color: var(--muted); font-size: .6875rem; }
.tp-ref-price em { display: inline-block; min-width: 50px; margin-left: 10px; color: var(--muted); font-size: .75rem; font-style: normal; text-align: right; }
.tp-formula { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.tp-formula .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }

@media (max-width: 899px) {
  .tp-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-sum-balance { grid-column: 1 / -1; border-bottom: 1px solid var(--border-subtle); }
  .tp-sum.tp-sum-rate { border-left: 0; }
}
@media (max-width: 599px) {
  .tp-summary { grid-template-columns: minmax(0, 1fr); }
  .tp-sum { gap: 8px; padding: 16px 18px; }
  .tp-sum-balance { border-bottom: 0; }
  .tp-sum-user .tp-sub { display: none; }
  .tp-rate { font-size: 1.1875rem; }
  .tp-sum + .tp-sum { border-top: 1px solid var(--border-subtle); border-left: 0; }
  .tp .tp-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-step { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .tp-step::before { left: 14px; top: 38px; }
  .tp-step-n { width: 30px; height: 30px; font-size: .8125rem; }
  .tp-step-body h4 { margin-top: 4px; }
  .tp-msg-foot .btn { width: 100%; }
  .tp-breakdown > div { padding: 10px; }
}

/* ================= Información adicional ================= */
.info-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.info-spec { display: inline-flex; min-width: 96px; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--field); }
.info-spec small { color: var(--muted); font-size: .6875rem; }
.info-spec b { color: var(--text); font-size: .8125rem; }
.info-rows { display: grid; gap: 8px; margin-bottom: 18px; }
.info-row { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--field); }
.info-row-ico { display: inline-flex; width: 34px; height: 34px; flex: none; align-items: center; justify-content: center; border-radius: 10px; color: var(--success); background: var(--success-soft); }
.info-row-ico .icon { width: 16px; height: 16px; }
.info-row-text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.info-row-label { color: var(--text-secondary); font-size: .75rem; font-weight: 650; }
.info-row-label small { display: block; margin-top: 1px; color: var(--muted); font-size: .6875rem; font-weight: 500; }
.info-row-value { color: var(--text); font-size: .8125rem; overflow-wrap: anywhere; }
.info-row .btn-copy { flex: none; }

.info-notes-title { margin: 0 0 10px; color: var(--muted); font-size: .6875rem; font-weight: 720; letter-spacing: .09em; text-transform: uppercase; }
.note-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.note-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  animation: txf-in 320ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.note-ico { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); background: var(--surface-3); }
.note-ico .icon { width: 16px; height: 16px; }
.note-ws .note-ico, .note-link .note-ico { color: var(--info); background: var(--info-soft); }
.note-wss .note-ico, .note-tls .note-ico { color: var(--accent); background: var(--accent-soft); }
.note-udp .note-ico, .note-key .note-ico { color: var(--warning); background: var(--warning-soft); }
.note-check .note-ico { color: var(--success); background: var(--success-soft); }
.note-body { min-width: 0; padding-top: 1px; }
.note-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 2px; }
.note-title b { color: var(--text); font-size: .875rem; font-weight: 700; letter-spacing: -.01em; }
.note-title small { color: var(--muted); font-size: .6875rem; }
.note-text { margin: 0; color: var(--text-secondary); font-size: .8125rem; line-height: 1.9; overflow-wrap: anywhere; }
.note-item:not(:has(.note-title)) .note-text { padding-top: 6px; line-height: 1.7; }
.note-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  margin: 0 1px;
  padding: 0 7px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  color: var(--accent);
  background: var(--accent-soft);
  font: 600 .75rem/1.65 var(--font-mono);
  vertical-align: baseline;
  text-align: left;
  cursor: pointer;
  transition: background 140ms, border-color 140ms;
}
.note-chip span { min-width: 0; overflow-wrap: anywhere; word-break: break-all; }
.note-chip .icon { width: 12px; height: 12px; flex: none; opacity: .7; }
.note-chip:hover { border-color: var(--accent-strong); background: #2f3c26; }
.note-chip:hover .icon { opacity: 1; }
.note-code { padding: 0 6px; border-radius: 6px; color: var(--text); background: var(--surface-3); font: .75rem/1.65 var(--font-mono); }
.info-tip { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; color: var(--muted); font-size: .6875rem; }
.info-tip .icon { width: 13px; height: 13px; }

/* Tabla de precios (Admin): que no se apile en móvil. */
@media (max-width: 699px) {
  .table.price-table td,
  .table.price-table td:not([data-label]) { display: table-cell; }
}

@media (prefers-reduced-motion: reduce) {
  .txf-item, .note-item, .tp-ref-row { animation: none; }
  .tp .tp-pack, .tp-pack-check, .tp-chip, .tp-ref-row, .note-chip, .tp-step-btn { transition: none; }
}

/* ================= Protocolos extra (HCR, Dropbear, BHTTP, BadVPN, FastDNS, SlowDNS, Shadowsocks) ================= */
.protocol-dns .chip { color: #c9b8ff; }

/* Asistente: 5 protocolos V2Ray (3 + 2 en escritorio, 2 columnas en móvil) */
.option-grid-proto { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.option-grid-proto > .option-card { grid-column: span 2; }
.option-grid-proto > .proto-shadowsocks, .option-grid-proto > .proto-all { grid-column: span 3; }
.option-grid-proto > .proto-all .option-title::after { content: "Recomendado"; margin-left: 8px; padding: 2px 7px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: .625rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; }
@media (max-width: 599px) {
  .option-grid-proto { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .option-grid-proto > .option-card, .option-grid-proto > .proto-shadowsocks { grid-column: span 1; padding: 12px 11px; }
  .option-grid-proto > .proto-all { grid-column: 1 / -1; }
  .option-grid-proto .option-title { font-size: .875rem; }
  .option-grid-proto .option-desc { font-size: .6875rem; }
}

/* Guía de la pestaña Acceso: métodos de la cuenta SSH */
.guide-methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.guide-methods .chip { font-size: .75rem; }

/* Tarjetas de BadVPN / FastDNS / SlowDNS */
.proto-card .card-title { flex-wrap: wrap; row-gap: 4px; }
.proto-tag { margin-left: 4px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--field); font-size: .6875rem; font-weight: 600; letter-spacing: .01em; }
.proto-udpgw .card-title .icon { color: var(--warning); }
.proto-fastdns .card-title .icon, .proto-slowdns .card-title .icon { color: #c9b8ff; }
.proto-steps { display: grid; gap: 8px; margin: 2px 0 14px; padding: 0; list-style: none; counter-reset: proto; }
.proto-steps li { position: relative; padding-left: 32px; color: var(--muted); font-size: .8125rem; line-height: 1.5; counter-increment: proto; }
.proto-steps li::before { content: counter(proto); position: absolute; left: 0; top: -1px; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; color: #c9b8ff; background: rgba(160, 135, 255, .14); font-size: .6875rem; font-weight: 700; }
.proto-steps b { color: var(--text); font-weight: 600; }
.proto-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.proto-file { color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
@media (max-width: 599px) {
  .proto-actions .btn { flex: 1 1 100%; justify-content: center; }
  .proto-file { flex: 1 1 100%; text-align: center; }
}

/* Notas "Cómo conectar": tonos de los protocolos nuevos */
.note-hcr .note-ico { color: var(--info); background: var(--info-soft); }
.note-ssh .note-ico { color: var(--text); background: var(--surface-3); }
.note-bhttp .note-ico { color: var(--accent); background: var(--accent-soft); }
.note-udpgw .note-ico { color: var(--warning); background: var(--warning-soft); }
.note-dns .note-ico, .note-ss .note-ico { color: #c9b8ff; background: rgba(160, 135, 255, .14); }

/* Admin: registros DNS para SlowDNS */
.slowdns-field { margin-top: 4px; }
.dns-records-box { display: grid; gap: 8px; margin-top: 10px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 12px; background: var(--field); font-size: .75rem; }
.dns-records-box.is-ready { border-style: solid; border-color: rgba(160, 135, 255, .35); }
.dns-records-title { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.dns-records-title .icon { width: 15px; height: 15px; color: #c9b8ff; }
.dns-record { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); }
.dns-record code { padding: 2px 7px; border-radius: 6px; color: var(--text); background: var(--surface-3); font-size: .75rem; overflow-wrap: anywhere; }
.dns-type { min-width: 30px; padding: 2px 6px; border-radius: 6px; color: #c9b8ff; background: rgba(160, 135, 255, .14); font-weight: 700; text-align: center; }
.dns-arrow { color: var(--muted); }
.dns-record small { flex-basis: 100%; padding-left: 36px; color: var(--muted); font-size: .6875rem; }
.dns-records-foot { color: var(--muted); font-size: .6875rem; }

/* ================= Selección de protocolos por servidor + cuenta ordenada por método ================= */

/* Asistente: rejilla según cuántos protocolos vende el servidor */
.option-grid-types.n-1 { grid-template-columns: minmax(0, 1fr); }
.option-grid-proto.n-1 > .option-card { grid-column: 1 / -1; }
.option-grid-proto.n-2 > .option-card, .option-grid-proto.n-4 > .option-card { grid-column: span 3; }
.option-grid-proto.n-3 > .option-card { grid-column: span 2; }
.wizard-transport { margin-left: 8px; padding: 2px 8px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: .6875rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; }
.option-transport { align-self: flex-start; margin: 2px 0 4px; padding: 1px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--field); font-size: .625rem; font-weight: 700; letter-spacing: .02em; }
@media (max-width: 599px) {
  .option-grid-proto.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .option-grid-proto.n-3 > .option-card { grid-column: span 1; }
  .option-grid-proto.n-2 > .option-card, .option-grid-proto.n-4 > .option-card { grid-column: span 1; }
  .option-grid-proto.n-1 > .option-card { grid-column: 1 / -1; }
}

/* Tarjeta de servidor: transporte V2Ray */
.transport-tag { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px dashed var(--accent-line); border-radius: 999px; color: var(--accent); font-size: .6875rem; font-weight: 700; letter-spacing: .02em; }

/* Cuenta: Conexión = datos de acceso + métodos / enlaces */
.account-connect-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1000px) { .account-connect-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); } }
.account-credentials .notice { margin-top: 14px; }
.methods-card .card-head, .links-card .card-head { align-items: flex-start; }
.method-count { padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--field); font-size: .6875rem; font-weight: 600; white-space: nowrap; }
.method-tabs { margin: 0 0 16px; }
.method-tabs > button { flex: 1 0 auto; }
@media (max-width: 599px) {
  .method-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .method-tabs > button { white-space: normal; text-align: center; }
}
.method-panel { animation: method-in .22s ease-out; }
.method-panel[hidden] { display: none; }
@keyframes method-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.method-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.method-ico { display: inline-flex; width: 38px; height: 38px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 11px; color: var(--text); background: var(--surface-3); }
.method-ico .icon { width: 18px; height: 18px; }
.method-title { min-width: 0; flex: 1; }
.method-title h4 { margin: 0; color: var(--text); font-size: .9375rem; font-weight: 700; }
.method-title p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.method-tag { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; color: var(--text-secondary, var(--muted)); background: var(--field); border: 1px solid var(--border); font: 600 .6875rem/1.4 var(--font-mono); white-space: nowrap; }
.tone-tls .method-ico, .tone-wss .method-ico { color: var(--accent); background: var(--accent-soft); }
.tone-ws .method-ico, .tone-hcr .method-ico { color: var(--info); background: var(--info-soft); }
.tone-udp .method-ico, .tone-udpgw .method-ico { color: var(--warning); background: var(--warning-soft); }
.tone-bhttp .method-ico { color: var(--accent); background: var(--accent-soft); }
.tone-dns .method-ico { color: #c9b8ff; background: rgba(160, 135, 255, .14); }
.method-rows { display: grid; gap: 10px; }
@media (min-width: 600px) {
  .method-rows.is-multi { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
.method-rows .copy-row, .method-format .copy-row { min-height: 0; }
.method-format { margin-top: 10px; }
.method-format .copy-row { border-color: var(--accent-line); background: linear-gradient(90deg, var(--accent-soft), var(--field) 70%); }
.method-format .copy-value { overflow-wrap: anywhere; }
.method-payload { margin-top: 10px; }
.method-payload .code { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Enlaces V2Ray: protocolo + transporte + puerto */
.link-tag { padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: .6875rem; font-weight: 700; letter-spacing: .02em; }
.link-tag-port { font-family: var(--font-mono); font-weight: 600; }
.link-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; }
.link-facts > div { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.link-facts dt { color: var(--muted); font-size: .6875rem; }
.link-facts dd { margin: 0; color: var(--text); font-size: .75rem; overflow-wrap: anywhere; }
.links-card .v2ray-links { gap: 14px; }

/* Admin: protocolos que vende cada servidor */
.proto-field { margin-top: 6px; }
.proto-picker { display: grid; gap: 12px; margin-top: 10px; }
.proto-pick { margin: 0; padding: 12px 14px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--field); min-width: 0; }
.proto-pick legend { padding: 0 6px; color: var(--text); font-size: .8125rem; font-weight: 700; }
.proto-pick legend small { margin-left: 4px; color: var(--muted); font-size: .6875rem; font-weight: 500; }
.proto-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.proto-check { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.proto-check:hover { border-color: var(--border); }
.proto-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.proto-check-box { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; align-items: center; justify-content: center; margin-top: 1px; border: 1px solid var(--border); border-radius: 5px; color: transparent; background: var(--field); transition: background .15s, border-color .15s, color .15s; }
.proto-check-box .icon { width: 12px; height: 12px; }
.proto-check input:checked + .proto-check-box { color: #10140d; background: var(--accent); border-color: var(--accent); }
.proto-check input:checked ~ .proto-check-text b { color: var(--text); }
.proto-check:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.proto-check input:focus-visible + .proto-check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.proto-check-text { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.proto-check-text b { color: var(--text-secondary, var(--muted)); font-size: .8125rem; font-weight: 600; }
.proto-check-text small { color: var(--muted); font-size: .6875rem; line-height: 1.4; }
.slowdns-field[hidden] { display: none; }
@media (max-width: 599px) { .proto-pick-grid { grid-template-columns: minmax(0, 1fr); } }
.sold-summary { display: grid; gap: 6px; margin: 2px 0 14px; padding: 10px 12px; border: 1px solid var(--accent-line); border-radius: 10px; background: linear-gradient(90deg, var(--accent-soft), transparent 80%); font-size: .75rem; }
.sold-title { color: var(--accent); font-size: .625rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sold-group { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sold-group b { min-width: 44px; color: var(--text); }
.sold-group span { color: var(--text-secondary, var(--muted)); }
.sold-group em { margin-left: 4px; color: var(--accent); font-style: normal; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .method-panel { animation: none; } .proto-check, .proto-check-box { transition: none; } }
/* Ajustes: filas más compactas en los métodos y etiqueta "Recomendado" sin cortes */
.method-rows .copy-row, .method-format .copy-row { padding: 10px 12px; }
.option-grid-proto > .proto-all .option-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.option-grid-proto > .proto-all .option-title::after { margin-left: 0; white-space: nowrap; }
.sold-ok { display: flex; align-items: center; gap: 6px; margin: -6px 0 14px; color: var(--success); font-size: .75rem; }
.sold-ok .icon { width: 14px; height: 14px; }
.sold-pending { margin: -4px 0 14px; font-size: .75rem; }
