/* assets/css/account.css */

.account-section { padding: 2rem 2rem 6rem; background: var(--bg); }
.account-inner { max-width: 1180px; margin: 0 auto; }

.account-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }

/* ─── SIDEBAR ─── */
.account-sidebar { position: sticky; top: 90px; }
.user-card {
  background: var(--card); border: 1px solid var(--border-l);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.user-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem; color: #fff;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.user-info strong { font-family: 'Syne', sans-serif; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info span { color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.account-nav {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.acc-nav-btn {
  background: none; border: none; border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem; text-align: left; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: background 0.2s, color 0.2s;
  display: flex; align-items: center; gap: 0.6rem;
}
.acc-nav-btn:last-child { border-bottom: none; }
.acc-nav-btn:hover { background: var(--bg2); color: var(--text); }
.acc-nav-btn.active {
  color: var(--blue); background: rgba(79,142,247,0.06);
  border-left: 3px solid var(--blue); padding-left: calc(1.25rem - 3px);
}

/* ─── TABS ─── */
.acc-tab { display: none; }
.acc-tab.active { display: block; }

.acc-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
}
.acc-card h2 {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.3rem;
  margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}

.password-wrap { position: relative; }
.toggle-pwd {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; padding: 0.25rem;
}

@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-nav { flex-direction: row; flex-wrap: wrap; }
  .acc-nav-btn { border-bottom: none; border-right: 1px solid var(--border); flex: 1; justify-content: center; min-width: 120px; }
  .acc-nav-btn.active { border-left: none; border-bottom: 3px solid var(--blue); padding: 1rem 1.25rem; }
}
