/* ============================================================================
   BevDirector sign-in / profile vault styles (Biometrics, Quick PIN, verification,
   executive profile card). Loaded by BOTH the landing page (index.html) and the app
   (app.html) so the login modal looks identical everywhere WITHOUT pulling the app's
   mobile layout CSS (app-modals-mobile.css) into the landing page, where its global
   table / button / modal overrides were restyling landing sections on mobile.
   ============================================================================ */
.bd-vault-card {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.96), rgba(9, 13, 22, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.bd-exec-identity-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.28);
  margin-bottom: 12px;
}

.bd-exec-avatar-ring {
  position: relative;
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 2.5px solid #10b981;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.bd-exec-avatar-cam {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38bdf8;
  color: #020617;
  font-size: 0.68rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #090d16;
}

.bd-biometric-hero-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(16, 185, 129, 0.55);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.20), rgba(56, 189, 248, 0.16));
  color: #ecfdf5;
  font-weight: 900;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.18);
  text-align: left;
}
.bd-biometric-hero-btn:hover {
  transform: translateY(-1px);
  border-color: #34d399;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28);
}

.bd-auth-method-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(2, 6, 23, 0.78);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.bd-auth-method-pill {
  padding: 8px 6px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  line-height: 1.2;
}
.bd-auth-method-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(16, 185, 129, 0.18));
  border-color: rgba(56, 189, 248, 0.55);
  color: #f8fafc;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.18);
}

.bd-otp-box-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.bd-otp-digit-input {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  background: rgba(2, 6, 23, 0.88);
  color: #f8fafc;
  font-size: 1.35rem;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bd-otp-digit-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22);
}

.bd-pin-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 290px;
  margin: 10px auto 0 auto;
}

.bd-pin-key-btn {
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
  font-size: 1.12rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, transform 0.08s ease, border-color 0.12s ease;
}
.bd-pin-key-btn:active {
  transform: scale(0.96);
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
}

.bd-pin-dots-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 12px 0;
}
.bd-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.5);
  background: transparent;
  transition: all 0.15s ease;
}
.bd-pin-dot.filled {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.65);
}

@media (max-width: 520px) {
  .bd-auth-method-pills {
    grid-template-columns: repeat(2, 1fr);
  }
  .bd-otp-digit-input {
    height: 44px;
    font-size: 1.15rem;
  }
}

/* Auth modal sub-tabs (Team & Codes / Sign In / Sign Up / Profile): full-width grid, labels wrap instead of clipping */
html body #bdAuthModal .subtabs,
html body #bdAuthModalBody > .subtabs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)) !important;
  gap: 8px !important;
  padding: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
html body #bdAuthModal .subtabs > .subtab-btn,
html body #bdAuthModalBody > .subtabs > .subtab-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 40px !important;
  padding: 8px 8px !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}
html body .bd-vault-card .btn,
html body #bdAuthModal .btn {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Screen lock: the workspace stays signed in but hidden until Face ID / Quick PIN / password unlocks it */
html.bd-screen-locked #app-container {
  visibility: hidden !important;
}
html.bd-screen-locked body {
  overflow: hidden !important;
}

/* ============================================================================
   Password Field Visibility Toggle (Testers Feedback #2)
   Works across Landing Page (index.html), Auth Vault, and App Settings (app.html)
   ============================================================================ */
.bd-password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.bd-password-field-wrap > input.bd-has-password-toggle {
  padding-right: 40px !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.bd-password-field-wrap > input.bd-password-revealed {
  border-color: rgba(56, 189, 248, 0.75) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18) !important;
}

.bd-password-toggle-btn {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 30px !important;
  height: 28px !important;
  min-width: 30px !important;
  min-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 7px !important;
  border: 1px solid transparent !important;
  background: rgba(15, 23, 42, 0.55) !important;
  color: #94a3b8 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 3 !important;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease !important;
}

.bd-password-toggle-btn:hover {
  color: #e2e8f0 !important;
  background: rgba(30, 41, 59, 0.85) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

.bd-password-toggle-btn.is-visible,
.bd-password-toggle-btn[aria-pressed="true"] {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25) !important;
}

.bd-password-toggle-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  pointer-events: none;
}

/* ============================================================================
   Rate Your App & Share App Modals + Neutral Review Banner (Testers Feedback #4 & #5)
   ============================================================================ */
.bd-star-rating-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.bd-star-rating-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.85);
  color: #64748b;
  font-size: 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.bd-star-rating-btn:hover,
.bd-star-rating-btn.is-active {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.65);
  background: rgba(250, 204, 21, 0.14);
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.22);
  transform: translateY(-2px);
}

.bd-neutral-review-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 380px;
  width: calc(100vw - 32px);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(8, 13, 26, 0.99));
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 24px rgba(56, 189, 248, 0.18);
  z-index: 999990;
  color: #f8fafc;
}

