* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body.account-page {
  margin: 0;
  background: #f5f6f9;
  color: #202845;
  font-family: Vazirmatn, Tahoma, sans-serif;
  direction: rtl;
}
a {
  text-decoration: none;
  color: inherit;
}
.account-top {
  height: 78px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(4%, 24px);
  border-bottom: 1px solid #e7e8ec;
}
.account-brand {
  color: #ed1744;
  font-size: 31px;
  font-weight: 900;
}
.account-brand span {
  font-size: 40px;
  line-height: 0;
}
.account-home {
  border: 1px solid #e5e6ea;
  padding: 10px 17px;
  border-radius: 12px;
  color: #5b6174;
}
.account-shell {
  max-width: 1360px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 22px;
  padding: 0 18px;
}
.account-sidebar,
.account-card,
.account-stats > div {
  background: white;
  border: 1px solid #e5e6eb;
  border-radius: 18px;
  box-shadow: 0 7px 25px #1b244006;
}
.account-sidebar {
  align-self: start;
  position: sticky;
  top: 15px;
  overflow: hidden;
}
.account-person {
  text-align: center;
  padding: 26px 16px;
  border-bottom: 1px solid #eee;
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 19px;
  margin: 0 auto;
  background: #fff0f3;
  font-size: 31px;
}
.account-person h3 {
  margin: 12px 0 4px;
}
.account-person small {
  color: #7e8494;
  display: block;
  overflow-wrap: anywhere;
}
.account-pill {
  display: inline-block;
  color: #00916b;
  background: #e9faf3;
  border-radius: 100px;
  padding: 5px 13px;
  font-size: 11px;
  margin-top: 12px;
}
.account-sidebar nav {
  display: grid;
  padding: 12px;
}
.account-sidebar nav a,
.account-sidebar nav button {
  border: 0;
  text-align: right;
  background: none;
  border-radius: 11px;
  padding: 14px;
  font: inherit;
  color: #596075;
  cursor: pointer;
}
.account-sidebar nav .selected,
.account-sidebar nav a:hover {
  background: #fff0f3;
  color: #ed3654;
}
.account-sidebar nav button {
  color: #f03a59;
}
.account-main {
  min-width: 0;
}
.account-hero {
  border-radius: 20px;
  padding: 38px;
  background:
    radial-gradient(circle at 8% 10%, #682c46 0, transparent 33%),
    linear-gradient(120deg, #181c2b, #292637);
  color: white;
  min-height: 230px;
}
.account-hero-badge {
  background: #ffffff18;
  border: 1px solid #ffffff30;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 12px;
}
.account-hero h1 {
  font-size: 27px;
  margin: 24px 0 6px;
}
.account-hero p {
  font-size: 13px;
  color: #d1cbd4;
}
.account-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.account-hero-actions a {
  padding: 11px 19px;
  background: #f23b5b;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.account-hero-actions a + a {
  background: #ffffff15;
  border: 1px solid #ffffff35;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0;
}
.account-stats > div {
  padding: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}
.account-stats span {
  margin-right: auto;
  color: #00a77c;
}
.account-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.account-card {
  padding: 25px;
  margin-bottom: 14px;
}
.account-card h2 {
  font-size: 19px;
  margin: 0 0 7px;
}
.account-card p {
  font-size: 12px;
  color: #9297a6;
  line-height: 2;
}
.account-card form {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}
.account-card label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.account-card input {
  border: 1px solid #d8dce4;
  border-radius: 10px;
  padding: 13px;
  font: inherit;
  width: 100%;
  background: #fff;
}
.account-card input:focus {
  outline: 2px solid #ffbcc9;
}
.account-card input[readonly] {
  background: #f5f6f8;
  color: #8c93a2;
}
.account-card button,
.admin-head > a,
.admin-login-note > a {
  border: 0;
  border-radius: 10px;
  background: #f13958;
  color: white;
  font: inherit;
  font-weight: 700;
  padding: 12px 20px;
  cursor: pointer;
  width: max-content;
}
.form-result {
  font-size: 12px;
  min-height: 20px;
  color: #008a69;
}
.form-result.error {
  color: #e33451;
}
.admin-access {
  border-color: #f7d59b;
  background: #fffefa;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.admin-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #eee3ce;
  border-radius: 11px;
  background: white;
  padding: 14px;
  font-size: 13px;
}
.admin-links a:hover {
  border-color: #ef3656;
  color: #ef3656;
}
.admin-login-note > a {
  display: inline-block;
  margin-top: 8px;
}
.dk-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 1000;
  width: 310px;
  background: #fff;
  border: 1px solid #e4e5e9;
  box-shadow: 0 15px 45px #161b3030;
  border-radius: 16px;
  padding: 15px;
  text-align: right;
  direction: rtl;
}
.dk-account-menu strong {
  display: block;
}
.dk-account-menu small {
  color: #89909f;
  display: block;
  margin-bottom: 12px;
}
.dk-account-menu a,
.dk-account-menu button {
  display: block;
  width: 100%;
  padding: 11px 8px;
  background: white;
  border: 0;
  text-align: right;
  font: inherit;
  font-size: 13px;
  color: #515b70;
  cursor: pointer;
  border-radius: 8px;
}
.dk-account-menu a:hover,
.dk-account-menu button:hover {
  background: #f6f7fa;
}
.dk-account-menu .dk-signout {
  color: #ee3858;
}
@media (max-width: 950px) {
  .account-shell {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    position: static;
  }
  .account-sidebar nav {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .account-panels {
    grid-template-columns: 1fr;
  }
  .account-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-links {
    grid-template-columns: 1fr;
  }
  .account-hero {
    padding: 25px;
  }
  .account-hero h1 {
    font-size: 21px;
  }
  .admin-head {
    display: block;
  }
  .account-brand {
    font-size: 24px;
  }
}
