/* ======================================================
   Account Control Panel — Dark + Gold Design System
   ====================================================== */

/* --- Page Layout --- */
#account-control {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 1rem 4rem;
  min-height: 100vh;
  background: url('/assets/img/background.jpg') no-repeat center top / cover fixed;
  position: relative;
}

#account-control::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(7,7,12,.82) 0%, rgba(7,7,12,.94) 70%, #07070c 100%);
  z-index: 0;
  pointer-events: none;
}

#account-control > * {
  position: relative;
  z-index: 1;
}

#account-control h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

/* --- Panel Nav Grid --- */
.panel-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  width: 100%;
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.panel-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: linear-gradient(168deg, rgba(14,14,22,.95) 0%, rgba(7,7,12,.98) 100%);
  border: 1px solid rgba(201,168,76,.08);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(0,0,0,.5),
    0 4px 16px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.02);
}

.panel-nav-btn svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.panel-nav-btn:hover {
  border-color: rgba(201,168,76,.25);
  transform: translateY(-2px);
  box-shadow:
    0 1px 2px rgba(0,0,0,.5),
    0 8px 32px rgba(0,0,0,.4),
    0 0 48px rgba(201,168,76,.06),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.panel-nav-btn:hover svg {
  color: var(--gold-light);
}

.panel-nav-btn.active {
  border-color: rgba(201,168,76,.3);
  background: linear-gradient(168deg, rgba(201,168,76,.08) 0%, rgba(7,7,12,.98) 100%);
}

.panel-nav-btn.active svg {
  color: var(--gold-light);
}

/* Nav button particle canvas */
.nav-btn-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

.panel-nav-btn--shop,
.panel-nav-btn--logout,
.panel-nav-btn--postulaciones {
  position: relative;
  overflow: hidden;
}

.panel-nav-btn--shop > *:not(.nav-btn-particles),
.panel-nav-btn--logout > *:not(.nav-btn-particles),
.panel-nav-btn--postulaciones > *:not(.nav-btn-particles) {
  position: relative;
  z-index: 1;
}

/* Shop accent */
.panel-nav-btn--shop {
  border-color: rgba(201,168,76,.12);
  background: linear-gradient(168deg, rgba(201,168,76,.04) 0%, rgba(7,7,12,.98) 100%);
}

.panel-nav-btn--shop svg {
  color: var(--gold-light);
  filter: drop-shadow(0 0 4px rgba(201,168,76,.3));
}

.panel-nav-btn--shop:hover {
  border-color: rgba(201,168,76,.35);
  background: linear-gradient(168deg, rgba(201,168,76,.08) 0%, rgba(7,7,12,.98) 100%);
  box-shadow:
    0 1px 2px rgba(0,0,0,.5),
    0 8px 32px rgba(0,0,0,.4),
    0 0 48px rgba(201,168,76,.1),
    inset 0 1px 0 rgba(255,255,255,.04);
}

/* Logout ghost style */
.panel-nav-btn--logout {
  background: transparent;
  border-color: rgba(184,58,78,.1);
}

.panel-nav-btn--logout svg {
  color: rgba(184,58,78,.6);
}

.panel-nav-btn--logout span {
  color: rgba(184,58,78,.7);
}

.panel-nav-btn--logout:hover {
  background: rgba(139,34,50,.06);
  border-color: rgba(184,58,78,.3);
}

.panel-nav-btn--logout:hover svg {
  color: var(--crimson-light);
  filter: drop-shadow(0 0 4px rgba(184,58,78,.4));
}

.panel-nav-btn--logout:hover span {
  color: var(--crimson-light);
}

/* Postulaciones accent — cyan/teal glow */
.panel-nav-btn--postulaciones {
  border-color: rgba(56,189,248,.12);
  background: linear-gradient(168deg, rgba(56,189,248,.04) 0%, rgba(7,7,12,.98) 100%);
}

.panel-nav-btn--postulaciones svg {
  color: #38bdf8;
  filter: drop-shadow(0 0 4px rgba(56,189,248,.3));
}

.panel-nav-btn--postulaciones:hover {
  border-color: rgba(56,189,248,.35);
  background: linear-gradient(168deg, rgba(56,189,248,.08) 0%, rgba(7,7,12,.98) 100%);
  box-shadow:
    0 1px 2px rgba(0,0,0,.5),
    0 8px 32px rgba(0,0,0,.4),
    0 0 48px rgba(56,189,248,.1),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.panel-nav-btn--postulaciones.active {
  border-color: rgba(56,189,248,.3);
  background: linear-gradient(168deg, rgba(56,189,248,.07) 0%, rgba(7,7,12,.98) 100%);
}

.panel-nav-btn--postulaciones.active svg {
  color: #38bdf8;
}

.panel-nav-btn--postulaciones.active span {
  color: #38bdf8;
}

/* Nav badge (notification count) */
.panel-nav-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #38bdf8;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(56,189,248,.4), 0 0 20px rgba(56,189,248,.15);
  animation: nav-badge-pulse 2s ease-in-out infinite;
}

@keyframes nav-badge-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(56,189,248,.4), 0 0 20px rgba(56,189,248,.15); }
  50% { box-shadow: 0 0 12px rgba(56,189,248,.6), 0 0 28px rgba(56,189,248,.25); }
}

/* --- Panel Card --- */
.panel-card {
  width: 100%;
  max-width: 900px;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(168deg, rgba(14,14,22,.95) 0%, rgba(7,7,12,.98) 100%);
  border: 1px solid rgba(201,168,76,.08);
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(0,0,0,.5),
    0 4px 16px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.02);
}

.panel-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* --- Info Table --- */
.panel-info-table {
  width: 100%;
  border-collapse: collapse;
}

.panel-info-table td {
  padding: 0.625rem 0;
  vertical-align: middle;
  border-bottom: 1px solid rgba(30,30,46,.6);
  font-size: 0.875rem;
}

