/*
 * ALPHA FITNESS — SECCIÓN "MI CUENTA"
 * Estilos del overlay #cuenta-page (perfil + direcciones del usuario).
 * Sigue la paleta minimalista: fondos #050505/#0a0a0a, hairlines #161616,
 * verde #39ff14 solo para acciones primarias.
 */
#cuenta-page {
  display: none;
  background: #050505;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

.cuenta-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 18px 80px;
}

.cuenta-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.cuenta-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid #2a2a2a;
  color: #bbb; padding: 8px 14px; border-radius: 999px;
  cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600;
  transition: all 0.15s ease;
}
.cuenta-back:hover { border-color: #39ff14; color: #39ff14; }
.cuenta-head h1 {
  margin: 0; color: #fff; font-size: 26px; font-weight: 900; letter-spacing: 1px;
}
.cuenta-head h1 span { color: #39ff14; }

/* HERO con avatar */
.cuenta-hero {
  display: flex; align-items: center; gap: 20px;
  padding: 20px; margin-bottom: 20px;
  background: #0a0a0a; border: 1px solid #161616; border-radius: 14px;
}
.cuenta-avatar {
  position: relative; width: 96px; height: 96px; flex-shrink: 0;
  border-radius: 50%; overflow: visible;
}
.cuenta-avatar img,
.cuenta-avatar > div,
.cuenta-avatar > span {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #161616; color: #39ff14;
  font-size: 36px; font-weight: 800; overflow: hidden;
}
.cuenta-avatar img { object-fit: cover; }
.cuenta-avatar-edit {
  position: absolute; right: -4px; bottom: -4px;
  width: 32px; height: 32px; min-height: 32px;
  border-radius: 50%; padding: 0;
  background: #39ff14; color: #000;
  border: 3px solid #050505;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s ease;
  box-sizing: border-box;
}
.cuenta-avatar-edit:hover { transform: scale(1.05); }
.cuenta-avatar-edit i { font-size: 13px; line-height: 1; }
.cuenta-hero-info h2 {
  margin: 0 0 4px; color: #fff;
  font-size: 22px; font-weight: 800; letter-spacing: 0.3px;
}
.cuenta-hero-info p {
  margin: 0; color: #888; font-size: 14px;
}

/* TABS */
.cuenta-tabs {
  display: flex; gap: 8px; margin-bottom: 18px;
  background: #0a0a0a; border: 1px solid #161616;
  border-radius: 12px; padding: 6px;
}
.cuenta-tab {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; min-height: 44px;
  background: transparent; border: none;
  color: #888; font-family: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 8px; cursor: pointer;
  transition: all 0.15s ease;
}
.cuenta-tab:hover { color: #fff; }
.cuenta-tab--active {
  background: #161616; color: #39ff14;
}

/* CARDS */
.cuenta-card {
  background: #0a0a0a; border: 1px solid #161616;
  border-radius: 14px; padding: 22px;
  margin-bottom: 16px;
}
.cuenta-card h3 {
  margin: 0 0 4px; color: #fff;
  font-size: 16px; font-weight: 800; letter-spacing: 0.4px;
  display: inline-flex; align-items: center; gap: 8px;
}
.cuenta-card h3 i { color: #39ff14; }
.cuenta-card-hint {
  margin: 0 0 18px; color: #888; font-size: 13px;
}
.cuenta-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.cuenta-card-head > div { flex: 1; min-width: 200px; }
.cuenta-card-head h3 { margin-bottom: 4px; }
.cuenta-card-head .cuenta-card-hint { margin-bottom: 0; }

/* GRID DE CAMPOS */
.cuenta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-bottom: 16px;
}
.cuenta-field { display: flex; flex-direction: column; gap: 6px; }
.cuenta-field--full { grid-column: 1 / -1; }
.cuenta-field label {
  color: #aaa; font-size: 12px; font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.cuenta-field input {
  width: 100%; box-sizing: border-box;
  background: #000; border: 1px solid #222;
  border-radius: 8px; padding: 12px 14px;
  color: #fff; font-family: inherit; font-size: 14px;
  outline: none; transition: border-color 0.15s ease;
}
.cuenta-field input:focus { border-color: #39ff14; }
.cuenta-field input:disabled {
  background: #0a0a0a; color: #555; cursor: not-allowed;
}
.cuenta-divider {
  grid-column: 1 / -1;
  height: 1px; background: #161616; margin: 4px 0 6px;
}
.cuenta-check {
  display: inline-flex; align-items: center; gap: 10px;
  color: #ccc; font-size: 13px; cursor: pointer;
  text-transform: none; letter-spacing: 0;
}
.cuenta-check input {
  width: 18px; height: 18px; cursor: pointer; accent-color: #39ff14;
}

/* ACCIONES */
.cuenta-actions {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
}
.cuenta-actions--start { justify-content: flex-start; }
.cuenta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; min-height: 42px;
  background: transparent; border: 1px solid #2a2a2a;
  color: #ddd; font-family: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: 0.4px; border-radius: 8px; cursor: pointer;
  transition: all 0.15s ease;
}
.cuenta-btn:hover { border-color: #39ff14; color: #39ff14; }
.cuenta-btn--primary {
  background: #39ff14; border-color: #39ff14; color: #000;
}
.cuenta-btn--primary:hover {
  background: #2dd611; border-color: #2dd611; color: #000;
  transform: translateY(-1px);
}
.cuenta-btn--ghost { background: transparent; color: #ddd; }
.cuenta-btn--danger-ghost {
  border-color: rgba(255,80,80,0.3); color: #ff8080;
}
.cuenta-btn--danger-ghost:hover {
  border-color: #ff5050; color: #ff5050;
}

/* LISTA DE DIRECCIONES */
.cuenta-dir-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.cuenta-dir {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border: 1px solid #2a2a2a; border-radius: 10px;
  background: #0d0d0d;
  transition: border-color 0.15s ease;
}
.cuenta-dir:hover { border-color: #333; }
.cuenta-dir--default {
  border-color: rgba(57,255,20,0.35);
  background: linear-gradient(180deg, rgba(57,255,20,0.04) 0%, transparent 100%);
}
.cuenta-dir-main { flex: 1; min-width: 0; }
.cuenta-dir-alias {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 6px; color: #fff; font-size: 14px;
}
.cuenta-dir-alias i { color: #39ff14; font-size: 13px; }
.cuenta-dir-badge {
  background: rgba(57,255,20,0.12); color: #39ff14;
  padding: 2px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.6px;
  border: 1px solid rgba(57,255,20,0.3);
}
.cuenta-dir-line {
  color: #ccc; font-size: 13px; line-height: 1.5;
  margin-top: 2px;
}
.cuenta-dir-line--muted { color: #888; font-size: 12px; }
.cuenta-dir-line--muted i { margin-right: 4px; }
.cuenta-dir-actions {
  display: flex; gap: 6px; flex-shrink: 0;
}
.cuenta-dir-btn {
  width: 36px; height: 36px; min-height: 36px;
  border-radius: 8px; padding: 0;
  background: transparent; border: 1px solid #2a2a2a;
  color: #bbb; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.cuenta-dir-btn:hover { border-color: #39ff14; color: #39ff14; }
.cuenta-dir-btn--danger:hover { border-color: #ff5050; color: #ff5050; }

/* EMPTY STATES */
.cuenta-empty {
  text-align: center; padding: 60px 24px;
}
.cuenta-empty--inline {
  padding: 36px 16px; border: 1px dashed #222;
  border-radius: 12px; background: rgba(255,255,255,0.01);
}
.cuenta-empty i {
  font-size: 42px; color: #333; margin-bottom: 14px;
}
.cuenta-empty h3, .cuenta-empty h4 {
  margin: 0 0 6px; color: #fff; font-weight: 800;
}
.cuenta-empty h3 { font-size: 18px; }
.cuenta-empty h4 { font-size: 15px; }
.cuenta-empty p {
  margin: 0 0 20px; color: #888; font-size: 13px;
}
.cuenta-empty .cuenta-btn { margin-top: 6px; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .cuenta-wrap { padding: 16px 12px 80px; }
  .cuenta-head h1 { font-size: 22px; }
  .cuenta-hero { flex-direction: column; text-align: center; gap: 14px; }
  .cuenta-hero-info h2 { font-size: 18px; }
  .cuenta-grid { grid-template-columns: 1fr; }
  .cuenta-tab span { font-size: 12px; }
  .cuenta-card { padding: 18px; }
  .cuenta-dir { flex-direction: column; }
  .cuenta-dir-actions { flex-wrap: wrap; width: 100%; }
  .cuenta-actions { flex-direction: column-reverse; }
  .cuenta-actions .cuenta-btn { width: 100%; justify-content: center; }
}
