/* account.css — extracted from account.html inline <style> (2026-07). */
/* ─── Sprint 1: Self-contained NAV (no styles.css nav dependency) ─── */
.acc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 60px;
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  padding: 0 24px;
}
.acc-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.acc-nav-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #0B0C0E;
  border: 1px solid #282A30;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(62,207,142,0.4);
}
.acc-nav-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight:700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: #F4F1EC;
  white-space: nowrap;
}
.acc-nav-wordmark .ur { color: #3ECF8E; }

/* Sprint 1: Auth slot — fix nav-user-menu to be flex */
#authNavSlot {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
/* Force auth.js injected nav-user-menu to flex */
#authNavSlot .nav-user-menu {
  display: flex !important;
  align-items: center;
  gap: 8px;
  position: relative;
}
/* Hide upgrade pill on very small screens */
@media (max-width: 400px) {
  #authNavSlot .nav-upgrade-pill { display: none !important; }
  .acc-nav { padding: 0 16px; }
}

/* ─── Sprint 2: Page shell ─── */
body { background: var(--bg); }
.acc-shell {
  min-height: 100vh;
  padding: 80px 16px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.acc-wrap {
  width: 100%;
  max-width: 580px;
  padding-top: 24px;
}

/* Back link */
.acc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  transition: color .2s;
  text-decoration: none;
}
.acc-back:hover { color: var(--text-2); }

/* ─── Sprint 3: Profile hero ─── */
.acc-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(62,207,142,.07) 0%, rgba(232,179,60,.04) 100%);
  border: 1px solid rgba(62,207,142,.16);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.acc-hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(62,207,142,.1) 0%, transparent 65%);
  pointer-events: none;
}
.acc-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22352C 0%, #3ECF8E 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight:700;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(62,207,142,.3);
  letter-spacing: -1px;
}
.acc-hero-body { flex: 1; min-width: 0; }
.acc-hero-email {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  margin-bottom: 4px;
}
.acc-hero-since {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 12px;
}
.badge-free {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border-light);
}
.badge-pro {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  background: rgba(62,207,142,.15);
  color: #5CD9A0;
  border: 1px solid rgba(62,207,142,.25);
}

/* ─── Sprint 3: Upgrade nudge ─── */
.acc-nudge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(62,207,142,.05);
  border: 1px solid rgba(62,207,142,.18);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.acc-nudge-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(62,207,142,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.acc-nudge-text { flex: 1; min-width: 0; }
.acc-nudge-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.acc-nudge-text span { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.acc-nudge-btn {
  padding: 9px 16px;
  border-radius: 9px;
  background:#3ECF8E;color:#0B0C0E;
  font-size: 12px; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
  border: none; cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  box-shadow: 0 2px 12px rgba(62,207,142,.3);
}
.acc-nudge-btn:hover { background: #2FB87C; transform: translateY(-1px); }

/* ─── Sprint 3: Cards ─── */
.acc-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}
.acc-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.acc-card-ico {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.acc-card-label {
  font-size: 10px; font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.acc-card-body { padding: 4px 20px 16px; }
.acc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.acc-row:last-child { border-bottom: none; }
.acc-row-lbl { font-size: 13.5px; color: var(--text-2); flex-shrink: 0; }
.acc-row-val {
  font-size: 13.5px; font-weight: 500;
  color: var(--text);
  text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.acc-reset-link {
  font-size: 13.5px; font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  background: none; border: none;
  font-family: inherit;
  transition: opacity .2s;
  white-space: nowrap;
}
.acc-reset-link:hover { opacity: .7; }

/* ─── Sprint 3: Sign-out card ─── */
.acc-signout {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.acc-signout-info strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.acc-signout-info span { font-size: 12px; color: var(--text-3); }
.acc-signout-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(239,68,68,.08);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.18);
  font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  font-family: inherit;
  transition: all .2s;
}
.acc-signout-btn:hover { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.3); }

/* ─── Sprint 4: Mobile ≤ 520px ─── */
@media (max-width: 520px) {
  .acc-shell { padding: 72px 12px 48px; }
  .acc-wrap { padding-top: 20px; }

  /* Hero stacks */
  .acc-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 18px; }
  .acc-hero::after { display: none; }
  .acc-avatar { width: 56px; height: 56px; font-size: 20px; }
  .acc-hero-email { font-size: 14px; }

  /* Nudge stacks */
  .acc-nudge { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 16px; }
  .acc-nudge-btn { width: 100%; text-align: center; }

  /* Card body padding */
  .acc-card-head, .acc-card-body { padding-left: 16px; padding-right: 16px; }
  .acc-card-head { padding-top: 14px; }

  /* Signout stacks */
  .acc-signout { flex-direction: column; align-items: flex-start; padding: 16px; }
  .acc-signout-btn { width: 100%; justify-content: center; }

  /* Row email truncates aggressively */
  .acc-row-val { max-width: 160px; }
}

/* ─── Sprint 4: Mobile ≤ 360px ─── */
@media (max-width: 360px) {
  .acc-nav { padding: 0 12px; }
  .acc-nav-wordmark { font-size: 16px; }
  .acc-hero { padding: 18px 14px; }
  .acc-card-head, .acc-card-body { padding-left: 14px; padding-right: 14px; }
  .acc-signout { padding: 14px; }
}

/* ── Watchlist card (Faz 4) ── */
.acc-wl-note { font-size: 13.5px; color: #6E747D; line-height: 1.6; }
.acc-wl-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #1a2230;
}
.acc-wl-row:last-child { border-bottom: none; }
.acc-wl-name { flex: 1; color: #F4F1EC; font-weight: 600; font-size: 14px; text-decoration: none; }
.acc-wl-name:hover { color: #3ECF8E; }
.acc-wl-since { color: #6E747D; font-size: 12px; font-variant-numeric: tabular-nums; }
.acc-wl-remove {
  background: none; border: 1px solid #282A30; border-radius: 8px;
  color: #6E747D; width: 28px; height: 28px; cursor: pointer; font-size: 12px;
  transition: border-color .12s, color .12s;
}
.acc-wl-remove:hover { border-color: #F26D6D; color: #F26D6D; }
.acc-wl-remove:disabled { opacity: .5; cursor: default; }
