/* =========================
SETTINGS PAGE
========================= */

.settings-dashboard-page {
  width: 100%;
  color: #171c25;
}

.settings-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 45px;
}

.settings-page-head h1 {
  margin: 0 0 8px;
  color: #161b22;
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.settings-page-head p {
  margin: 0;
  color: #4d5565;
  font-size: 14px;
  line-height: 1.35;
}

.settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  flex-wrap: wrap;
  padding-top: 5px;
}

.settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.settings-btn-outline {
  color: #004ACA;
  border: 1px solid #0755d8;
  background: transparent;
}

.settings-btn-primary {
  color: #fff;
  background: #004ACA;
  box-shadow: 0 10px 22px rgba(7, 85, 216, 0.15);
}

.settings-btn-danger {
  color: #fff;
  background: #c91d1d;
  box-shadow: 0 10px 22px rgba(201, 29, 29, 0.14);
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.settings-card,
.support-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 31px rgba(35, 54, 93, 0.11);
}

.settings-card {
  min-height: 312px;
  padding: 24px 21px 20px;
}

.settings-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.settings-card-title svg {
  width: 18px;
  height: 18px;
  color: #0755d8;
  stroke-width: 2.4;
}

.settings-card-title h2 {
  margin: 0;
  color: #20242e;
  font-size: 23px;
  line-height: 1;
  font-weight: 700;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.integration-tile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px 16px;
  border: 1px solid #c8d1e0;
  border-radius: 9px;
  background: #fff;
}

.integration-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #0755d8;
  background: #f0f1fb;
}

.integration-icon svg {
  width: 19px;
  height: 19px;
}

.integration-tile strong,
.integration-tile small {
  display: block;
}

.integration-tile strong {
  color: #171c25;
  font-size: 14px;
  line-height: 1.18;
  font-weight: 700;
}

.integration-tile small {
  margin-top: 4px;
  color: #5f6879;
  font-size: 11px;
  line-height: 1;
}

.integration-tile small.is-live {
  color: #00815e;
  font-weight: 700;
}

.integration-tile button {
  color: #0755d8;
  background: transparent;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.integration-tile button.disconnect {
  color: #c91d1d;
}

.preference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.settings-field,
.theme-control {
  display: grid;
  gap: 7px;
}

.settings-field.full {
  grid-column: 1 / -1;
}

.settings-field span,
.theme-control > span {
  color: #4e5768;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.settings-field select {
  width: 100%;
  height: 43px;
  border: 0;
  border-radius: 9px;
  outline: none;
  padding: 0 44px 0 18px;
  color: #283143;
  background:
    linear-gradient(45deg, transparent 50%, #6e7788 50%) calc(100% - 25px) 50% /
      6px 6px no-repeat,
    linear-gradient(135deg, #6e7788 50%, transparent 50%) calc(100% - 20px)
      50% / 6px 6px no-repeat,
    #f0f1fb;
  font-size: 14px;
  appearance: none;
}

.theme-control {
  margin-top: 15px;
}

.theme-control div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.theme-control button {
  height: 29px;
  border-radius: 999px;
  color: #252a34;
  background: #e4e3ee;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
}

.theme-control button.is-active {
  color: #fff;
  background: #0755d8;
}

.security-card {
  min-height: 408px;
}

.security-list {
  display: grid;
  gap: 16px;
}

.security-row,
.session-box {
  border-radius: 9px;
  background: #f0f1fb;
}

.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 12px 12px;
}

.security-row strong,
.security-row small,
.session-box strong,
.session-item span,
.session-item small {
  display: block;
}

.security-row strong,
.session-box strong {
  color: #222837;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.security-row small,
.session-item small {
  margin-top: 7px;
  color: #677183;
  font-size: 10px;
  line-height: 1;
}

.switch {
  position: relative;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  display: block;
  width: 43px;
  height: 22px;
  border-radius: 999px;
  background: #dedee8;
  transition: background 0.18s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.switch input:checked + span {
  background: #0755d8;
}

.switch input:checked + span::after {
  transform: translateX(21px);
}

.session-box {
  min-height: 121px;
  padding: 15px 12px 12px;
}

.session-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-top: 18px;
}

.session-item + .session-item {
  margin-top: 13px;
}

.session-item svg {
  width: 18px;
  height: 18px;
  color: #3d4658;
}

.session-item span {
  color: #17202f;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
}

.manage-security-btn {
  width: 100%;
  height: 45px;
  margin-top: 18px;
  border-radius: 999px;
  color: #fff;
  background: #0755d8;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.settings-right-stack {
  display: grid;
  gap: 10px;
}

.notifications-card {
  min-height: 351px;
}

.notification-list {
  display: grid;
}

.notification-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 49px;
  border-bottom: 1px solid #eef1f6;
  color: #485061;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.notification-list label:last-child {
  border-bottom: 0;
}

.notification-list input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #0755d8;
}

.support-card {
  min-height: 236px;
  padding: 22px 22px 19px;
  color: #fff;
  background: #0755d8;
}

.support-card p {
  margin: 0 0 15px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
}

.support-person {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 21px;
}

.support-person img {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  object-fit: cover;
}

.support-person strong,
.support-person span {
  display: block;
}

.support-person strong {
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.support-person span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1;
}

.support-card a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 43px;
  margin-top: 11px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
}

