@import url('../../focus.css?v=20261108-2');
#customerAuthModal { --auth-primary:var(--primary,#6366f1); --auth-primary-dark:var(--primary-dark,#4338ca); --auth-secondary:var(--secondary,#0891b2); --auth-ink:var(--text-primary,#0f172a); --auth-muted:var(--text-muted,#64748b); --auth-border:var(--border-light,#e2e8f0); position:fixed; inset:0; z-index:100100; display:none; align-items:center; justify-content:center; padding:24px; background:rgba(15,23,42,.58); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); font-family:Inter,Montserrat,Arial,sans-serif; color:var(--auth-ink); text-align:left; -webkit-text-size-adjust:100%; }
#customerAuthModal * { box-sizing:border-box; }
#customerAuthModal [hidden] { display:none!important; }
#customerAuthModal .auth-modal-content { position:relative; width:100%; max-width:480px; max-height:calc(100vh - 48px); max-height:calc(100dvh - 48px); overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#cbd5e1 transparent; background:#fff; border:1px solid rgba(255,255,255,.8); border-radius:24px; padding:0; box-shadow:0 32px 90px rgba(15,23,42,.24); animation:authDialogIn .22s ease-out; }
#customerAuthModal .auth-topbar { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 30px; border-bottom:1px solid #edf0f7; background:linear-gradient(115deg,#f8f9ff 0%,#fff 55%,#f0fbfd 100%); }
#customerAuthModal .auth-topbar::before { content:""; position:absolute; inset:0 0 auto; height:3px; background:linear-gradient(100deg,var(--auth-primary),var(--auth-secondary)); }
#customerAuthModal .auth-brand { display:block; line-height:0; }
#customerAuthModal .auth-brand img { display:block; width:178px; max-width:100%; height:auto; }
#customerAuthModal button { font:inherit; cursor:pointer; -webkit-appearance:none; }
#customerAuthModal .auth-close-btn { position:static; flex:0 0 36px; width:36px; height:36px; padding:0; border:1px solid #e1e7f2; border-radius:50%; background:#fff; color:#526480; font-size:26px; line-height:1; display:flex; align-items:center; justify-content:center; }
#customerAuthModal .auth-close-btn:hover { background:#eaf1ff; color:#2459d3; }
#customerAuthModal .auth-body { padding:28px 32px 24px; }
#customerAuthModal .auth-step { display:none; }
#customerAuthModal .auth-step-active { display:block; animation:authStepIn .18s ease-out; }
#customerAuthModal .auth-back { display:inline-flex; gap:7px; align-items:center; padding:0 0 17px; border:0; background:none; color:#456283; font-size:12px; font-weight:600; }
#customerAuthModal .auth-eyebrow { margin:0 0 10px; color:var(--auth-primary-dark); font-size:10px; letter-spacing:1.45px; font-weight:700; line-height:1.5; }
#customerAuthModal .auth-title { margin:0 0 10px; text-align:left; color:var(--auth-ink); font-size:28px; line-height:1.25; font-weight:750; letter-spacing:-.9px; }
#customerAuthModal .auth-subtitle { margin:0 0 24px; text-align:left; color:var(--auth-muted); font-size:14px; line-height:1.7; }
#customerAuthModal .auth-subtitle strong { color:#354e71; white-space:nowrap; font-weight:650; }
#customerAuthModal .auth-label { display:block; margin:17px 0 8px; color:#304564; font-size:12px; font-weight:650; line-height:1.5; }
#customerAuthModal .auth-input { width:100%; min-width:0; height:50px; margin:0; padding:12px 14px; border:1px solid var(--auth-border); border-radius:12px; outline:none; background:#fff; color:var(--auth-ink); font-family:inherit; font-size:16px; line-height:1.4; box-shadow:none; transition:border-color .15s,background .15s; }
#customerAuthModal .auth-input::placeholder { color:#95a2b6; opacity:1; font-size:14px; }
#customerAuthModal .auth-input:focus-visible { outline:2px solid var(--auth-primary)!important; outline-offset:2px; }
#customerAuthModal .auth-input[aria-invalid="true"] { border-color:#df6c77; }
#customerAuthModal .auth-readonly { background:#f6f8fc; color:#556984; }
#customerAuthModal .auth-phone-input { display:flex; gap:0; align-items:center; border:1px solid #dce4ef; border-radius:11px; background:#fff; }
#customerAuthModal .auth-phone-input .auth-input { border:0; background:transparent!important; }
#customerAuthModal .auth-phone-input:focus-within { border-color:var(--auth-primary); }
#customerAuthModal .auth-phone-input .auth-input:focus-visible { outline:0!important; }
#customerAuthModal .auth-phone-input:has(.auth-input:focus-visible) { outline:2px solid var(--auth-primary); outline-offset:2px; }
#customerAuthModal .auth-country-code { padding:0 14px; border:0; border-right:1px solid #e1e7f1; border-radius:0; background:transparent; color:#304564; font-size:15px; font-weight:650; }
#customerAuthModal .auth-hint { margin:8px 0 0; color:#75859c; font-size:11px; line-height:1.7; }
#customerAuthModal .auth-btn { display:flex; width:100%; min-height:50px; align-items:center; justify-content:center; gap:8px; margin:22px 0 0; padding:12px 16px; border:1px solid transparent; border-radius:12px; background:linear-gradient(110deg,var(--auth-primary),var(--auth-primary-dark) 58%,var(--auth-secondary)); color:#fff; font-size:14px; font-weight:650; line-height:1.5; box-shadow:0 6px 16px rgba(99,102,241,.18); transition:filter .15s,transform .15s,background .15s; }
#customerAuthModal .auth-btn:hover:not(:disabled) { filter:brightness(.96); transform:translateY(-1px); }
#customerAuthModal .auth-btn:disabled { opacity:.55; cursor:default; transform:none; box-shadow:none; }
#customerAuthModal .auth-btn-ghost { margin-top:0; background:#f8f9ff; border-color:#e0e2fb; color:var(--auth-primary-dark); box-shadow:none; }
#customerAuthModal .auth-btn-ghost:hover:not(:disabled) { background:#eff5ff; }
#customerAuthModal .auth-btn-text { min-height:42px; margin-top:10px; padding:10px 0; background:none; border:0; color:var(--auth-muted); box-shadow:none; font-size:12px; }
#customerAuthModal .auth-btn-text:hover:not(:disabled) { background:#f4f7fc; transform:none; }
#customerAuthModal .auth-error,#customerAuthModal .auth-success { margin:12px 0 0; padding:10px 12px; border-radius:9px; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
#customerAuthModal .auth-error { background:#fff2f3; border:1px solid #f5d6da; color:#b43147; }
#customerAuthModal .auth-success { background:#effaf5; border:1px solid #d1eddf; color:#1e7653; }
#customerAuthModal .auth-password-wrap { position:relative; }
#customerAuthModal .auth-password-wrap .auth-input { padding-right:63px; }
#customerAuthModal .auth-reveal { position:absolute; top:5px; right:5px; height:40px; padding:0 10px; border:0; border-radius:7px; background:transparent; color:#52749d; font-size:11px; font-weight:650; }
#customerAuthModal .auth-password-options { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin:16px 0 0; }
#customerAuthModal .auth-remember-label { display:flex; align-items:center; gap:7px; color:#63748c; font-size:11px; cursor:pointer; }
#customerAuthModal .auth-remember-label input { width:16px; height:16px; margin:0; accent-color:var(--auth-primary); }
#customerAuthModal .auth-text-link { padding:5px 0; border:0; background:none; color:var(--auth-primary-dark); font-size:12px; font-weight:650; }
#customerAuthModal .auth-or-divider { display:flex; align-items:center; gap:12px; margin:18px 0; color:#94a1b4; font-size:11px; }
#customerAuthModal .auth-or-divider::before,#customerAuthModal .auth-or-divider::after { content:""; height:1px; flex:1; background:#e7edf5; }
#customerAuthModal .auth-otp-input { text-align:center; font-size:25px; letter-spacing:9px; font-weight:650; }
#customerAuthModal .auth-otp-input::placeholder { font-size:25px; color:#c1cada; }
#customerAuthModal .auth-info-note { margin:12px 0; padding:14px; border:1px solid #dce8fa; border-radius:11px; background:#f3f7ff; color:#52729b; font-size:12px; line-height:1.8; }
#customerAuthModal .auth-security-note { display:flex; justify-content:center; align-items:center; gap:7px; margin:24px 0 0; padding-top:18px; border-top:1px solid #edf1f7; color:var(--auth-muted); font-size:11px; line-height:1.6; }
#customerAuthModal .auth-security-note svg { flex:0 0 14px; width:14px; height:14px; }
#customerAuthModal .auth-progress { position:relative; height:3px; overflow:hidden; background:#e5edfc; }
#customerAuthModal .auth-progress span { display:block; width:35%; height:100%; background:linear-gradient(90deg,var(--auth-primary),var(--auth-secondary)); animation:authProgress 1s ease-in-out infinite alternate; }
#customerAuthModal :is(button,a):focus-visible { outline:2px solid var(--auth-primary); outline-offset:3px; }
#customerAuthModal[data-step="3"] .auth-body { padding-top:24px; }
#customerAuthModal #authStep3 .auth-subtitle { margin-bottom:16px; }
#customerAuthModal #authStep3 .auth-label { margin-top:12px; margin-bottom:6px; }
#customerAuthModal #authStep3 .auth-input { height:46px; }
#customerAuthModal #authStep3 .auth-reveal { top:3px; }
#customerAuthModal[data-step="3"] .auth-security-note { margin-top:18px; padding-top:14px; }
body.auth-modal-open { overflow:hidden; }
@keyframes authProgress { to { transform:translateX(190%); } }
@keyframes authDialogIn { from { opacity:0; transform:translateY(12px) scale(.98); } to { opacity:1; transform:none; } }
@keyframes authStepIn { from { opacity:.4; transform:translateY(5px); } to { opacity:1; transform:none; } }
@media(max-width:768px) {
  #customerAuthModal.auth-modal-overlay { padding:12px!important; align-items:center!important; }
  #customerAuthModal .auth-modal-content { max-width:480px!important; max-height:calc(100vh - 24px)!important; max-height:calc(100dvh - 24px)!important; padding:0!important; border-radius:20px!important; animation:authDialogIn .22s ease-out!important; }
  #customerAuthModal .auth-close-btn { position:static!important; width:36px!important; height:36px!important; background:#fff!important; }
  #customerAuthModal .auth-input { height:50px!important; border:1px solid var(--auth-border)!important; border-radius:12px!important; background:#fff!important; }
  #customerAuthModal .auth-phone-input .auth-input { border:0!important; background:transparent!important; }
  #customerAuthModal .auth-readonly { background:#f6f8fc!important; }
  #customerAuthModal #authStep3 .auth-input { height:46px!important; }
  #customerAuthModal .auth-title { font-size:24px!important; }
  #customerAuthModal .auth-btn { height:auto!important; min-height:50px; border-radius:12px!important; font-size:14px!important; font-weight:650!important; background:linear-gradient(110deg,var(--auth-primary),var(--auth-primary-dark) 58%,var(--auth-secondary))!important; }
  #customerAuthModal .auth-btn-ghost { background:#f8f9ff!important; color:var(--auth-primary-dark)!important; border:1px solid #e0e2fb!important; }
  #customerAuthModal .auth-btn-text { min-height:42px; background:transparent!important; }
  #customerAuthModal .auth-body { padding:22px; padding-bottom:max(22px,env(safe-area-inset-bottom)); }
  #customerAuthModal .auth-topbar { padding:20px 22px 16px; }
}
@media(prefers-reduced-motion:reduce) { #customerAuthModal *,#customerAuthModal *::before { animation:none!important; transition:none!important; } }

/* User Menu in Header */
.user-menu-wrapper { position: relative; }
.header-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', Arial, sans-serif;
}
.header-user-btn:hover { border-color: #6366f1; }
.header-user-btn i:first-child { font-size: 1.2rem; color: #6366f1; }
.header-user-btn i:last-child { font-size: 0.7rem; transition: transform 0.2s; }
.user-menu-wrapper.active .header-user-btn i:last-child { transform: rotate(180deg); }
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border: 1px solid #e2e8f0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s;
  z-index: 1000;
}
.user-menu-wrapper.active .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-info { padding: 16px; background: #f8fafc; border-radius: 16px 16px 0 0; }
.user-name { font-weight: 700; color: #1e293b; }
.user-phone { font-size: 0.85rem; color: #64748b; margin-top: 4px; }
.dropdown-divider { margin: 0; border: none; height: 1px; background: #e2e8f0; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
  font-size: 0.9rem;
  font-family: 'Inter', Arial, sans-serif;
}
.dropdown-item:hover { background: #f8fafc; color: #1e293b; }
.dropdown-item i { width: 18px; text-align: center; color: #6366f1; }
.dropdown-item.text-danger { color: #ef4444; }
.dropdown-item.text-danger i { color: #ef4444; }
.dropdown-item.text-danger:hover { background: rgba(239,68,68,0.1); }

@media (max-width: 480px) {
  .auth-modal-content { padding: 24px 20px 20px; border-radius: 20px; }
  .auth-title { font-size: 1.2rem; }
  .user-dropdown { right: -10px; min-width: 200px; }
}
