/* Account section (profile, screenshots) — from front-wag account / my-profile pages */

.payments-title .text-accent {
  color: #007985;
}

.account {
  padding-top: 64px;
  padding-bottom: clamp(3rem, 1.5rem + 6.67vw, 6.5rem);
}

.account__title {
  color: var(--title-color);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 48px;
}

.my-profile {
  width: 100%;
  max-width: 1008px;
  margin: 0 auto;
  background: var(--white-color);
  border-radius: 32px;
  padding: 48px;
}

.my-profile__user {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.my-profile__text-ava,
.my-profile__ava {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
}

.my-profile__text-ava {
  background-color: var(--icon-red-color);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--white-color);
}

.my-profile__ava {
  object-fit: cover;
}

.my-profile__user-info {
  display: flex;
  flex-direction: column;
}

.my-profile__title {
  color: var(--title-color);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
}

.my-profile__tarif {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text-color);
}

.my-profile__tarif-label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  background: var(--input-bg-color);
  border-radius: 100px;
  color: var(--title-color);
  font-size: 14px;
  font-weight: 600;
}

.my-profile__tarif-label.tarif-pro {
  color: #fff;
  background: var(--main-color);
}

.my-profile .form__group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.my-profile .form__group-column {
  display: flex;
  flex-direction: column;
}

.my-profile .form__item {
  margin-bottom: 24px;
}