.support-card a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.settings-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.34);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.settings-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 95;
  width: min(calc(100vw - 32px), 450px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(18, 28, 48, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.96);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

body.settings-modal-open {
  overflow: hidden;
}

body.settings-modal-open .settings-modal-backdrop {
  opacity: 1;
  visibility: visible;
}

.settings-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.settings-password-modal {
  padding: 24px;
}

.settings-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.settings-modal-head h2 {
  margin: 0;
  color: #1F2937;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}

.settings-modal-head button,
.settings-logout-close {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #98a1b2;
  background: transparent;
  flex: 0 0 auto;
}

.settings-modal-head svg,
.settings-logout-close svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.settings-password-form {
  display: grid;
  gap: 13px;
}

.settings-password-field {
  display: grid;
  gap: 7px;
}

.settings-password-field span {
  color: #374151;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
}

.settings-password-field div {
  position: relative;
}

.settings-password-field input {
  width: 100%;
  height: 42px;
  border: 1px solid #d7dbe5;
  border-radius: 6px;
  outline: none;
  padding: 0 42px 0 11px;
  color: #1f2937;
  background: #fff;
  font-size: 12px;
  line-height: 1;
}

.settings-password-field input::placeholder {
  color: #8d95a5;
}

.settings-password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #98a1b2;
  background: transparent;
  transform: translateY(-50%);
}

.settings-password-field button svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.settings-password-note {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0;
  padding: 0 10px;
  border-radius: 5px;
  color: #596273;
  background: #f6f7fa;
  font-size: 14px;
  line-height: 1.25;
}

.settings-password-note svg {
  width: 14px;
  height: 14px;
  color: #9ca5b6;
  flex: 0 0 auto;
}

.settings-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 2px;
}

.settings-modal-actions button {
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}

.settings-modal-primary {
  color: #fff;
  background: #0755d8;
  box-shadow: 0 8px 17px rgba(7, 85, 216, 0.2);
}

.settings-modal-secondary {
  color: #263142;
  background: #fff;
  border: 1px solid #d9dde6;
}

.settings-modal-danger {
  color: #fff;
  background: #c91d1d;
  box-shadow: 0 8px 17px rgba(201, 29, 29, 0.18);
}

.settings-logout-modal {
  padding: 24px;
  text-align: center;
}

.settings-logout-close {
  position: absolute;
  top: 14px;
  right: 15px;
}

.settings-logout-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #c91d1d;
  background: #fde8ec;
}

.settings-logout-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.settings-logout-modal h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}

.settings-logout-modal p {
  max-width: 300px;
  margin: 0 auto 19px;
  color: #4B5563;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
}

.settings-sheet {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 96;
  display: flex;
  flex-direction: column;
  width: min(100%, 456px);
  height: 100vh;
  background: #fff;
  box-shadow: -18px 0 42px rgba(20, 31, 54, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.24s ease;
}

.settings-twofactor-sheet {
  width: min(100%, 500px);
}

body.settings-sheet-open { 
  overflow: hidden;
}

body.settings-sheet-open .settings-modal-backdrop {
  opacity: 1;
  visibility: visible;
}

.settings-sheet.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.settings-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 32px;
  flex: 0 0 auto;
}

.settings-sheet-head h2 {
  margin: 0 0 7px;
  color: #0755d8;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.settings-sheet-head p {
  margin: 0;
  color: #64748B;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}

.settings-sheet-head button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: -2px;
  color: #111827;
  background: transparent;
  flex: 0 0 auto;
}

.settings-sheet-head svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.3;
}

.twofactor-head {
  position: relative;
  padding: 35px 26px 20px;
  border-bottom: 1px solid #eef0f5;
}

.twofactor-head::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 50px;
  height: 5px;
  border-radius: 999px;
  background: #fedccc;
  transform: translateX(-50%);
}

