/* =============================================
   PERFIL.CSS — Página de Perfil do Usuário
   RV Sport Store
   ============================================= */

/* ── CONTAINER PRINCIPAL ── */
.perfil-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 60px;
}

/* ── HEADER DO PERFIL ── */
.perfil-hero {
  background: linear-gradient(135deg, #0d1118 0%, #131820 100%);
  border: 1px solid #1e2535;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.perfil-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228,255,0,.07), transparent 70%);
  pointer-events: none;
}
.perfil-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #E4FF00;
  color: #07090C;
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(228,255,0,.15);
}
.perfil-hero-info h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.perfil-hero-info p {
  font-size: 14px;
  color: #677080;
}
.perfil-hero-badge {
  margin-left: auto;
  background: rgba(228,255,0,.1);
  border: 1px solid rgba(228,255,0,.2);
  color: #E4FF00;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ── ABAS ── */
.perfil-tabs {
  display: flex;
  gap: 4px;
  background: #0d1118;
  border: 1px solid #1e2535;
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
}
.perfil-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  color: #677080;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.perfil-tab.active {
  background: #E4FF00;
  color: #07090C;
}
.perfil-tab:hover:not(.active) {
  color: #aab0bb;
  background: rgba(255,255,255,.04);
}

/* ── CARDS ── */
.perfil-card {
  background: #0d1118;
  border: 1px solid #1e2535;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}
.perfil-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #1e2535;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.perfil-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}
.perfil-card-body {
  padding: 24px;
}

/* ── SEÇÕES DE ABA ── */
.perfil-section {
  display: none;
}
.perfil-section.active {
  display: block;
  animation: perfilFadeIn .2s ease;
}
@keyframes perfilFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CAMPOS ── */
.perfil-field {
  margin-bottom: 18px;
}
.perfil-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #8899aa;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}
.perfil-field input {
  width: 100%;
  background: #131820;
  border: 1.5px solid #1e2535;
  border-radius: 10px;
  padding: 13px 16px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.perfil-field input:focus {
  border-color: #E4FF00;
  box-shadow: 0 0 0 3px rgba(228,255,0,.1);
}
.perfil-field input:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.perfil-field input::placeholder { color: #3a4560; }
.perfil-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── BOTÕES ── */
.perfil-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.perfil-btn-primary {
  background: #E4FF00;
  color: #07090C;
}
.perfil-btn-primary:hover:not(:disabled) {
  background: #d4ee00;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(228,255,0,.25);
}
.perfil-btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.perfil-btn-ghost {
  background: #131820;
  color: #e8edf5;
  border: 1px solid #1e2535;
}
.perfil-btn-ghost:hover {
  border-color: #E4FF00;
  color: #E4FF00;
}
.perfil-btn-danger {
  background: rgba(255,82,82,.1);
  color: #ff5252;
  border: 1px solid rgba(255,82,82,.2);
}
.perfil-btn-danger:hover {
  background: rgba(255,82,82,.2);
}

/* ── MENSAGENS ── */
.perfil-msg {
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  transition: all .2s;
}
.perfil-msg:empty { display: none; }
.perfil-msg-erro {
  background: rgba(255,82,82,.1);
  border: 1px solid rgba(255,82,82,.25);
  color: #ff7070;
}
.perfil-msg-ok {
  background: rgba(0,230,118,.08);
  border: 1px solid rgba(0,230,118,.2);
  color: #00e676;
}

/* ── PEDIDOS ── */
.pedidos-empty {
  text-align: center;
  padding: 48px 20px;
}
.pedidos-empty svg { color: #1e2535; margin-bottom: 16px; }
.pedidos-empty h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  color: #677080;
  margin-bottom: 6px;
}
.pedidos-empty p { font-size: 14px; color: #677080; }

.pedido-card {
  background: #131820;
  border: 1px solid #1e2535;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.pedido-card:hover { border-color: rgba(228,255,0,.2); }
.pedido-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.pedido-id {
  font-family: monospace;
  font-size: 12px;
  color: #677080;
}
.pedido-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.status-pendente { background: rgba(255,179,0,.1); color: #ffb300; }
.status-pago     { background: rgba(0,230,118,.1); color: #00e676; }
.status-enviado  { background: rgba(64,196,255,.1); color: #40c4ff; }
.status-cancelado{ background: rgba(255,82,82,.1);  color: #ff5252; }

.pedido-itens {
  font-size: 13px;
  color: #8899aa;
  margin-bottom: 10px;
  line-height: 1.5;
}
.pedido-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pedido-total {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  color: #E4FF00;
}
.pedido-data {
  font-size: 12px;
  color: #677080;
}

/* ── ENDEREÇO ── */
.endereco-salvo {
  background: #131820;
  border: 1px solid #1e2535;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.endereco-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(228,255,0,.08);
  color: #E4FF00;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.endereco-info p {
  font-size: 14px;
  color: #c0cce0;
  line-height: 1.6;
}
.endereco-info strong {
  color: #fff;
  font-size: 15px;
}

/* ── SENHA FORÇA ── */
.perfil-pw-strength {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.pw-fraca { color: #ff5252; }
.pw-media { color: #ffb300; }
.pw-forte { color: #00e676; }

/* ── INPUT SENHA COM ÍCONE ── */
.perfil-input-wrap { position: relative; }
.perfil-input-wrap input { padding-right: 46px; }
.perfil-toggle-pw {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: #677080; cursor: pointer;
  padding: 0;
  display: flex; align-items: center;
  transition: color .2s;
}
.perfil-toggle-pw:hover { color: #E4FF00; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  .perfil-hero { flex-direction: column; text-align: center; padding: 24px 20px; }
  .perfil-hero-badge { margin: 0 auto; }
  .perfil-hero-info h2 { font-size: 20px; }
  .perfil-fields-row { grid-template-columns: 1fr; }
  .perfil-card-body { padding: 16px; }
  .perfil-card-header { padding: 16px; }
  .perfil-tab { padding: 9px 14px; font-size: 13px; }
}
