.settings-page-main .md-shell {
  max-width: 1320px;
}

body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 {
  background: #f5fbfd;
  background-attachment: fixed;
  color: #1b6875;
}

body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .modern-dashboard p,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .modern-dashboard span,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .modern-dashboard a,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .modern-dashboard button,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .modern-dashboard h1,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .modern-dashboard h2,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .modern-dashboard h3,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .modern-dashboard h4,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .modern-dashboard li {
  color: #1b6875;
}

body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .top-icon-btn i {
  color: #1b6875;
}

body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .contact-footer {
  background: #1b6875;
}

body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .contact-footer,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .contact-footer *,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .contact-footer i,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .footer-bottom,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .footer-bottom * {
  color: #f3f3f4 !important;
  border-color: rgba(243, 243, 244, 0.3);
}

body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .contact-footer h3 {
  color: #b7cd60 !important;
}

body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .message-center-dropdown,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .help-support-dropdown {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 6px 20px rgba(0, 0, 0, 0.1);
}

body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .mc-header,
body.modern-dashboard-page.modern-dashboard-e3.modern-dashboard-f2 .hs-header {
  background: linear-gradient(135deg, #1b6875 0%, #145560 100%);
}

.settings-surface {
  position: relative;
  margin-top: 8px;
  border: 1px solid rgba(218, 217, 214, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url("images/page_background.jpg") center center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(2, 28, 35, 0.18);
  overflow: hidden;
}

.settings-surface-inner {
  min-height: 0;
  padding: 28px 34px 32px;
}

.settings-page-title {
  margin: 0;
  color: #1f1f23;
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.settings-page-divider {
  margin: 12px 0 20px;
  border: 0;
  border-top: 1px solid rgba(210, 213, 218, 0.9);
}

.settings-copy {
  max-width: 920px;
  color: #3f464f;
  font-size: 1rem;
  line-height: 1.6;
}

.settings-copy ul {
  margin: 14px 0 0 28px;
  padding: 0;
}

.settings-copy li + li {
  margin-top: 8px;
}

.settings-form {
  max-width: 540px;
  margin-top: 28px;
}

.settings-form-error {
  display: none;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(212, 59, 42, 0.28);
  border-left: 4px solid #d43b2a;
  border-radius: 8px;
  background: rgba(255, 245, 244, 0.95);
  color: #6b221b;
  font-size: 0.92rem;
}

.settings-form-error.is-visible {
  display: block;
}

.settings-field {
  margin-bottom: 24px;
}

.settings-field label {
  display: block;
  margin-bottom: 10px;
  color: #3a3d45;
  font-size: 0.98rem;
  font-weight: 500;
}

.settings-input-wrap {
  position: relative;
}

.settings-input {
  width: 100%;
  height: 56px;
  padding: 0 54px 0 16px;
  border: 1px solid #a9b3bc;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #1f1f23;
  font-size: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-input:focus {
  outline: none;
  border-color: #1b6875;
  box-shadow: 0 0 0 2px rgba(27, 104, 117, 0.12);
}

.settings-input-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #7d8791;
  cursor: pointer;
}

.settings-input-toggle:hover {
  color: #1b6875;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.settings-button {
  min-width: 140px;
  height: 54px;
  border-radius: 4px;
  border: 1px solid #1b6875;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.settings-button-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: #1b6875;
}

.settings-button-secondary:hover {
  background: rgba(244, 248, 250, 0.98);
}

.settings-button-primary {
  background: #1b6875;
  color: #ffffff;
}

.settings-button-primary,
.settings-button-primary span,
.settings-button-primary i {
  color: #ffffff !important;
}

.settings-button-primary:hover {
  background: #145560;
  border-color: #145560;
}

.settings-button-primary:disabled {
  background: #a0a6ad;
  border-color: #a0a6ad;
  cursor: not-allowed;
}

.settings-toast {
  position: fixed;
  top: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1700;
  min-width: min(640px, calc(100vw - 32px));
  display: none;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(183, 205, 96, 0.65);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(2, 28, 35, 0.18);
}

.settings-toast.is-visible {
  display: flex;
}

.settings-toast-icon {
  color: #b7cd60;
  font-size: 1.05rem;
}

.settings-toast-message {
  flex: 1 1 auto;
  color: #33424a;
  font-size: 0.96rem;
  font-weight: 600;
}

.settings-toast-close {
  border: 0;
  background: transparent;
  color: #5f6a72;
  font-size: 1rem;
  cursor: pointer;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.profile-nav {
  display: grid;
  gap: 12px;
}

.profile-nav-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #1b6875;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
}

.profile-nav-link:hover {
  color: #145560;
  text-decoration: underline;
}

.profile-nav-link.is-active {
  color: #0f3f49;
}

.profile-placeholder {
  min-height: 0;
}

.settings-utility-note {
  max-width: 520px;
  padding: 22px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(210, 213, 218, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.settings-utility-note h2 {
  margin: 0 0 10px;
  color: #1f1f23;
  font-size: 1.15rem;
}

.settings-utility-note p {
  margin: 0;
  color: #46525b;
  line-height: 1.6;
}

.settings-shortcut-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #46525b;
}

.settings-shortcut-list li + li {
  margin-top: 8px;
}

.settings-shortcut-list strong {
  color: #1f1f23;
}

.settings-simple-list {
  display: grid;
  gap: 12px;
}

.settings-simple-panel {
  padding: 18px 20px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(218, 217, 214, 0.9);
}

.settings-simple-panel h4 {
  margin: 0 0 6px;
  color: #1f1f23;
  font-size: 1rem;
}

.settings-simple-panel p {
  margin: 0;
  color: #56656d;
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .settings-toast {
    top: 72px;
  }

  .settings-surface-inner {
    padding: 26px 22px 30px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile-placeholder {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .settings-page-main .md-shell {
    max-width: 100%;
  }

  .settings-page-title {
    font-size: 1.8rem;
  }

  .settings-form {
    max-width: 100%;
  }

  .settings-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .settings-button {
    width: 100%;
  }

  .settings-toast {
    min-width: 0;
    width: calc(100vw - 24px);
  }
}
