/* ============================================================
   AUTH MODAL + TRANSLATOR WIDGET + SAVE INDICATOR STYLES
   Injected into main page
   ============================================================ */

/* ── TRANSLATOR WIDGET ── */
.translator-widget {
  position: fixed; bottom: 24px; left: 24px; z-index: 2000;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.translator-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink, #1A1713); border: 2px solid rgba(184,137,42,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; font-size: 22px;
}
.translator-btn:hover { transform: scale(1.08); border-color: var(--gold, #B8892A); }
.translator-panel {
  background: #fff; border: 1px solid #DDD5C3;
  border-radius: 16px; padding: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  min-width: 220px; display: none;
}
.translator-panel.open { display: block; animation: popUp 0.2s ease; }
@keyframes popUp { from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:translateY(0);} }
.translator-title {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: #9E9280; margin-bottom: 10px; font-family: sans-serif;
}
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-radius: 9px; border: 1.5px solid #E5E0D5;
  background: #F7F5F0; cursor: pointer; transition: all 0.15s;
  font-size: 13px; color: #1A1713; font-family: sans-serif; font-weight: 500;
}
.lang-btn:hover { border-color: #B8892A; background: #FBF5E6; }
.lang-btn.active { border-color: #B8892A; background: #FBF5E6; font-weight: 700; }
.lang-flag { font-size: 18px; }
@media(max-width: 480px) {
  .translator-widget { bottom: 80px; left: 16px; }
}

/* ── SAVE INDICATOR ── */
.save-indicator {
  position: fixed; top: 72px; right: 20px; z-index: 500;
  background: #1A1713; color: #F5C842;
  font-size: 11px; letter-spacing: 1px; padding: 6px 14px;
  border-radius: 100px; opacity: 0; transition: opacity 0.3s;
  pointer-events: none; font-family: sans-serif;
}
.save-indicator.show { opacity: 1; }

/* ── AUTH MODAL OVERLAY ── */
.auth-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(26,23,19,0.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.auth-overlay.open { opacity: 1; pointer-events: all; }
.auth-modal {
  background: #FDFAF4; border-radius: 24px;
  width: 100%; max-width: 460px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: translateY(20px); transition: transform 0.3s ease;
}
.auth-overlay.open .auth-modal { transform: translateY(0); }
.auth-modal-header {
  background: #1A1713; padding: 28px 36px;
  text-align: center;
}
.auth-modal-brand {
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: #B8892A; margin-bottom: 4px; font-family: sans-serif;
}
.auth-modal-title {
  font-size: 24px; color: #FDFAF4;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300; line-height: 1.2;
}
.auth-modal-body { padding: 32px 36px; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border: 1.5px solid #DDD5C3; border-radius: 10px; overflow: hidden; }
.auth-tab {
  flex: 1; padding: 10px; text-align: center;
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; background: #F4F1EB;
  color: #9E9280; transition: all 0.2s; border: none;
  font-family: sans-serif;
}
.auth-tab.active { background: #1A1713; color: #F5C842; }
.auth-form { display: none; flex-direction: column; gap: 14px; }
.auth-form.active { display: flex; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label { font-size: 11px; font-weight: 600; color: #1A1713; letter-spacing: 0.5px; font-family: sans-serif; }
.auth-field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid #DDD5C3;
  border-radius: 10px; font-size: 15px; background: #F7F5F0;
  color: #1A1713; font-family: sans-serif; outline: none;
  transition: all 0.2s;
}
.auth-field input:focus { border-color: #B8892A; background: #fff; box-shadow: 0 0 0 3px rgba(184,137,42,0.1); }
.auth-submit {
  width: 100%; padding: 14px; border-radius: 100px;
  background: #1A1713; color: #F5C842; border: none; cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  font-family: sans-serif; transition: all 0.2s; margin-top: 4px;
}
.auth-submit:hover { background: #B8892A; color: #1A1713; }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-error {
  background: #FEF0EE; border: 1px solid #E8604C; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: #C05A42; display: none;
  font-family: sans-serif;
}
.auth-error.show { display: block; }
.auth-success {
  background: #E8F7F0; border: 1px solid #2E9E6B; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: #2E9E6B; display: none;
  font-family: sans-serif;
}
.auth-success.show { display: block; }
.auth-divider { text-align: center; font-size: 12px; color: #9E9280; font-family: sans-serif; }
.auth-link { color: #B8892A; cursor: pointer; text-decoration: underline; font-size: 12px; font-family: sans-serif; }
.auth-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  color: rgba(255,255,255,0.5); font-size: 22px; cursor: pointer; line-height: 1;
}
.auth-modal-header { position: relative; }

/* ── USER NAV CHIP ── */
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(184,137,42,0.12); border: 1px solid rgba(184,137,42,0.3);
  border-radius: 100px; padding: 6px 14px; cursor: pointer;
  font-size: 12px; color: #1A1713; font-family: sans-serif;
  transition: all 0.2s;
}
.user-chip:hover { background: rgba(184,137,42,0.2); }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: #B8892A; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; font-family: sans-serif;
}
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid #DDD5C3;
  border-radius: 14px; padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 180px; display: none; z-index: 500;
}
.user-menu.open { display: block; }
.user-menu-item {
  padding: 10px 14px; border-radius: 8px; font-size: 13px;
  color: #1A1713; cursor: pointer; transition: all 0.15s;
  font-family: sans-serif;
}
.user-menu-item:hover { background: #F4F1EB; }
.user-menu-item.danger { color: #C05A42; }
.nav-user-wrap { position: relative; }

/* ── RESET PASSWORD PAGE ── */
.reset-modal {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(26,23,19,0.8); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.reset-modal.open { display: flex; }

/* ── PROGRESS RESUME BANNER ── */
.resume-banner {
  background: linear-gradient(135deg, #1A1713, #2D2822);
  color: #fff; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; border-radius: 16px; margin-bottom: 20px;
}
.resume-text { font-size: 14px; color: rgba(255,255,255,0.85); font-family: sans-serif; }
.resume-text strong { color: #F5C842; }
.resume-btn {
  background: #B8892A; color: #1A1713; border: none; cursor: pointer;
  padding: 10px 22px; border-radius: 100px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  font-family: sans-serif; white-space: nowrap; transition: all 0.2s;
}
.resume-btn:hover { background: #F5C842; }