.panel-info-table tr:last-child td {
  border-bottom: none;
}

.panel-info-table td:first-child {
  color: var(--muted-foreground);
  white-space: nowrap;
  padding-right: 1rem;
  width: 40%;
}

.panel-info-table td:last-child {
  color: var(--foreground);
  text-align: right;
}

.panel-info-table a {
  color: var(--gold);
  text-decoration: none;
  transition: color .2s;
}

.panel-info-table a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

.badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  flex-shrink: 0;
}

.badge-ok {
  background: rgba(74,222,128,.1);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,.2);
}
.badge-ok::before { background: #4ade80; }

.badge-premium {
  background: rgba(201,168,76,.1);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,.2);
}
.badge-premium::before { background: var(--gold-light); }

.badge-inactive {
  background: rgba(122,117,107,.1);
  color: var(--muted-foreground);
  border: 1px solid rgba(122,117,107,.2);
}
.badge-inactive::before { background: var(--muted-foreground); }

.badge-warn {
  background: rgba(251,146,60,.1);
  color: #fb923c;
  border: 1px solid rgba(251,146,60,.2);
}
.badge-warn::before { background: #fb923c; }

/* --- Transactions Table --- */
.panel-transactions-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.panel-transactions {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.panel-transactions thead tr {
  background: rgba(21,21,32,.8);
  border-bottom: 1px solid var(--border);
}

.panel-transactions thead td {
  padding: 0.75rem 1rem;
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.panel-transactions tbody td {
  padding: 0.75rem 1rem;
  color: var(--foreground);
  border-bottom: 1px solid rgba(30,30,46,.4);
  vertical-align: top;
}

.panel-transactions tbody tr:last-child td {
  border-bottom: none;
}

.panel-transactions tbody tr:hover {
  background: rgba(201,168,76,.03);
}

/* --- Transaction Filters --- */
.txn-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.txn-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.txn-filter label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.txn-filter select,
.txn-filter input[type="date"] {
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.6rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.78rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}

.txn-filter select:focus,
.txn-filter input[type="date"]:focus {
  border-color: rgba(201,168,76,.4);
}

.txn-filter input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(.7) sepia(.3) saturate(2) hue-rotate(10deg);
  cursor: pointer;
}

/* Transaction status pills */
.txn-status {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.txn-status::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 4px;
  flex-shrink: 0;
}

.txn-status--ok {
  background: rgba(74,222,128,.1);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,.15);
}
.txn-status--ok::before { background: #4ade80; }

.txn-status--pending {
  background: rgba(251,191,36,.1);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,.15);
}
.txn-status--pending::before { background: #fbbf24; }

.txn-status--failed {
  background: rgba(239,68,68,.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.15);
}
.txn-status--failed::before { background: #f87171; }

.txn-status--cancel {
  background: rgba(122,117,107,.1);
  color: var(--muted-foreground);
  border: 1px solid rgba(122,117,107,.15);
}
.txn-status--cancel::before { background: var(--muted-foreground); }

.txn-status--expired {
  background: rgba(122,117,107,.1);
  color: var(--muted-foreground);
  border: 1px solid rgba(122,117,107,.15);
}
.txn-status--expired::before { background: var(--muted-foreground); }

.txn-status--countercharge {
  background: rgba(239,68,68,.1);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.15);
}
.txn-status--countercharge::before { background: #f87171; }

/* Transaction footer */
.txn-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.txn-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.txn-show-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.875rem;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s ease;
}

.txn-show-more:hover {
  background: rgba(201,168,76,.15);
  border-color: rgba(201,168,76,.35);
  color: var(--gold-light);
}

.txn-show-more svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 719px) {
  .txn-filters {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Download Banner --- */
.panel-download {
  width: 100%;
  max-width: 900px;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(168deg, rgba(14,14,22,.95) 0%, rgba(7,7,12,.98) 100%);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius);
  text-align: center;
  box-shadow:
    0 1px 2px rgba(0,0,0,.5),
    0 4px 16px rgba(0,0,0,.3),
    0 0 40px rgba(201,168,76,.05),
    inset 0 1px 0 rgba(255,255,255,.02);
}

.panel-download h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

/* --- Info message (no transactions) --- */
.panel-empty-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.panel-empty-msg svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
}

/* --- Add action link (credits/premium) --- */
.panel-add-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem 0.25rem 0.5rem;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.18);
  border-radius: 9999px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all .2s ease;
  white-space: nowrap;
  margin-left: 0.4rem;
}

.panel-add-link:hover {
  background: rgba(201,168,76,.15);
  border-color: rgba(201,168,76,.35);
  color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(201,168,76,.15);
}

.panel-add-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* --- Responsive: Desktop --- */
@media (min-width: 720px) {
  #account-control {
    padding-top: 140px;
  }

  #account-control h2 {
    font-size: 2rem;
  }

  .panel-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .panel-nav-btn {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
  }

  .panel-nav-btn svg {
    width: 24px;
    height: 24px;
  }

  .panel-card {
    padding: 2rem 2.5rem;
  }

  .panel-info-table td {
    padding: 0.75rem 0;
    font-size: 0.9rem;
  }

  .panel-transactions {
    font-size: 0.85rem;
  }

  .panel-download {
    padding: 2.5rem;
  }
}

/* --- Bundle tooltip styles (keep existing) --- */
.bundle-tooltip-container {
  position: relative;
  display: inline-block;
  margin-left: 8px;
}

.bundle-more-link {
  color: var(--gold) !important;
  text-decoration: none !important;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 2px 6px;
  background: rgba(201,168,76,.15) !important;
  border-radius: 4px;
  border: 1px solid rgba(201,168,76,.3);
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 8px;
}

