






.account-lock {
  overflow: hidden;
}

.account-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  z-index: 9700;
}

.account-overlay.active {
  opacity: 1;
  visibility: visible;
}

.account-drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 430px;
  max-width: calc(100vw - 24px);
  height: calc(100vh - 24px);
  background: #fff;
  color: #111;
  border-radius: 14px;
  box-shadow: 0 22px 90px rgba(0,0,0,.18);
  z-index: 9701;
  transform: translateX(110%);
  transition: .3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.account-drawer.active {
  transform: translateX(0);
}

.account-top {
  height: 66px;
  padding: 0 26px;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
}

.account-top h2 {
  font-size: 21px;
  font-weight: 900;
}

.account-back-btn,
.account-close-btn {
  border: none;
  background: transparent;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  color: #111;
}

.account-back-btn {
  visibility: hidden;
  font-size: 42px;
}

.account-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 28px;
}

.account-welcome,
.account-form-view,
.account-verify-view,
.account-success-view {
  min-height: 100%;
}

.account-welcome {
  text-align: center;
}

.account-avatar-circle,
.account-mail-circle {
  width: 150px;
  height: 150px;
  /* border: 2px solid #ffd8bd; */
  /* border-radius: 50%; */
  margin: 10px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

}

.account-avatar-circle img,
.account-mail-circle img {
  width: 200%;
  height: 200%;
  object-fit: contain;
}

.account-mail-circle span {
  position: absolute;
  right: 8px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ff6b00;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.account-welcome h3,
.account-form-view h3,
.account-verify-view h3,
.account-success-view h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
  text-align: center;
}

.account-welcome p,
.account-form-view > p,
.account-verify-view > p,
.account-success-view > p {
  text-align: center;
  color: #444;
  line-height: 1.6;
  margin-bottom: 24px;
}

.account-benefits-box {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 22px;
  display: grid;
  gap: 18px;
  text-align: left;
  margin-bottom: 24px;
}

.account-benefits-box div {
  color: #ff6b00;
  font-weight: 900;
}

.account-benefits-box span {
  color: #222;
  font-weight: 600;
  margin-left: 12px;
}

.account-main-btn,
.account-outline-btn {
  width: 100%;
  height: 56px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.account-main-btn {
  border: none;
  background: linear-gradient(180deg, #ff7a00, #f05a00);
  color: #fff;
}

.account-outline-btn {
  margin-top: 14px;
  border: 1px solid #ff6b00;
  background: #fff;
  color: #ff6b00;
}

.account-club-card {
  margin-top: 30px;
  padding: 18px;
  border-radius: 12px;
  background: #fff3e8;
  display: grid;
  grid-template-columns: 46px 1fr 18px;
  gap: 12px;
  align-items: center;
  text-align: left;
}

.account-club-card img {
  width: 42px;
}

.account-club-card b {
  display: block;
  margin-bottom: 5px;
  color: #000000;
}

.account-club-card span {
  font-size: 12px;
  color: #555;
}

.account-club-card strong {
  color: #ff6b00;
  font-size: 28px;
}

.account-mini-benefits {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #eee;
  padding-top: 24px;
}

.account-mini-benefits.bottom {
  margin-top: 50px;
}

.account-mini-benefits div {
  text-align: center;
  padding: 0 8px;
  border-right: 1px solid #eee;
}

.account-mini-benefits div:last-child {
  border-right: none;
}

.account-mini-benefits img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-bottom: 8px;
}

.account-mini-benefits span {
  font-size: 11px;
  font-weight: 700;
}

/* FORMS */

.account-form-view {
  padding-top: 76px;
}

.account-form-view label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.account-input {
  height: 52px;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 24px 1fr 34px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 22px;
}

.account-input img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: none;
}

.account-input input {
  border: none;
  outline: none;
  font-size: 14px;
}

.account-input button {
  border: none;
  background: transparent;
  cursor: pointer;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.account-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 0 !important;
  font-size: 13px;
}

.account-check input {
  accent-color: #ff6b00;
}

.account-link-btn,
.account-bottom-text button {
  border: none;
  background: transparent;
  color: #ff6b00;
  font-weight: 800;
  cursor: pointer;
}

.account-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 28px 0;
}

.account-divider span {
  height: 1px;
  background: #e5e5e5;
}

.account-divider p {
  color: #777;
  font-size: 13px;
}

.account-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.account-socials button {
  height: 52px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.account-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin: 0;
  flex-shrink: 0;
}

.account-bottom-text {
  text-align: center;
  color: #444;
}

.password-rules {
  display: grid;
  gap: 8px;
  color: #777;
  font-size: 12px;
  margin: 0px 0 22px;
  align-items: flex-start;
}

.password-rules p {
  color: #111;
  font-weight: 700;
}

.terms {
  align-items: flex-start !important;
  line-height: 1.5;
  margin-bottom: 24px !important;
}

.terms b {
  color: #ff6b00;
}

/* OTP */

