/* ============================================================
   NexoDev Client Portal — portal.css
   Design: Dark luxury / refined enterprise
   Fonts: Syne (display) + DM Sans (body)
   Colors: NexoDev navy #0D1B2A, teal #00C2A8, warm off-white #F5F2EE
   ============================================================ */

:root {
  --navy:        #0D1B2A;
  --navy-mid:    #152336;
  --navy-light:  #1E3148;
  --teal:        #00C2A8;
  --teal-dim:    #00a08a;
  --teal-glow:   rgba(0,194,168,.15);
  --amber:       #F5A623;
  --red:         #E05252;
  --green:       #3DBD7D;
  --off-white:   #F5F2EE;
  --muted:       #8BA0B5;
  --border:      rgba(255,255,255,.08);
  --card-bg:     rgba(21,35,54,.7);
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,.35);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.5);
  --transition:  .2s cubic-bezier(.4,0,.2,1);
  --font-display:'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--off-white);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,194,168,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(0,194,168,.04) 0%, transparent 50%);
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }

/* ── NAVIGATION ── */
.portal-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,27,42,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; gap: 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--off-white); font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
}
.nav-brand:hover { color: var(--teal); }
.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--teal);
  color: var(--navy);
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 800; font-size: .9rem;
}
.nav-brand-text span { color: var(--teal); }
.nav-back {
  font-size: .82rem; color: var(--muted); font-weight: 500;
  border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 14px;
  transition: all var(--transition);
}
.nav-back:hover { color: var(--off-white); border-color: var(--teal); }
.nav-right {
  margin-left: auto; display: flex; align-items: center; gap: 16px;
}
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-client-badge {
  background: var(--teal-glow);
  border: 1px solid rgba(0,194,168,.3);
  color: var(--teal);
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px; border-radius: 20px;
}
.nav-username { font-size: .85rem; color: var(--muted); }
.nav-logout {
  color: var(--muted); width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 8px;
  transition: all var(--transition);
}
.nav-logout:hover { color: var(--red); border-color: var(--red); }

/* ── PAGE SHELL ── */
.page-shell {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 32px 80px;
}
.page-header { margin-bottom: 40px; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; letter-spacing: -.03em;
  color: var(--off-white);
  line-height: 1.2;
}
.page-subtitle {
  margin-top: 8px;
  color: var(--muted); font-size: .9rem;
}

/* ── CARDS ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.card:hover { border-color: rgba(0,194,168,.25); }
.card-pad { padding: 28px; }

/* ── QUOTE GRID ── */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.quote-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.quote-card:hover {
  border-color: rgba(0,194,168,.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.quote-card:hover::before { opacity: 1; }

.quote-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.quote-number {
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  color: var(--teal); text-transform: uppercase;
}
.quote-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--off-white); margin-top: 4px;
  line-height: 1.3;
}
.quote-card-meta {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.quote-meta-row {
  display: flex; justify-content: space-between;
  font-size: .82rem; color: var(--muted);
}
.quote-meta-row strong { color: var(--off-white); }
.quote-total {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--off-white); margin-top: 8px;
}
.quote-arrow {
  position: absolute; bottom: 24px; right: 24px;
  color: var(--teal); font-size: 1.1rem;
  transition: transform var(--transition);
}
.quote-card:hover .quote-arrow { transform: translateX(4px); }