.bundle-more-link:hover {
  color: var(--primary-foreground) !important;
  background: var(--gold) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(201,168,76,.3);
}

.bundle-tooltip {
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute;
  z-index: 9999;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card) !important;
  color: var(--foreground) !important;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.3;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: normal;
  min-width: min(600px, 90vw);
  max-width: min(800px, 90vw);
  width: max-content;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(201,168,76,.2);
  transition: all 0.3s ease;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.bundle-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--card);
}

.bundle-tooltip-container:hover .bundle-tooltip {
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}

.panel-transactions .bundle-tooltip-container {
  position: relative;
  z-index: 1;
}

/* --- SPA Panel Content Transition --- */
#panel-content {
  width: 100%;
  max-width: 900px;
  transition: opacity .25s ease;
}

#panel-content.fade-out {
  opacity: 0;
}

/* --- SPA Loader --- */
.panel-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.panel-loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: panel-spin .7s linear infinite;
}

@keyframes panel-spin {
  to { transform: rotate(360deg); }
}

/* Inline loader (small, for action buttons) */
.panel-loader-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
}

.panel-loader-spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: panel-spin .7s linear infinite;
}

/* --- Panel Form Fields (options / support) --- */
.panel-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.panel-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.panel-field input,
.panel-field select,
.panel-field textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.panel-field input:focus,
.panel-field select:focus,
.panel-field textarea:focus {
  border-color: rgba(201,168,76,.4);
  box-shadow: 0 0 0 3px rgba(201,168,76,.08);
}

.panel-field input:disabled {
  opacity: .6;
  cursor: not-allowed;
  background: rgba(30,30,46,.6);
  color: var(--muted-foreground);
}

.panel-field input::placeholder {
  color: var(--muted-foreground);
  opacity: .5;
}

/* Checkbox row */
.panel-checkbox {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.panel-checkbox input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.panel-checkbox label {
  font-size: 0.85rem;
  color: var(--foreground);
  cursor: pointer;
}

/* Warning / success message */
.panel-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.2);
  color: var(--gold-light);
}

.panel-warning svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Form actions (submit button area) */
.panel-form-actions {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

/* Inline action row (promo code input + button) */
.panel-inline-action {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.panel-inline-action .panel-field {
  flex: 1;
  margin-bottom: 0;
}

/* Panel description text */
.panel-desc {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Dynamic content area (characters / premium) */
.panel-dynamic {
  margin-top: 1rem;
}

/* Shop page */
.panel-shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.panel-shop-image {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
}

.panel-shop-image img {
  max-width: 100%;
  height: auto;
}

.panel-shop-caption {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Support ticket link */
.panel-ticket-link {
  color: var(--gold);
  text-decoration: none;
  transition: color .2s;
}

.panel-ticket-link:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* --- Promo Modal --- */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: promo-fade-in .2s ease;
}

.promo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.promo-modal-content {
  position: relative;
  background: linear-gradient(168deg, rgba(14,14,22,.97) 0%, rgba(7,7,12,.99) 100%);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow:
    0 4px 32px rgba(0,0,0,.6),
    0 0 64px rgba(201,168,76,.04),
    inset 0 1px 0 rgba(255,255,255,.03);
}

.promo-modal-content h3 {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  padding-right: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.promo-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted-foreground);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color .15s;
}

.promo-modal-close:hover {
  color: var(--foreground);
}

.promo-modal .panel-loader {
  padding: 2.5rem 1rem;
}

.promo-modal .panel-field select {
  width: 100%;
}

.promo-transact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.promo-modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  color: #4ade80;
  font-size: 0.95rem;
  font-weight: 500;
}

.promo-modal-success svg {
  width: 40px;
  height: 40px;
}

/* Fullscreen success overlay */
.promo-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: promo-fade-in .3s ease;
}

.promo-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(74, 222, 128, .12);
  border: 2px solid rgba(74, 222, 128, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: promo-success-pop .4s cubic-bezier(.16,1,.3,1) .1s both;
}

.promo-success-icon svg {
  width: 44px;
  height: 44px;
  color: #4ade80;
}

.promo-success-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  animation: promo-success-pop .4s cubic-bezier(.16,1,.3,1) .25s both;
}

@keyframes promo-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes promo-success-pop {
  from { opacity: 0; transform: scale(.8) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- Characters Card Header Row --- */
.panel-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.panel-card-header-row h3 {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.panel-credits-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.panel-credits-label {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.panel-credits-value {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 1.05rem;
}

/* --- Character Options Grid --- */
.char-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.char-option-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.875rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  text-align: left;
  font-family: inherit;
}

.char-option-btn svg {
  width: 18px;
  height: 18px;
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: color .2s;
}

.char-option-btn:hover {
  border-color: rgba(201,168,76,.25);
  background: rgba(201,168,76,.05);
}

.char-option-btn:hover svg {
  color: var(--gold);
}

.char-option-btn.active {
  border-color: rgba(201,168,76,.35);
  background: rgba(201,168,76,.1);
}

.char-option-btn.active svg {
  color: var(--gold-light);
}

/* Credits needed row */
.char-ncred-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.char-ncred-label {
  color: var(--muted-foreground);
}

.char-ncred-row #ncred {
  color: var(--gold-light);
  font-weight: 600;
}

/* --- Character List Cards --- */
.char-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.char-card-item {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(201,168,76,.06);
  border-radius: var(--radius);
  padding: 0.875rem 1.125rem;
  transition: border-color .2s;
}

.char-card-item:hover {
  border-color: rgba(201,168,76,.15);
}

.char-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.char-card-identity {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.char-card-identity input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.char-card-identity input:focus {
  border-color: rgba(201,168,76,.4);
  box-shadow: 0 0 0 3px rgba(201,168,76,.08);
}

.char-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}

.char-card-class {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.char-card-status {
  flex-shrink: 0;
}

.char-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.char-status--online {
  background: rgba(74,222,128,.1);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,.2);
}

.char-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: char-pulse 2s ease-in-out infinite;
}

@keyframes char-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.char-status--offline {
  background: rgba(122,117,107,.08);
  color: var(--muted-foreground);
  border: 1px solid rgba(122,117,107,.15);
}

.char-card-actions {
  margin-top: 0.625rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(30,30,46,.5);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0;
}

.char-card-actions a,
.char-card-actions span {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
  background: var(--secondary);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}

.char-card-actions a:hover {
  border-color: rgba(201,168,76,.3);
  color: var(--gold-light);
  background: rgba(201,168,76,.06);
}

/* --- Support Wizard Steps --- */
.sup-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.sup-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.sup-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.25);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1.5rem;
}

