/* ══════════════════════════════════════════════
   SYNTAX SYNDICATE — GLOBAL STYLESHEET
   Design System · Nav · Footer · Layout · Utils
   ══════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --white:      #ffffff;
  --tint:       #f0f4ff;
  --tint-2:     #e4eaf8;
  --border:     #d0d7e8;
  --border-2:   #b8c2d8;
  --text:       #0a0e1a;
  --text-2:     #3d4a66;
  --text-3:     #7985a0;
  --accent:     #4169e1;
  --accent-hi:  #2a52cc;
  --accent-bg:  rgba(65,105,225,0.08);
  --accent-bg2: rgba(65,105,225,0.15);
  --ui-bar:     #1a2035;

  /* Aliases */
  --carbon-black:   #0a0e1a;
  --gunmetal:       #1a2035;
  --iron-grey:      #3d4a66;
  --slate-grey:     #7985a0;
  --pale-slate-2:   #b8c2d8;
  --pale-slate:     #d0d7e8;
  --alabaster-grey: #e4eaf8;
  --platinum:       #f0f4ff;
  --bright-snow:    #f7f9ff;

  /* Typography */
  --font: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;

  /* Layout */
  --max:  1100px;
  --pad:  max(40px, calc((100vw - 1100px)/2));

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(10,14,26,0.06);
  --shadow-md: 0 4px 24px rgba(10,14,26,0.1);
  --shadow-lg: 0 8px 48px rgba(10,14,26,0.12);
  --shadow-card: 0 4px 20px rgba(10,14,26,0.07);
  --shadow-accent: 0 8px 28px rgba(65,105,225,0.14);

  /* Z-index scale */
  --z-nav: 1000;
  --z-modal: 2000;
  --z-toast: 3000;
}

/* ── RESET ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  padding-top: 72px;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── AVATARS ── */
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.avatar-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), #8b5cf6); color: #fff;
  font-weight: 700; border-radius: inherit; font-size: 1.2rem;
}
.avatar-fallback.sm { font-size: 0.75rem; }
.avatar-fallback.lg { font-size: 2.4rem; }
.avatar-img.circle, .avatar-fallback.circle { border-radius: 50%; }
.avatar-img.square, .avatar-fallback.square { border-radius: 12px; }

/* ── NAV ── */
nav#navbar {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 1400px; height: 64px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  display: flex; align-items: center; padding: 0 24px;
  z-index: 1000; transition: all 0.4s var(--ease);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
.nav-logo { font-size: .95rem; font-weight: 700; color: var(--carbon-black); text-decoration: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; margin-right: 8px; }
.nav-logo-badge { width: 26px; height: 26px; border-radius: 6px; background: var(--carbon-black); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: .55rem; font-weight: 500; color: #fff; flex-shrink: 0; }
.nav-item { position: relative; }
.nav-item-btn { display: flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 500; color: var(--iron-grey); background: none; border: none; cursor: pointer; padding: 7px 11px; border-radius: 6px; font-family: var(--font); white-space: nowrap; }
.nav-item-btn:hover { color: var(--carbon-black); background: var(--platinum); }
.nav-avatar-wrap { width: 32px; height: 32px; border-radius: 50%; margin-right: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-chevron { transition: transform .2s; flex-shrink: 0; }
.nav-item.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 6px;
  box-shadow: 0 8px 32px rgba(10,14,26,.1); min-width: 190px;
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity .18s, transform .18s; z-index: 200;
}
.nav-item.open .nav-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-dd-label { font-family: var(--mono); font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--pale-slate-2); padding: 6px 10px 3px; }
.nav-dd-link { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 6px; font-size: .8rem; font-weight: 400; color: var(--iron-grey); text-decoration: none; }
.nav-dd-link:hover { background: var(--platinum); color: var(--carbon-black); }
.nav-dd-icon { width: 26px; height: 26px; border-radius: 5px; background: var(--accent-bg); border: 1px solid rgba(65,105,225,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-dd-icon svg { width: 13px; height: 13px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-dd-sep { height: 1px; background: var(--border); margin: 4px 6px; }

/* ── MEGA DROPDOWN ── */
.dropdown-mega {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 580px; background: var(--white);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: all 0.22s var(--ease); box-shadow: var(--shadow-lg); pointer-events: none;
  z-index: 1000;
}
.nav-item.open .dropdown-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.dropdown-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; padding: 0 4px; }
.dropdown-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.dropdown-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; border: 1px solid transparent; transition: all 0.2s; }
.dropdown-item:hover { background: var(--platinum); border-color: var(--border); }
.dropdown-icon-box { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.05); }
.dropdown-info { display: flex; flex-direction: column; }
.dropdown-info strong { font-size: 13px; font-weight: 600; color: var(--text); display: block; }
.dropdown-info span { font-size: 11px; color: var(--text-3); }

