/* ANURATI PRO FONT DEFINITION */
@font-face {
  font-family: 'Anurati';
  src: url('/assets/fonts/Anurati-Regular.woff2') format('woff2'),
       url('/assets/fonts/Anurati-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* MOTHERBOARD 2.0 — NADRIA ECO FLOATING LIQUID GLASS CREDENTIAL GATE | Updated: 2026-10-14 12:51:00 | Status: Production Active */
.mb-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(ellipse 65% 50% at 50% 48%, rgba(24, 42, 95, 0.36) 0%, rgba(16, 26, 65, 0.26) 35%, rgba(9, 14, 35, 0.18) 58%, rgba(7, 9, 16, 0.94) 80%, #050608 100%);
  backdrop-filter: blur(16px) saturate(175%);
  -webkit-backdrop-filter: blur(16px) saturate(175%);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
  padding: 24px;
  overflow: hidden;
}

.mb-auth-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.mb-auth-card {
  position: relative;
  width: clamp(340px, 36vw + 120px, 750px);
  max-width: 95vw;
  max-height: min(94vh, 920px);
  pointer-events: auto;
  background: radial-gradient(circle at 50% 0%, rgba(30, 60, 130, 0.16) 0%, rgba(7, 11, 24, 0.88) 85%);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 
    0 0 70px 15px rgba(24, 48, 120, 0.25),
    0 25px 75px rgba(0, 0, 0, 0.95),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 1px rgba(0, 0, 0, 0.5);
  border-radius: clamp(20px, 1.8vw + 8px, 32px);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  animation: mbAuthAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  z-index: 100000;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, width 0.2s ease, max-width 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: auto;
  cursor: default;
  touch-action: none;
}

.mb-auth-card::-webkit-scrollbar {
  width: 5px;
}
.mb-auth-card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

@keyframes mbAuthAppear {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Window Titlebar & Drag Handle */
.mb-auth-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px 24px 0 0;
  cursor: grab;
  user-select: none;
}

.mb-auth-window-bar:active,
.mb-auth-card.is-dragging .mb-auth-window-bar {
  cursor: grabbing;
}

.mb-window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mb-win-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  color: rgba(0, 0, 0, 0.65);
  transition: all 0.15s ease;
}

.mb-win-close {
  background: #ff5f56;
}

.mb-win-min {
  background: #febc2e;
}

.mb-win-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.1);
}

.mb-drag-pill-grip {
  width: 44px;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 0 8px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.mb-auth-window-bar:hover .mb-drag-pill-grip {
  background: rgba(165, 180, 252, 0.7);
  width: 56px;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
}

.mb-window-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.75);
}

.mb-auth-card-body {
  padding: clamp(16px, 2.5vh + 8px, 34px) clamp(18px, 2.2vw + 10px, 38px);
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s, padding 0.3s;
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
}

.mb-auth-card.is-minimized {
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mb-auth-card.is-minimized .mb-auth-window-bar {
  border-radius: 14px;
  border-bottom: none;
}

.mb-auth-card.is-minimized .mb-auth-card-body {
  display: none;
}

/* Matte Embossed Header — ZERO Neon */
.mb-auth-head {
  text-align: center;
  margin-bottom: clamp(14px, 1.8vh + 6px, 22px);
}

.mb-auth-title {
  font-family: 'Anurati', sans-serif;
  font-size: clamp(32px, 2.4vw + 12px, 46px);
  font-weight: 400;
  letter-spacing: clamp(5px, 0.4vw + 2px, 8px);
  line-height: 1.15;
  margin: 0 0 10px 0;
  color: #ffffff;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.2vw + 4px, 18px);
}

/* Animated Cosmic Words: POWERFUL INDEPENDENT SEQUENTIAL GLOW PULSES (LETTERS ALWAYS 100% CRISP WHITE) */
@keyframes mbPulseNadria {
  0%, 6% {
    color: #ffffff;
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    filter: none;
  }
  16%, 28% {
    color: #ffffff;
    opacity: 1;
    transform: scale(1.07);
    text-shadow: 
      0 0 14px #ffffff,
      0 0 30px #38bdf8,
      0 0 60px #0ea5e9,
      0 0 100px #2563eb,
      0 0 140px #1d4ed8;
    filter: drop-shadow(0 0 22px #38bdf8) drop-shadow(0 0 45px #0284c7);
  }
  38% {
    color: #ffffff;
    opacity: 1;
    transform: scale(1.02);
    text-shadow: 
      0 0 18px rgba(56, 189, 248, 0.8),
      0 0 40px rgba(37, 99, 235, 0.6);
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.7));
  }
  46%, 100% {
    color: #ffffff;
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    filter: none;
  }
}

