/* ==========================================================================
   CASTORINNI — CUSTOMER ACCOUNT & PORTAL STYLES
   Painel "Minha Conta", Histórico com Timeline de Pedidos e Gerenciador de Endereços.
   ========================================================================== */

.account-portal-container {
  min-height: 100vh;
  background-color: var(--bg-main, #08080c);
  color: var(--text-main, #e4e4eb);
  padding: 3rem 0 6rem 0;
}

.account-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Sidebar do Cliente */
.account-sidebar-card {
  background: #11121a;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 2rem;
}

.account-user-badge {
  text-align: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.account-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-gradient, linear-gradient(135deg, #fced9e 0%, #d4af37 100%));
  color: #08080c;
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem auto;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.account-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.account-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #8e95a5;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
}

.account-nav-btn:hover {
  background: #181924;
  color: #fff;
}

.account-nav-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, rgba(13, 23, 15, 0.5) 100%);
  color: var(--gold-light, #f5de8c);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* Área de Conteúdo da Conta */
.account-content-card {
  background: #11121a;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Timeline do Pedido */
.order-tracking-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2rem 0;
}

.order-tracking-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  position: relative;
}

.timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #181a24;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #8e95a5;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-step.completed .timeline-dot {
  background: #34c759;
  border-color: #34c759;
  color: #fff;
}

.timeline-step.current .timeline-dot {
  background: var(--gold-gradient, linear-gradient(135deg, #fced9e 0%, #d4af37 100%));
  border-color: #fced9e;
  color: #08080c;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.timeline-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #8e95a5;
  text-align: center;
}

.timeline-step.current .timeline-label {
  color: var(--gold-light, #f5de8c);
}

/* Cards de Endereço */
.addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.address-card-item {
  background: #161822;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.25rem;
  position: relative;
  transition: all 0.25s ease;
}

.address-card-item.default {
  border-color: var(--gold-primary, #d4af37);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, #161822 100%);
}

@media (max-width: 850px) {
  .account-portal-container {
    padding: 1.5rem 0 4rem 0;
  }

  .account-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .account-content-card {
    padding: 1.25rem 1rem;
  }

  .timeline-label {
    font-size: 0.65rem;
  }

  .timeline-dot {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }
}
