html {
  font-size: 14px;
}
body {
  font-size: 0.92rem;
}
.page-heading h1 {
  font-size: 1.45rem;
}
.metric h3 {
  font-size: 1.25rem;
}
.panel-title {
  font-size: 0.94rem;
}
.side-link {
  font-size: 0.82rem;
}
.table td {
  font-size: 0.8rem;
}
.form-label {
  font-size: 0.78rem;
}
.login-form h2 {
  font-size: 1.55rem;
}
.login-copy h1 {
  font-size: 1.9rem;
}
.calc-number {
  font-size: 1.65rem;
}
.content {
  max-width: 1420px;
}
.security-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f7faf9;
  border-radius: 10px;
}
.mfa-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 28px;
}
.mfa-progress i {
  width: 44px;
  height: 2px;
  background: #dfe6ea;
}
.mfa-dot {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e6ebef;
  color: #71808d;
  font-size: 0.72rem;
  font-weight: 700;
}
.mfa-dot.active,
.mfa-dot.done {
  background: var(--green);
  color: white;
}
.mfa-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e4f6ed;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.qr-panel {
  width: 180px;
  height: 180px;
  margin: 18px auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.qr-panel i {
  font-size: 8rem;
  line-height: 1;
  color: #102131;
}
.setup-key {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f7f9;
  padding: 10px 12px;
  border-radius: 9px;
  text-align: left;
}
.setup-key small {
  color: var(--muted);
}
.setup-key strong {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  flex: 1;
}
.verification-code {
  font-size: 1.4rem;
  letter-spacing: 0.55rem;
  font-weight: 700;
  max-width: 250px;
  margin: auto;
  padding-left: 1.1rem;
}
.recovery-note {
  font-size: 0.74rem;
  color: #6f7e89;
  background: #f7f9fa;
  padding: 10px;
  margin-top: 14px;
  border-radius: 8px;
}
.topbar-spacer {
  flex: 1;
}
.notification-btn,
.user-menu-btn {
  border: 0;
  background: transparent;
}
.notification-btn {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  position: relative;
  color: var(--ink);
}
.notification-btn:hover,
.user-menu-btn:hover {
  background: #f1f5f7;
}
.notification-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--gold);
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.user-menu-btn {
  padding: 5px 8px;
  border-radius: 12px;
  text-align: left;
}
.user-dropdown {
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(8, 43, 66, 0.14);
  border-radius: 12px;
}
.user-dropdown .dropdown-item {
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 0.88rem;
}
.notification-menu {
  width: 390px;
  padding: 0;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(8, 43, 66, 0.18);
  border-radius: 14px;
  overflow: hidden;
}
.notification-head {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.notification-head small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}
.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #edf1f4;
  position: relative;
}
.notification-item:hover {
  background: #f7faf9;
}
.notification-item.unread:after {
  content: "";
  position: absolute;
  right: 12px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.notification-icon {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.notification-icon.success {
  background: #e3f7ee;
  color: var(--green);
}
.notification-icon.warning {
  background: #fff1ce;
  color: #a46c00;
}
.notification-icon.info {
  background: #e5effa;
  color: #366a9d;
}
.notification-item strong,
.notification-item small,
.notification-item time {
  display: block;
}
.notification-item strong {
  font-size: 0.83rem;
}
.notification-item small {
  color: #526372;
  font-size: 0.76rem;
  line-height: 1.4;
  padding-right: 12px;
}
.notification-item time {
  color: #94a0aa;
  font-size: 0.67rem;
  margin-top: 3px;
}
.notification-footer {
  text-align: center;
  padding: 11px;
}
.notification-footer a {
  font-size: 0.78rem;
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(6, 30, 49, 0.97);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transition: 0.18s;
}
.page-loader.show {
  opacity: 1;
  visibility: visible;
}
.page-loader img {
  width: 210px;
  height: auto;
  animation: loaderPulse 1.1s ease-in-out infinite;
}
.page-loader span {
  color: #b7cad5;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
@keyframes loaderPulse {
  50% {
    opacity: 0.55;
    transform: scale(0.97);
  }
}
.payment-summary {
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  color: white;
  border-radius: 15px;
  padding: 24px;
}
.payment-summary small {
  color: #b8cad4;
}
.login-page {
  min-height: 100vh;
  background: #eef3f6;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-shell {
  width: min(1120px, 100%);
  min-height: 650px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 65px rgba(5, 32, 50, 0.18);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.login-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: white;
    padding: 48px;
    display: flex;
    flex-direction: column;
}

.login-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 38, 59, 0.72);
    z-index: -1;
    pointer-events: none;
}

.login-logo,
.login-copy,
.login-tag {
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 190px;
    height: auto;
}

.login-copy {
    margin: auto 0;
}

.login-copy h1 {
    max-width: 440px;
    color: white;
    font-weight: 800;
    line-height: 1.15;
}

.login-copy h1 span {
    color: #e8b13e;
}

.login-copy p,
.login-tag {
    color: #d6e2e8;
}
.login-logo {
  width: 190px;
  height: auto;
}
.login-copy {
  margin: auto 0;
}
.login-copy h1 {
  font-size: 2.35rem;
  line-height: 1.12;
  max-width: 440px;
  font-weight: 800;
}
.login-copy h1 span {
  color: var(--gold);
}
.login-copy p {
  color: #c2d2dc;
  max-width: 390px;
}
.login-tag {
  color: #b2c6d1;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 48px;
}
.login-form {
  width: min(410px, 100%);
}
.login-form h2 {
  font-weight: 800;
}
.login-security {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  padding: 15px;
  background: #f4faf7;
  border-radius: 12px;
  color: #4f625b;
  font-size: 0.78rem;
}
.login-security i {
  font-size: 1.45rem;
  color: var(--green);
}
.login-loader {
  position: fixed;
  inset: 0;
  background: #06243a;
  z-index: 20;
  display: none;
  place-items: center;
  color: white;
  text-align: center;
}
.login-loader.show {
  display: grid;
}
.login-loader img {
  width: 230px;
  animation: loaderPulse 1s infinite;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 767.98px) {
  .notification-menu {
    width: min(92vw, 390px);
  }
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-visual {
    min-height: 310px;
    padding: 32px;
  }
  .login-copy h1 {
    font-size: 1.8rem;
  }
  .login-form-wrap {
    padding: 32px 24px;
  }
  .login-tag {
    display: none;
  }
}
@media (max-width: 575.98px) {
  .notification-menu {
    position: fixed !important;
    top: 68px !important;
    left: 4vw !important;
    right: 4vw !important;
    transform: none !important;
    width: 92vw;
  }
  .notification-item small {
    font-size: 0.72rem;
  }
}
