/* =============================================================================
   cuenta.css  ·  CONFIGURACIÓN DE LA CUENTA
   Lo cargan mi-cuenta.html (tienda) y dashboard/index.html (panel admin), así
   que las tarjetas son autosuficientes: fondo blanco sobre fondo claro en ambos.
   ============================================================================= */

.acct-page { background: var(--gray-100); min-height: 70vh; padding: 34px 20px 64px; }
.acct-wrap { max-width: 980px; margin: 0 auto; }

.acct-title { font-size: 28px; color: var(--primary-dark); margin: 0 0 6px; }
.acct-sub   { color: var(--gray-500); margin: 0 0 26px; }

.acct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  align-items: start;
}

.acct-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.06));
  padding: 24px;
}

.acct-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.acct-card-head h2 { font-size: 18px; margin: 0 0 3px; color: var(--gray-800); }
.acct-card-head p  { font-size: 13px; color: var(--gray-500); margin: 0; line-height: 1.5; }

.acct-icon {
  flex: 0 0 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 17px;
}

.acct-form  { display: flex; flex-direction: column; gap: 15px; }
.acct-field { display: flex; flex-direction: column; gap: 6px; }

.acct-field > span {
  font-size: 13px; font-weight: 600; color: var(--gray-600);
}
.acct-field > span small { font-weight: 400; color: var(--gray-400); }

.acct-field input {
  padding: 11px 13px;
  border: 1px solid var(--gray-300);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-800);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.acct-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 92, 46, .12);
}

.acct-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

.acct-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border: none; border-radius: 9px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .1s, opacity .15s;
}
.acct-btn-primary { background: var(--primary); color: #fff; }
.acct-btn-primary:hover:not(:disabled) { background: var(--primary-light); }
.acct-btn:active:not(:disabled) { transform: translateY(1px); }
.acct-btn:disabled { opacity: .6; cursor: not-allowed; }
.acct-btn.is-busy i { animation: acct-spin .8s linear infinite; }
@keyframes acct-spin { to { transform: rotate(360deg); } }

.acct-msg { font-size: 13px; font-weight: 600; }
.acct-msg-ok    { color: var(--primary); }
.acct-msg-error { color: #dc2626; }

.acct-loading {
  padding: 48px; text-align: center;
  color: var(--gray-400); font-size: 15px;
}

@media (max-width: 600px) {
  .acct-page  { padding: 22px 14px 48px; }
  .acct-grid  { grid-template-columns: 1fr; }
  .acct-card  { padding: 20px; }
  .acct-title { font-size: 23px; }
}

/* ── Verificación en dos pasos ── */
.acct-badge-on { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 12px; background: #dcfce7; color: #166534; font-size: 12px; vertical-align: middle; }
.acct-2fa-steps { margin: 0 0 6px 18px; padding: 0; font-size: 13.5px; color: var(--gray-600); line-height: 1.6; }
.acct-2fa-backup { margin-top: 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 14px 16px; font-size: 13.5px; color: #78350f; }
.acct-2fa-backup p { margin: 6px 0 10px; line-height: 1.5; }
.acct-2fa-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 12px; }
.acct-2fa-codes code { background: #fff; border: 1px solid #fde68a; border-radius: 6px; padding: 6px; text-align: center; font-size: 15px; letter-spacing: 1px; color: #111; }
