
  body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    padding-top: 80px;
  }

  .profile-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
  }

  .profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .profile-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
  }

  .profile-submit-btn {
    background: #0055aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    max-width: 700px;
  }

  .profile-submit-btn:hover {
    background: #003f7f;
  }

  .profile-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #ddd;
  }

  .profile-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
  }

  .profile-tab:hover {
    background-color: #f0f4ff;
    color: #0055aa;
  }

  .profile-tab.active {
    color: #0055aa;
    border-bottom: 3px solid #0055aa;
    background-color: transparent;
  }

  .profile-section {
    display: none;
    padding: 10px 0;
  }

  .profile-section.active {
    display: block;
  }

.profile-form-group {
  width: 100%;
  max-width: 700px;
  margin-bottom: 16px;
}

  .profile-form-group label {
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 6px;
  }

.profile-form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

  .profile-message {
    text-align: center;
    padding: 12px;
    margin: 0 auto 20px;
    border-radius: 8px;
    max-width: 700px;
  }

  .profile-success-message {
    background-color: #e0ffe0;
    color: #0a0;
  }

  .profile-error-message {
    background-color: #ffe0e0;
    color: #c00;
  }
  .profile-tab-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

    .input-icon {
        position: relative;
        margin-bottom: 16px;
    }
    
    .input-icon i {
        position: absolute;
        top: 40%;
        left: 12px;
        transform: translateY(-50%);
        color: #999;
        font-size: 14px;
    }
    
    .input-icon input {
        width: 100%;
        padding: 12px 12px 12px 38px; /* espaço para o ícone */
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 14px;
        transition: border-color 0.3s ease;
    }
    
    .input-icon input:focus {
        border-color: #0066cc;
        box-shadow: 0 0 4px rgba(0, 102, 204, 0.2);
        outline: none;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

.profile-form-group-pass {
  display: flex;
  justify-content: space-between;
  gap: 16px; /* espaço entre os campos */
  margin-bottom: 16px;
    width: 100%;
  max-width: 700px;
 
}

.input-icon-pass {
  position: relative;
  width: 100%;
}

.input-icon-pass input {
  width: 100%;
  padding: 12px 12px 12px 38px; /* espaço para o ícone */
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.input-icon-pass i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
}

.input-icon-pass input:focus {
  border-color: #0066cc;
  box-shadow: 0 0 4px rgba(0, 102, 204, 0.2);
  outline: none;
}

/* Garante que os campos fiquem lado a lado com largura igual */
.profile-form-group-pass > .input-icon-pass {
  flex: 1;
}

.account-page {
  min-height: 70vh;
  padding: 18px 0 42px;
  background: #f4f7fb;
  color: #12213a;
}

.account-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}

.account-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.account-header h1 {
  margin: 0;
  font-size: 1.55rem;
  color: #0f1f38;
}

.account-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: .92rem;
}

.account-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #36506d;
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
}

.account-back-link:hover {
  color: #176df2;
}

.account-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.account-sidebar,
.account-content {
  border: 1px solid #dde6f2;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(35, 50, 85, .045);
}

.account-sidebar {
  overflow: hidden;
  min-height: calc(100vh - 150px);
  align-self: stretch;
}

.account-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  border: 0;
}

.account-tabs .profile-tab,
.account-side-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 18px 16px;
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #edf2f8;
  border-radius: 0;
  background: #fff;
  color: #263449;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-tabs .profile-tab:hover,
.account-side-link:hover {
  background: #f7faff;
  color: #176df2;
}

.account-tabs .profile-tab.active {
  border-left-color: #176df2;
  background: #f0f6ff;
  color: #176df2;
}

.account-tabs .profile-tab i,
.account-side-link i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #edf5ff;
  color: #176df2;
}

.account-tabs .profile-tab strong,
.account-side-link strong {
  display: block;
  color: inherit;
  font-size: .9rem;
}

.account-tabs .profile-tab small,
.account-side-link small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: .76rem;
  line-height: 1.35;
}

.account-content {
  min-height: 430px;
  padding: 8px 0;
}

.account-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 0;
}

.account-section-head span {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #edf5ff;
  color: #176df2;
  font-size: 1.15rem;
}

.account-section-head h2 {
  margin: 0;
  color: #0f1f38;
  font-size: 1.15rem;
}

.account-section-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: .86rem;
  line-height: 1.4;
}

.profile-section {
  padding: 0;
}

.profile-section.active {
  display: block;
}

.profile-tab-content {
  align-items: stretch;
  padding: 22px;
}