.nav-spacer { flex: 1; }
.nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-link-plain { font-size: .8rem; font-weight: 500; color: var(--iron-grey); text-decoration: none; padding: 7px 12px; border-radius: 6px; }
.nav-link-plain:hover { color: var(--carbon-black); background: var(--platinum); }
.nav-cta { font-size: .8rem; font-weight: 600; padding: 7px 16px; border-radius: 7px; background: var(--carbon-black); color: #fff; text-decoration: none; display: inline-block; }
.nav-cta:hover { background: var(--gunmetal); }
.nav-user-container { display: flex; align-items: center; gap: 6px; }

/* ── NOTIFICATION BELL (always visible) ── */
.nav-notif-bell { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-notif-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: none; border: 1px solid transparent; cursor: pointer; color: var(--iron-grey); transition: all .2s; }
.nav-notif-btn:hover { background: var(--platinum); color: var(--carbon-black); border-color: var(--border); }
.nav-notif-btn svg { pointer-events: none; }
.nav-notif-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; border-radius: 50%; background: #ef4444; color: #fff; font-size: 9px; font-weight: 800; display: none; align-items: center; justify-content: center; line-height: 1; padding: 0 3px; box-shadow: 0 0 0 2px var(--white); }

/* ── NOTIFICATION MODAL ITEMS ── */
.notif-modal-item { display: flex; align-items: center; gap: 4px; padding: 0 16px; transition: background .15s; margin-bottom: 2px; position: relative; }
.notif-modal-item:hover { background: var(--platinum); }
.notif-modal-item.unread { background: rgba(65,105,225,0.04); }

.notif-modal-link { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; text-decoration: none; color: inherit; flex: 1; min-width: 0; }
.notif-modal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; margin-top: 6px; }
.notif-modal-dot.active { background: var(--accent); box-shadow: 0 0 0 3px rgba(65,105,225,0.15); }
.notif-modal-content { flex: 1; min-width: 0; }
.notif-modal-title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.notif-modal-msg { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.4; }
.notif-modal-time { font-size: 10px; color: var(--text-3); margin-top: 4px; font-family: var(--mono); }

