:root {
  --app-navy: #06162f;
  --app-navy-2: #0a2348;
  --app-blue: #2f6bff;
  --app-blue-2: #6a5cff;
  --app-cyan: #2dc8e8;
  --app-gold: #e4b94b;
  --app-bg: #f3f6fb;
  --app-card: #ffffff;
  --app-text: #162033;
  --app-muted: #6f7c91;
  --app-border: #e8edf5;
  --app-success: #24a56a;
  --app-danger: #e25562;
  --app-warning: #e3a72f;
  --app-radius: 20px;
  --app-shadow: 0 14px 38px rgba(26, 44, 77, .08);
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--app-bg);
  color: var(--app-text);
  -webkit-font-smoothing: antialiased
}

a {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease
}

.page {
  min-height: 100vh;
  background: var(--app-bg)
}

/* Desktop premium sidebar */
.navbar-vertical {
  background: linear-gradient(180deg, #071a39 0%, #0a244a 56%, #081a34 100%) !important;
  border: 0 !important;
  box-shadow: 10px 0 35px rgba(7, 25, 55, .10)
}

.navbar-vertical .navbar-brand {
  padding-top: 22px;
  padding-bottom: 18px
}

.member-sidebar-brand {
  display: flex !important;
  align-items: center;
  gap: 12px;
  color: #fff !important
}

.member-sidebar-logo {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18)
}

.member-sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.member-sidebar-brandcopy {
  line-height: 1.05
}

.member-sidebar-brandname {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .15px
}

.member-sidebar-code {
  font-size: 10px !important;
  letter-spacing: 1.5px;
  margin-top: 5px;
  color: rgba(255, 255, 255, .55);
  font-weight: 700
}

.navbar-vertical .navbar-nav {
  padding: 10px 12px 28px !important;
  gap: 4px
}

.navbar-vertical .nav-link {
  border-radius: 13px;
  color: rgba(255, 255, 255, .72) !important;
  padding: 10px 12px !important;
  font-weight: 600;
  min-height: 44px
}

.navbar-vertical .nav-link:hover {
  background: rgba(255, 255, 255, .08) !important;
  color: #fff !important;
  transform: translateX(2px)
}

.navbar-vertical .nav-link.active {
  background: linear-gradient(135deg, rgba(47, 107, 255, .96), rgba(106, 92, 255, .92)) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(47, 107, 255, .28)
}

.navbar-vertical .nav-link-icon {
  opacity: .92;
  margin-right: 10px
}

/* Top app bar */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgb(9 36 75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0 !important;
  border-bottom: 1px solid rgba(225, 232, 242, .78) !important;
  box-shadow: 0 5px 22px rgba(32, 49, 78, .05)
}

.app-topbar .container-xl {
  min-height: 64px
}

.app-mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--app-text)
}

.app-mobile-logo {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 7px 18px rgba(23, 47, 87, .13)
}

.app-mobile-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.app-mobile-title {
  min-width: 0
}

.app-mobile-title strong {
  display: block;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #12213a;
  line-height: 1.1
}

.app-mobile-title span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .9px;
  color: #8290a5;
  margin-top: 3px
}

.app-topbar .nav-link {
  border-radius: 12px;
  color: #263750
}

.app-topbar #userNotificationBellToggle {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f7fc;
  border: 1px solid #e9eef6;
  padding: 0 !important
}

.app-topbar .avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background-color: #eef3fb;
  color: #2458d8;
  font-weight: 800;
  box-shadow: 0 5px 14px rgba(33, 56, 91, .08)
}

.app-topbar .dropdown-menu {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(27, 43, 68, .16);
  overflow: hidden
}

/* Page shell */
.page-header {
  padding-top: 22px;
  padding-bottom: 10px
}

.page-pretitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  font-weight: 800;
  color: #8190a8
}

.page-title {
  font-weight: 800;
  letter-spacing: -.35px;
  color: #13213a
}

.page-body {
  padding-top: 12px;
  padding-bottom: 34px
}

.container-xl {
  max-width: 1380px
}

/* Cards / forms / tables */
.card {
  border: 1px solid rgba(228, 234, 243, .75) !important;
  border-radius: var(--app-radius) !important;
  box-shadow: var(--app-shadow);
  overflow: hidden;
  background: var(--app-card)
}

.card-header {
  background: #fff;
  border-bottom: 1px solid #edf1f6;
  padding: 17px 20px
}

.card-title {
  font-weight: 800;
  color: #17243a
}

.card-body {
  padding: 20px
}

.card-footer {
  background: #fbfcfe;
  border-top: 1px solid #edf1f6
}

.card .card {
  box-shadow: none;
  border-color: #edf1f6 !important
}

.row-cards>.col>.card,
.row-cards>[class*=col-]>.card {
  height: 100%
}

.btn {
  border-radius: 13px;
  font-weight: 700;
  min-height: 40px;
  padding-left: 16px;
  padding-right: 16px
}

