@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700&display=swap');
body {
  font-family: 'Vazirmatn', Tahoma, system-ui;
  background: linear-gradient(135deg, #7c5cff, #ff71a6, #ffa940);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  padding: 40px 0;
  gap: 20px;
}

.account-section {
  background: rgba(0,0,0,0.6);
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  margin: 12px 0;
}

.account-section h2 {
  text-align: center;
  margin-bottom: 10px;
}

.account-section .intro {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  background: #eee;
  color: #333;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.tab.active {
  background: #7c5cff;
  color: #fff;
}

.form {
  display: none;
}

.form.active {
  display: block;
}

.form-field {
  margin-bottom: 15px;
}

.form-field label {
  display: block;
  margin-bottom: 5px;
}

.form-field input {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: none;
  outline: none;
}

.btn {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.btn-primary {
  background: #ff71a6;
  color: #fff;
}

.btn-primary:hover {
  background: #7c5cff;
}

.hint {
  text-align: center;
  margin-top: 10px;
  font-size: 0.85rem;
}

#profile-view.account-section{max-width:720px;width:100%;background:rgba(0,0,0,.5)}
#user-info{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.08);padding:12px;border-radius:12px;margin-bottom:12px}
#user-products{list-style:none;margin:12px 0;padding:0;display:grid;gap:10px}
#user-products li{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:10px;background:rgba(255,255,255,.06);padding:10px;border-radius:12px}
#user-products li::before{content:'🛒';width:48px;height:48px;display:grid;place-items:center;background:rgba(0,0,0,.2);border-radius:10px}
#logout{margin-top:10px}

#profile-view.account-section{max-width:720px;width:100%;background:rgba(0,0,0,.5)}
#user-info{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.08);padding:12px;border-radius:12px;margin-bottom:12px}
#user-products{list-style:none;margin:12px 0;padding:0;display:grid;gap:10px}
#user-products li{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:10px;background:rgba(255,255,255,.06);padding:10px;border-radius:12px}
#user-products li::before{content:'🛒';width:48px;height:48px;display:grid;place-items:center;background:rgba(0,0,0,.2);border-radius:10px}
#logout{margin-top:10px}