.profile-form-group,
.profile-submit-btn,
.profile-form-group-pass {
  max-width: 560px;
}

.profile-section:first-child .profile-form-group,
.profile-section:first-child .profile-submit-btn {
  max-width: 420px;
}

.account-content > .profile-section:nth-of-type(4) .profile-form-group {
  max-width: 900px;
}

.profile-submit-btn {
  width: auto;
  min-width: 160px;
  border-radius: 6px;
  background: #176df2;
  font-weight: 650;
}

.profile-submit-btn:hover {
  background: #0f56ca;
}

.profile-form-group input,
.input-icon input,
.input-icon-pass input {
  border-color: #cdd7e5;
  border-radius: 6px;
}

.profile-form-group input:focus,
.input-icon input:focus,
.input-icon-pass input:focus {
  border-color: #176df2;
  box-shadow: 0 0 0 3px rgba(23, 109, 242, .10);
}

.account-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(335px, 36%);
  gap: 16px;
  padding: 22px;
  align-items: start;
}

.account-profile-grid > .account-lower-grid {
  display: none;
}

.account-profile-main-card,
.account-profile-summary-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe8f4;
  border-radius: 6px;
  background: #fff;
}

.account-profile-main-card .profile-tab-content {
  padding: 22px;
}

.account-profile-main-card .profile-form-group,
.account-profile-main-card .profile-submit-btn {
  max-width: none;
}

.profile-section:first-child .account-profile-main-card .profile-form-group,
.profile-section:first-child .account-profile-main-card .profile-submit-btn {
  max-width: none;
}

.account-profile-main-card .profile-form-group,
.account-profile-main-card .input-icon,
.account-profile-main-card .account-email-note,
.account-profile-main-card .profile-submit-btn {
  width: 100%;
}

.account-profile-main-card .input-icon {
  margin-bottom: 0;
}

.account-email-note {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  margin: 2px 0 8px;
  padding: 14px;
  border: 1px solid #d7e7ff;
  border-radius: 6px;
  background: #f0f6ff;
}

.account-email-note > i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #e3efff;
  color: #176df2;
}

.account-email-note strong {
  display: block;
  color: #173052;
  font-size: .82rem;
}

.account-email-note p {
  margin: 3px 0 0;
  color: #12213a;
  font-size: .8rem;
  font-weight: 700;
}

.account-email-note small {
  display: block;
  margin-top: 4px;
  color: #52657e;
  font-size: .74rem;
  line-height: 1.35;
}

.account-profile-summary-card .account-mini-head {
  border-bottom: 0;
}

.account-profile-summary-card .account-setting-row {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  margin: 0 16px;
  padding: 13px 0;
}

.account-profile-summary-card .account-setting-row > i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #edf5ff;
  color: #176df2;
}

.account-profile-summary-card .account-setting-row small {
  word-break: break-word;
}

.account-summary-note {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  margin: 16px;
  padding: 14px;
  border: 1px solid #cfe0ff;
  border-radius: 6px;
  background: #f0f6ff;
}

.account-summary-note > i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: #e3efff;
  color: #176df2;
}

.account-summary-note strong {
  display: block;
  color: #173052;
  font-size: .82rem;
}

.account-summary-note p {
  margin: 3px 0 0;
  color: #52657e;
  font-size: .74rem;
  line-height: 1.4;
}

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

.account-mini-card {
  overflow: hidden;
  border: 1px solid #dfe8f4;
  border-radius: 6px;
  background: #fff;
}

.account-mini-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #edf2f8;
}

.account-mini-head > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: #edf5ff;
  color: #176df2;
}

.account-mini-head h3 {
  margin: 0;
  color: #12213a;
  font-size: .98rem;
}

.account-mini-head p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: .78rem;
}

.account-setting-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid #edf2f8;
}

.account-setting-row:last-child {
  border-bottom: 0;
}

.account-setting-row > i {
  color: #176df2;
}

.account-setting-row strong {
  display: block;
  color: #263449;
  font-size: .84rem;
}

.account-setting-row small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: .75rem;
  line-height: 1.35;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: .72rem;
  font-weight: 750;
}

.account-pill.is-on {
  background: #dcfce7;
  color: #15803d;
}

.account-pill.is-warn {
  background: #fff3d7;
  color: #b45309;
}

.account-help-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  max-width: 720px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #d7e7ff;
  border-radius: 6px;
  background: #f0f6ff;
}

.account-help-note > i {
  color: #176df2;
  font-size: 1rem;
  margin-top: 2px;
}

