:root {
  --re-dashboard-brand: #2f39d3;
  --re-dashboard-brand-dark: #222aa4;
  --re-dashboard-brand-soft: #eef0ff;
  --re-dashboard-accent: #ff5b4a;
  --re-dashboard-ink: #172033;
  --re-dashboard-muted: #667085;
  --re-dashboard-line: #e7eaf0;
  --re-dashboard-bg: #f5f7fb;
  --re-dashboard-white: #fff;
  --re-dashboard-success: #0f9f6e;
  --re-dashboard-shadow: 0 18px 50px rgba(17, 24, 39, .08);
}

.re-dashboard-page {
  background: var(--re-dashboard-bg);
  color: var(--re-dashboard-ink);
}

.re-dashboard-page .wrapper {
  overflow: visible;
}

.re-dashboard-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 24px;
  width: min(1600px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 54px;
  position: relative;
}

.re-dashboard-sidebar {
  align-self: start;
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--re-dashboard-line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--re-dashboard-shadow);
  scrollbar-width: thin;
  z-index: 43;
}

.re-dashboard-sidebar__head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 4px 3px 18px;
  border-bottom: 1px solid var(--re-dashboard-line);
}

.re-dashboard-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--re-dashboard-brand), #6973f5);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(47, 57, 211, .22);
}

.re-dashboard-user {
  min-width: 0;
}

.re-dashboard-user strong,
.re-dashboard-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.re-dashboard-user strong {
  color: var(--re-dashboard-ink);
  font-size: 15px;
  line-height: 1.35;
}

.re-dashboard-user span {
  color: var(--re-dashboard-muted);
  font-size: 12px;
  margin-top: 3px;
}

.re-dashboard-sidebar__close {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #f2f4f7;
  color: var(--re-dashboard-ink);
}

.re-dashboard-nav {
  padding: 18px 0 8px;
}

.re-dashboard-nav__eyebrow,
.re-dashboard-kicker {
  margin: 0;
  color: #8a94a6;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
}

.re-dashboard-nav__eyebrow {
  padding: 0 12px 9px;
}

.re-dashboard-nav__item {
  margin-bottom: 5px;
}

.re-dashboard-nav__link,
.re-dashboard-nav__label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-radius: 14px;
  padding: 9px 11px;
  color: #39435a;
  font-size: 14px;
  font-weight: 800;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.re-dashboard-nav__link:hover,
.re-dashboard-nav__item.is-active > .re-dashboard-nav__link,
.re-dashboard-nav__sub-link.is-active,
.re-dashboard-nav__sub-link:hover {
  background: var(--re-dashboard-brand-soft);
  color: var(--re-dashboard-brand);
}

.re-dashboard-nav__link:hover {
  transform: translateX(2px);
}

[dir="rtl"] .re-dashboard-nav__link:hover {
  transform: translateX(-2px);
}

.re-dashboard-nav__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f4f6f9;
  color: #566178;
  font-size: 14px;
}

.re-dashboard-nav__item.is-active .re-dashboard-nav__icon,
.re-dashboard-nav__link:hover .re-dashboard-nav__icon {
  background: #fff;
  color: var(--re-dashboard-brand);
  box-shadow: 0 5px 14px rgba(47, 57, 211, .12);
}

.re-dashboard-nav__arrow,
.re-dashboard-nav__chevron {
  margin-inline-start: auto;
  color: #a6adbb;
  font-size: 11px;
}

[dir="rtl"] .re-dashboard-nav__arrow {
  transform: scaleX(-1);
}

.re-dashboard-nav__sub {
  padding: 4px 0 3px 46px;
}

[dir="rtl"] .re-dashboard-nav__sub {
  padding: 4px 46px 3px 0;
}

.re-dashboard-nav__sub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #596579;
  font-size: 13px;
  font-weight: 700;
}