.btn-primary {
  background: linear-gradient(135deg, var(--app-blue), var(--app-blue-2));
  border-color: transparent;
  box-shadow: 0 7px 18px rgba(47, 107, 255, .20)
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #245de5, #5a4ee9);
  border-color: transparent;
  transform: translateY(-1px)
}

.btn-outline-primary {
  border-color: #cddafd;
  color: #2e63dd;
  background: #f9fbff
}

.btn-outline-primary:hover {
  background: #edf3ff;
  color: #1f56d0;
  border-color: #bdd0ff
}

.btn-danger {
  box-shadow: 0 7px 18px rgba(226, 85, 98, .15)
}

.form-label {
  font-weight: 700;
  color: #34425a;
  margin-bottom: 8px
}

.form-control,
.form-select,
.input-group-text {
  border-radius: 13px;
  border-color: #dfe6f0;
  background: #fbfcfe;
  min-height: 44px
}

.form-control:focus,
.form-select:focus {
  background: #fff;
  border-color: #7da2ff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .10)
}

.input-group>.form-control:not(:first-child),
.input-group>.form-select:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0
}

.input-group>.form-control:not(:last-child),
.input-group>.form-select:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0
}

.input-group>.input-group-text:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0
}

.input-group>.input-group-text:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0
}

.form-hint,
.text-secondary {
  color: var(--app-muted) !important
}

.alert {
  border: 0;
  border-radius: 16px;
  padding: 15px 17px
}

.badge {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .15px;
  padding: .42em .68em
}

.table-responsive {
  border-radius: 16px;
  -webkit-overflow-scrolling: touch
}

.table {
  margin-bottom: 0
}

.table thead th {
  background: #f7f9fc;
  color: #6c7a90;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .55px;
  font-weight: 800;
  border-bottom: 1px solid #e8edf5;
  white-space: nowrap
}

.table tbody td {
  vertical-align: middle;
  border-color: #edf1f6;
  padding-top: 13px;
  padding-bottom: 13px
}

.table-hover tbody tr:hover {
  background: #f8faff
}

.pagination .page-link {
  border-radius: 10px !important;
  margin: 0 2px;
  border-color: #e1e7f0;
  color: #40536d
}

.list-group-item {
  border-color: #edf1f6;
  padding: 15px 18px
}

.dropdown-menu {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(24, 40, 66, .15)
}

.modal-content {
  border: 0;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(13, 28, 54, .23)
}

.modal-header,
.modal-footer {
  border-color: #edf1f6
}

/* Stat blocks used throughout the panel */
.member-stat-card {
  min-height: 126px;
  background: linear-gradient(145deg, #fff, #fbfcff)
}

.member-quick-link .card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease
}

.member-quick-link:hover .card {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(31, 50, 83, .11);
  border-color: #d9e4ff !important
}

/* Mobile app navigation */
.app-bottom-nav {
  display: none
}

.app-more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px
}

.app-more-link {
  min-height: 88px;
  border: 1px solid #e7edf6;
  border-radius: 17px;
  background: #f8faff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #2e3d56;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  padding: 9px
}

.app-more-link svg {
  color: #3f6ff1
}

.app-more-link:active {
  transform: scale(.98);
  background: #eef3ff
}