.notif-item-delete { 
  background: none; border: none; padding: 8px; color: var(--text-3); 
  opacity: 0; transition: all .2s; border-radius: 6px; cursor: pointer; 
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-modal-item:hover .notif-item-delete { opacity: 1; }
.notif-item-delete:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

@media (max-width: 850px) {
  .notif-item-delete { opacity: 1; padding: 12px; }
}

/* ── DASHBOARD NAV (top-nav) ── */
.top-nav { background: var(--white); border-bottom: 1px solid var(--border); padding: 14px 40px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn { padding: 8px 18px; border-radius: 8px; font-weight: 600; font-family: var(--font); font-size: .85rem; cursor: pointer; border: 1px solid var(--border); background: var(--white); color: var(--text); transition: all .2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { background: var(--tint); }
.btn-primary { background: var(--carbon-black); color: #fff; border-color: var(--carbon-black); }
.btn-primary:hover { background: var(--gunmetal); }

/* ── SECTION SHELLS ── */
.section-white { background: var(--white); }
.section-tint  { background: var(--tint); }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 80px var(--pad); }
.section-inner-sm { max-width: var(--max); margin: 0 auto; padding: 64px var(--pad); }

/* ── SECTION HEADINGS ── */
.sh-center { text-align: center; margin-bottom: 52px; }
.sh-tag { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 6px; }
.sh-h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 700; letter-spacing: -.025em; color: var(--carbon-black); line-height: 1.15; }
.sh-h2 em { font-style: normal; color: var(--accent); }
.sh-sub { font-size: .95rem; color: var(--text-2); max-width: 520px; margin: 12px auto 0; line-height: 1.7; }

/* ── BUTTONS ── */
.btn-fill { display: inline-block; padding: 12px 28px; border-radius: 7px; font-size: .88rem; font-weight: 600; background: var(--carbon-black); color: #fff; text-decoration: none; border: 1px solid var(--carbon-black); transition: background .2s; }
.btn-fill:hover { background: var(--gunmetal); }
.btn-outline { display: inline-block; padding: 12px 24px; border-radius: 7px; font-size: .88rem; font-weight: 500; background: transparent; color: var(--carbon-black); text-decoration: none; border: 1px solid var(--pale-slate); transition: border-color .2s, background .2s; }
.btn-outline:hover { border-color: var(--accent-hi); background: var(--accent-bg); }
.btn-accent { display: inline-block; padding: 12px 28px; border-radius: 7px; font-size: .88rem; font-weight: 600; background: var(--accent); color: #fff; text-decoration: none; border: 1px solid var(--accent); transition: background .2s; }
.btn-accent:hover { background: var(--accent-hi); }
.btn-white { display: inline-block; font-family: var(--font); font-size: .82rem; font-weight: 600; padding: 10px 22px; border-radius: 7px; background: #fff; color: var(--carbon-black); text-decoration: none; border: 1px solid #fff; }
.btn-white:hover { background: var(--bright-snow); }
.btn-ghost-light { display: inline-block; font-family: var(--font); font-size: .82rem; font-weight: 500; padding: 10px 20px; border-radius: 7px; background: transparent; color: rgba(248,249,250,.55); text-decoration: none; border: 1px solid rgba(255,255,255,.18); }
.btn-ghost-light:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-sm { padding: 7px 16px; font-size: .78rem; }
.btn-icon { display: inline-flex; align-items: center; gap: 6px; }

/* ── FOOTER ── */
footer { background: var(--carbon-black); padding: 60px var(--pad) 0; color: rgba(248,249,250,.7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-logo { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 12px; display: block; }
.foot-bio { font-size: .82rem; line-height: 1.65; color: rgba(248,249,250,.55); max-width: 240px; margin-bottom: 18px; }
.foot-socials { display: flex; gap: 8px; }
.foot-social { width: 32px; height: 32px; border-radius: 7px; border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: rgba(248,249,250,.5); text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.foot-social:hover { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.06); }
.foot-social svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-col-title { font-size: .78rem; font-weight: 600; color: #fff; margin-bottom: 14px; display: block; }
.foot-links { display: flex; flex-direction: column; gap: 9px; }
.foot-links a { font-size: .8rem; color: rgba(248,249,250,.5); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: .75rem; color: rgba(248,249,250,.35); }
.footer-bottom a { color: rgba(248,249,250,.35); text-decoration: none; margin-left: 16px; transition: color .2s; }
.footer-bottom a:hover { color: rgba(248,249,250,.7); }

/* ── PAGE HEADER (for inner pages) ── */
.page-header {
  background: var(--tint);
  border-bottom: 1px solid var(--border);
  padding: 48px var(--pad) 40px;
  text-align: center;
}
.page-header .sh-tag { margin-bottom: 8px; }
.page-header .sh-h2 { margin-bottom: 8px; }
.page-header .sh-sub { margin: 0 auto; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-3);
  font-family: var(--mono);
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--pad);
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--pale-slate-2); }

/* ── UTILITY ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-3); }
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hidden { display: none !important; }

/* ── MOBILE MENU ── */
.mobile-menu-btn { display: none; background: transparent; border: none; cursor: pointer; padding: 4px; color: var(--carbon-black); }
.mobile-menu-btn svg { stroke: currentColor; stroke-width: 2; width: 24px; height: 24px; }

/* ── MOBILE NOTIFICATIONS POPUP ── */
.notif-mobile-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 26, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 2000; /* Above Navbar */
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s var(--ease);
}
.notif-mobile-popup.active {
  visibility: visible;
  opacity: 1;
}
.notif-popup-content {
  background: #fff;
  width: 100%;
  max-height: 80%;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.notif-mobile-popup.active .notif-popup-content {
  transform: translateY(0);
}
.notif-popup-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notif-popup-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}
.notif-popup-close {
  background: var(--tint);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-popup-actions {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}
.notif-list-container.mobile-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

 /* ── PREMIUM BADGES & VERIFICATION ── */
.premium-badge {
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 2px 6px; border-radius: 4px; display: inline-flex; align-items: center;
  margin-left: 6px; line-height: 1; vertical-align: middle;
}
.badge-super {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
  box-shadow: 0 2px 10px rgba(217,119,6,0.4);
  position: relative; overflow: hidden;
}
.badge-super::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg); animation: badgeGlow 3s infinite linear;
}
@keyframes badgeGlow {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}
.badge-partner {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff;
  box-shadow: 0 2px 8px rgba(29,78,216,0.3);
}
.badge-team {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff;
  box-shadow: 0 2px 8px rgba(109,40,217,0.3);
}
.badge-premium {
  background: linear-gradient(135deg, #ffd700, #f59e0b, #d97706) !important; 
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.5) !important;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.badge-premium::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg); animation: badgeGlow 3s infinite linear;
}
.badge-creator {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4) !important;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.badge-creator::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg); animation: badgeGlow 3s infinite linear;
}

.badge-contributor {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4) !important;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.badge-contributor::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg); animation: badgeGlow 3s infinite linear;
}

.verified-tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; background: #3b82f6; color: #fff;
  border-radius: 50%; margin-left: 4px; font-size: 10px;
}

.avatar-wrapper { position: relative; display: inline-block; }
.avatar-wrapper .premium-badge {
  position: absolute; bottom: -4px; right: -4px; margin: 0;
  border: 2px solid #fff; scale: 0.85;
}