.re-dashboard-help {
  margin-top: 12px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, .24), transparent 34%),
    linear-gradient(145deg, #313bd5, #222aa4);
  color: #fff;
}

.re-dashboard-help__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  margin-bottom: 12px;
}

.re-dashboard-help strong,
.re-dashboard-help p {
  display: block;
  color: #fff;
}

.re-dashboard-help strong {
  font-size: 14px;
  line-height: 1.45;
}

.re-dashboard-help p {
  font-size: 12px;
  line-height: 1.6;
  opacity: .82;
  margin: 7px 0 13px;
}

.re-dashboard-help button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--re-dashboard-brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.re-dashboard-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  margin-top: 12px;
  border-radius: 13px;
  background: #fff4f2;
  color: #c53c2f;
  font-size: 13px;
  font-weight: 900;
}

.re-dashboard-main {
  min-width: 0;
}

.re-dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 164px;
  border: 1px solid #dfe3ff;
  border-radius: 25px;
  padding: 30px 34px;
  background:
    radial-gradient(circle at 90% 0, rgba(255, 91, 74, .12), transparent 31%),
    radial-gradient(circle at 0 100%, rgba(47, 57, 211, .10), transparent 35%),
    #fff;
  box-shadow: var(--re-dashboard-shadow);
}

.re-dashboard-topbar h1 {
  margin: 7px 0 8px;
  color: var(--re-dashboard-ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.re-dashboard-topbar p {
  max-width: 660px;
  margin: 0;
  color: var(--re-dashboard-muted);
  line-height: 1.65;
}

.re-dashboard-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.re-dashboard-action {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 13px;
  padding: 0 17px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.re-dashboard-action--light {
  border: 1px solid var(--re-dashboard-line);
  background: #fff;
  color: var(--re-dashboard-ink);
}

.re-dashboard-action--primary {
  border: 1px solid var(--re-dashboard-brand);
  background: var(--re-dashboard-brand);
  color: #fff !important;
  box-shadow: 0 9px 24px rgba(47, 57, 211, .18);
}

.re-dashboard-breadcrumbs {
  min-height: 28px;
  margin: 19px 4px 8px;
}

.re-dashboard-breadcrumbs .breadcrumbs {
  margin: 0;
}

.re-dashboard-breadcrumbs .breadcrumbs .breadcrumb-item {
  color: var(--re-dashboard-brand);
}

.re-dashboard-content {
  min-height: 380px;
  border: 1px solid var(--re-dashboard-line);
  border-radius: 24px;
  background: #fff;
  padding: 30px;
  box-shadow: 0 14px 42px rgba(17, 24, 39, .06);
  overflow: hidden;
}

.re-dashboard-content > .container,
.re-dashboard-content > .col-md-12,
.re-dashboard-content > .row {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.re-dashboard-content .padding-50 {
  padding: 0 !important;
}

.re-dashboard-content h1,
.re-dashboard-content h2,
.re-dashboard-content h3,
.re-account-page h1,
.re-account-page h2,
.re-account-page h3 {
  color: var(--re-dashboard-ink);
}

.re-dashboard-mobile-toggle {
  display: none;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--re-dashboard-line);
  border-radius: 14px;
  background: #fff;
  color: var(--re-dashboard-ink);
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .07);
}

.re-dashboard-overlay {
  display: none;
}

/* Dashboard landing page */
.re-dashboard-overview {
  display: grid;
  gap: 24px;
}

.re-dashboard-overview__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.re-dashboard-overview__intro h2 {
  margin: 0 0 7px;
  font-size: 25px;
}

.re-dashboard-overview__intro p {
  margin: 0;
  color: var(--re-dashboard-muted);
}

.re-dashboard-overview__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #087a55;
  font-size: 12px;
  font-weight: 900;
}

.re-dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.re-dashboard-quick-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--re-dashboard-line);
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  color: var(--re-dashboard-ink);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.re-dashboard-quick-card:hover {
  transform: translateY(-3px);
  border-color: #cdd2ff;
  box-shadow: 0 15px 32px rgba(47, 57, 211, .09);
}