.sup-step-body {
  flex: 1;
  min-width: 0;
}

.sup-step-body .panel-field {
  margin-bottom: 0;
}

/* Support form (loaded via AJAX) */
.sup-form {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.sup-type-info {
  display: flex;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.12);
  color: var(--foreground);
  font-size: 0.85rem;
  line-height: 1.6;
}

.sup-type-info > svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.sup-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.panel-field textarea {
  font-family: inherit;
  resize: vertical;
  min-height: 120px;
}

.panel-field textarea::placeholder {
  color: var(--muted-foreground);
  opacity: .5;
}

.sup-form input[type="file"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.8rem;
  cursor: pointer;
}

.sup-form input[type="file"]::file-selector-button {
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius);
  color: var(--gold-light);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  margin-right: 0.75rem;
  transition: background .2s;
}

.sup-form input[type="file"]::file-selector-button:hover {
  background: rgba(201,168,76,.18);
}

.sup-terms {
  margin: 1.25rem 0;
  padding: 1rem;
  background: rgba(255,255,255,.015);
  border: 1px solid rgba(30,30,46,.5);
  border-radius: var(--radius);
}

.sup-terms .panel-checkbox {
  margin-bottom: 0.625rem;
}

.sup-terms .panel-checkbox:last-child {
  margin-bottom: 0;
}

/* --- Shop Hint Overlay --- */
.shop-hint-active {
  position: relative;
  overflow: hidden;
}

.shop-hint-active > *:not(.shop-hint-overlay) {
  filter: blur(6px);
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
  transition: filter .45s ease, opacity .45s ease;
}

.shop-hint-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  transition: opacity .4s ease;
}

.shop-hint-overlay p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--foreground);
  max-width: 420px;
}

.shop-hint-overlay p strong {
  color: var(--gold-light);
}

.shop-hint-overlay img {
  max-width: 260px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(201,168,76,.15);
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}

.shop-hint-overlay .btn-outline {
  min-width: 220px;
}

/* --- Shop Page --- */
@supports (background: paint(something)) {
  @property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
  }
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.shop-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: linear-gradient(168deg, rgba(14,14,22,.96) 0%, rgba(7,7,12,.99) 100%);
  border: 2px solid rgba(255,255,255,.04);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  z-index: 0;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s;
}

.shop-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--border-angle), transparent 55%, var(--glow) 75%, transparent 90%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shop-border-spin 4s linear infinite;
  z-index: -1;
}

.shop-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 100%, var(--glow-dim) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

.shop-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px var(--shadow);
}

.shop-btn:hover::after {
  opacity: 1;
}

.shop-btn.active {
  border-color: var(--glow);
  box-shadow: 0 0 32px var(--shadow);
}

.shop-btn.active::before {
  background: conic-gradient(from var(--border-angle), transparent 40%, var(--glow) 60%, transparent 80%);
}

.shop-btn.active::after {
  opacity: 1;
}

@keyframes shop-border-spin {
  to { --border-angle: 360deg; }
}

.shop-btn-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shop-btn-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

.shop-btn-inner svg {
  width: 24px;
  height: 24px;
  color: var(--glow);
  filter: drop-shadow(0 0 6px var(--shadow));
  transition: transform .3s;
}

.shop-btn:hover .shop-btn-inner svg {
  transform: scale(1.15);
}

.shop-btn-inner span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: center;
}

/* Shop intro — NPC speech bubble */
.shop-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  margin-top: 0.5rem;
}

.shop-speech {
  position: relative;
  max-width: 480px;
  padding: 0.75rem 1.25rem;
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.shop-speech p {
  font-size: 0.85rem;
  color: var(--gold-light);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), #fff, var(--gold-light), var(--gold));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shop-speech-shimmer 4s ease-in-out infinite;
}

@keyframes shop-speech-shimmer {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

.shop-speech-arrow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(201,168,76,.15);
}

.shop-intro img {
  max-width: 420px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.5)) drop-shadow(0 0 30px rgba(201,168,76,.08));
}

/* Button color variants */
.shop-btn--credits {
  --glow: rgb(201,168,76);
  --glow-dim: rgba(201,168,76,.08);
  --shadow: rgba(201,168,76,.25);
}
.shop-btn--premium {
  --glow: rgb(120,140,255);
  --glow-dim: rgba(120,140,255,.08);
  --shadow: rgba(120,140,255,.25);
}
.shop-btn--bundle {
  --glow: rgb(255,120,40);
  --glow-dim: rgba(255,120,40,.08);
  --shadow: rgba(255,120,40,.25);
}

/* --- Loaded content styling --- */
#shop-content .panel-card {
  animation: shop-fade-in .3s ease;
}

@keyframes shop-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#shop-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

#shop-content .subtitulo {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  font-style: italic;
}

/* Method / payment tables */
#shop-content .transacciones {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

#shop-content .transacciones thead tr {
  background: rgba(21,21,32,.8);
  border-bottom: 1px solid var(--border);
}