.account-help-note strong {
  display: block;
  color: #173052;
  font-size: .88rem;
}

.account-help-note p {
  margin: 3px 0 0;
  color: #52657e;
  font-size: .70rem;
  line-height: 1.45;
}

.profile-form-group label small {
  color: #64748b;
  font-weight: 500;
}

.account-content > .profile-section:nth-of-type(2) .profile-tab-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.account-content > .profile-section:nth-of-type(2) .profile-tab-content > input[type="hidden"] {
  display: none;
}

.account-content > .profile-section:nth-of-type(2) .account-help-note {
  grid-column: 1 / -1;
}

.account-content > .profile-section:nth-of-type(2) .profile-tab-content > .profile-form-group {
  max-width: none;
  margin-bottom: 0;
  padding: 16px;
  border: 1px solid #dfe8f4;
  border-radius: 6px;
  background: #fff;
}

.account-content > .profile-section:nth-of-type(2) .account-help-note {
  order: 1;
  max-width: none;
}

.account-email-card,
.account-password-card {
  order: 2;
}

.account-current-password-card {
  grid-column: 1 / 2;
  order: 4;
  position: relative;
  z-index: 1;
  padding: 20px 0 20px 16px !important;
  border: 0 !important;
  background: transparent !important;
}

.account-current-password-card .input-icon input {
  min-height: 46px;
}

.account-save-separator {
  grid-column: 1 / -1;
  order: 3;
  position: relative;
  height: 0;
  margin: 0;
}

.account-save-separator::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 116px;
  border: 1px solid #d7e7ff;
  border-radius: 6px;
  background: #f3f8ff;
}

.account-save-btn {
  order: 4;
  grid-column: 2 / 3;
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  min-width: 250px;
  max-width: none;
  margin: 20px 16px 0 0;
  height: 46px;
}

.account-save-panel {
  grid-column: 1 / -1;
  order: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  column-gap: 28px;
  row-gap: 7px;
  align-items: center;
  padding: 18px 16px;
  border: 1px solid #d7e7ff;
  border-radius: 6px;
  background: #f3f8ff;
}

.account-save-panel .account-current-password-card {
  display: contents;
  order: initial;
  padding: 0 !important;
}

.account-save-panel .account-current-password-card label {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.account-save-panel .account-current-password-card .input-icon {
  grid-column: 1;
  grid-row: 2;
}

.account-save-panel .account-save-btn {
  grid-column: 2;
  grid-row: 2;
  order: initial;
  align-self: center;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  margin: 0;
  height: 46px;
}

.account-save-panel .input-icon {
  margin-bottom: 0;
}

.account-save-separator::after {
  display: none;
}

.account-email-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.account-email-card-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 750;
}

.account-email-card-footer span.is-valid {
  color: #16803d;
}

.account-email-card-footer span.is-pending {
  color: #b45309;
}

.account-resend-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d7e4f5;
  border-radius: 6px;
  background: #fff;
  color: #176df2;
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}

.account-resend-btn:hover:not(:disabled) {
  background: #f0f6ff;
}

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

.account-password-card .profile-form-group-pass {
  flex-direction: column;
  gap: 10px;
  max-width: none;
  margin-bottom: 6px;
}

.account-password-card .input-icon-pass input {
  padding-right: 98px;
}

.account-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #d7e4f5;
  border-radius: 6px;
  background: #fff;
  color: #36506d;
  font-size: .72rem;
  font-weight: 750;
  cursor: pointer;
}

.account-password-toggle i {
  position: static;
  transform: none;
  color: inherit;
  font-size: .72rem;
}

.account-password-toggle:hover {
  background: #f7faff;
  color: #176df2;
}

.account-password-hint {
  display: block;
  color: #64748b;
  font-size: .74rem;
  line-height: 1.35;
}

.account-security-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 0 18px;
}

.account-session-note {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid #edf2f8;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.4;
}

.account-sessions-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.account-twofa-card {
  display: flex;
  flex-direction: column;
}

.account-twofa-body {
  padding: 16px;
  color: #52657e;
  font-size: .84rem;
  line-height: 1.45;
}

.account-twofa-body p,
.account-twofa-actions p {
  margin: 0;
}

.account-twofa-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid #edf2f8;
  background: #fbfdff;
}

.account-twofa-actions p {
  color: #52657e;
  font-size: .8rem;
  line-height: 1.4;
}

.account-twofa-actions .profile-submit-btn {
  width: 100%;
  max-width: none;
}