.twofactor-head h2 {
  color: #111827;
}

.settings-sheet-body {
  flex: 1;
  min-height: 0;
  padding: 11px 32px 28px;
  overflow-y: auto;
}

.twofactor-body {
  padding: 16px 26px 28px;
}

.manage-security-section {
  margin-bottom: 30px;
}

.manage-security-section h3 {
  margin: 0 0 16px;
  color: #171c25;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.password-strategy-box {
  padding: 18px 16px 16px;
  border: 1px solid #c7ccdc;
  border-radius: 12px;
}

.password-strategy-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.password-strategy-box strong,
.password-strategy-box span {
  color: #252c3b;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}

.password-strategy-box span {
  color: #535b6c;
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
}

.password-strategy-box button {
  width: 100%;
  height: 30px;
  border-radius: 7px;
  color: #0755d8;
  background: #f0f1fb;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.security-device-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 88px;
  margin-bottom: 17px;
  padding: 18px 16px;
  border-radius: 10px;
  background: #f0f1fb;
}

.security-device-card svg {
  width: 21px;
  height: 21px;
  color: #0755d8;
  stroke-width: 2.2;
}

.security-device-card strong,
.security-device-card p {
  margin: 0;
}

.security-device-card strong {
  color: #171c25;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
}

.security-device-card p {
  margin-top: 4px;
  color: #5e6676;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

.security-device-card button {
  margin-top: 8px;
  color: #d21414;
  background: transparent;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.security-key-card {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 7px;
  padding: 23px 20px;
  border-radius: 20px;
  background: #e5ebf6;
}

.security-key-card > svg {
  width: 27px;
  height: 27px;
  color: #0755d8;
  stroke-width: 2.1;
}

.security-key-card strong {
  display: block;
  color: #0755d8;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.security-key-card p {
  margin: 7px 0 15px;
  color: #4e5667;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.security-key-card button {
  min-width: 128px;
  height: 30px;
  padding: 0 16px;
  border-radius: 7px;
  color: #fff;
  background: #0755d8;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.settings-sheet-footer {
  flex: 0 0 auto;
  margin: 0 45px;
  padding: 23px 0 26px;
  border-top: 1px solid #d7dce7;
}

.settings-sheet-footer button {
  width: 100%;
  height: 53px;
  border-radius: 999px;
  color: #fff;
  background: #0755d8;
  box-shadow: 0 10px 20px rgba(7, 85, 216, 0.2);
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
}

.twofactor-enable-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
  margin-bottom: 23px;
  padding: 20px 15px;
  border-radius: 10px;
  background: #e6edf9;
}

.twofactor-enable-card strong,
.twofactor-enable-card p {
  display: block;
  margin: 0;
}

.twofactor-enable-card strong {
  color: #1b2230;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.twofactor-enable-card p {
  max-width: 250px;
  margin-top: 10px;
  color: #566274;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}

.twofactor-switch {
  position: relative;
  width: 52px;
  height: 31px;
  flex: 0 0 auto;
}

.twofactor-switch input {
  position: absolute;
  opacity: 0;
}

.twofactor-switch span {
  display: block;
  width: 52px;
  height: 31px;
  border-radius: 999px;
  background: #dce1eb;
}

.twofactor-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.twofactor-switch input:checked + span {
  background: #0755d8;
}

.twofactor-switch input:checked + span::after {
  transform: translateX(21px);
}

.twofactor-alert {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 0 0 28px;
  padding: 18px 16px;
  border-radius: 10px;
  color: #0755d8;
  background: #e6edf9;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}

.twofactor-alert svg,
.twofactor-section h3 svg {
  width: 19px;
  height: 19px;
  color: #0755d8;
  stroke-width: 2.2;
}

.twofactor-section {
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid #e1e5ee;
}

.twofactor-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 17px;
  color: #171c25;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.sms-verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 99px;
  gap: 8px;
}

.sms-verification-row input {
  width: 100%;
  height: 42px;
  border: 1px solid #dfe4ed;
  border-radius: 8px;
  outline: none;
  padding: 0 17px;
  color: #657085;
  background: #fff;
  font-size: 16px;
  line-height: 1;
}

.sms-verification-row button {
  height: 42px;
  border-radius: 8px;
  color: #0755d8;
  background: #e6edf9;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}

.authenticator-section {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 13px;
}

.authenticator-box {
  display: grid;
  justify-items: center;
  padding: 22px 18px;
  border-radius: 10px;
  background: #f8fafc;
}

.auth-phone-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 154px;
  height: 153px;
  margin-bottom: 19px;
  border: 1px solid #dde3ed;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(36, 51, 82, 0.08);
}

.auth-phone {
  position: relative;
  display: grid;
  place-items: center;
  width: 136px;
  height: 136px;
  background: #ffd7b6;
}

.auth-phone::before {
  content: "";
  display: block;
  width: 39px;
  height: 72px;
  border: 3px solid #1f2937;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 8px rgba(23, 28, 37, 0.22);
}

.auth-phone span {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  color: #1f2937;
  font-size: 4px;
  line-height: 1;
  font-weight: 700;
  z-index: 1;
}

.auth-qr {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 26px;
  height: 26px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, #111 50%, transparent 50%) 0 0 / 6px 6px,
    linear-gradient(#111 50%, transparent 50%) 0 0 / 6px 6px,
    #fff;
  z-index: 1;
}

.authenticator-box strong {
  margin-bottom: 8px;
  color: #657085;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.authenticator-box code {
  padding: 5px 13px;
  border-radius: 5px;
  color: #0755d8;
  background: #fff1e8;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1;
}

.verification-code-group {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.verification-code-group > span {
  color: #273142;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
}

.verification-code-group div {
  display: grid;
  grid-template-columns: repeat(6, 58px);
  justify-content: space-between;
  gap: 10px;
}

.verification-code-group input {
  width: 58px;
  height: 54px;
  border: 1px solid #dfe4ed;
  border-radius: 8px;
  outline: none;
  text-align: center;
  color: #111827;
  background: #fff;
  font-size: 22px;
  font-weight: 700;
}

.twofactor-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 20px;
  margin: 0 26px;
  padding: 14px 0 38px;
  border-top: 0;
}

.twofactor-footer .settings-sheet-cancel {
  color: #485266;
  background: transparent;
  box-shadow: none;
}

/* =========================
CUSTOMER DETAILS PAGE
========================= */

.customer-details-page {
  width: 100%;
  min-height: calc(100vh - 72px);
  padding: 24px 46px 45px;
  color: #151a22;
}

.customer-details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 38px;
}

.customer-details-head h1 {
  margin: 0 0 8px;
  color: #151a22;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.customer-details-head p {
  margin: 0;
  color: #3f4858;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
}

.customer-export-btn {
  min-width: 106px;
  height: 42px;
  margin-top: 4px;
  border: 1px solid #c8d2e4;
  border-radius: 999px;
  background: transparent;
  color: #151a22;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.customer-export-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.customer-filter-card {
  min-height: 96px;
  margin-bottom: 38px;
  padding: 21px 22px;
  border-radius: 16px;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(250px, 1.7fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) 150px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  box-shadow: 0 12px 34px rgba(34, 57, 100, 0.04);
}

.customer-filter-field {
  display: grid;
  gap: 8px;
}

.customer-filter-field span {
  color: #111827;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
}

.customer-filter-field input {
  width: 100%;
  height: 34px;
  border: 1px solid #d8e0ec;
  border-radius: 9px;
  background: #ffffff;
  padding: 0 17px;
  color: #101722;
  font-size: 12px;
  outline: none;
}

.customer-filter-field input::placeholder {
  color: #9aa3b1;
  opacity: 1;
}

.customer-search-btn {
  width: 150px;
  height: 36px;
  border-radius: 999px;
  background: #004aca;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.customer-table-card {
  overflow: hidden;
  background: transparent;
}

.customer-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.customer-details-table {
  width: 100%;
  min-width: 1110px;
  border-collapse: collapse;
  background: #ffffff;
}

.customer-details-table thead {
  background: #f4f4fc;
}

.customer-details-table th,
.customer-details-table td {
  height: 67px;
  padding: 0 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #edf1f7;
  color: #151a22;
  font-size: 12px;
  line-height: 1.45;
}

.customer-details-table th {
  height: 44px;
  font-weight: 800;
}

.customer-details-table td small,
.customer-details-table td span {
  display: block;
}

.customer-details-table td small {
  margin-top: 8px;
  color: #151a22;
  font-size: 12px;
}

.customer-details-table strong {
  font-weight: 800;
}

.customer-details-table th:nth-child(1),
.customer-details-table td:nth-child(1) {
  width: 185px;
}

.customer-details-table th:nth-child(2),
.customer-details-table td:nth-child(2) {
  width: 190px;
}

.customer-details-table th:nth-child(3),
.customer-details-table td:nth-child(3) {
  width: 200px;
}

.customer-details-table th:nth-child(4),
.customer-details-table td:nth-child(4) {
  width: 165px;
}

.customer-details-table th:nth-child(5),
.customer-details-table td:nth-child(5) {
  width: 180px;
}

.customer-details-table th:nth-child(6),
.customer-details-table td:nth-child(6) {
  width: 180px;
}

.customer-table-footer {
  min-height: 88px;
  padding: 19px 20px 0;
  background: #f4f4fc;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.customer-table-footer > span {
  color: #313846;
  font-size: 11px;
}

.customer-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customer-pagination button {
  width: 24px;
  height: 24px;
  border: 1px solid #d5dde9;
  border-radius: 8px;
  background: #ffffff;
  color: #141b26;
  display: grid;
  place-items: center;
}

.customer-pagination svg {
  display: none;
}

.customer-pagination button::before {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.customer-page-prev::before {
  content: "\2039";
}

.customer-page-next::before {
  content: "\203A";
}


@media (max-width: 1180px) {
  .settings-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .customer-details-page {
    padding: 22px 24px 38px;
  }

  .customer-filter-card {
    grid-template-columns: minmax(240px, 1.2fr) repeat(2, minmax(130px, 0.8fr)) 140px;
  }
}

@media (max-width: 900px) {
  .customer-details-head {
    margin-bottom: 28px;
  }

  .customer-filter-card {
    grid-template-columns: 1fr 1fr;
  }

  .customer-search-field,
  .customer-search-btn {
    grid-column: 1 / -1;
  }

  .customer-search-btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .customer-details-page {
    padding: 18px 16px 32px;
  }

  .customer-details-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .customer-details-head h1 {
    font-size: 24px;
  }

  .customer-details-head p {
    font-size: 14px;
  }

  .customer-export-btn {
    align-self: flex-start;
  }

  .customer-filter-card {
    min-height: 0;
    margin-bottom: 28px;
    padding: 18px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .customer-search-field,
  .customer-search-btn {
    grid-column: auto;
  }

  .customer-table-scroll {
    border-radius: 12px 12px 0 0;
  }

  .customer-details-table {
    min-width: 940px;
  }

  .customer-table-footer {
    min-height: 66px;
    padding: 16px;
    align-items: center;
  }
}

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

@media (max-width: 760px) {
  .settings-page-head {
    margin-bottom: 24px;
  }

  .settings-page-head h1 {
    font-size: 24px;
  }

  .settings-actions,
  .integration-grid,
  .preference-grid,
  .theme-control div {
    grid-template-columns: 1fr;
  }

  .settings-actions {
    display: grid;
    gap: 10px;
  }

  .settings-btn {
    width: 100%;
  }

  .settings-card {
    min-height: auto;
    padding: 20px 18px;
  }

  .settings-card-title h2 {
    font-size: 20px;
  }

  .integration-tile {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .integration-tile button {
    grid-column: 2;
    justify-self: start;
  }

  .security-row,
  .notification-list label {
    align-items: flex-start;
  }

  .support-card {
    min-height: auto;
  }

  .settings-modal {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
    overflow-y: auto;
    transform: translateY(100%);
  }

  .settings-modal.is-open {
    transform: translateY(0);
  }

  .settings-password-modal,
  .settings-logout-modal {
    padding: 22px;
  }

  .settings-password-field input {
    height: 44px;
  }

  .settings-modal-actions {
    grid-template-columns: 1fr;
  }

  .settings-modal-actions button {
    height: 42px;
  }

  .settings-logout-modal {
    text-align: center;
  }

  .settings-sheet {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(88vh, 760px);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 42px rgba(20, 31, 54, 0.2);
    transform: translateY(100%);
  }

  .settings-sheet.is-open {
    transform: translateY(0);
  }

  .settings-sheet-head,
  .twofactor-head {
    padding: 24px 22px 18px;
  }

  .twofactor-head::before {
    top: 10px;
  }

  .settings-sheet-body,
  .twofactor-body {
    padding: 16px 22px 22px;
  }

  .settings-sheet-footer,
  .twofactor-footer {
    margin: 0 22px;
    padding: 16px 0 22px;
  }

  .twofactor-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sms-verification-row {
    grid-template-columns: 1fr;
  }

  .verification-code-group div {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .verification-code-group input {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .session-item {
    grid-template-columns: 1fr;
  }

  .support-card a {
    align-items: flex-start;
    border-radius: 14px;
    padding: 14px;
    line-height: 1.25;
  }

  .settings-sheet-head h2 {
    font-size: 20px;
  }

  .security-key-card,
  .security-device-card {
    grid-template-columns: 1fr;
  }

  .twofactor-enable-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .verification-code-group div {
    gap: 7px;
  }

  .verification-code-group input {
    height: 48px;
  }
}