#shop-content .transacciones thead td {
  padding: 0.75rem 1rem;
  color: var(--muted-foreground);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#shop-content .transacciones tbody td {
  padding: 0.75rem 1rem;
  color: var(--foreground);
  border-bottom: 1px solid rgba(30,30,46,.4);
  vertical-align: middle;
}

#shop-content .transacciones tbody tr:last-child td {
  border-bottom: none;
}

#shop-content .transacciones tbody tr:hover {
  background: rgba(201,168,76,.03);
}

#shop-content .transacciones a {
  color: var(--gold);
  text-decoration: none;
}

#shop-content .transacciones a:hover {
  color: var(--gold-light);
}

/* Replace select.png with styled link */
.shop-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.875rem;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}

.shop-select-btn:hover {
  background: rgba(201,168,76,.2);
  border-color: rgba(201,168,76,.4);
  color: #fff;
}

/* Radio labels */
#shop-content .radio-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  line-height: 1.5;
  cursor: pointer;
}

#shop-content .radio-label input[type="radio"] {
  accent-color: var(--gold);
  margin-top: 4px;
  width: 16px;
  height: 16px;
}

#shop-content .LinksHeader {
  font-size: 0.8rem;
  color: var(--gold);
}

/* Old button overrides */
#shop-content .blue-button-sm,
#shop-content .green-button-sm,
#shop-content .red-button-sm {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
  transition: all .2s;
  font-family: inherit;
}

#shop-content .blue-button-sm {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--primary-foreground);
}
#shop-content .blue-button-sm:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
}
#shop-content .blue-button-sm:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

#shop-content .green-button-sm {
  background: rgba(74,222,128,.15);
  border-color: rgba(74,222,128,.3);
  color: #4ade80;
}
#shop-content .green-button-sm:hover {
  background: rgba(74,222,128,.25);
}

#shop-content .red-button-sm {
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.25);
  color: #f87171;
}
#shop-content .red-button-sm:hover {
  background: rgba(239,68,68,.2);
}

/* Back button */
.shop-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s;
}

.shop-back-btn:hover { color: var(--gold-light); }
.shop-back-btn svg { width: 16px; height: 16px; }

/* Bundle details toggle */
/* Bundle details toggle */
.bundle-container {
  display: block;
  margin-top: 0.5rem;
}

.bundle-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  background: rgba(201,168,76,.1);
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.bundle-toggle:hover {
  background: rgba(201,168,76,.2);
  border-color: rgba(201,168,76,.35);
}

.bundle-toggle--open {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.2);
  color: #f87171;
}

.bundle-toggle--open:hover {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.3);
}

.bundle-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-6px);
  transition: grid-template-rows .35s cubic-bezier(.16,1,.3,1),
              opacity .25s ease,
              transform .3s cubic-bezier(.16,1,.3,1),
              margin .3s ease,
              padding .3s ease,
              border-color .3s ease;
  margin-top: 0;
  overflow: hidden;
}

.bundle-details > * {
  overflow: hidden;
}

.bundle-details-inner {
  padding: 0.875rem 1rem;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(201,168,76,.12);
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--foreground);
}

.bundle-details--open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.75rem;
}

/* Premium discount banner */
.premium-discount-banner {
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(187,134,252,.06) 0%, rgba(7,7,12,.95) 100%);
  border: 1px solid rgba(187,134,252,.2);
  border-radius: var(--radius);
  text-align: left;
}

.premium-discount-banner--active {
  border-color: rgba(187,134,252,.35);
  background: linear-gradient(135deg, rgba(187,134,252,.1) 0%, rgba(7,7,12,.95) 100%);
}

.premium-discount-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.premium-discount-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.premium-discount-icon {
  width: 24px;
  height: 24px;
  color: #BB86FC;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(187,134,252,.4));
}

.premium-discount-body strong {
  display: block;
  font-size: 0.85rem;
  color: #d4b4ff;
  margin-bottom: 0.15rem;
}

.premium-discount-body span {
  font-size: 0.78rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.bundle-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--foreground);
}

.bundle-notice > svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.bundle-notice p {
  margin: 0;
}

.bundle-notice a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bundle-notice a:hover {
  color: #fff;
}

@media (max-width: 719px) {
  .sup-form-row {
    grid-template-columns: 1fr;
  }

  /* Shop mobile */
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .shop-btn {
    padding: 1rem 0.875rem;
    flex-direction: row;
    gap: 0.625rem;
  }
  .shop-btn-inner {
    flex-direction: row;
  }
  .shop-btn-inner svg {
    width: 20px;
    height: 20px;
  }
  .shop-speech {
    max-width: 100%;
  }
  .shop-intro img {
    max-width: 280px;
  }
  #shop-content .transacciones {
    font-size: 0.75rem;
  }
  #shop-content .transacciones thead td,
  #shop-content .transacciones tbody td {
    padding: 0.5rem 0.5rem;
  }
  #shop-content .panel-card {
    padding: 1.25rem 1rem;
    overflow-x: auto;
  }

  /* Character / Premium options: 1 column on mobile */
  .char-options-grid {
    grid-template-columns: 1fr;
  }

  /* Bigger touch targets for option buttons */
  .char-option-btn {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }

  .char-option-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Character card actions: bigger tap targets */
  .char-card-actions a,
  .char-card-actions span {
    padding: 0.45rem 0.875rem;
    font-size: 0.8rem;
  }

  /* Character card: stack name + status vertically */
  .char-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Panel card reduce padding */
  .panel-card {
    padding: 1.25rem 1rem;
  }

  /* Panel card header row: stack on very narrow */
  .panel-card-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Name reserve: stack form vertically */
  .nr-form {
    flex-direction: column;
    align-items: stretch;
  }

  .nr-form .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Name reserve: stats wrap */
  .nr-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Support wizard: reduce step gap */
  .sup-step {
    gap: 0.625rem;
  }

  .sup-step-num {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    margin-top: 1.25rem;
  }

  /* Discord banner compact */
  .discord-banner {
    padding: 1rem;
  }

  .discord-banner-body p {
    font-size: 0.8rem;
  }

  /* Mobile nav links: ensure 44px min touch target */
  .panel-nav-btn {
    padding: 1rem 0.625rem;
    font-size: 0.75rem;
    min-height: 44px;
  }

  /* Tables: font size down */
  .panel-transactions {
    font-size: 0.75rem;
  }

  .panel-transactions thead td {
    padding: 0.5rem 0.625rem;
  }

  .panel-transactions tbody td {
    padding: 0.625rem;
  }

  /* Info table responsive */
  .panel-info-table td {
    font-size: 0.8rem;
    display: block;
  }

  .panel-info-table td:first-child {
    width: auto;
    padding-bottom: 0.125rem;
    border-bottom: none;
  }

  .panel-info-table td:last-child {
    text-align: left;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(30,30,46,.6);
  }

  .panel-info-table tr:last-child td:last-child {
    border-bottom: none;
  }

  /* IP code block: allow wrapping */
  .acc-ip {
    word-break: break-all;
  }

  /* Panel field selects full width */
  .panel-field select {
    max-width: 100%;
  }
}