/* Auth screens */
.member-login-shell,
.auth-shell,
.success-shell {
  background: radial-gradient(circle at 15% 0%, rgba(72, 105, 255, .28), transparent 30%), radial-gradient(circle at 100% 20%, rgba(102, 92, 255, .22), transparent 28%), linear-gradient(160deg, #06162f 0%, #0b2850 46%, #eef3fb 46%, #f7f9fd 100%) !important
}

.member-login-card,
.auth-card,
.success-card {
  border-radius: 26px !important;
  box-shadow: 0 28px 80px rgba(7, 25, 54, .22) !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
  overflow: hidden
}

.member-login-card .card-body,
.auth-card .card-body,
.success-card .card-body {
  background: rgba(255, 255, 255, .97)
}

.member-login-card img,
.auth-card img,
.success-card>.card-body>img {
  filter: drop-shadow(0 7px 15px rgba(28, 47, 76, .13))
}

/* Scrollbar polish */
* {
  scrollbar-width: thin;
  scrollbar-color: #b9c5d8 transparent
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px
}

::-webkit-scrollbar-thumb {
  background: #bac6d8;
  border-radius: 999px
}

::-webkit-scrollbar-track {
  background: transparent
}

@media (max-width:991.98px) {
  body {
    padding-bottom: 82px
  }

  .navbar-vertical {
    display: none !important
  }

  .page-wrapper {
    margin-left: 0 !important
  }

  .app-topbar {
    background: linear-gradient(135deg, #071a38 0%, #0a2d5f 100%) !important;
    border-bottom: 0 !important;
    box-shadow: 0 8px 30px rgba(6, 24, 52, .18)
  }

  .app-topbar .container-xl {
    min-height: 62px;
    padding-left: 15px;
    padding-right: 15px
  }

  .app-mobile-brand {
    display: flex
  }

  .app-mobile-title strong {
    color: #fff
  }

  .app-mobile-title span {
    color: rgba(255, 255, 255, .56)
  }

  .app-topbar #userNotificationBellToggle {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .10);
    color: #fff
  }

  .app-topbar .avatar {
    background-color: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .10)
  }

  .app-topbar .navbar-nav .d-xl-block {
    display: none !important
  }

  .page-header {
    margin: 0;
    padding: 20px 0 35px;
    background: linear-gradient(145deg, #071a38 0%, #0b315f 60%, #173e75 100%);
    border-radius: 0 0 26px 26px;
    box-shadow: 0 12px 30px rgba(12, 42, 82, .12)
  }

  .page-header .container-xl {
    padding-left: 18px;
    padding-right: 18px
  }

  .page-header .page-pretitle,
  .page-header .text-secondary {
    color: rgba(255, 255, 255, .62) !important
  }

  .page-header .page-title {
    color: #fff;
    font-size: 1.42rem
  }

  .page-header .btn:not(.btn-primary):not(.btn-danger):not(.btn-warning) {
    background: rgba(255, 255, 255, .11);
    border-color: rgba(255, 255, 255, .14);
    color: #fff
  }

  .page-body {
    margin-top: -19px;
    padding-top: 0;
    padding-bottom: 20px;
    position: relative;
    z-index: 3
  }

  .page-body>.container-xl {
    padding-left: 12px;
    padding-right: 12px
  }

  .page-body .card {
    border-radius: 19px !important;
    box-shadow: 0 12px 30px rgba(35, 50, 76, .09)
  }

  .card-header {
    padding: 15px 16px
  }

  .card-body {
    padding: 16px
  }

  .card-footer {
    padding: 13px 16px
  }

  .btn {
    min-height: 42px
  }

  .form-control,
  .form-select,
  .input-group-text {
    min-height: 46px;
    font-size: 16px
  }

  .modal-dialog {
    margin: 14px
  }

  .modal-content {
    border-radius: 24px
  }

  .app-bottom-nav {
    position: fixed;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 66px;
    z-index: 1040;
    background: rgba(7, 25, 54, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    box-shadow: 0 16px 42px rgba(4, 19, 43, .32);
    padding: 5px 7px calc(5px + env(safe-area-inset-bottom))
  }

  .app-bottom-link {
    appearance: none;
    border: 0;
    background: transparent;
    text-decoration: none;
    color: rgba(255, 255, 255, .53);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 16px;
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
    min-width: 0;
    padding: 3px 2px
  }

  .app-bottom-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 2
  }

  .app-bottom-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(47, 107, 255, .78), rgba(106, 92, 255, .68));
    box-shadow: 0 5px 16px rgba(47, 107, 255, .22)
  }

  .app-bottom-link:active {
    transform: scale(.96)
  }

  .footer {
    display: none
  }

  #appMobileMore .modal-dialog {
    align-items: flex-end;
    min-height: calc(100% - 28px);
    margin: 14px
  }

  #appMobileMore .modal-content {
    border-radius: 26px 26px 22px 22px
  }

  #appMobileMore .modal-header {
    padding: 18px 18px 12px
  }

  #appMobileMore .modal-body {
    padding: 8px 15px 18px
  }

  #userNotificationWrapper .dropdown-menu {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 64px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    border-radius: 18px !important;
    max-height: calc(100vh - 150px);
    overflow: hidden
  }

  #userNotificationList {
    max-height: calc(100vh - 260px) !important
  }

  .table-responsive {
    margin-left: -4px;
    margin-right: -4px;
    padding-bottom: 3px
  }

  .table {
    font-size: 12px;
    min-width: 700px
  }

  .table.table-sm {
    min-width: 560px
  }

  .row.g-3,
  .row.g-4 {
    --tblr-gutter-y: .75rem
  }
}

@media (max-width:575.98px) {
  .page-header .col-auto {
    width: 100%;
    margin-top: 10px
  }

  .page-header .col-auto .btn-list,
  .page-header .col-auto .d-flex {
    width: 100%
  }

  .page-header .col-auto .btn {
    flex: 1
  }

  .app-more-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .member-login-shell,
  .auth-shell,
  .success-shell {
    padding: 14px !important;
    align-items: flex-start !important;
    padding-top: 6vh !important
  }

  .member-login-card,
  .auth-card,
  .success-card {
    border-radius: 23px !important
  }
}

@media print {

  .app-bottom-nav,
  .app-topbar,
  .navbar-vertical,
  #appMobileMore {
    display: none !important
  }

  body {
    padding-bottom: 0;
    background: #fff
  }
}



.page-wrapper .page-header {
  margin: 0;
}