.account-verify-view {
  text-align: center;
  padding-top: 40px;
}

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 34px 0 18px;
}

.otp-inputs input {
  height: 54px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  outline: none;
}

.otp-inputs input:focus {
  border-color: #ff6b00;
}

.otp-hint {
  color: #777;
  margin-bottom: 28px;
}

.resend {
  margin-top: 28px;
}

.account-security-box {
    display:flex;
    align-items: center;
    gap:14px;
    margin-bottom: 20px;
    margin-top: 20px;

}

.account-security-box img {
    width:20px;
    height:20px;
    margin-top:2px;
    flex-shrink:0;
}

.account-security-box b {
  display: block;
  margin-bottom: 6px;
}

.account-security-box span {
  font-size: 13px;
  line-height: 1.45;
}


.account-security-text{
    margin-top:12px;
    margin-bottom:20px;
    text-align:center;
}

.account-security-text span{
    font-size:13px;
    line-height:1.5;
}

/* SUCCESS */

.account-success-view {
  text-align: center;
  position: relative;
  padding-top: 14px;
}

.success-close {
  position: absolute;
  right: 0;
  top: 0;
}

.success-mascot {
  width: 160px;
  margin: 28px auto 16px;
  display: block;
}

.success-check {
  width: 46px;
  height: 46px;
  border: 2px solid #ff6b00;
  color: #ff6b00;
  border-radius: 50%;
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.success-benefits {
  margin-top: 20px;
}

.account-contact-socials {
  margin-top: 26px;
}

.account-contact-socials p {
  margin-bottom: 12px;
}

.account-contact-socials div {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.account-contact-socials a {
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.account-contact-socials img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.account-contact-socials span {
  display: block;
  margin-top: 10px;
  color: #777;
  font-size: 12px;
}






/* СКРЫТЬ WHATSAPP С ЛОГИН ОКНА */

body.account-lock .whatsapp-floating,
body.cart-lock .whatsapp-floating {
  display: none !important;
}









.account-input.error {
  border-color: #ff2b2b !important;
  box-shadow: 0 0 0 3px rgba(255, 43, 43, 0.08);
}

.account-error-text {
  color: #ff2b2b;
  font-size: 12px;
  font-weight: 700;
  margin-top: -14px;
  margin-bottom: 14px;
  display: none;
}

.account-error-text.show {
  display: block;
}

.terms.error {
  color: #ff2b2b;
}

.terms.error input {
  outline: 2px solid #ff2b2b;
}

.account-icon-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.account-resend-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}





body.account-lock .floating-whatsapp,
body.account-lock .whatsapp-floating,
body.cart-lock .floating-whatsapp,
body.cart-lock .whatsapp-floating {
  display: none !important;
}









/* LOGGED IN PROFILE */

.account-profile-view {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.profile-head {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  align-items: center;
  margin: -15px 0 28px;

}

.profile-avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b00, #6227d8);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 42px;
  font-weight: 900;
}

.profile-head h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
}

.profile-head p {
  color: #555;
  font-size: 14px;
  margin-bottom: 10px;
}

.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 6px 12px;
  border: 1px solid #e4a13a;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 900;
  color: #111;
}

.member-badge img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.profile-menu {
  display: grid;
  gap: 10px;
}

.profile-menu button {
  width: 100%;
  min-height: 60px; 

  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 14px;

  display: grid;
  grid-template-columns: 42px 1fr 20px;
  gap: 14px;
  align-items: center;

  padding: 14px 16px;
  cursor: pointer;
  text-align: left;

  transition: 0.2s ease;
}

.profile-menu button:hover {
  border-color: #f0a21a;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.06);
}

.profile-menu button img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.profile-menu b {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: #111;
  margin-bottom: 4px;
}

.profile-menu span {
  color: #777;
  font-size: 13px;
}

.profile-menu strong {
  font-size: 28px;
  font-weight: 500;
}

.profile-club {
  margin-top: 30px;
  margin-bottom: 18px;
}

.logout-btn {
  width: 100%;
  height: 64px;

  border: 1px solid #ffb4b4;
  background: #fff;
  color: #ff3b3b;

  border-radius: 12px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  font-size: 16px;
  font-weight: 900;
}

.logout-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.profile-footer {
  text-align: center;
  color: #777;
  font-size: 12px;
  margin-top: 20px;
}





/* ===============================
   MOBILE ACCOUNT DESIGN
================================ */