.re-dashboard-quick-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--re-dashboard-brand-soft);
  color: var(--re-dashboard-brand);
  margin-bottom: 17px;
}

.re-dashboard-quick-card strong {
  font-size: 15px;
  margin-bottom: 6px;
}

.re-dashboard-quick-card span {
  color: var(--re-dashboard-muted);
  font-size: 12px;
  line-height: 1.55;
}

.re-dashboard-quick-card__arrow {
  margin-top: auto;
  padding-top: 14px;
  color: var(--re-dashboard-brand) !important;
  font-weight: 900;
}

.re-dashboard-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 18px;
}

.re-dashboard-guide__panel {
  border: 1px solid var(--re-dashboard-line);
  border-radius: 19px;
  padding: 22px;
  background: #fafbfc;
}

.re-dashboard-guide__panel h3 {
  margin: 0 0 15px;
  font-size: 18px;
}

.re-dashboard-checklist {
  display: grid;
  gap: 12px;
}

.re-dashboard-checklist__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #edf0f4;
}

.re-dashboard-checklist__item > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #ecfdf3;
  color: var(--re-dashboard-success);
}

.re-dashboard-checklist__item strong,
.re-dashboard-checklist__item span {
  display: block;
}

.re-dashboard-checklist__item strong {
  font-size: 13px;
}

.re-dashboard-checklist__item span {
  color: var(--re-dashboard-muted);
  font-size: 11px;
  margin-top: 3px;
}

.re-dashboard-checklist__item a {
  color: var(--re-dashboard-brand);
  font-size: 12px;
  font-weight: 900;
}

.re-dashboard-advisor {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 19px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, .16), transparent 30%),
    #172033;
  color: #fff;
}

.re-dashboard-advisor i {
  font-size: 26px;
  margin-bottom: 25px;
  color: #cfd4ff;
}

.re-dashboard-advisor strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.45;
}

.re-dashboard-advisor p {
  color: #cbd2df;
  font-size: 13px;
  line-height: 1.65;
  margin: 10px 0 19px;
}

.re-dashboard-advisor button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  font-weight: 900;
  margin-top: auto;
}

/* Account forms */
.re-account-page {
  display: grid;
  gap: 22px;
}

.re-account-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.re-account-heading h2 {
  margin: 0 0 7px;
  font-size: 25px;
}

.re-account-heading p {
  margin: 0;
  color: var(--re-dashboard-muted);
  line-height: 1.65;
}

.re-account-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: #ecfdf3;
  color: #087a55;
  font-size: 12px;
  font-weight: 900;
}

.re-account-card {
  border: 1px solid var(--re-dashboard-line);
  border-radius: 19px;
  padding: 23px;
  background: #fff;
}

.re-account-card--soft {
  background: #fafbfc;
}

.re-account-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.re-account-card__head h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.re-account-card__head p {
  margin: 0;
  color: var(--re-dashboard-muted);
  font-size: 12px;
}

.re-account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

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

.re-account-field label {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 900;
}

.re-account-field .form-control,
.re-account-field input,
.re-account-field select,
.re-account-field textarea {
  min-height: 49px;
  width: 100%;
  border: 1px solid #d7dce5;
  border-radius: 13px;
  background: #fff;
  color: var(--re-dashboard-ink);
  padding: 10px 13px;
  box-shadow: none;
}

.re-account-field .form-control:focus,
.re-account-field input:focus,
.re-account-field select:focus,
.re-account-field textarea:focus {
  border-color: #8f97ed;
  box-shadow: 0 0 0 4px rgba(47, 57, 211, .08);
}

.re-account-field input[type="tel"] {
  direction: ltr;
  text-align: left;
}

.re-account-field .iti {
  width: 100%;
}

.re-account-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
}