/* ── STATUS BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-draft         { background: rgba(139,160,181,.12); color: var(--muted); }
.badge-sent          { background: rgba(0,194,168,.12);   color: var(--teal); }
.badge-under_review  { background: rgba(245,166,35,.12);  color: var(--amber); }
.badge-accepted      { background: rgba(61,189,125,.12);  color: var(--green); }
.badge-rejected      { background: rgba(224,82,82,.12);   color: var(--red); }
.badge-expired       { background: rgba(139,160,181,.1);  color: var(--muted); }

/* ── QUOTE DETAIL ── */
.quote-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .quote-detail-grid { grid-template-columns: 1fr; }
}
.quote-document-viewer {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.quote-doc-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,194,168,.04);
}
.quote-doc-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--off-white);
}
.quote-doc-meta { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ── QUOTE RENDERED VIEW ── */
.quote-rendered {
  background: #fff; color: #1a1a1a;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.qr-header {
  background: #0D1B2A; padding: 36px 40px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.qr-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: #fff; letter-spacing: -.02em;
}
.qr-logo span { color: #00C2A8; }
.qr-header-right { text-align: right; }
.qr-quote-num {
  font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  color: #00C2A8; font-weight: 700;
}
.qr-quote-status { margin-top: 6px; }
.qr-body { padding: 40px; }
.qr-parties {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-bottom: 36px; padding-bottom: 36px;
  border-bottom: 1px solid #eee;
}
.qr-party-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: #999; font-weight: 700; margin-bottom: 6px;
}
.qr-party-name { font-size: 1rem; font-weight: 700; color: #0D1B2A; }
.qr-party-detail { font-size: .85rem; color: #666; line-height: 1.7; margin-top: 4px; }
.qr-title-row { margin-bottom: 8px; }
.qr-quote-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem; font-weight: 700; color: #0D1B2A;
}
.qr-quote-desc { color: #555; font-size: .9rem; margin-top: 8px; line-height: 1.7; }
.qr-items-table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
  font-size: .88rem;
}
.qr-items-table thead tr {
  background: #0D1B2A; color: #fff;
}
.qr-items-table thead th {
  padding: 12px 16px; text-align: left;
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.qr-items-table thead th:last-child { text-align: right; }
.qr-items-table tbody tr { border-bottom: 1px solid #f0f0f0; }
.qr-items-table tbody tr:hover { background: #fafafa; }
.qr-items-table td { padding: 14px 16px; color: #333; vertical-align: top; }
.qr-items-table td:last-child { text-align: right; font-weight: 600; color: #0D1B2A; }
.qr-item-detail { font-size: .78rem; color: #888; margin-top: 3px; }
.qr-totals {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 8px; margin-top: 20px; padding-top: 20px;
  border-top: 2px solid #eee;
}
.qr-total-row { display: flex; gap: 80px; font-size: .9rem; }
.qr-total-row .label { color: #666; }
.qr-total-row .value { font-weight: 600; color: #1a1a1a; min-width: 100px; text-align: right; }
.qr-total-final {
  display: flex; gap: 80px;
  background: #0D1B2A; color: #fff;
  padding: 14px 20px; border-radius: 8px; margin-top: 8px;
}
.qr-total-final .label { font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.qr-total-final .value { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: #00C2A8; }
.qr-notes {
  margin-top: 36px; padding: 24px;
  background: #f8f9fb; border-radius: 8px;
  border-left: 3px solid #00C2A8;
}
.qr-notes-title { font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #0D1B2A; margin-bottom: 8px; }
.qr-notes p { font-size: .88rem; color: #555; line-height: 1.7; }
.qr-terms {
  margin-top: 24px; font-size: .78rem; color: #888; line-height: 1.8;
  padding-top: 24px; border-top: 1px solid #eee;
}
.qr-footer {
  background: #0D1B2A; padding: 20px 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.qr-footer-brand { color: #00C2A8; font-family: 'Syne', sans-serif; font-weight: 700; }
.qr-footer-contact { color: #8BA0B5; font-size: .8rem; }

/* ── SIDEBAR ── */
.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.sidebar-section {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-section:last-child { border-bottom: none; }
.sidebar-label {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 12px;
}
.sidebar-value { font-size: .9rem; color: var(--off-white); }
.sidebar-total {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700; color: var(--off-white);
}

/* ── DOWNLOAD BUTTONS ── */
.download-group {
  display: flex; flex-direction: column; gap: 8px;
}
.btn-download {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600;
  transition: all var(--transition);
  cursor: pointer; border: none; text-decoration: none;
  width: 100%;
}
.btn-download-pdf {
  background: rgba(224,82,82,.1);
  border: 1px solid rgba(224,82,82,.25);
  color: #E05252;
}
.btn-download-pdf:hover { background: rgba(224,82,82,.2); color: #E05252; border-color: rgba(224,82,82,.5); }
.btn-download-excel {
  background: rgba(61,189,125,.1);
  border: 1px solid rgba(61,189,125,.25);
  color: var(--green);
}
.btn-download-excel:hover { background: rgba(61,189,125,.2); color: var(--green); border-color: rgba(61,189,125,.5); }
.btn-download-original {
  background: rgba(0,194,168,.08);
  border: 1px solid rgba(0,194,168,.2);
  color: var(--teal);
}
.btn-download-original:hover { background: rgba(0,194,168,.16); color: var(--teal); }
.btn-icon { font-size: 1rem; }

/* ── DOC FILES LIST ── */
.doc-file-list { display: flex; flex-direction: column; gap: 6px; }
.doc-file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  font-size: .82rem; color: var(--muted);
  transition: all var(--transition);
  text-decoration: none;
}
.doc-file-item:hover { border-color: rgba(0,194,168,.25); color: var(--off-white); }
.doc-file-icon { font-size: 1rem; }
.doc-file-name { flex: 1; }
.doc-file-size { font-size: .75rem; }

/* ── LOGIN PAGE ── */
.login-wrap {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 480px;
}
@media (max-width: 768px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
}
.login-brand-panel {
  background: var(--navy-mid);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  justify-content: space-between; padding: 60px;
  position: relative; overflow: hidden;
}
.login-brand-panel::before {
  content: '';
  position: absolute; top: -20%; left: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,194,168,.1) 0%, transparent 65%);
  pointer-events: none;
}
.login-brand-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--off-white);
}
.login-brand-logo span { color: var(--teal); }
.login-brand-tagline {
  font-size: 2rem; font-weight: 700; font-family: var(--font-display);
  line-height: 1.25; letter-spacing: -.03em; color: var(--off-white);
  margin-top: auto;
}
.login-brand-tagline em { color: var(--teal); font-style: normal; }
.login-brand-sub { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.login-brand-dots {
  display: flex; gap: 6px; margin-top: 40px;
}
.login-brand-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}
.login-brand-dots span:nth-child(2) { opacity: .5; }
.login-brand-dots span:nth-child(3) { opacity: .25; }

.login-form-panel {
  display: flex; flex-direction: column;
  justify-content: center; padding: 60px 48px;
}
.login-form-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--off-white); margin-bottom: 8px;
}
.login-form-sub { color: var(--muted); font-size: .88rem; margin-bottom: 36px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.form-control {
  width: 100%; background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px; font-size: .9rem;
  color: var(--off-white); font-family: var(--font-body);
  transition: all var(--transition);
  outline: none;
}
.form-control::placeholder { color: rgba(139,160,181,.5); }
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.form-check {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--muted); cursor: pointer;
}
.form-check input[type="checkbox"] { accent-color: var(--teal); }
.btn-primary {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-sm);
  background: var(--teal); color: var(--navy);
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: .01em; cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}
.btn-primary:hover { background: #00d9bc; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,194,168,.3); }
.login-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 24px; }
.login-note a { color: var(--teal); }
.forgot-link { font-size: .8rem; color: var(--muted); float: right; }
.forgot-link:hover { color: var(--teal); }

/* ── FLASH MESSAGES ── */
.flash {
  max-width: 1200px; margin: 16px auto 0;
  padding: 14px 24px; border-radius: var(--radius-sm);
  font-size: .88rem;
}
.flash-error   { background: rgba(224,82,82,.12);   border: 1px solid rgba(224,82,82,.3);   color: #f08080; }
.flash-success { background: rgba(61,189,125,.12);  border: 1px solid rgba(61,189,125,.3);  color: var(--green); }
.flash-info    { background: rgba(0,194,168,.1);    border: 1px solid rgba(0,194,168,.25);  color: var(--teal); }

/* ── FOOTER ── */
.portal-footer {
  text-align: center; padding: 24px; color: var(--muted); font-size: .78rem;
  border-top: 1px solid var(--border); margin-top: auto;
}
.portal-footer a { color: var(--muted); }
.portal-footer a:hover { color: var(--teal); }

/* ── STAT PILLS (dashboard) ── */
.stats-bar {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px;
}
.stat-pill {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 160px; flex: 1;
}
.stat-pill-value {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700; color: var(--off-white);
}
.stat-pill-label { font-size: .75rem; color: var(--muted); }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center; padding: 80px 40px;
  color: var(--muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--off-white); }
.empty-sub { font-size: .88rem; margin-top: 8px; }

/* ── ADMIN TABLES ── */
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table thead tr { border-bottom: 1px solid var(--border); }
.admin-table thead th {
  padding: 12px 16px; text-align: left;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.admin-table tbody tr { border-bottom: 1px solid rgba(255,255,255,.04); transition: background var(--transition); }
.admin-table tbody tr:hover { background: rgba(255,255,255,.03); }
.admin-table td { padding: 14px 16px; color: var(--off-white); vertical-align: middle; }

/* ── FORMS (admin) ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-full { grid-column: 1 / -1; }
.form-select {
  width: 100%; background: var(--navy-light);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: .88rem; color: var(--off-white);
  font-family: var(--font-body); outline: none;
  transition: border-color var(--transition);
}
.form-select:focus { border-color: var(--teal); }
.form-textarea {
  resize: vertical; min-height: 100px;
}
.btn-sm {
  padding: 8px 16px; border: none; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); font-family: var(--font-body);
}
.btn-teal  { background: var(--teal); color: var(--navy); }
.btn-teal:hover { background: #00d9bc; }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--off-white); border-color: rgba(255,255,255,.2); }
.btn-danger { background: rgba(224,82,82,.15); color: var(--red); border: 1px solid rgba(224,82,82,.3); }
.btn-danger:hover { background: rgba(224,82,82,.25); }

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; color: var(--off-white);
}

/* ── ACTIVITY TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0; margin-top: 7px;
}
.timeline-event { font-size: .85rem; color: var(--off-white); font-weight: 500; }
.timeline-meta { font-size: .75rem; color: var(--muted); margin-top: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .page-shell { padding: 24px 16px 60px; }
  .nav-inner { padding: 0 16px; }
  .quote-grid { grid-template-columns: 1fr; }
  .nav-client-badge { display: none; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .4s ease both; }
.fade-up-1 { animation-delay: .05s; }
.fade-up-2 { animation-delay: .1s; }
.fade-up-3 { animation-delay: .15s; }
.fade-up-4 { animation-delay: .2s; }

/* ── PRINT ── */
@media print {
  .portal-nav, .portal-footer, .sidebar-card, .download-group { display: none !important; }
  .quote-detail-grid { grid-template-columns: 1fr; }
  .quote-rendered { box-shadow: none; }
  body { background: #fff; color: #000; }
}

/* ── User menu dropdown ── */
.nav-user-menu {
  position: relative;
}
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .85rem;
  transition: all var(--transition);
}
.nav-user-btn:hover {
  color: var(--off-white);
  border-color: rgba(255,255,255,.15);
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}
.nav-dropdown.open { display: block; }
.nav-dropdown-item {
  display: block;
  padding: 11px 16px;
  font-size: .84rem;
  color: var(--muted);
  text-decoration: none;
  transition: all var(--transition);
}
.nav-dropdown-item:hover {
  background: rgba(255,255,255,.05);
  color: var(--off-white);
}
.nav-dropdown-item--danger:hover {
  color: var(--red);
}
.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}
