/* ═══ AUTH_APP USE.AI PIXEL-PERFECT MINIMALIST AUTH STYLES ═════════ */
.auth-modal-overlay .d-none {
    display: none !important;
}

.d-none-clean-view {
  display: none !important;
}

/* 1. Universal Top Navigation Header Button Alignment & Strict 36px Geometry */
.top-header-right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.nav-signin-btn,
.nav-back-btn,
.nav-aivoice-btn,
.user-dropdown-btn {
  height: 36px !important;
  max-height: 36px !important;
  line-height: 36px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  border-radius: 8px !important; /* Uniform smooth corner radius */
  margin: 0 !important;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.nav-signin-btn {
  background-color: #000000 !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer;
}
.nav-signin-btn:hover {
  opacity: 0.85;
}

.nav-back-btn,
.nav-aivoice-btn {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  cursor: pointer;
  text-decoration: none !important;
}
.nav-back-btn:hover,
.nav-aivoice-btn:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* User Profile Dropdown Badge [ 👤 Agent_8f92a ▼ ] */
.user-profile-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.user-dropdown-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: var(--navy-primary) !important;
  gap: .45rem;
  cursor: pointer;
}

.dropdown-caret { font-size: .65rem; opacity: .7; }

.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: 115%;
  width: 220px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  padding: .6rem;
  z-index: 99999;
}
.user-info-header {
  padding: .4rem .6rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: .4rem;
}
.user-email-text {
  font-size: .78rem;
  color: #475569;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-tier-badge {
  font-size: .68rem;
  color: #16a34a;
  font-weight: 800;
  margin-top: 2px;
}
.dropdown-item-btn {
  width: 100%;
  text-align: left;
  padding: .45rem .6rem;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.dropdown-item-btn:hover { background: #f8fafc; }
.dropdown-item-btn.text-danger { color: #dc2626; }
.dropdown-divider { height: 1px; background: #f1f5f9; margin: .3rem 0; }

/* Progressive AI Training Banner */
.ai-training-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: .5rem;
}
.btn-ai-training-cta {
  background: var(--navy-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: .35rem .85rem;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

/* 2. Frosted Glass Auth Modal Window */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.auth-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-card {
  max-width: 440px;
  width: 90%;
  border-radius: 24px;
  padding: 36px 32px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  position: relative;
  transform: translateY(15px);
  transition: transform .25s cubic-bezier(0, 0, .2, 1);
  box-sizing: border-box;
}
.auth-modal-overlay.active .auth-modal-card {
  transform: translateY(0);
}

.auth-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.auth-modal-close:hover { color: #111827; }

/* B. Typography & Header */
.auth-modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  text-transform: none;
  margin: 0;
}

.auth-modal-subtitle {
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
  margin-top: 8px;
  margin-bottom: 24px;
  line-height: 1.4;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

/* C. Social Auth Stack */
.auth-social-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-social-btn {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
.auth-social-btn:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

/* D. Email Section Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #9ca3af;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}
.auth-divider span {
  padding: 0 12px;
}

/* Email Input Field & Primary Button */
.email-input-wrap {
  position: relative;
  width: 100%;
}
.email-icon-svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-email-field {
  width: 100%;
  height: 48px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding-left: 42px;
  padding-right: 14px;
  font-size: 14px;
  color: #111827;
  outline: none;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.auth-email-field:focus {
  border-color: #3b82f6;
  background-color: #ffffff;
}

.btn-primary-continue {
  background-color: #3b82f6;
  color: #ffffff;
  border-radius: 12px;
  height: 48px;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  transition: opacity 0.15s ease;
}
.btn-primary-continue:hover {
  opacity: 0.9;
}
.btn-primary-continue[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Password Validation Checklist */
.password-checklist {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rule-item {
  font-size: 12px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
.rule-fail { color: #ef4444; }
.rule-pass { color: #10b981; }

.auth-error-msg {
  color: #ef4444;
  font-size: 13px;
  margin-top: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
.auth-error-msg.auth-info-msg {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 9px 10px;
}

/* E. Legal Disclaimer Footer */
.auth-legal-footer {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
  text-align: center;
  margin-top: 24px;
  margin-bottom: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}
.auth-legal-footer a {
  color: #6b7280;
  text-decoration: underline;
}
.auth-legal-footer a:hover {
  color: #111827;
}

/* ═══ TASK 2: HEADER BUTTON UNIFORMITY & DASHED DROPZONE ═════════ */
/* 1. Header Button Uniformity */
.nav-signin-btn,
.nav-back-btn,
.nav-aivoice-btn,
.user-dropdown-pill {
    height: 36px !important;
    max-height: 36px !important;
    box-sizing: border-box !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.nav-signin-btn {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none !important;
}
.nav-signin-btn:hover {
    opacity: 0.85 !important;
}

.nav-back-btn, .nav-aivoice-btn {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}
.nav-back-btn:hover, .nav-aivoice-btn:hover {
    background-color: #e2e8f0 !important;
}

.vip-avatar {color:#b78316;background:#fff3cc;border-radius:50%;padding:2px 6px;}

/* Account directory shares the product menu's typography and spacing. */
.user-dropdown-menu{top:calc(100% + 10px);width:310px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);overflow-y:auto;padding:9px;border:1px solid #dbe3ed;border-radius:16px;box-shadow:0 12px 36px #0f172a20;color:#0f172a}
.user-dropdown-menu[hidden],.user-dropdown-menu.d-none{display:none!important}
.user-dropdown-menu .user-info-header{padding:11px 12px 13px;margin:0 0 5px;border-bottom:1px solid #edf0f5}
.user-dropdown-menu .user-email-text{font-size:13px;line-height:1.4;color:#475569}.user-dropdown-menu .user-tier-badge{font-size:11px;line-height:1.4;margin-top:4px}
.account-menu-heading{display:block;padding:9px 12px 5px;font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:#64748b}
.user-dropdown-menu .dropdown-item-btn{display:flex;align-items:center;gap:11px;width:100%;padding:10px 12px;margin:0;border:0;border-radius:10px;background:transparent;text-decoration:none;color:#0f172a;font:inherit;font-size:13px;text-align:left;line-height:1.4;white-space:normal;box-sizing:border-box;cursor:pointer}
.account-menu-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 29px;width:29px;height:29px;background:#f0f3fa;border-radius:9px;color:#52688d;font-family:system-ui,sans-serif;font-size:17px;line-height:1}
.account-menu-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.account-menu-copy strong{font-size:13px;font-weight:650;color:inherit}.account-menu-copy small{font-size:11px;color:#64748b;font-weight:400}
.user-dropdown-menu .dropdown-item-btn:hover{background:#eff6ff}.user-dropdown-menu .dropdown-item-btn:focus-visible{outline:2px solid #2563eb;outline-offset:-2px;background:#eff6ff}
.user-dropdown-menu .text-danger{color:#c83542}.text-danger .account-menu-icon{background:#fff0f0;color:#c83542}.user-dropdown-menu .dropdown-divider{margin:6px 8px;background:#edf0f5}
.user-dropdown-pill .user-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:25px;height:25px;border-radius:50%;font-size:15px;line-height:1}.user-dropdown-pill .vip-avatar{width:25px;height:25px}
@media(max-width:600px){.user-dropdown-menu{position:fixed;right:12px;top:76px;max-height:calc(100dvh - 90px)}}

/* Keep the dashboard Back control on one line at narrow widths. */
#back-btn.nav-back-btn{white-space:nowrap;flex-shrink:0;min-width:88px;line-height:1!important;gap:6px}