.re-account-submit {
  min-height: 47px;
  border: 0;
  border-radius: 13px;
  background: var(--re-dashboard-brand);
  color: #fff;
  padding: 0 22px;
  font-weight: 900;
  box-shadow: 0 9px 24px rgba(47, 57, 211, .18);
}

.re-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.re-social-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--re-dashboard-line);
  border-radius: 12px;
  background: #fff;
  color: var(--re-dashboard-ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
}

.re-social-link--unlink {
  background: #fff4f2;
  color: #b9382c;
  border-color: #ffd9d4;
}

.re-password-hint {
  display: flex;
  gap: 11px;
  padding: 15px;
  border-radius: 14px;
  background: var(--re-dashboard-brand-soft);
  color: #3a438f;
  font-size: 12px;
  line-height: 1.6;
}

.re-password-hint i {
  margin-top: 2px;
  color: var(--re-dashboard-brand);
}

.re-session-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--re-dashboard-line);
  border-radius: 16px;
}

.re-session-table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border-collapse: collapse;
}

.re-session-table th,
.re-session-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--re-dashboard-line);
  vertical-align: middle;
}

.re-session-table th {
  background: #f8f9fc;
  color: #596579;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.re-session-table td {
  color: #344054;
  font-size: 13px;
}

.re-session-table tr:last-child td {
  border-bottom: 0;
}

.re-session-current {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: 6px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #ecfdf3;
  color: #087a55;
  font-size: 10px;
  font-weight: 900;
}

.re-session-logout {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  padding: 0 11px;
  background: #fff4f2;
  color: #b9382c;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 1199.98px) {
  .re-dashboard-shell {
    width: min(100% - 28px, 1400px);
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
  }

  .re-dashboard-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .re-dashboard-topbar__actions {
    justify-content: flex-start;
  }

  .re-dashboard-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .re-dashboard-shell {
    display: block;
    width: min(100% - 24px, 900px);
    padding-top: 18px;
  }

  .re-dashboard-mobile-toggle {
    display: flex;
    width: 100%;
    margin-bottom: 14px;
  }

  .re-dashboard-sidebar {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    width: min(88vw, 320px);
    height: 100vh;
    max-height: none;
    border-radius: 0 24px 24px 0;
    transform: translateX(-105%);
    transition: transform .25s ease;
    z-index: 1005;
  }

  [dir="rtl"] .re-dashboard-sidebar {
    border-radius: 24px 0 0 24px;
    transform: translateX(105%);
  }

  .re-dashboard-page.re-dashboard-menu-open .re-dashboard-sidebar {
    transform: translateX(0);
  }

  .re-dashboard-sidebar__close {
    display: grid;
    place-items: center;
  }

  .re-dashboard-overlay {
    position: fixed;
    inset: 0;
    display: block;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 1004;
  }

  .re-dashboard-page.re-dashboard-menu-open .re-dashboard-overlay {
    opacity: 1;
    visibility: visible;
  }

  .re-dashboard-page.re-dashboard-menu-open {
    overflow: hidden;
  }

  .re-dashboard-content {
    padding: 22px;
  }

  .re-dashboard-guide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .re-dashboard-topbar {
    min-height: 0;
    border-radius: 20px;
    padding: 24px 21px;
  }

  .re-dashboard-topbar__actions,
  .re-dashboard-action {
    width: 100%;
  }

  .re-dashboard-content {
    border-radius: 19px;
    padding: 18px;
  }

  .re-dashboard-overview__intro,
  .re-account-heading,
  .re-account-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .re-dashboard-quick-grid,
  .re-account-form-grid {
    grid-template-columns: 1fr;
  }

  .re-account-field--full {
    grid-column: auto;
  }

  .re-dashboard-checklist__item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .re-dashboard-checklist__item a {
    grid-column: 2;
  }

  .re-account-actions,
  .re-account-submit {
    width: 100%;
  }
}