@keyframes mbPulseEco {
  0%, 52% {
    color: #ffffff;
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    filter: none;
  }
  64%, 76% {
    color: #ffffff;
    opacity: 1;
    transform: scale(1.07);
    text-shadow: 
      0 0 14px #ffffff,
      0 0 30px #38bdf8,
      0 0 60px #0ea5e9,
      0 0 100px #2563eb,
      0 0 140px #1d4ed8;
    filter: drop-shadow(0 0 22px #38bdf8) drop-shadow(0 0 45px #0284c7);
  }
  86% {
    color: #ffffff;
    opacity: 1;
    transform: scale(1.02);
    text-shadow: 
      0 0 18px rgba(56, 189, 248, 0.8),
      0 0 40px rgba(37, 99, 235, 0.6);
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.7));
  }
  94%, 100% {
    color: #ffffff;
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
    filter: none;
  }
}

.mb-word {
  display: inline-block;
  color: #ffffff;
  opacity: 1;
  transform-origin: center center;
  will-change: transform, filter, text-shadow;
}

.mb-word-nadria {
  animation: mbPulseNadria 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.mb-word-eco {
  animation: mbPulseEco 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.mb-auth-subtitle {
  font-size: clamp(11px, 0.2vw + 9.5px, 14px);
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.52);
  margin: 0;
}

/* Floating Liquid Glass SSO Pills */
.mb-sso-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 0.8vw + 4px, 18px);
  margin-bottom: clamp(14px, 1.8vh + 6px, 24px);
}

.mb-sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.5vw + 3px, 12px);
  width: 100%;
  height: clamp(42px, 1.2vh + 32px, 54px);
  padding: 0 clamp(8px, 1vw, 16px);
  border-radius: 9999px;
  font-size: clamp(12px, 0.25vw + 10px, 15px);
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(30, 58, 138, 0.28) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  color: #f8fafc;
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.mb-sso-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 9999px 9999px 0 0;
  pointer-events: none;
}

.mb-sso-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(37, 99, 235, 0.42) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 12px 28px rgba(37, 99, 235, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.mb-sso-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.mb-sso-btn.is-selected-sso {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(37, 99, 235, 0.48) 100%);
  border-color: rgba(59, 130, 246, 0.8) !important;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.45), inset 0 1.5px 0 rgba(255, 255, 255, 0.7) !important;
}

.mb-sso-svg {
  flex-shrink: 0;
  display: block;
}

.mb-sso-apple-svg,
.mb-sso-discord-svg,
.mb-sso-telegram-svg {
  color: #ffffff;
}

.mb-sso-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
}

.mb-sso-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Separator */
.mb-auth-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.mb-auth-sep::before,
.mb-auth-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.mb-auth-sep span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

/* Form Styles */
.mb-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mb-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mb-input-label {
  font-size: clamp(11.5px, 0.2vw + 9.5px, 13.5px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.mb-input-field {
  width: 100%;
  padding: clamp(10px, 0.8vh + 5px, 15px) clamp(12px, 0.8vw + 6px, 18px);
  background: rgba(5, 12, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: clamp(13px, 0.25vw + 10.5px, 16px);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.mb-input-field:focus {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 36, 0.85);
}

/* Animated Pulsing Sign In Pill Button */
@keyframes mbPillPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4), 0 0 12px 1px rgba(56, 189, 248, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    border-color: rgba(56, 189, 248, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 24px 6px rgba(56, 189, 248, 0.75), 0 0 38px 12px rgba(14, 165, 233, 0.35), inset 0 1px 3px rgba(255, 255, 255, 0.85);
    border-color: rgba(125, 211, 252, 1);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4), 0 0 12px 1px rgba(56, 189, 248, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    border-color: rgba(56, 189, 248, 0.5);
    transform: scale(1);
  }
}

.mb-auth-submit {
  width: 100%;
  padding: clamp(12px, 1vh + 6px, 17px) clamp(20px, 1.5vw + 10px, 32px);
  margin-top: clamp(8px, 1vh + 4px, 14px);
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.55) 0%, rgba(14, 165, 233, 0.45) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.65);
  color: #ffffff;
  font-size: clamp(13px, 0.25vw + 11px, 16px);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.8px;
  transition: all 0.25s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mb-auth-submit:hover {
  transform: translateY(-1px) scale(1.025);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.75) 0%, rgba(14, 165, 233, 0.65) 100%);
  border-color: rgba(125, 211, 252, 1);
  box-shadow: 0 0 32px 8px rgba(56, 189, 248, 0.9);
}

.mb-auth-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 14px;
  display: none;
  border: 1px solid transparent;
}

.mb-auth-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.mb-auth-msg.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