@media (max-width: 600px) {
  .premium-badge { scale: 0.9; }
}

@media (max-width: 850px) {
  .notif-dropdown-desktop {
    display: none !important;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  nav#navbar { max-width: calc(100% - 32px); width: 100%; top: 12px; }
}

@media (max-width: 850px) {
  .grid-2 { grid-template-columns: 1fr; }

  /* Nav Mobile */
  nav#navbar {
    top: 14px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 32px); max-width: 1180px;
    border-radius: 16px;
    padding: 0 16px; justify-content: flex-start; flex-wrap: wrap;
    height: auto; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    max-height: 52px; align-items: flex-start;
  }
  nav#navbar.mobile-open {
    max-height: 90vh; overflow-y: auto;
    width: calc(100% - 32px); left: 50%; top: 14px; transform: translateX(-50%);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: max-height 0.5s ease;
  }
  .nav-logo { height: 52px; display: flex; align-items: center; margin-right: auto; flex-shrink: 1; min-width: 0; overflow: hidden; }
  .nav-notif-bell { order: 0; height: 52px; display: flex; align-items: center; margin-left: auto; position: static !important; flex-shrink: 0; }
  .mobile-menu-btn { display: flex; height: 52px; align-items: center; justify-content: center; margin-left: 8px; width: 40px; order: 1; border: none; background: none; color: var(--carbon-black); font-size: 24px; flex-shrink: 0; }
  
  .nav-spacer { display: none; }
  .nav-item { width: 100%; display: block; border-bottom: 1px solid var(--border); border-radius: 0; margin: 0; order: 2; }
  .nav-item:last-of-type { border-bottom: none; }
  .nav-item-btn { width: 100%; justify-content: space-between; padding: 16px 8px; font-size: 1rem; font-weight: 600; color: var(--carbon-black); }
  .nav-item.open .nav-item-btn { background: var(--accent-bg); color: var(--accent); }
  
  .nav-right { width: 100%; display: flex; flex-direction: column; gap: 0; margin-top: 12px; padding-bottom: 24px; order: 3; }
  #navGuest, .nav-user-container { display: flex; flex-direction: column; width: 100%; gap: 0; }
  
  .nav-dropdown, .dropdown-mega { 
    position: static !important; width: 100% !important; max-width: 100% !important;
    left: auto !important; right: auto !important; transform: none !important;
    box-shadow: none; border: none; opacity: 1; visibility: visible; 
    pointer-events: all; padding: 8px 0 16px 16px; display: none; 
    margin-top: 0; background: transparent; box-sizing: border-box; 
  }
  .nav-item.open .nav-dropdown, .nav-item.open .dropdown-mega { display: block; }
  
  .dropdown-grid { display: flex; flex-direction: column; gap: 4px; width: 100%; }
  .dropdown-item { padding: 12px 0; width: 100%; }
  .dropdown-label { padding-left: 0; font-size: 11px; margin-bottom: 8px; }
  .nav-dd-link { padding: 12px 0; font-size: .95rem; }
  .nav-dd-label { padding-left: 0; }
  
  .nav-cta { align-self: stretch; margin: 8px 0; text-align: center; width: 100%; padding: 14px; box-sizing: border-box; }
}

@media (max-width: 600px) {
  :root { --pad: 24px; }
  .section-inner, .section-inner-sm { padding: 60px var(--pad); }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .footer-bottom a { margin-left: 0; margin-right: 16px; }
  .page-header { padding: 36px var(--pad) 32px; }
}

/* ── PRINT (for resume builder) ── */
@media print {
  nav, footer, .no-print, .toast-container, .toast { display: none !important; }
  body { padding-top: 0; background: #fff; }
  .section-inner { padding: 0; }
}

/* ── AVATARS ── */
.avatar-img, .avatar-fallback {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #4169e1, #6366f1);
  flex-shrink: 0;
}
.circle { border-radius: 50% !important; }
.square { border-radius: 12px !important; }
.xs { width: 22px !important; height: 22px !important; font-size: 0.5rem !important; }
.sm { width: 32px !important; height: 32px !important; font-size: 0.65rem !important; }
.md { width: 44px !important; height: 44px !important; font-size: 0.85rem !important; }
.lg { width: 80px !important; height: 80px !important; font-size: 1.5rem !important; }
.xl { width: 120px !important; height: 120px !important; font-size: 2rem !important; }

.loader-spinner {
  width: 32px; height: 32px; border: 3px solid var(--accent-bg2); border-top-color: var(--accent);
  border-radius: 50%; animation: spinProfile 0.8s linear infinite; margin: 0 auto;
}
@keyframes spinProfile { to { transform: rotate(360deg); } }
