@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

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

:root {
  --bg:       #0d0d0d;
  --bg2:      #141414;
  --bg3:      #1c1c1c;
  --bg4:      #242424;
  --bg5:      #2a2a2a;
  --border:   #2c2c2c;
  --border2:  #383838;
  --text:     #e8e8e8;
  --muted:    #3a3a3a;
  --muted2:   #6e6e6e;
  --muted3:   #909090;
  --accent:   #7c3aed;
  --accent2:  rgba(124,58,237,0.12);
  --accent3:  rgba(124,58,237,0.25);
  --accentHover: #6d28d9;
  --red:      #e53e3e;
  --r:        4px;
  --r2:       8px;
  --nav-h:    60px;
  --sidebar-w: 280px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ── NAV ────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  z-index: 300;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  display: flex; align-items: center;
  padding: 0 20px; gap: 12px;
}

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; flex-shrink: 0;
  border-radius: var(--r); transition: background 0.15s;
}
.nav-toggle:hover { background: var(--bg3); }
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--muted3); border-radius: 2px; transition: all 0.2s;
}

.nav-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px; font-weight: 700;
  color: var(--text); white-space: nowrap; flex-shrink: 0;
  letter-spacing: 0.5px; line-height: 1;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links a {
  padding: 6px 12px; border-radius: var(--r);
  font-size: 13px; font-weight: 600; color: var(--muted3);
  transition: all 0.15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--bg3); }
.nav-links a.active { color: var(--accent); }

.nav-spacer { flex: 1; }

.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 7px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 220px;
}
.nav-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent2);
}
.nav-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-family: 'Nunito', sans-serif;
  font-size: 13px; width: 100%;
}
.nav-search input::placeholder { color: var(--muted2); }
.nav-search svg { color: var(--muted2); flex-shrink: 0; }

.nav-user {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: var(--r);
  cursor: pointer; transition: background 0.15s; flex-shrink: 0;
}
.nav-user:hover { background: var(--bg3); }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--accent); object-fit: cover; flex-shrink: 0;
}
.nav-username {
  font-size: 13px; font-weight: 700; color: var(--text);
  max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.nav-guest a {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: var(--r);
  font-size: 12px; font-weight: 700;
  background: var(--accent); color: #fff;
  transition: background 0.15s; flex-shrink: 0;
}
.nav-guest a:hover { background: var(--accentHover); }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--r2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 400; overflow: hidden; display: none;
}
.nav-dropdown.open { display: block; }
.nav-dropdown-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.dropdown-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--accent); object-fit: cover; flex-shrink: 0;
}
.dropdown-name { font-size: 13px; font-weight: 700; color: var(--text); }
.dropdown-email { font-size: 11px; color: var(--muted2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: var(--muted3); cursor: pointer; transition: all 0.12s;
  width: 100%; border: none; background: none;
  font-family: 'Nunito', sans-serif; text-align: left;
}
.dropdown-item:hover { color: var(--text); background: var(--bg3); }
.dropdown-divider { height: 1px; background: var(--border); }
.dropdown-logout { color: var(--red) !important; }
.dropdown-logout:hover { background: rgba(229,62,62,0.08) !important; }

.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 10px 16px 14px; flex-direction: column; gap: 2px;
  z-index: 299; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 12px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; color: var(--muted3); transition: all 0.15s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--accent); background: var(--accent2); }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 6px 0; }
.mobile-menu-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r);
}
.mobile-menu-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--accent); object-fit: cover;
}
.mobile-menu-name { font-size: 13px; font-weight: 700; }
.mobile-logout {
  padding: 10px 12px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; color: var(--red);
  cursor: pointer; transition: all 0.15s; background: none; border: none;
  font-family: 'Nunito', sans-serif; width: 100%; text-align: left;
}
.mobile-logout:hover { background: rgba(229,62,62,0.08); }

/* ── LAYOUT ─────────────────────────────────────── */
html, body { overflow-x: hidden; width: 100%; }
main {
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 60px;
  max-width: 1280px; margin: 0 auto;
  padding-left: 20px; padding-right: 20px;
}
.content-sidebar {
  display: grid; grid-template-columns: 1fr var(--sidebar-w);
  gap: 24px; align-items: start;
}
.content-area { min-width: 0; }

