@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
select {
  font-family: inherit;
}

.sm-profile-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background-color: #f9fafb;
}

.sm-profile-container > .sm-alerts {
  width: 100%;
  max-width: 656px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dsm-auth-profile {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background-color: #f9fafb;
  color: #000000;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.dsm-auth-profile__viewport {
  width: 100%;
  min-height: inherit;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dsm-auth-profile__content {
  width: 100%;
  max-width: 656px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.dsm-auth-profile__form {
  width: 100%;
  max-width: 656px;
  background-color: #ffffff;
  padding: 28px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

.dsm-auth-profile__header {
  margin: 0 0 28px;
}

.dsm-auth-profile__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 600;
  color: #0f172a;
}

.dsm-auth-profile__subtitle {
  margin: 0;
  font-size: 15px;
  color: #4b5563;
}

.dsm-auth-profile__account {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px;
  background-color: rgba(0, 94, 235, 0.08);
  border: 1px solid rgba(0, 94, 235, 0.18);
  border-radius: 8px;
  font-size: 15px;
  color: #1f2937;
}

.dsm-auth-profile__account-label {
  font-weight: 600;
  color: #005eeb;
}

.dsm-auth-profile__account-value {
  font-weight: 500;
  word-break: break-word;
}

.dsm-auth-profile__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.dsm-auth-profile__field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.dsm-auth-profile__field-row + .dsm-auth-profile__field-row {
  margin-top: 20px;
}

.dsm-auth-profile__field-row--name {
  gap: 20px;
}

.dsm-auth-profile__field-row--email {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.dsm-auth-profile__field-row--password {
  flex-direction: column;
  align-items: stretch;
}

.dsm-auth-profile__field-row--password .dsm-auth-profile__input {
  width: 100%;
}

.dsm-auth-profile__email-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.dsm-auth-profile__email-controls .dsm-auth-profile__control--text {
  flex: 1 1 0;
  min-width: 0;
}

.dsm-auth-profile__email-controls .dsm-auth-profile__control--text .dsm-auth-profile__input {
  width: 100%;
}

.dsm-auth-profile__email-errors {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.dsm-auth-profile__field {
  flex: 1 1 0;
  min-width: 0;
}

.dsm-auth-profile__label {
  display: block;
  margin: 0 0 9px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
}

.dsm-auth-profile__control {
  position: relative;
}

.dsm-auth-profile__control--verification {
  margin-bottom: 0;
}

.dsm-auth-profile__input,
.dsm-auth-profile__select {
  width: 100%;
  height: 63px;
  padding: 0 14px;
  background-color: #ffffff;
  border: 1px solid #e6e7ec;
  border-radius: 5px;
  color: #67697c;
  font-size: 18px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.dsm-auth-profile__input::placeholder {
  color: #c7c9d3;
  font-size: 18px;
}

.dsm-auth-profile__select {
  cursor: pointer;
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%2367697c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 24px 24px;
  background-position: right 14px center;
}

.dsm-auth-profile__input:focus,
.dsm-auth-profile__select:focus {
  border-color: #1663ff;
  box-shadow: 0 0 0 2px rgba(22, 99, 255, 0.1);
}

.dsm-auth-profile__action-button {
  height: 63px;
  min-width: 154px;
  padding: 0 20px;
  border-radius: 5px;
  border: 1px solid #005eeb;
  background-color: #ffffff;
  color: #005eeb;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}

.dsm-auth-profile__action-button:hover {
  background-color: #005eeb;
  color: #ffffff;
}

.dsm-auth-profile__action-button:active {
  transform: translateY(1px);
}

.dsm-auth-profile__action-button:focus-visible {
  outline: 2px solid rgba(22, 99, 255, 0.4);
  outline-offset: 2px;
}

.dsm-auth-profile__action-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.dsm-auth-profile__otp {
  display: none;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 8px;
  border: 1px dashed rgba(0, 94, 235, 0.35);
  background-color: rgba(0, 94, 235, 0.06);
}

.dsm-auth-profile__otp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 12px;
}

.dsm-auth-profile__input--code {
  flex: 1 1 180px;
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 18px;
  font-weight: 600;
}

.dsm-auth-profile__otp-meta {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.dsm-auth-profile__otp-timer {
  color: #005eeb;
  font-weight: 600;
}

.dsm-auth-profile__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #4b5563;
}

.dsm-auth-profile__checkbox-input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1px solid #cbd5f5;
  border-radius: 4px;
}

.dsm-auth-profile__checkbox-input:focus-visible {
  outline: 2px solid rgba(22, 99, 255, 0.4);
  outline-offset: 2px;
}

.dsm-auth-profile__checkbox-text {
  line-height: 1.5;
}

.dsm-auth-profile__actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dsm-auth-profile__section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  box-shadow: none;
}

.dsm-auth-profile__section--password {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.dsm-auth-profile__section--withdraw {
  border: 1px solid rgba(220, 38, 38, 0.08);
  box-shadow: none;
  background-color: #fff7f7;
}

.dsm-auth-profile__section-header {
  margin: 0 0 24px;
}

.dsm-auth-profile__section--withdraw .dsm-auth-profile__section-header {
  border-bottom: 1px solid rgba(220, 38, 38, 0.12);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.dsm-auth-profile__section-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
}

.dsm-auth-profile__section--withdraw .dsm-auth-profile__section-title {
  color: #b91c1c;
}

.dsm-auth-profile__section-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

.dsm-auth-profile__section--withdraw .dsm-auth-profile__section-description {
  color: #6b7280;
}

.dsm-auth-profile__section-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dsm-auth-profile__section-actions {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dsm-auth-profile__visibility-toggle {
  pointer-events: auto;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: none;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.dsm-auth-profile__visibility-toggle:hover {
  background-color: rgba(0, 94, 235, 0.08);
}

.dsm-auth-profile__visibility-toggle:focus-visible {
  outline: 2px solid rgba(22, 99, 255, 0.4);
  outline-offset: 2px;
}

.dsm-auth-profile__visibility-icon {
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  background-position: center;
  display: block;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3L21 21' stroke='%23005eeb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10.73 6.95C11.14 6.9 11.56 6.86 12 6.86C17.25 6.86 21.5 13 21.5 13C20.88 14.02 20.08 15.16 19.06 16.19' stroke='%23005eeb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.76 9.29C5.05 10.57 3.5 12.65 2.5 13.86C2.5 13.86 5.14 17.76 8.83 19.23' stroke='%23005eeb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.88 9.88C11.05 8.71 12.95 8.71 14.12 9.88C15.29 11.05 15.29 12.95 14.12 14.12' stroke='%23005eeb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.dsm-auth-profile__visibility-toggle[aria-pressed="true"] .dsm-auth-profile__visibility-icon {
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5C6.75 5 2.5 12 2.5 12C2.5 12 6.75 19 12 19C17.25 19 21.5 12 21.5 12C21.5 12 17.25 5 12 5Z' stroke='%23005eeb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3.5' stroke='%23005eeb' stroke-width='1.6'/%3E%3C/svg%3E");
}

.dsm-auth-profile__submit {
  width: 100%;
  height: 56px;
  margin-top: 31px;
  border: none;
  border-radius: 5px;
  background-color: #005eeb;
  color: #ffffff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: filter 150ms ease, transform 150ms ease;
}

.dsm-auth-profile__submit:hover {
  filter: brightness(0.95);
}

.dsm-auth-profile__submit:active {
  transform: translateY(1px);
}

.dsm-auth-profile__submit:focus-visible {
  outline: 2px solid rgba(22, 99, 255, 0.4);
  outline-offset: 2px;
}

.dsm-auth-profile__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 20px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 150ms ease, transform 150ms ease;
}

.profile-form__button--primary {
  background-color: #005eeb;
  color: #ffffff;
}

.profile-form__button--primary:hover {
  filter: brightness(0.95);
}

.profile-form__button--primary:active {
  transform: translateY(1px);
}

.profile-form__button--danger {
  background-color: #dc2626;
  color: #ffffff;
}

.profile-form__button--danger:hover {
  background-color: #b91c1c;
}

.profile-form__button--danger:active {
  transform: translateY(1px);
}

.profile-form__button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

#verify-otp {
  display: none;
}

.profile-form__otp-area,
.dsm-auth-profile__otp {
  display: none;
}

.profile-form__otp-area.is-visible,
.profile-form__otp-area[style*="display: block"],
.profile-form__otp-area[style*="display:block"],
#sm-profile-otp-area[style*="display: block"],
#sm-profile-otp-area[style*="display:block"] {
  display: block;
}

.profile-form__error {
  display: block;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #d14343;
}

.profile-form__error--hide {
  display: none;
}

.profile-form__error-message {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(209, 67, 67, 0.4);
  background-color: rgba(209, 67, 67, 0.08);
  font-size: 14px;
  font-weight: 500;
  color: #b91c1c;
}

.profile-form__error-message--hide {
  display: none !important;
}

.profile-form__popover {
  background-color: rgba(209, 67, 67, 0.08);
  border: 1px solid rgba(209, 67, 67, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  color: #d14343;
}

.profile-form__popover--hide {
  display: none;
}

.profile-form__popover-text {
  margin: 0;
}

.profile-form__success-message {
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  color: #0f766e;
}

.profile-form__success-message--hide {
  display: none;
}

.profile-form__otp-meta .profile-form__otp-expired {
  margin-left: 6px;
  color: #d14343;
  font-weight: 600;
  font-size: 13px;
}

.profile-form__otp-verified {
  color: #0f766e;
  font-weight: 600;
}

.dsm-auth-profile .g-recaptcha {
  margin-top: 6px;
}

.dsm-auth-profile__section--policies {
  margin-top: 36px;
  padding: 0;
  box-shadow: none;
}

.dsm-auth-profile__policy-note {
  margin: 8px 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

.dsm-auth-profile__policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.dsm-auth-profile__policy-item {
  display: block !important;
  margin-bottom: 28px;
}

.dsm-auth-profile__policy-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.4;
}

.dsm-auth-profile__policy-description {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 400;
  color: #374151;
  line-height: 1.5;
}

.dsm-auth-profile__policy-label {
  display: flex;
  align-items: center;
  gap: normal;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  color: #636466;
}

.dsm-auth-profile__policy-label--readonly {
  cursor: not-allowed;
  color: #7b7d8a;
}

.dsm-auth-profile__policy-checkbox-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dsm-auth-profile__policy-checkbox-wrap--readonly {
  opacity: 0.75;
}

.dsm-auth-profile__policy-item[data-policy-required="1"] .dsm-auth-profile__policy-checkbox-wrap {
  background-color: transparent;
}

.dsm-auth-profile__policy-checkbox {
  width: 13px;
  height: 13px;
  margin: 0 8px 0 0;
  cursor: pointer;
  accent-color: auto;
}

.dsm-auth-profile__policy-checkbox:disabled {
  cursor: not-allowed;
  accent-color: #cbd5f5;
  border-color: #cbd5f5;
}

.dsm-auth-profile__policy-item--readonly .dsm-auth-profile__policy-text {
  color: #7b7d8a;
}

.dsm-auth-profile__policy-item--readonly .dsm-auth-profile__policy-link {
  color: #6b7280;
  cursor: pointer;
}

.dsm-auth-profile__policy-item--readonly .dsm-auth-profile__policy-link:hover {
  color: #4b5563;
}

.dsm-auth-profile__policy-text {
  color: #636466;
  font-size: 15px;
  line-height: 1.3;
}

.dsm-auth-profile__policy-link {
  color: #636466;
  text-decoration: underline;
}

.dsm-auth-profile__policy-link:hover {
  color: #005eeb;
}

.dsm-auth-profile__policy-templates {
  display: none !important;
}

.sm-policy-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.sm-policy-modal--visible {
  display: flex;
}

.sm-policy-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
}

.sm-policy-modal__dialog {
  position: relative;
  max-width: 720px;
  width: calc(100% - 64px);
  max-height: calc(100% - 80px);
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.35);
  padding: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sm-policy-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sm-policy-modal__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #0f172a;
}

.sm-policy-modal__close {
  background: none;
  border: none;
  color: #475569;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.sm-policy-modal__close:hover {
  color: #0f172a;
}

.sm-policy-modal__close:focus-visible {
  outline: 2px solid rgba(22, 99, 255, 0.4);
  outline-offset: 2px;
}

.sm-policy-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 6px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.6;
}

.sm-policy-modal__body p {
  margin-top: 0;
}

.sm-policy-modal__body p + p {
  margin-top: 1em;
}

.sm-policy-modal__body h1 {
  font-size: 1.4rem;
  margin: 1em 0 0.5em;
}

.sm-policy-modal__body h2 {
  font-size: 1.3rem;
  margin: 1em 0 0.5em;
}

.sm-policy-modal__body h3 {
  font-size: 1.2rem;
  margin: 1em 0 0.5em;
}

.sm-policy-modal__body h4 {
  font-size: 1.1rem;
  margin: 1em 0 0.5em;
}

.sm-policy-modal__body h5 {
  font-size: 1rem;
  margin: 1em 0 0.5em;
}

.sm-policy-modal__body ol,
.sm-policy-modal__body ul {
  padding-left: 16px;
  margin: 0.5em 0;
}

body.sm-policy-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .dsm-auth-profile__viewport {
    padding: 32px 16px;
  }

  .dsm-auth-profile__content {
    gap: 24px;
  }

  .dsm-auth-profile__section {
    padding: 24px;
  }

  .sm-profile-container > .sm-alerts {
    padding: 20px 16px 0;
  }

  .dsm-auth-profile__field-row--email {
    flex-direction: column;
    align-items: stretch;
  }

  .dsm-auth-profile__email-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .dsm-auth-profile__account {
    flex-direction: column;
    align-items: flex-start;
  }

  .dsm-auth-profile__otp-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .dsm-auth-profile__action-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .dsm-auth-profile__input,
  .dsm-auth-profile__select {
    font-size: 16px;
    height: 56px;
  }

  .dsm-auth-profile__action-button {
    height: 56px;
    font-size: 16px;
  }

  .dsm-auth-profile__section {
    padding: 20px;
  }

  .dsm-auth-profile__section-title {
    font-size: 22px;
  }

  .dsm-auth-profile__input--code {
    font-size: 16px;
    letter-spacing: 0.2em;
  }
}