/* --- Access Log --- */
.acc-section {
  padding-top: 0.25rem;
}

.acc-subtitle {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  font-style: italic;
}

.acc-ip {
  font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  background: rgba(255,255,255,.03);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* --- Name Reserve Section --- */
.nr-section {
  padding-top: 0.5rem;
}

.nr-msg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.nr-msg svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nr-msg--success {
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.2);
  color: #4ade80;
}

.nr-msg--error {
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  color: #f87171;
}

.nr-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.nr-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nr-stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.nr-stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
}

.nr-reserved {
  margin-bottom: 1.25rem;
}

.nr-reserved-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.nr-reserved-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.nr-reserved-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-light);
}

.nr-form {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.nr-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 0.375rem;
}

.nr-input-row {
  flex: 1;
}

.nr-form input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.875rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.nr-form input:focus {
  border-color: rgba(201,168,76,.4);
  box-shadow: 0 0 0 3px rgba(201,168,76,.08);
}

.nr-form input::placeholder {
  color: var(--muted-foreground);
  opacity: .5;
}

.nr-form .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
}

/* --- Discord Banner --- */
.discord-banner {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  background: linear-gradient(168deg, rgba(88,101,242,.06) 0%, rgba(7,7,12,.95) 100%);
  border: 1px solid rgba(88,101,242,.18);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,.4),
    0 4px 16px rgba(0,0,0,.2),
    0 0 40px rgba(88,101,242,.06);
  animation: discord-pulse 3s ease-in-out infinite;
}

@keyframes discord-pulse {
  0%, 100% { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.2), 0 0 30px rgba(88,101,242,.05); }
  50% { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.2), 0 0 50px rgba(88,101,242,.12), 0 0 80px rgba(88,101,242,.04); }
}

.discord-banner-glow {
  display: none;
}

.discord-banner-icon {
  width: 28px;
  height: 28px;
  color: #5865f2;
  flex-shrink: 0;
}

.discord-banner-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.discord-banner-body p {
  font-size: 0.85rem;
  color: var(--foreground);
  line-height: 1.5;
  margin: 0;
  opacity: .85;
}

.discord-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: #5865f2;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(88,101,242,.3);
}

.discord-banner-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(88,101,242,.4);
}

.discord-banner-btn:active {
  transform: translateY(0);
}

.discord-banner-btn svg {
  width: 16px;
  height: 16px;
}

/* --- Shield 2FA Form --- */
.shield-2fa-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.shield-2fa-container .panel-card {
  text-align: center;
}
.shield-2fa-desc {
  color: var(--foreground);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1.25rem 0;
}
.shield-2fa-form {
  margin: 1.5rem 0;
}
.shield-2fa-field {
  text-align: left;
  margin-bottom: 1.25rem;
}
.shield-2fa-field label {
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.shield-2fa-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--foreground);
  font-size: 1.5rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5em;
  text-align: center;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.shield-2fa-field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.15);
}
.shield-2fa-field input::placeholder {
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.5em;
}
.shield-2fa-remember {
  text-align: left;
  margin-bottom: 1.25rem;
}
.shield-2fa-remember label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s;
}
.shield-2fa-remember label:hover {
  color: rgba(255,255,255,0.95);
}
.shield-2fa-remember input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.shield-2fa-remember input[type="checkbox"]:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,0.08);
}
.shield-2fa-remember input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23000' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}
.shield-2fa-hint {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  margin-top: 1rem;
  line-height: 1.5;
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border-left: 2px solid rgba(255,255,255,0.1);
}

.shield-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.shield-loader-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.shield-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  color: var(--gold-light);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* --- Payment Page --- */
.payment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 560px;
  margin: 0 auto;
}
.payment-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.payment-card-header svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}
.payment-card-header h3 {
  font-size: 1.1rem;
  color: var(--foreground);
  margin: 0;
}
.payment-card-body {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.payment-card-body .payment-secure {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.payment-card-body .payment-secure svg {
  width: 14px;
  height: 14px;
}
.payment-card-action {
  text-align: center;
}
.payment-card-action .btn-primary {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}
.payment-card-action a.btn-primary {
  display: block;
  text-decoration: none;
  text-align: center;
}

/* Payment redirect spinner */
.payment-redirect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
}
.payment-redirect-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: payment-spin 0.8s linear infinite;
}
@keyframes payment-spin {
  to { transform: rotate(360deg); }
}
.payment-redirect p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin: 0;
}