.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--nav-h) + 16px); }
.sidebar-block { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; }
.sidebar-title {
  font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700;
  color: var(--text); letter-spacing: 0.5px; padding: 11px 14px;
  border-bottom: 1px solid var(--border); background: var(--bg3);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-title::before { content: ''; width: 3px; height: 15px; background: var(--accent); border-radius: 2px; flex-shrink: 0; }
.sidebar-list { display: flex; flex-direction: column; }
.sidebar-item {
  display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center;
  padding: 9px 14px; cursor: pointer; transition: background 0.12s;
  border-bottom: 1px solid var(--border);
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { background: var(--bg3); }
.sidebar-thumb { width: 42px; height: 56px; border-radius: var(--r); overflow: hidden; background: var(--bg3); flex-shrink: 0; border: 1px solid var(--border); }
.sidebar-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: top; }
.sidebar-info { min-width: 0; }
.sidebar-name { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.sidebar-ch { font-size: 11px; color: var(--muted2); }
.sidebar-genres { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.sidebar-tag { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; border: 1px solid var(--border); color: var(--muted3); cursor: pointer; transition: all 0.15s; }
.sidebar-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent2); }

.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs::-webkit-scrollbar { height: 0; }
.tab { padding: 10px 18px; font-size: 13px; font-weight: 700; color: var(--muted2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; white-space: nowrap; flex-shrink: 0; font-family: 'Rajdhani', sans-serif; letter-spacing: 0.3px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.section { margin-bottom: 32px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.section-title { font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; display: inline-block; width: 3px; height: 16px; background: var(--accent); border-radius: 2px; flex-shrink: 0; }
.section-more { font-size: 12px; font-weight: 600; color: var(--muted2); transition: color 0.15s; }
.section-more:hover { color: var(--accent); }

/* LATEST LIST */
.latest-list { display: flex; flex-direction: column; gap: 0; max-height: 520px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r2); background: var(--bg2); scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }
.latest-list::-webkit-scrollbar { width: 3px; }
.latest-list::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.latest-item { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; transition: background 0.12s; border-bottom: 1px solid var(--border); }
.latest-item:last-child { border-bottom: none; }
.latest-item:hover { background: var(--bg3); }
.latest-thumb { width: 52px; height: 70px; border-radius: var(--r); overflow: hidden; flex-shrink: 0; background: var(--bg3); border: 1px solid var(--border); }
.latest-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.latest-info { min-width: 0; }
.latest-title { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.latest-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.latest-ch { font-size: 12px; color: var(--accent); font-weight: 600; }
.latest-time { font-size: 11px; color: var(--muted2); }
.latest-badge { font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.04em; font-family: 'Rajdhani', sans-serif; }
.badge-manhwa { background: #1d4ed8; color: #fff; }
.badge-manga  { background: #b45309; color: #fff; }
.badge-manhua { background: #6d28d9; color: #fff; }
.latest-skeleton { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.latest-skeleton-thumb { width: 52px; height: 70px; border-radius: var(--r); }
.latest-skeleton-info { display: flex; flex-direction: column; gap: 8px; }

/* COMIC GRID */
.comic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 480px)  { .comic-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px)  { .comic-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .comic-grid { grid-template-columns: repeat(5, 1fr); } }

.comic-card { cursor: pointer; transition: transform 0.18s; width: 100%; min-width: 0; }
.comic-card:hover { transform: translateY(-4px); }
.comic-card:hover .comic-thumb { border-color: var(--accent); box-shadow: 0 4px 16px rgba(124,58,237,0.25); }
.comic-thumb { position: relative; width: 100%; aspect-ratio: 2/3; border-radius: var(--r2); overflow: hidden; border: 1px solid var(--border); background: var(--bg3); margin-bottom: 8px; transition: border-color 0.15s, box-shadow 0.15s; }
.comic-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center top; transition: transform 0.3s; }
.comic-card:hover .comic-thumb img { transform: scale(1.05); }
.comic-badge { position: absolute; top: 6px; left: 6px; font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.05em; text-transform: uppercase; z-index: 1; font-family: 'Rajdhani', sans-serif; }
.comic-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); padding: 20px 7px 6px; font-size: 10px; color: rgba(255,255,255,0.6); z-index: 1; }
.comic-title { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.comic-sub { font-size: 11px; color: var(--muted2); }

.skeleton { background: linear-gradient(90deg, var(--bg3) 25%, var(--bg4) 50%, var(--bg3) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.genre-wrap { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.genre-tag { padding: 5px 13px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); color: var(--muted3); cursor: pointer; transition: all 0.15s; }
.genre-tag:hover, .genre-tag.active { border-color: var(--accent); color: var(--accent); background: var(--accent2); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: var(--r); font-size: 13px; font-family: 'Nunito', sans-serif; font-weight: 700; cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accentHover); }
.btn-ghost { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border2); background: var(--bg4); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid rgba(229,62,62,0.35); }
.btn-danger:hover { background: rgba(229,62,62,0.08); }
.icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg3); cursor: pointer; transition: all 0.15s; color: var(--muted2); }
.icon-btn:hover { border-color: var(--border2); color: var(--text); }
.icon-btn.bookmarked { border-color: var(--accent); color: var(--accent); background: var(--accent2); }

.detail-wrap { display: grid; grid-template-columns: 185px 1fr; gap: 24px; margin-bottom: 28px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r2); padding: 20px; }
.detail-cover { border-radius: var(--r2); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 2/3; background: var(--bg3); flex-shrink: 0; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { display: flex; flex-direction: column; gap: 10px; }
.detail-title { font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: 0.3px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted2); }
.detail-meta span strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 1px; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { padding: 3px 10px; background: var(--bg3); border: 1px solid var(--border); border-radius: 20px; font-size: 11px; color: var(--muted3); transition: all 0.12s; }
.tag:hover { border-color: var(--border2); color: var(--text); }
.synopsis { font-size: 13px; line-height: 1.8; color: var(--muted3); max-height: 78px; overflow: hidden; transition: max-height 0.3s; }
.synopsis.expanded { max-height: 1000px; }
.synopsis-toggle { font-size: 12px; font-weight: 700; color: var(--accent); cursor: pointer; margin-top: 2px; display: inline-block; }
.synopsis-toggle:hover { text-decoration: underline; }
.detail-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

.chapter-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r2); overflow: hidden; background: var(--bg2); }
.chapter-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; cursor: pointer; transition: background 0.12s; color: var(--text); border-bottom: 1px solid var(--border); }
.chapter-item:last-child { border-bottom: none; }
.chapter-item:hover { background: var(--bg3); }
.chapter-name { font-size: 13px; font-weight: 600; }
.chapter-meta { font-size: 11px; color: var(--muted2); margin-top: 2px; }
.similar-section { margin-top: 32px; }

