/* ==========================
   ACCOUNT PAGE
   ========================== */
.account-page {
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 5rem;
}

/* Auth View */
.auth-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--void);
  border: 1px solid var(--smoke);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--smoke);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 1rem;
  color: var(--ghost);
  font-weight: 600;
  text-transform: uppercase;
  transition: all var(--transition-fast);
}

.auth-tab.active {
  color: var(--white);
  border-bottom: 2px solid var(--kitsune-red);
  background: rgba(200, 16, 46, 0.05);
}

.auth-form {
  padding: 2rem;
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.auth-btn {
  width: 100%;
  margin-top: 1rem;
}

/* Dashboard View */
.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .dashboard-container {
    flex-direction: row;
  }
}

.dashboard-sidebar {
  width: 100%;
  background: var(--void);
  border: 1px solid var(--smoke);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (min-width: 768px) {
  .dashboard-sidebar { width: 250px; flex-shrink: 0; }
}

.user-profile-header {
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--smoke);
  background: linear-gradient(to bottom, rgba(200,16,46,0.1), transparent);
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--kitsune-red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-glow);
}

.user-name {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.user-email {
  color: var(--ghost);
  font-size: 0.85rem;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
}

.dashboard-nav-link {
  padding: 1rem 1.5rem;
  color: var(--ghost);
  border-bottom: 1px solid var(--smoke);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.dashboard-nav-link:last-child {
  border-bottom: none;
}

.dashboard-nav-link:hover, .dashboard-nav-link.active {
  background: rgba(255,255,255,0.05);
  color: var(--kitsune-red);
  padding-left: 1.8rem;
}

.dashboard-nav-link.logout {
  color: var(--ember);
}

.dashboard-content {
  flex-grow: 1;
}

.dashboard-panel {
  display: none;
  background: var(--void);
  border: 1px solid var(--smoke);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.dashboard-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.panel-title {
  color: var(--white);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--smoke);
}

/* Table Orders */
.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th, .orders-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--smoke);
}

.orders-table th {
  color: var(--ghost);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.orders-table td {
  color: var(--white);
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(46, 139, 87, 0.2);
  color: #2E8B57;
}

/* Favorites Grid */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .favorites-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .favorites-grid { grid-template-columns: repeat(3, 1fr); }
}