/* Payment status messages */
.payment-status {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.payment-status svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.payment-status--success {
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.3);
  color: #81c784;
}
.payment-status--success svg { color: #4caf50; }
.payment-status--error {
  background: rgba(244,67,54,0.1);
  border: 1px solid rgba(244,67,54,0.3);
  color: #ef9a9a;
}
.payment-status--error svg { color: #f44336; }
.payment-status--pending {
  background: rgba(255,183,77,0.1);
  border: 1px solid rgba(255,183,77,0.3);
  color: #ffe0b2;
}
.payment-status--pending svg { color: #ffb74d; }

/* CuentaDigital print section */
.payment-print-actions {
  text-align: center;
  margin-bottom: 1rem;
}
.payment-print-img {
  text-align: center;
  margin-top: 1rem;
}
.payment-print-img img {
  max-width: 100%;
  border-radius: 8px;
}

/* --- Gift System --- */
#gift-container {
  display: none;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: rgba(187,134,252,0.04);
  border: 1px solid rgba(187,134,252,0.25);
  border-radius: 10px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  position: relative;
}
#gift-container.gift-container--open {
  display: block;
  max-height: 500px;
  opacity: 1;
}
.gift-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
#gift-container > *:not(.gift-particles) {
  position: relative;
  z-index: 1;
}
.gift-title {
  text-align: center;
  color: #BB86FC;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.gift-title svg {
  width: 18px;
  height: 18px;
}
.gift-field {
  margin-bottom: 1rem;
}
.gift-field label {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.gift-field select,
.gift-field input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: #1a1a2e;
  color: var(--foreground);
  border: 1px solid rgba(187,134,252,0.3);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.gift-field select option {
  background: #1a1a2e;
  color: var(--foreground);
  padding: 0.5rem;
}
.gift-field select option:disabled {
  color: #BB86FC;
  font-weight: 600;
}
.gift-field select option:checked {
  background: rgba(187,134,252,0.2);
}
.gift-field select:focus,
.gift-field input[type="text"]:focus {
  outline: none;
  border-color: #BB86FC;
  box-shadow: 0 0 0 2px rgba(187,134,252,0.15);
}
.gift-input--error {
  border-color: #f44336 !important;
  box-shadow: 0 0 0 2px rgba(244,67,54,0.15) !important;
}
.gift-validation {
  font-size: 0.78rem;
  margin-top: 0.35rem;
  min-height: 1.2em;
}
.gift-validation--error { color: #ef9a9a; }
.gift-validation--ok { color: #81c784; }
.gift-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}
.gift-note {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(187,134,252,0.06);
  border: 1px solid rgba(187,134,252,0.15);
  border-radius: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.5;
}
.gift-note strong { color: #BB86FC; }
.gift-error {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  background: rgba(244,67,54,0.1);
  border: 1px solid rgba(244,67,54,0.3);
  border-radius: 8px;
  color: #ef9a9a;
  font-size: 0.85rem;
  animation: giftErrorPulse 0.5s ease;
}
.gift-error svg { width: 18px; height: 18px; flex-shrink: 0; color: #f44336; }
@keyframes giftErrorPulse {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.gift-confirmed {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  justify-content: center;
}
.gift-confirmed svg { width: 24px; height: 24px; color: #4caf50; flex-shrink: 0; }
.gift-confirmed strong { display: block; color: #81c784; font-size: 0.9rem; }
.gift-confirmed span { display: block; color: rgba(255,255,255,0.6); font-size: 0.82rem; margin-top: 0.15rem; }

/* Shop purchase buttons row */
.shop-purchase-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
}
.btn-gift {
  background: rgba(187,134,252,0.15);
  color: #BB86FC;
  border: 1px solid rgba(187,134,252,0.35);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-gift:hover { background: rgba(187,134,252,0.25); border-color: #BB86FC; }
.btn-gift:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-gift-cancel {
  background: rgba(244,67,54,0.1);
  color: #ef9a9a;
  border: 1px solid rgba(244,67,54,0.3);
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: none;
}
.btn-gift-cancel:hover { background: rgba(244,67,54,0.2); }
.btn-gift-confirm {
  background: rgba(76,175,80,0.15);
  color: #81c784;
  border: 1px solid rgba(76,175,80,0.35);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-gift-confirm:hover { background: rgba(76,175,80,0.25); }
.btn-gift-buy {
  background: rgba(187,134,252,0.2) !important;
  border-color: #BB86FC !important;
  color: #BB86FC !important;
}

/* Support form dynamic areas */
#ressup,
#restype {
  margin-top: 0.5rem;
}

#restype .panel-field {
  margin-top: 1rem;
}

/* --- Generic Panel Modal --- */
.panel-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.panel-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.panel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.panel-modal-content {
  position: relative;
  background: linear-gradient(168deg, rgba(14,14,22,.97) 0%, rgba(7,7,12,.99) 100%);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  max-width: 480px;
  width: 90%;
  box-shadow:
    0 4px 24px rgba(0,0,0,.6),
    0 0 60px rgba(201,168,76,.04);
  transform: translateY(12px) scale(.97);
  transition: transform .25s cubic-bezier(.16,1,.3,1);
  text-align: center;
}

.panel-modal.active .panel-modal-content {
  transform: translateY(0) scale(1);
}

.panel-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--muted-foreground);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color .15s;
}

.panel-modal-close:hover {
  color: var(--foreground);
}

.panel-modal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 0.75rem;
}

.panel-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.panel-modal-icon svg {
  width: 24px;
  height: 24px;
}

.panel-modal-icon--warn {
  background: rgba(251,146,60,.1);
  border: 1px solid rgba(251,146,60,.25);
  color: #fb923c;
}

.panel-modal-desc {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.panel-modal-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
}

.panel-modal-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.panel-modal-stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.panel-modal-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}

@media (max-width: 719px) {
  .panel-modal-content {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .panel-modal-stats {
    gap: 1.5rem;
  }
}

.panel-modal-ban-detail {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(239,68,68,.05);
  border: 1px solid rgba(239,68,68,.15);
  border-radius: 6px;
  text-align: left;
}

.panel-modal-stat-value--time {
  font-size: 1.1rem;
  color: #f87171;
}

/* --- Shield Toggle Card --- */
.shield-toggle-card {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(239,68,68,.15);
  background: rgba(239,68,68,.03);
  transition: all .3s ease;
}

.shield-toggle-card--active {
  border-color: rgba(74,222,128,.2);
  background: rgba(74,222,128,.04);
}

.shield-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shield-toggle-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shield-toggle-info > svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: rgba(239,68,68,.5);
  transition: color .3s;
}

.shield-toggle-card--active .shield-toggle-info > svg {
  color: #4ade80;
}

.shield-toggle-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
}

.shield-toggle-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.1rem;
}

/* Toggle switch */
.shield-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.shield-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.shield-switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(239,68,68,.2);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 9999px;
  transition: all .25s ease;
}