.my-profile__form-label {
  display: block;
  color: var(--title-color);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.my-profile .form__input {
  padding: 0 20px !important;
  height: var(--input-height, 56px);
}

.my-profile .form__input.invalid {
  border: 1px solid var(--danger-color, #e03939);
}

.my-profile .form__email-field {
  position: relative;
}

.my-profile .form__btn-remove {
  position: absolute;
  bottom: 0;
  right: 4px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  color: var(--text-gray-color);
  padding: 0 12px;
  transition: color 0.2s ease;
}

.my-profile .form__btn-remove:hover {
  color: var(--danger-color);
}

.my-profile__form-add-email {
  display: block;
  width: 100%;
  padding: 16px 0;
  margin-top: 3px;
  border: 1.5px dashed var(--main-color);
  border-radius: var(--input-br, 10px);
  background: transparent;
  color: var(--main-color);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
}


.my-profile__form-add-email:hover {
  background-color: rgba(0, 180, 205, 0.05);
  border-color: var(--text-accent-color);
  color: var(--text-accent-color);
}

.my-profile__form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.my-profile__form-btn {
  min-width: 220px;
}

.btn-change-password {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 220px;
  height: 56px;
  padding: 0 24px;
  background-color: var(--white-color);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--input-br, 10px);
  color: var(--text-color);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.error-msg-block {
  display: none;
  color: var(--danger-color, #e03939);
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

.error-msg-block.show {
  display: block;
}

.my-profile__loading {
  text-align: center;
  padding: 48px;
  color: var(--text-gray-color);
}

/* Modal — change password */
.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal.active {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

.modal__overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  padding: 20px;
}

.modal__content {
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  margin: auto;
  overflow: auto;
  background: #fff;
  padding: 32px;
  border-radius: 24px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s;
}

.modal.active .modal__content {
  transform: scale(1);
}

.modal__close {
  cursor: pointer;
  width: 18px;
  height: 18px;
  border: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='%23000' fill-opacity='.5' d='M18.3 5.71c-.39-.39-1.02-.39-1.41 0l-4.89 4.88-4.89-4.89c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l4.89 4.89-4.89 4.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l4.89-4.89 4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-4.89-4.89 4.89-4.89c.38-.38.38-1.02 0-1.41Z'/%3E%3C/svg%3E") center/cover;
  position: absolute;
  top: 24px;
  right: 24px;
}

.form-password .form__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
  color: var(--title-color);
}

.form-password .form__item {
  margin-bottom: 20px;
}

.form-password .error-msg.reset {
  display: none;
  color: var(--danger-color, #e03939);
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}

.form-password .error-msg.reset.show {
  display: block;
}

.autofill-trap {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .account {
    padding: 32px 0;
  }

  .account__title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .my-profile {
    padding: 32px;
  }

  .my-profile .form__group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .my-profile__form-footer {
    flex-direction: column;
  }

  .my-profile__form-btn,
  .btn-change-password {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .my-profile {
    border-radius: 16px;
    padding: 24px;
  }

  .my-profile__user {
    gap: 12px;
  }

  .my-profile__text-ava,
  .my-profile__ava {
    width: 64px;
    height: 64px;
  }

  .my-profile__title {
    font-size: 18px;
    margin-bottom: 4px;
  }
}

/* ——— My screenshots ——— */

.account.screenshots {
  padding-bottom: 48px;
}

.account__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.account__header .account__title {
  margin-bottom: 0;
  line-height: 1.28;
}

.account__header .account__title span {
  color: var(--text-accent-color);
  font-size: 24px;
  font-weight: 700;
}

.account__filter-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.account__filter-block .filter-date {
  width: 150px;
}

.screenshots-checkboxs {
  display: flex;
  align-items: center;
}

.screenshots-check {
  margin-bottom: 0 !important;
}

.screenshots__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.screenshot-skeleton {
  height: 200px;
  border-radius: 24px;
  background: var(--input-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray-color);
  animation: screenshot-pulse 1.5s infinite;
}

@keyframes screenshot-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.check {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.check__input {
  appearance: none;
  display: none;
}

.check__box {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}

.check__input:checked + .check__box {
  background: var(--main-color) url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.2 12L2.56 8.37a.75.75 0 011.06-1.06L6.6 9.24l5.25-5.25a.75.75 0 011.06 1.06L7 12a.75.75 0 01-1.06 0z' fill='white'/%3E%3C/svg%3E") no-repeat center;
  background-size: 16px;
  border-color: transparent;
}

.check__label {
  font-size: 16px;
  color: var(--text-color);
}

.screenshot-item {
  display: block;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.screenshot-item:hover {
  transform: scale(1.02);
}

.screenshot-item__check {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.screenshot-item__img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.screenshot-item__img-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-item__hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: pointer;
}

.screenshot-item:hover .screenshot-item__hover {
  opacity: 1;
  visibility: visible;
}

.screenshot-item__options {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screenshot-item__option {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--main-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.screenshot-item__option.screen-delete {
  background: var(--danger-color, #ed5758);
}

.screenshot-item__option-wrap {
  position: relative;
}

.screenshot-item__option-tooltip {
  position: absolute;
  top: 4px;
  right: 48px;
  background: green;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.screenshot-item__option-tooltip.show {
  opacity: 1;
}

.custom-select {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.custom-select__label {
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.custom-select____arrow {
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.41 6L10 10.94 14.59 6 16 7.52 10 14 4 7.52 5.41 6z' fill='black' fill-opacity='.5'/%3E%3C/svg%3E") center/cover;
  transition: transform 0.2s;
}

.custom-select____arrow.active {
  transform: rotate(180deg);
}

.custom-select__dropdown-list {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 40px rgba(77, 83, 103, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
}

.custom-select__dropdown-list.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.custom-select__option-link {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.custom-select__option-link.active,
.custom-select__option-link:hover {
  background: var(--main-color);
  color: #fff;
}

.screenshot-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.06));
}

.screenshot-pagination__control-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.screenshot-pagination__control-button {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: var(--input-br, 10px);
  padding: 4px 12px;
  min-width: 40px;
  height: 40px;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
}

.screenshot-pagination__control-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.screenshot-pagination__control-button.active {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
}

.screenshot-pagination__control-button--icon {
  display: none;
}

.screenshot-pagination__ellipsis {
  padding: 0 8px;
}

.delete-btn {
  background: var(--text-danger-color, #ed5758);
  color: #fff;
  border: none;
  border-radius: var(--input-br, 10px);
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.screenshot-delete {
  flex-shrink: 0;
}

.empty-msg {
  max-width: 640px;
  margin: 64px auto 0;
  text-align: center;
}

.empty-msg__icon {
  margin-bottom: 16px;
}

.empty-msg__text {
  opacity: 0.8;
  line-height: 1.5;
}

.empty-msg__btn {
  margin-top: 32px;
}

.modal__content.screenshots-modal {
  max-width: 70%;
  height: 90%;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.modal-screenshot {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-screenshot__image-wrapper {
  flex: 1;
  min-height: 0;
  padding: 24px;
  text-align: center;
  overflow: hidden;
}

.modal-screenshot__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-screenshot__controls {
  border-top: 1px solid var(--text-gray-color, #ccc);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.modal-screenshot__input-block {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  margin-bottom: 0;
}

.modal-screenshot__input {
  width: 100%;
}

.modal-screenshot__button--delete {
  background: var(--text-danger-color, #ed5758);
  margin-left: auto;
}

.modal-screenshot__tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 8px;
  background: green;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-screenshot__tooltip.active {
  opacity: 1;
}

.modal-screenshot__tooltip.error {
  background: var(--danger-color, #ed5758);
}

@media (max-width: 1024px) {
  .account__header {
    justify-content: center;
  }

  .account__header .account__title {
    width: 100%;
    text-align: center;
  }

  .account__filter-block {
    order: 10;
    width: 100%;
  }

  .screenshots__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .screenshot-item:hover {
    transform: none;
  }

  .modal__content.screenshots-modal {
    max-width: 90%;
  }
}

@media (max-width: 700px) {
  .screenshots__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .account__header {
    margin-bottom: 24px;
  }
}

@media (max-width: 680px) {
  .screenshot-pagination__control-button--text {
    display: none;
  }

  .screenshot-pagination__control-button--icon {
    display: inline;
  }
}

@media (max-width: 393px) {
  .screenshots__grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Unsubscribe ——— */

.unsubscribe {
  padding: clamp(2rem, 6.67vw, 5rem) 0;
  width: 100%;
  box-sizing: border-box;
}

.hero-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  background-color: var(--white-color);
  padding: 48px;
  border-radius: 32px;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-form .form-contact {
  flex: 1;
  justify-content: flex-start;
}

.hero-form .form-img {
  max-width: 428px;
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.hero-form .form__btn {
  background: var(--text-danger-color, #ed5758);
}

.unsubscribe__questions {
  padding: 64px 0;
}

@media (max-width: 1080px) {
  .hero-form {
    max-width: 528px;
    flex-direction: column;
  }

  .hero-form .form-contact {
    order: 10;
  }
}