@media (max-width: 768px) {
  .account-overlay {
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(3px);
  }

  .account-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    max-width: 100%;
    height: 72vh;
    max-height: 760px;

    background:
      linear-gradient(145deg, rgba(31,31,31,.98), rgba(10,10,10,.98)),
      url("images/account-mobile-bg.png");

    background-size: cover;
    background-position: center;
    color: #fff;

    border-radius: 28px 28px 0 0;
    box-shadow: 0 -20px 70px rgba(0,0,0,.55);

    transform: translateY(105%);
  }

  .account-drawer.active {
    transform: translateY(0);
  }

  .account-drawer::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    opacity: .95;
    z-index: 5;
  }

  .account-top {
    height: 72px;
    padding: 18px 28px 0;
    grid-template-columns: 42px 1fr 42px;
  }

  .account-top h2 {
    color: #fff;
    font-size: 0;
  }

  .account-back-btn,
  .account-close-btn {
    color: #fff;
    font-size: 46px;
  }

  .account-content {
    padding: 18px 28px 34px;
  }

  .account-form-view {
    padding-top: 4px;
  }

  .account-welcome h3,
  .account-form-view h3,
  .account-verify-view h3,
  .account-success-view h3 {
    color: #fff;
    font-size: 21px;
    line-height: 1.15;
    text-align: center;
  }


  .account-welcome p,
  .account-form-view > p,
  .account-verify-view > p,
  .account-success-view > p {
    color: #f1f1f1;
    font-size: 14px;
    text-align: center;
  }

  .account-verify-view > p,
  .account-success-view > p {
    text-align: center;
  }

  .account-form-view label {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
  }

  .account-input {
    height: 52px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.04);
    border-radius: 14px;
    grid-template-columns: 30px 1fr 36px;
    margin-bottom: 18px;
  }

  .account-input input {
    background: transparent;
    color: #fff;
    font-size: 18px;
  }

  .account-input input::placeholder {
    color: rgba(255,255,255,.45);
  }

  .account-input img {
    filter: brightness(0) invert(1);
  }

  .account-socials img {
    filter: none;
  }

  .account-socials img.icon-apple {
    filter: brightness(0) invert(1);
  }

  .account-input.error {
    border-color: #ff3b3b;
  }

  .account-error-text {
    color: #ff4d4d;
    margin: -8px 0 16px;
    font-size: 14px;
  }

  .account-check {
    color: #fff;
    font-size: 16px;
  }

  .account-check input {
    width: 20px;
    height: 20px;
    accent-color: #ff7900;
  }

  .account-link-btn,
  .account-bottom-text button,
  .resend button {
    color: #ff7900;
    font-size: 14px;
  }

  .account-main-btn {
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ff8500, #ff5a00);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
  }

  .account-outline-btn {
    height: 52px;
    border-radius: 14px;
    background: transparent;
    border: 1.5px solid #ff7900;
    color: #ff7900;
    font-size: 18px;
  }

  .account-divider span {
    background: rgba(255,255,255,.18);
  }

  .account-divider p {
    color: rgba(255,255,255,.65);
    font-size: 16px;
  }

  .account-socials {
    grid-template-columns: 1fr;
    gap: 12px;
  }

.account-socials button {
  height: 52px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.account-socials button img {
  width: 20px;
  height: 20px;
  margin: 0;
  object-fit: contain;
  flex-shrink: 0;
}

  .account-bottom-text {
    color: #fff;
    font-size: 16px;
  }

  .password-rules {
    color: rgba(255,255,255,.75);
    font-size: 16px;
  }

  .password-rules p {
    color: rgba(255,255,255,.65);
  }

  .password-rules span.valid {
    color: #27d36b;
  }

  .terms b {
    color: #ff7900;
  }

  .otp-inputs {
    gap: 12px;
  }

  .otp-inputs input {
    height: 72px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
  }

  .otp-inputs input:focus {
    border-color: #ff7900;
  }

  .otp-hint {
    color: rgba(255,255,255,.65);
    font-size: 16px;
  }

  .account-benefits-box,
  .success-benefits {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    gap: 18px;
  }

  .account-benefits-box span,
  .success-benefits span {
    color: #fff;
    font-size: 14px;
  }

  .profile-head {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 26px;
  }

  .profile-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7928ff, #4b00ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: 900;
    color: #fff;
  }

  .profile-head h3 {
    color: #fff;
    font-size: 26px;
  }

  .profile-head p {
    color: rgba(255,255,255,.75);
    font-size: 18px;
  }

  .member-badge {
    border-color: #ff7900;
    color: #fff;
    background: rgba(255,121,0,.08);
  }

  .profile-menu button {
    min-height: 86px;
    border-radius: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
  }

  .profile-menu b {
    color: #fff;
    font-size: 20px;
  }

  .profile-menu span {
    color: rgba(255,255,255,.55);
    font-size: 16px;
  }

  .profile-menu strong {
    color: rgba(255,255,255,.6);
  }

  .logout-btn {
    height: 72px;
    background: transparent;
    border: 1px solid #ff3045;
    color: #ff3045;
    border-radius: 16px;
  }

  .profile-footer {
    color: rgba(255,255,255,.55);
  }


  .account-security-box {
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
    grid-template-columns: 35px 1fr;
    gap: 10px;
    margin-bottom: 20px;

  }

  .account-security-box img {
    margin-left: 15px;
    width: 20px;
    height: 20px;
    justify-self: center;

    filter: brightness(0) invert(1);
  }

  .account-security-box span {
    color: rgba(255,255,255,.65);
    font-size: 13px;

  }

}