/* User pill in header */
/* User pill in header */
.hdr-pill-user {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 45, 52, 0.68);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.35);
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 12px;
  color: #f5f5f7;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.hdr-pill-user > * {
  position: relative;
  z-index: 2;
}

.hdr-pill-user:hover {
  background: rgba(58, 58, 66, 0.82);
  border-color: rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 30px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-logout {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.btn-logout:hover {
  color: #ffffff;
}

/* Drag & Drop Capsule / Quick Paste */
.mb-drop-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mb-drop-zone.drag-active {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  border-style: solid;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
  transform: scale(1.02);
}

.mb-drop-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.mb-drop-icon {
  font-size: 14px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
}

.mb-pill-paste-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(37, 99, 235, 0.06) 100%), rgba(12, 28, 56, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  border-radius: 9999px;
  padding: 5px 12px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mb-pill-paste-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 40%, rgba(37, 99, 235, 0.14) 100%), rgba(16, 36, 72, 0.88);
  border-color: rgba(37, 99, 235, 0.6);
  border-top-color: #ffffff;
  box-shadow: inset 0 1.2px 1.2px 0 #ffffff, 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 16px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.mb-input-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mb-field-paste-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  cursor: pointer;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.mb-field-paste-btn:hover {
  color: #ffffff;
}

/* Header Avatar Image */
.mb-hdr-avatar-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-block;
  vertical-align: middle;
}

/* Auth Tabs (Sign In vs Create Account / Sign On) */
@keyframes mbTabGlowPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    border-color: rgba(56, 189, 248, 0.5);
  }
  50% {
    box-shadow: 0 0 18px 4px rgba(56, 189, 248, 0.75), 0 0 26px 8px rgba(14, 165, 233, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    border-color: rgba(125, 211, 252, 1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    border-color: rgba(56, 189, 248, 0.5);
  }
}

.mb-auth-tabs {
  display: flex;
  background: rgba(8, 16, 36, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  padding: clamp(3px, 0.3vw + 2px, 6px);
  margin-bottom: clamp(14px, 1.8vh + 6px, 24px);
  gap: clamp(4px, 0.4vw + 2px, 8px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.mb-auth-tab {
  flex: 1;
  padding: clamp(8px, 0.8vh + 4px, 13px) clamp(12px, 1.2vw + 6px, 22px);
  border: 1.5px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(12px, 0.25vw + 10px, 15px);
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.mb-auth-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.mb-auth-tab.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.55) 0%, rgba(14, 165, 233, 0.45) 100%) !important;
  color: #ffffff !important;
  border-color: rgba(56, 189, 248, 0.8) !important;
  box-shadow: 0 2px 14px rgba(37, 99, 235, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
}

/* Verification Pending Banner */
.mb-verify-notice {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
  text-align: center;
  display: none;
}

.mb-verify-notice.visible {
  display: block;
}

.mb-verify-notice-title {
  font-size: 14px;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 6px;
}

.mb-verify-notice-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin-bottom: 12px;
}

.mb-verify-fasttrack-btn {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mb-verify-fasttrack-btn:hover {
  background: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

/* ============================================================
   MEMBER PROFILE MODAL (FROSTED GLASS)
   ============================================================ */
.mb-profile-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 20, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.mb-profile-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mb-profile-card {
  width: 100%;
  max-width: 520px;
  background: rgba(10, 22, 45, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  padding: 28px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transform: scale(0.96) translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.mb-profile-modal-overlay.is-open .mb-profile-card {
  transform: scale(1) translateY(0);
}

.mb-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
}

.mb-profile-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mb-profile-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.mb-profile-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.mb-profile-user-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(5, 14, 32, 0.6);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}

.mb-profile-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 28, 58, 0.85);
}

.mb-profile-user-meta {
  flex: 1;
  min-width: 0;
}

.mb-profile-name-text {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.mb-profile-email-text {
  font-size: 12px;
  color: rgba(125, 211, 252, 0.8);
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 6px;
}

.mb-profile-badges {
  display: flex;
  gap: 6px;
  align-items: center;
}

.mb-profile-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 0.8px 0.8px 0 rgba(255, 255, 255, 0.5), inset 0 -0.8px 0.8px 0 rgba(0, 0, 0, 0.25);
}

.mb-profile-badge.badge-role {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(37, 99, 235, 0.1) 50%, rgba(0, 0, 0, 0.2) 100%), rgba(4, 18, 38, 0.65);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  color: #3b82f6;
}

.mb-profile-badge.badge-verified {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(16, 185, 129, 0.1) 50%, rgba(0, 0, 0, 0.2) 100%), rgba(4, 24, 28, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  color: #10b981;
}

/* Profile Modal Tabs */
.mb-prof-nav-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  gap: 16px;
  margin-bottom: 18px;
}

.mb-prof-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}

.mb-prof-tab-btn:hover {
  color: #ffffff;
}