.account-danger-btn {
  background: #fff1f2 !important;
  color: #be123c !important;
  border: 1px solid #fecdd3 !important;
}

.account-danger-btn:hover {
  background: #ffe4e6 !important;
}

.account-link-button {
  margin-left: auto;
  border: 1px solid #d7e4f5;
  border-radius: 6px;
  background: #fff;
  color: #176df2;
  padding: 7px 10px;
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}

.account-link-button:hover {
  background: #f0f6ff;
}

.account-setting-row.is-session-extra {
  display: none;
}

.account-mini-card.is-expanded .account-setting-row.is-session-extra {
  display: grid;
}

.account-session-revoke-form {
  margin: 0;
}

.account-session-revoke-form button {
  border: 1px solid #fecdd3;
  border-radius: 6px;
  background: #fff1f2;
  color: #be123c;
  min-height: 30px;
  padding: 0 10px;
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}

.account-current-pill {
  min-width: 68px;
  min-height: 30px;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 0 10px;
  font-size: .75rem;
}

.account-session-revoke-form button:hover {
  background: #ffe4e6;
}

.account-warning-banner {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-width: 900px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #fde3ad;
  border-radius: 6px;
  background: #fff8ed;
}

.account-warning-banner > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #fff1d6;
  color: #c06b00;
}

.account-warning-banner strong {
  display: block;
  color: #3b2f18;
  font-size: .9rem;
}

.account-warning-banner p {
  margin: 3px 0 0;
  color: #725b32;
  font-size: .78rem;
  line-height: 1.4;
}

.account-warning-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #f2d193;
  border-radius: 6px;
  background: #fff;
  color: #176df2;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.account-warning-banner a:hover {
  background: #fffdf8;
}

.account-preferences-content {
  gap: 14px;
}

.account-preferences-card {
  overflow: hidden;
  border: 1px solid #dfe8f4;
  border-radius: 6px;
  background: #fff;
}

.account-preference-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 32%);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid #edf2f8;
}

.account-preference-info {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.account-preference-info > i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: #edf5ff;
  color: #176df2;
}

.account-preference-info strong {
  display: block;
  color: #12213a;
  font-size: .9rem;
}

.account-preference-info small,
.account-preference-control small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: .74rem;
  line-height: 1.35;
}

.account-preference-control {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.account-preference-control select {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d7e4f5;
  border-radius: 6px;
  background: #fff;
  color: #263449;
  font-size: .8rem;
}

.account-preference-control select:disabled,
.account-theme-options button:disabled,
.account-preferences-footer button:disabled {
  cursor: not-allowed;
  opacity: .82;
}

.account-theme-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-theme-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #d7e4f5;
  border-radius: 6px;
  background: #fff;
  color: #36506d;
  font-size: .8rem;
  font-weight: 750;
}

.account-theme-options button.is-selected {
  border-color: #176df2;
  background: #f0f6ff;
  color: #176df2;
}

.account-toggle-preview {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  flex: 0 0 auto;
}

.account-toggle-preview span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 31, 56, .18);
}

.account-toggle-preview.is-on {
  background: #176df2;
}

.account-toggle-preview.is-on span {
  left: 21px;
}

.account-preferences-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: #f0f6ff;
}

.account-preferences-footer > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.account-preferences-footer i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #e3efff;
  color: #176df2;
}

.account-preferences-footer strong {
  display: block;
  color: #173052;
  font-size: .84rem;
}

.account-preferences-footer small {
  display: block;
  margin-top: 3px;
  color: #52657e;
  font-size: .74rem;
  line-height: 1.35;
}

.account-preferences-footer button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #176df2;
  border-radius: 6px;
  background: #176df2;
  color: #fff;
  font-size: .78rem;
  font-weight: 750;
  white-space: nowrap;
}

.account-history-stat small {
  display: block;
  color: #64748b;
  font-size: .73rem;
  font-weight: 750;
}

.account-history-content {
  gap: 14px;
}

.account-history-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.account-history-stat {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 102px;
  padding: 16px 14px;
  border: 1px solid #dfe8f4;
  border-radius: 6px;
  background: #fff;
}

.account-history-stat > i {
  display: grid;
  width: 40px;
  height: 40px;
  margin-top: 1px;
  place-items: center;
  border-radius: 10px;
  background: #edf5ff;
  color: #176df2;
}

.account-history-stat > div {
  min-width: 0;
}

.account-history-stat strong {
  display: block;
  margin-top: 3px;
  color: #0f1f38;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.account-history-stat span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: .73rem;
  line-height: 1.25;
}

