/* Pain Panel — VIP: compra, tokens y administración. */

.vip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 16px;
  align-items: start;
}

.vip-duration-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.vip-duration-option {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: flex-start;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.vip-duration-option:hover {
  border-color: var(--accent-line);
  transform: translateY(-1px);
}

.vip-duration-option.active {
  border-color: var(--accent-line);
  background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.vip-duration-option span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}

.vip-duration-option b {
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.vip-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.vip-total-row b {
  color: var(--text);
  font-size: 20px;
}

.vip-payment-box {
  padding: 11px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.vip-payment-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.vip-payment-head .row-icon {
  width: 28px;
  height: 28px;
  flex: none;
}

.vip-payment-head b {
  display: block;
  font-size: 12px;
}

.vip-payment-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.vip-payment-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.vip-pay-button {
  font-weight: 750;
}

#vip-buy {
  margin-top: 0;
}

.vip-admin-section {
  padding: 2px 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.vip-admin-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 10px;
}

.vip-admin-section-head {
  margin-bottom: 10px;
}

.vip-admin-section-head h4 {
  margin: 0;
  font-size: 13px;
}

.vip-admin-section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.vip-paypal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.vip-paypal-choice {
  display: flex;
  flex: 1 1 140px;
  flex-direction: column;
  gap: 1px;
  align-items: flex-start;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.vip-paypal-choice b {
  color: var(--text);
  font-size: 12px;
}

.vip-paypal-choice span {
  font-size: 10px;
}

.vip-paypal-choice:hover {
  background: var(--surface-3);
}

.vip-paypal-choice.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.vip-paypal-choice.active b,
.vip-paypal-choice.active span {
  color: var(--text);
}

.vip-paypal-off {
  align-self: center;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.vip-paypal-off:hover {
  color: var(--danger, #ef4444);
  background: rgba(239, 68, 68, .1);
}

.vip-paypal-off:disabled {
  opacity: .45;
  cursor: default;
}

.vip-paypal-mode {
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.vip-paypal-mode-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10.5px;
}

.vip-paypal-mode .field {
  margin-bottom: 10px;
}

.vip-table-scroll {
  max-height: 340px;
  overflow: auto;
  border-radius: 0 0 12px 12px;
}

.vip-guide {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.vip-rule {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}

.vip-rule:last-child {
  border-bottom: 0;
}

.vip-rule > svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

.vip-rule b {
  display: block;
  font-size: 12px;
}

.vip-rule span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.vip-coverage {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}
.vip-coverage b { display: block; font-size: 12.5px; }
.vip-coverage span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.vip-token-list {
  display: grid;
  gap: 10px;
}

.vip-revoked-summary ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.vip-token-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: var(--surface-2);
}

.vip-token-card.is-expired {
  opacity: .72;
}

.vip-token-card.is-revoked {
  border-color: rgba(239, 77, 77, .35);
  background: linear-gradient(180deg, var(--surface-2), rgba(239, 77, 77, .04));
}

.vip-token-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.vip-token-card > summary::-webkit-details-marker { display: none; }

.vip-token-card > summary::after {
  content: '+';
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.vip-token-card[open] > summary::after { content: '−'; }

.vip-token-summary-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vip-token-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
}

.vip-token-name svg { width: 13px; height: 13px; color: var(--accent); flex: none; }

.vip-token-summary-sub {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-token-summary-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vip-token-summary-side > span:last-child {
  color: var(--muted);
  font-size: 10.5px;
}

.vip-token-card[open] > summary {
  margin-bottom: 11px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.vip-token-body { min-width: 0; }
.vip-token-code [data-vip-code] { letter-spacing: .08em; }

.vip-token-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vip-token-code {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .05em;
}

.vip-token-location {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.vip-token-location svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.vip-token-location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-token-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex: none;
}

.vip-token-status > span:last-child {
  color: var(--muted);
  font-size: 10.5px;
}

.vip-token-status > span.is-live {
  color: var(--success);
}

.vip-token-progress {
  margin-top: 12px;
}

.vip-token-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10.5px;
}

.vip-token-progress-head b {
  color: var(--text);
}

.vip-token-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.vip-token-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .35s ease;
}

.vip-token-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.vip-token-grid > div {
  min-width: 0;
}

.vip-token-grid span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.vip-token-grid b {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-history {
  display: grid;
  gap: 16px;
}

.vip-history h4 {
  margin: 0 0 8px;
  font-size: 12px;
}

.vip-history-bots {
  display: grid;
  gap: 6px;
}

.vip-history-bot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 11px;
}

.vip-history-bot small {
  color: var(--muted);
}

.vip-history-list {
  position: relative;
  display: grid;
  gap: 2px;
  padding-left: 4px;
}

.vip-history-event {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

.vip-history-event:last-child {
  border-bottom: 0;
}

.vip-history-dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.vip-history-event b {
  display: block;
  font-size: 11.5px;
}

.vip-history-event small {
  color: var(--muted);
  font-size: 10px;
}

.vip-token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.vip-token-note {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
}

.vip-token-note.is-warn {
  color: var(--warn);
}

.vip-token-note.is-danger {
  color: var(--danger);
}

.vip-purchase-list {
  padding-bottom: 4px;
}

.vip-purchase-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}

.vip-purchase-row:last-child {
  border-bottom: 0;
}

.vip-purchase-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.vip-purchase-pager > span {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
  .vip-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .vip-duration-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vip-token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .vip-duration-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vip-token-head {
    display: grid;
    grid-template-columns: 1fr auto;
  }
}

/* ── Carrusel global de agradecimiento ─────────────────────────────────── */
.vip-thanks-host {
  width: 100%;
  max-width: 1360px;
  padding: 14px 24px 0;
}
.vip-thanks {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(135deg, #181a22 0%, #121419 55%, #17141a 100%) padding-box,
    linear-gradient(115deg, rgba(255, 209, 102, 0.55), rgba(232, 69, 60, 0.38) 42%, rgba(110, 168, 255, 0.3)) border-box;
  box-shadow:
    0 20px 55px -30px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  isolation: isolate;
}
.vip-thanks::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -140px;
  left: -100px;
  width: 420px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 69, 60, 0.24), transparent 65%);
  pointer-events: none;
}
.vip-thanks::after {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.075) 47%, transparent 62%);
  transform: translateX(-120%);
  animation: vip-thanks-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
.vip-thanks-head {
  position: relative;
  z-index: 2;
  order: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 196px;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}
.vip-thanks-emblem {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  color: #241206;
  background: linear-gradient(145deg, #ffe39a, #ffb24a 45%, #ef6b3d);
  box-shadow:
    0 10px 24px -10px rgba(255, 167, 73, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transform: rotate(-5deg);
}
.vip-thanks-emblem svg { width: 22px; height: 22px; }
.vip-thanks-head-copy b {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.vip-thanks-head-copy small {
  display: block;
  max-width: 160px;
  margin-top: 3px;
  color: #9aa0ad;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vip-thanks-cta {
  position: relative;
  z-index: 2;
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 11px;
  background: linear-gradient(135deg, #e8453c, #f07a3c);
  color: #fff;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 22px -12px rgba(232, 69, 60, 0.8);
  transition: transform 0.18s, filter 0.18s;
}
.vip-thanks-cta svg { width: 13px; height: 13px; transition: transform 0.18s; }
.vip-thanks-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.vip-thanks-cta:hover svg { transform: translateX(2px); }
.vip-thanks-marquee {
  position: relative;
  z-index: 2;
  order: 1;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.vip-thanks-static {
  position: relative;
  z-index: 2;
  order: 1;
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.vip-thanks-static .vip-thanks-card { flex: 0 0 276px; }
.vip-thanks-track {
  display: flex;
  width: max-content;
  animation: vip-thanks-scroll var(--vip-thanks-duration, 42s) linear infinite;
  will-change: transform;
}
.vip-thanks:hover .vip-thanks-track,
.vip-thanks:focus-within .vip-thanks-track { animation-play-state: paused; }
.vip-thanks:focus-visible {
  outline: 2px solid var(--accent-line);
  outline-offset: 2px;
}
.vip-thanks-group {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}
.vip-thanks-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 276px;
  max-width: 330px;
  padding: 11px 12px 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: 0 8px 20px -18px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.vip-thanks-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffd166, #e8453c);
}
.vip-thanks-card.tier-premium::before { background: linear-gradient(180deg, #b79cff, #6ea8ff); }
.vip-thanks-card.tier-free::before { background: linear-gradient(180deg, #67e8d5, #45b8e8); }
.vip-thanks-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
}
.vip-thanks-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  color: #211107;
  background: linear-gradient(145deg, #ffe6a6, #ffb24a 55%, #e8453c);
  box-shadow:
    0 6px 16px -10px rgba(255, 170, 80, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
}
.vip-thanks-card.tier-premium .vip-thanks-avatar {
  color: #120d20;
  background: linear-gradient(145deg, #d9ccff, #b79cff 50%, #6ea8ff);
  box-shadow:
    0 6px 16px -10px rgba(150, 125, 255, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.vip-thanks-card.tier-free .vip-thanks-avatar {
  color: #061a1d;
  background: linear-gradient(145deg, #a7fff1, #67e8d5 50%, #45b8e8);
  box-shadow:
    0 6px 16px -10px rgba(90, 220, 220, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.vip-thanks-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}
.vip-thanks-kicker {
  color: #ffb3a8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}
.vip-thanks-user {
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vip-thanks-line {
  display: flex;
  min-width: 0;
  color: #8f96a3;
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vip-thanks-server {
  overflow: hidden;
  text-overflow: ellipsis;
}
.vip-thanks-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
  flex: 0 0 auto;
}
.vip-thanks-tier {
  padding: 2px 6px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 999px;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.08);
  font-size: 7.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.vip-thanks-card.tier-premium .vip-thanks-tier {
  color: #b79cff;
  border-color: rgba(183, 156, 255, 0.35);
  background: rgba(183, 156, 255, 0.08);
}
.vip-thanks-card.tier-free .vip-thanks-tier {
  color: #67e8d5;
  border-color: rgba(103, 232, 213, 0.35);
  background: rgba(103, 232, 213, 0.08);
}
.vip-thanks-days {
  color: #8f96a3;
  font-size: 8.5px;
  white-space: nowrap;
}
@keyframes vip-thanks-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes vip-thanks-sheen {
  0%, 55% { transform: translateX(-120%); }
  78%, 100% { transform: translateX(120%); }
}
@media (max-width: 1100px) {
  .vip-thanks-head { min-width: 176px; }
  .vip-thanks-cta { padding: 8px 10px; }
}
@media (max-width: 900px) {
  .vip-thanks-host { padding: 10px 16px 0; }
  .vip-thanks {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }
  .vip-thanks-head {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
    border-right: 0;
  }
  .vip-thanks-cta { order: 2; margin-left: auto; }
  .vip-thanks-marquee,
  .vip-thanks-static { order: 3; flex: 1 1 100%; }
  .vip-thanks-card { min-width: 244px; }
  .vip-thanks-static .vip-thanks-card { flex-basis: 244px; }
}
@media (max-width: 520px) {
  .vip-thanks-host { padding: 8px 12px 0; }
  .vip-thanks { padding: 10px; }
  .vip-thanks-emblem {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }
  .vip-thanks-emblem svg { width: 19px; height: 19px; }
  .vip-thanks-head-copy b { font-size: 13px; }
  .vip-thanks-head-copy small { display: none; }
  .vip-thanks-cta { padding: 8px 9px; font-size: 10px; }
  .vip-thanks-card { min-width: 228px; }
  .vip-thanks-static .vip-thanks-card { flex-basis: 228px; }
}
@media (prefers-reduced-motion: reduce) {
  .vip-thanks-track { animation: none; }
  .vip-thanks::after { animation: none; opacity: 0; }
  .vip-thanks-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .vip-thanks-group[aria-hidden="true"] { display: none; }
}