.mb-prof-tab-btn.active {
  color: #3b82f6;
}

.mb-prof-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #3b82f6;
  border-radius: 2px;
}

.mb-prof-tab-pane {
  display: none;
}

.mb-prof-tab-pane.active {
  display: block;
}

/* Audit History List */
.mb-audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.mb-audit-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(6, 16, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.mb-audit-type {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: #3b82f6;
}

.mb-audit-meta {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.mb-audit-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

/* Header Back Button */
/* Header Back Button */
.hdr-pill-back {
  position: relative;
  overflow: hidden;
  background: rgba(45, 45, 52, 0.68);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  margin-right: 12px;
  color: #f5f5f7;
}

.hdr-pill-back > * {
  position: relative;
  z-index: 2;
}

.hdr-pill-back:hover {
  background: rgba(58, 58, 66, 0.82);
  border-color: rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 30px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

/* In-form Back Buttons */
.mb-auth-back-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  margin-top: 10px;
  transition: color 0.15s ease;
  width: 100%;
}

.mb-auth-back-btn:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.mb-profile-back-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f0f6fc;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mb-profile-back-btn:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
  color: #3b82f6;
}

.mb-input-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 3D Rotating Cube Logo for Nadria Eco Auth Modal */
.cube-wrap {
  width: 14px;
  height: 14px;
  perspective: 300px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.cube-logo {
  width: 14px;
  height: 14px;
  position: relative;
  transform-style: preserve-3d;
  animation: cube-spin 16s linear infinite;
}
.cube-face {
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: none !important;
  border-radius: 2px;
}
.cube-front  { transform: translateZ(7px); }
.cube-back   { transform: rotateY(180deg) translateZ(7px); }
.cube-right  { transform: rotateY(90deg) translateZ(7px); }
.cube-left   { transform: rotateY(-90deg) translateZ(7px); }
.cube-top    { transform: rotateX(90deg) translateZ(7px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(7px); }
@keyframes cube-spin {
  0%   { transform: rotateX(-20deg) rotateY(0deg); }
  100% { transform: rotateX(-20deg) rotateY(360deg); }
}

/* Security Lock Indicator (Replacing dismissible window dots) */
.mb-auth-security-lock {
  display: flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}

/* ── DYNAMIC RESPONSIVE SCREEN ADAPTATION TIERS ── */
/* 1. Mobile Handhelds (< 520px) */
@media (max-width: 520px) {
  .mb-auth-overlay {
    padding: 12px;
  }
  .mb-auth-card {
    width: 96vw;
    border-radius: 20px;
  }
  .mb-auth-card-body {
    padding: 16px 16px 22px;
  }
  .mb-auth-title {
    font-size: 24px;
    letter-spacing: 3px;
    gap: 8px;
  }
  .mb-sso-grid {
    gap: 8px;
    margin-bottom: 16px;
  }
  .mb-sso-btn {
    height: 40px;
    padding: 0 8px;
    gap: 6px;
  }
  .mb-sso-label {
    font-size: 11.5px;
  }
  .mb-sso-svg {
    width: 16px;
    height: 16px;
  }
}

/* 2. Tablets & Small Displays (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  .mb-auth-card {
    width: clamp(480px, 54vw, 580px);
  }
}

/* 3. Standard & Large Laptops (1200px - 1599px) */
@media (min-width: 1200px) and (max-width: 1599px) {
  .mb-auth-card {
    width: clamp(540px, 42vw, 640px);
  }
}

/* 4. Large Desktops & 4K / Ultra-wide Displays (1600px+) */
@media (min-width: 1600px) {
  .mb-auth-card {
    width: clamp(620px, 35vw, 760px);
  }
  .mb-auth-title {
    font-size: clamp(38px, 2.8vw + 10px, 50px);
  }
}

/* Vertical Height Constraints (< 740px) */
@media (max-height: 740px) {
  .mb-auth-card {
    max-height: 98vh;
    border-radius: 20px;
  }
  .mb-auth-card-body {
    padding: 12px 18px 18px;
  }
  .mb-auth-head {
    margin-bottom: 10px;
  }
  .mb-auth-title {
    font-size: clamp(26px, 2vw + 10px, 34px);
    letter-spacing: 4px;
    margin-bottom: 4px;
  }
  .mb-auth-subtitle {
    display: none;
  }
  .mb-auth-tabs {
    margin-bottom: 12px;
  }
  .mb-sso-grid {
    gap: 8px;
    margin-bottom: 12px;
  }
  .mb-sso-btn {
    height: 38px;
  }
  .mb-auth-sep {
    margin: 10px 0;
  }
  .mb-auth-submit {
    padding: 10px 18px;
    margin-top: 6px;
  }
}