.account-history-panel {
  border: 1px solid #dfe8f4;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.account-history-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .8fr) minmax(150px, .8fr) auto;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #edf2f8;
}

.account-history-filters label {
  position: relative;
  margin: 0;
}

.account-history-filters i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #64748b;
  font-size: .82rem;
}

.account-history-filters input,
.account-history-filters select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid #d7e4f5;
  border-radius: 6px;
  background: #fff;
  color: #36506d;
  font-size: .8rem;
}

.account-history-filters input:disabled,
.account-history-filters select:disabled {
  opacity: .92;
  cursor: not-allowed;
}

.account-history-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d7e4f5;
  border-radius: 6px;
  background: #fff;
  color: #176df2;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.account-history-export i {
  position: static;
  transform: none;
  color: inherit;
}

.account-history-export:hover {
  background: #f0f6ff;
}

.account-history-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 8px;
}

.account-history-table-head h3 {
  margin: 0;
  color: #12213a;
  font-size: .98rem;
}

.account-history-table-head p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: .76rem;
}

.account-history-table-wrap {
  overflow-x: auto;
  padding: 0 16px 16px;
}

.account-history-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  color: #263449;
  font-size: .78rem;
}

.account-history-table th {
  padding: 12px;
  background: #f5f8fc;
  color: #52657e;
  font-size: .72rem;
  font-weight: 800;
  text-align: left;
}

.account-history-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf2f8;
  vertical-align: middle;
}

.account-history-table tr:last-child td {
  border-bottom: 0;
}

.account-history-table td strong {
  display: block;
  color: #12213a;
  font-size: .8rem;
}

.account-history-table td small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: .72rem;
  line-height: 1.35;
}

.account-history-badge,
.account-history-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.account-history-badge.is-success,
.account-history-status.is-success {
  background: #dcfce7;
  color: #15803d;
}

.account-history-badge.is-warning,
.account-history-status.is-warning {
  background: #fff3d7;
  color: #b45309;
}

.account-history-badge.is-danger,
.account-history-status.is-danger {
  background: #ffe4e6;
  color: #be123c;
}

.account-history-badge.is-info,
.account-history-status.is-info {
  background: #e8f1ff;
  color: #176df2;
}

.account-history-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 90px;
  color: #64748b;
  font-weight: 650;
}

.account-history-more {
  display: flex;
  justify-content: center;
  padding: 0 16px 16px;
}

.account-history-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #d7e4f5;
  border-radius: 6px;
  background: #fff;
  color: #176df2;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none;
}

.account-history-more a:hover {
  background: #f0f6ff;
}

@media (max-width: 860px) {
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .account-tabs .profile-tab {
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  .account-tabs .profile-tab.active {
    border-bottom-color: #176df2;
  }

  .account-lower-grid,
  .account-profile-grid,
  .account-history-stats,
  .account-history-filters,
  .account-preference-row,
  .account-security-grid,
  .account-content > .profile-section:nth-of-type(2) .profile-tab-content {
    grid-template-columns: 1fr;
  }

  .account-preferences-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .account-preferences-footer button {
    width: 100%;
  }

  .account-warning-banner {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .account-warning-banner a {
    grid-column: 2;
    justify-self: start;
  }

  .account-current-password-card,
  .account-save-btn {
    grid-column: 1 / -1;
  }

  .account-current-password-card {
    padding: 18px 16px 0 !important;
  }

  .account-save-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .account-save-panel .account-current-password-card {
    padding: 0 !important;
  }

  .account-save-panel .account-current-password-card label,
  .account-save-panel .account-current-password-card .input-icon,
  .account-save-panel .account-save-btn {
    grid-column: 1;
    grid-row: auto;
  }

  .account-save-separator::after {
    display: none;
  }

  .account-save-btn {
    justify-self: stretch;
    width: 100%;
    margin: 0 16px 18px;
  }

  .account-save-panel .account-save-btn {
    margin: 0;
  }
}

@media (max-width: 620px) {
  .account-page {
    padding: 14px 0 30px;
  }

  .account-shell {
    padding: 0 12px;
  }

  .account-tabs {
    grid-template-columns: 1fr;
  }

  .account-tabs .profile-tab {
    border-bottom: 1px solid #edf2f8;
    border-left: 3px solid transparent;
  }

  .account-tabs .profile-tab.active {
    border-left-color: #176df2;
    border-bottom-color: #edf2f8;
  }

  .profile-form-group-pass {
    flex-direction: column;
  }
}