.shield-switch-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239,68,68,.6);
  transition: all .25s ease;
}

.shield-switch input:checked + .shield-switch-slider {
  background: rgba(74,222,128,.15);
  border-color: rgba(74,222,128,.3);
}

.shield-switch input:checked + .shield-switch-slider::before {
  transform: translateX(20px);
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74,222,128,.4);
}

/* Shield warning modal actions */
.shield-warn-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.btn-secondary {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
  transition: all .2s;
}

.btn-secondary:hover {
  border-color: rgba(201,168,76,.25);
  background: rgba(201,168,76,.06);
}

.btn-danger {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid rgba(239,68,68,.3);
  background: rgba(239,68,68,.12);
  color: #f87171;
  transition: all .2s;
}

.btn-danger:hover {
  background: rgba(239,68,68,.2);
  border-color: rgba(239,68,68,.45);
  color: #fca5a5;
}

.panel-modal-icon--danger {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  color: #f87171;
}

/* --- Form elements (options/support pages reuse) --- */
.subscription-container {
  padding: 15px 0px 10px 0px;
}

.btn-container {
  text-align: center;
}

.form-table {
  padding: 0 10px;
}

select {
  width: 100%;
  max-width: 280px;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.radio-label input[type="radio" i] {
  margin-top: 0px;
}

@media (min-width: 720px) {
  .form-table {
    padding: 0 40px;
  }

  .subscription-container {
    padding: 15px 50px 10px 50px;
  }
}

/* --- Postulaciones --- */
.postulaciones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.postulacion-card {
  background: rgba(21,21,32,.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}

.postulacion-card:hover {
  border-color: rgba(201,168,76,.3);
  background: rgba(21,21,32,.85);
  transform: translateY(-1px);
}

.postulacion-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.postulacion-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0;
}

.postulacion-desc {
  font-size: 0.825rem;
  color: var(--muted-foreground);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.postulacion-deadline {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0 0 0.75rem;
}

.postulacion-deadline svg {
  flex-shrink: 0;
}

.postulacion-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold-light);
  opacity: .6;
  transition: opacity .2s;
}

.postulacion-card:hover .postulacion-card-cta {
  opacity: 1;
}

/* --- Postulacion Modal --- */
.postulacion-modal-content {
  max-width: 600px;
  text-align: left;
  max-height: 85vh;
  overflow-y: auto;
}

.postulacion-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.postulacion-modal-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 10px;
}

.postulacion-modal-icon svg {
  width: 22px;
  height: 22px;
  color: var(--gold-light);
}

.postulacion-modal-header h3 {
  margin: 0;
  padding-top: 0.15rem;
  font-size: 1.15rem;
  text-align: left;
  color: var(--foreground);
}

.postulacion-modal-meta {
  margin-bottom: 1rem;
}

.postulacion-modal-deadline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  background: rgba(21,21,32,.6);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.postulacion-modal-body {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  padding: 1rem;
  background: rgba(21,21,32,.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 220px;
  overflow-y: auto;
}

.postulacion-modal-body p {
  margin: 0 0 0.75rem;
}

.postulacion-modal-body p:last-child {
  margin-bottom: 0;
}

.postulacion-modal-body strong {
  color: var(--foreground);
}

.postulacion-modal-divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

.postulacion-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.postulacion-modal-cancel {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, color .2s;
}

.postulacion-modal-cancel:hover {
  border-color: rgba(201,168,76,.3);
  color: var(--foreground);
}

.postulacion-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #07070c;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity .2s;
}

.postulacion-apply-btn:hover {
  opacity: .85;
}

.postulacion-modal-applied {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: #fb923c;
  background: rgba(251,146,60,.06);
  border: 1px solid rgba(251,146,60,.15);
  border-radius: var(--radius);
}

.postulacion-modal-content .panel-field {
  margin-top: 0;
}

.postulacion-modal-content .panel-field label {
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.postulacion-modal-content .panel-field textarea {
  resize: vertical;
  min-height: 100px;
}

/* --- Solicitud Detail Button --- */
.solicitud-detalle-btn {
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.2);
  color: #38bdf8;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all .2s;
}

.solicitud-detalle-btn:hover {
  background: rgba(56,189,248,.15);
  border-color: rgba(56,189,248,.35);
}

/* --- Solicitud Modal --- */
.solicitud-modal-estado {
  margin-bottom: 0.5rem;
}

.solicitud-modal-section {
  margin-bottom: 1rem;
}

.solicitud-modal-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,.45);
  margin-bottom: 0.4rem;
}

.solicitud-modal-msg {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.solicitud-modal-msg--staff {
  border-color: rgba(56,189,248,.15);
  background: rgba(56,189,248,.04);
}

.solicitud-modal-fecha {
  font-size: 0.75rem;
  color: rgba(255,255,255,.35);
}

@media (min-width: 640px) {
  .postulaciones-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
