.profile-shell {
  width: 95%;
  max-width: 95%;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: rgba(18, 18, 32, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 18px;
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.profile-hero-avatar {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(8, 10, 18, 0.95);
  border: 2px solid rgba(168, 85, 247, 0.55);
  padding: 4px;
  flex-shrink: 0;
}

.profile-hero-meta h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #f8fafc;
}

.profile-hero-meta p {
  margin: 0.28rem 0 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

.profile-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.quick-pill {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.quick-pill.gold {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.42);
  color: #fcd34d;
}

.btn-logout {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #fca5a5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.35);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.profile-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

@media (max-width: 1100px) {
  .profile-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 620px) {
  .profile-menu-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.profile-menu-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(18, 18, 30, 0.92);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 16px;
  padding: 1.25rem 1.2rem;
  text-decoration: none;
  color: #f8fafc;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.profile-menu-card:hover {
  transform: translateY(-4px);
  border-color: #a855f7;
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.25);
}

.profile-menu-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.28), rgba(14, 16, 28, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.25), inset 0 0 10px rgba(56, 189, 248, 0.12);
  margin-bottom: 0.95rem;
}

.neon-svg {
  width: 26px;
  height: 26px;
  stroke: #38bdf8;
  filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.85));
}

.neon-svg.purple {
  stroke: #c084fc;
  filter: drop-shadow(0 0 7px rgba(192, 132, 252, 0.85));
}

.neon-svg.gold {
  stroke: #fcd34d;
  filter: drop-shadow(0 0 7px rgba(252, 211, 77, 0.85));
}

.neon-svg.emerald {
  stroke: #34d399;
  filter: drop-shadow(0 0 7px rgba(52, 211, 153, 0.85));
}

.flag-icon-inline {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ficha-section {
  margin-bottom: 1.15rem;
}

.ficha-heading {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.3px;
}

.ficha-heading .neon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ========================================================
   TARJETA ELEGANTE DE IDENTIDAD DEL DUELISTA (FICHA)
======================================================== */
.duelist-card {
  background: linear-gradient(135deg, rgba(18, 22, 36, 0.96), rgba(11, 14, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
}

.duelist-hero-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.1rem;
}

.duelist-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.duelist-avatar-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0.9) 70%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  padding: 5px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.duelist-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.duelist-status-pill.baneado {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.duelist-status-pill .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.duelist-status-pill.baneado .status-dot {
  background: #f87171;
  box-shadow: 0 0 6px #f87171;
}

.duelist-identity-details {
  flex: 1;
  min-width: 250px;
}

.duelist-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.duelist-username {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.3px;
}

.duelist-role-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.duelist-role-badge.administrador {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.duelist-role-badge.vip {
  background: rgba(168, 85, 247, 0.14);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}

.duelist-data-stack {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 0.35rem;
}

.data-stack-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.81rem;
  line-height: 1.35;
}

.data-stack-row .data-label {
  color: #64748b;
  font-size: 0.73rem;
  min-width: 125px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.data-stack-row .data-val {
  color: #e2e8f0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  word-break: break-all;
}

.duelist-quick-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(115px, 1fr));
  gap: 0.55rem;
  flex-shrink: 0;
}

.metric-pill {
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  text-align: left;
  transition: all 0.2s ease;
}

.metric-pill:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}

.metric-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.metric-val {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
}

.metric-pill.ss .metric-val {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.metric-pill.conduct .metric-val {
  color: #34d399;
}

/* Progreso */
.duelist-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}

.progress-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.progress-label {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.progress-val {
  font-size: 0.82rem;
  font-weight: 500;
  color: #cbd5e1;
}

.progress-val strong {
  font-weight: 700;
  color: #f8fafc;
}

.progress-val small {
  color: #64748b;
  font-size: 0.74rem;
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
}

.progress-fill.exp {
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.progress-fill.cards {
  background: linear-gradient(90deg, #10b981, #38bdf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.progress-sub {
  color: #64748b;
  font-size: 0.73rem;
}

.progress-sub strong {
  color: #94a3b8;
}

.bonus-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.bonus-pill-card {
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.2s ease;
}

.bonus-pill-card span {
  display: block;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #cbd5e1;
  margin-bottom: 0.2rem;
}

.bonus-pill-card strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.bonus-pill-card.exp {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

.bonus-pill-card.ss {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.bonus-pill-card.luck {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fcd34d;
}

.ava-split {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.ava-split-img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(8, 10, 18, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.45);
  padding: 6px;
  flex-shrink: 0;
}

.profile-menu-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.profile-menu-card p {
  margin: 0 0 1rem;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.45;
}

.profile-menu-cta {
  font-weight: 700;
  font-size: 0.88rem;
  color: #c084fc;
}

.profile-panel {
  background: rgba(18, 18, 30, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.4rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.info-box {
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  transition: all 0.2s ease;
}

.info-box:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
}

.info-box > span:first-child {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.duelo-record-line {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  font-size: 0.78rem !important;
  margin-top: 4px !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
}

.duelo-record-line span {
  display: inline !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin-bottom: 0 !important;
}

.info-box strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f1f5f9;
}

.mailbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mailbox-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.mailbox-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #f8fafc;
}

.mailbox-item p {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
}

.mailbox-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-discard {
  padding: 0.48rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  font-weight: 700;
  font-size: 0.83rem;
  cursor: pointer;
}

.status-tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  margin-right: 0.4rem;
}

.status-tag.PENDIENTE {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.status-tag.RECLAMADO {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.status-tag.DESCARTADO {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.edit-form {
  max-width: 480px;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  color: #cbd5e1;
  font-weight: 600;
}

.form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 18, 0.9);
  color: #f8fafc;
  font-size: 0.92rem;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .profile-shell {
    padding: 1rem 0.75rem 2.5rem;
  }

  .profile-hero {
    padding: 0.95rem 1rem;
    gap: 0.75rem;
  }

  .profile-hero-avatar {
    width: 56px;
    height: 56px;
  }

  .profile-hero-meta h1 {
    font-size: 1.15rem;
  }

  .profile-hero-meta p {
    font-size: 0.78rem;
  }

  .quick-pill,
  .btn-logout {
    font-size: 0.74rem;
    padding: 0.32rem 0.65rem;
  }

  .profile-menu-card {
    padding: 1.05rem;
  }

  .profile-menu-card h2 {
    font-size: 1rem;
  }

  .profile-menu-card p {
    font-size: 0.78rem;
  }

  .duelist-card {
    padding: 1rem;
  }

  .duelist-hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .duelist-quick-metrics {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .duelist-username {
    font-size: 1.12rem;
  }

  .data-stack-row {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .data-stack-row .data-label {
    min-width: 105px;
  }
}