.reader-header { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); background: var(--bg2); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; z-index: 300; gap: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.reader-info { text-align: center; flex: 1; overflow: hidden; }
.reader-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: 'Rajdhani', sans-serif; }
.reader-info span { font-size: 11px; color: var(--muted2); }
.reader-body { padding-top: calc(var(--nav-h) + 44px); padding-bottom: 72px; background: #08090c; min-height: 100vh; }
.reader-pages { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; }
.reader-pages img { width: 100%; display: block; }
.reader-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg2); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; z-index: 300; }
.page-info { font-size: 12px; color: var(--muted2); min-width: 70px; text-align: center; }

.toast { position: fixed; bottom: 80px; right: 16px; background: var(--bg3); border: 1px solid var(--border); color: var(--text); padding: 10px 16px; border-radius: var(--r); font-size: 13px; z-index: 999; transform: translateY(60px); opacity: 0; transition: all 0.25s; pointer-events: none; box-shadow: 0 4px 20px rgba(0,0,0,0.5); font-weight: 600; }
.toast.show { transform: translateY(0); opacity: 1; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted2); font-size: 13px; }

.history-item { position: relative; min-width: 0; }
.history-item .comic-card { width: 100%; min-width: 0; }
.history-item .comic-thumb { aspect-ratio: 2/3 !important; width: 100% !important; }
.history-remove { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; background: rgba(0,0,0,0.8); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity 0.15s; z-index: 2; }
.history-item:hover .history-remove { opacity: 1; }

.back-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted2); margin-bottom: 18px; transition: color 0.15s; }
.back-link:hover { color: var(--text); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.3s ease forwards; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) { :root { --sidebar-w: 240px; } }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { width: 160px; }
  main { padding-left: 14px; padding-right: 14px; }
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .detail-wrap { grid-template-columns: 130px 1fr; gap: 16px; padding: 14px; }
  .detail-title { font-size: 17px; }
  .reader-nav { gap: 6px; padding: 8px 10px; }
  .comic-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .nav-search { width: 120px; }
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-cover { max-width: 160px; }
  .page-info { display: none; }
  .nav-logo { font-size: 22px; }
}

/* ── NAV PROFILE BUTTON ─────────────────────────── */
#navProfile { position: relative; flex-shrink: 0; }

.nav-profile-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 8px; border-radius: var(--r);
  cursor: pointer; transition: background 0.15s;
  border: 1px solid var(--border); background: var(--bg3);
}
.nav-profile-btn:hover { background: var(--bg4); border-color: var(--border2); }

.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--accent); flex-shrink: 0;
}

.nav-guest-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg4); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted2);
}

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 230px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--r2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  z-index: 500; overflow: hidden;
  display: none; animation: fadeUp 0.15s ease;
}
.nav-dropdown.open { display: block; }

.dropdown-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.dropdown-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--accent); object-fit: cover; flex-shrink: 0;
}
.dropdown-name  { font-size: 13px; font-weight: 700; color: var(--text); }
.dropdown-email { font-size: 11px; color: var(--muted2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 145px; }

.dropdown-guest-header {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 14px 14px; background: var(--bg3);
  border-bottom: 1px solid var(--border); gap: 6px;
}
.dropdown-guest-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg4); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted2); margin-bottom: 4px;
}

.dropdown-divider { height: 1px; background: var(--border); }

.dropdown-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: var(--muted3); cursor: pointer; transition: all 0.12s;
  width: 100%; border: none; background: none;
  font-family: 'Nunito', sans-serif; text-align: left;
  text-decoration: none;
}
.dropdown-item:hover { color: var(--text); background: var(--bg3); }
.dropdown-item-accent { color: var(--accent) !important; }
.dropdown-item-accent:hover { background: var(--accent2) !important; }

.mobile-user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 8px;
}
.mobile-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--accent); object-fit: cover; flex-shrink: 0;
}
.mobile-divider { height: 1px; background: var(--border); margin: 6px 0; }
.mobile-logout-btn {
  padding: 10px 12px; border-radius: var(--r);
  font-size: 14px; font-weight: 600; color: var(--red);
  cursor: pointer; background: none; border: none;
  font-family: 'Nunito', sans-serif; width: 100%; text-align: left;
  transition: background 0.15s;
}
.mobile-logout-btn:hover { background: rgba(229,62,62,0.08); }
