/* ── Variables & Reset ── */
.gh-header * { box-sizing: border-box; }
.gh-container {
  width: 100%; max-width: 1360px;
  margin: 0 auto; padding: 0 20px;
}

/* ── Backdrop ── */
.gh-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 3998;
  backdrop-filter: blur(2px);
}
.gh-backdrop.open { display: block; }

/* ── Header Shell ── */
.gh-header,
[data-theme="light"] .gh-header,
[data-theme="dark"] .gh-header,
header#ghHeader {
  position: sticky; top: 0; left: 0; width: 100%;
  z-index: 4000;
  background: linear-gradient(135deg, #0B1953 0%, #10297A 100%) !important;
  background-color: #0B1E64 !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 4px 24px rgba(11, 25, 83, 0.45) !important;
}

/* ══ TOP ROW ══════════════════════════════ */
.gh-top { border-bottom: none; overflow: visible; }
.gh-top .gh-container {
  display: flex; align-items: center;
  justify-content: space-between; gap: clamp(6px, 1vw, 14px); height: 58px;
  flex-wrap: nowrap; overflow: visible;
}

/* ── Logo ── */
.gh-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.gh-logo {
  display: inline-flex; align-items: center; gap: 8px; font-family: 'Outfit', sans-serif; font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 900; color: #fff; white-space: nowrap;
  letter-spacing: -0.04em; text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}
.gh-logo-badge {
  width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff6b35 0%, #f59e0b 100%);
  color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.38);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}
.gh-logo-badge svg { width: 17px; height: 17px; }
.gh-logo:hover { transform: translateY(-1px); }
.gh-logo:hover .gh-logo-badge,
.gh-logo:active .gh-logo-badge {
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.55);
}
.gh-logo i { color: var(--primary); font-size: 20px; }
.gh-logo-text { transition: color 0.25s ease; }
.gh-logo-text em { color: var(--primary); font-style: normal; transition: color 0.25s ease; }
.gh-logo:hover .gh-logo-text em { color: #ff8c42; }

/* ── Hamburger ── */
.gh-hamburger {
  display: none; flex-direction: column; gap: 4.5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.gh-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px; transition: all 0.25s;
}
.gh-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.gh-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.gh-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ── Search Bar ── */
.gh-search-wrap { flex: 1 1 180px; min-width: 110px; max-width: 320px; position: relative; }
.gh-search-form {
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px; height: 38px;
  overflow: visible !important;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.gh-search-form:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.gh-search-form:focus-within {
  border-color: var(--primary, #ff6b35) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.22), 0 3px 12px rgba(0, 0, 0, 0.2) !important;
}
.gh-search-cat {
  display: flex; align-items: center;
  position: relative; flex-shrink: 0;
  height: calc(100% - 6px);
  margin: 3px 0 3px 4px;
  padding: 0 8px 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: none !important;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.gh-search-cat:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-0.5px);
}
.gh-search-cat-label {
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}
.gh-search-cat-arrow {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.8) !important;
  margin-left: 6px;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}
.gh-search-cat:hover .gh-search-cat-arrow {
  color: #ff6b35 !important;
}
.gh-search-cat-arrow.open {
  transform: rotate(180deg) !important;
  color: #ff6b35 !important;
}

/* ── Custom Dropdown Menu (Margin, Padding, Elevation & Theme) ── */
.gh-search-cat-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: 440px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #0B163B;
  background: rgba(11, 22, 59, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 8px 6px;
  z-index: 5500;
  animation: ghScmFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.gh-search-cat-menu.open {
  display: block;
}
@keyframes ghScmFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.gh-search-cat-menu::-webkit-scrollbar { width: 5px; }
.gh-search-cat-menu::-webkit-scrollbar-track { background: transparent; }
.gh-search-cat-menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 6px; }
.gh-search-cat-menu::-webkit-scrollbar-thumb:hover { background: #ff6b35; }

.gh-scm-sec-title {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  color: rgba(255, 255, 255, 0.52);
  user-select: none;
}
.gh-scm-sec-title i {
  color: #ff6b35;
  font-size: 10px;
}

.gh-scm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin: 2px 4px;
  border-radius: 9px;
  text-decoration: none !important;
  color: #ffffff !important;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}
.gh-scm-item:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  transform: translateX(3px);
}
.gh-scm-item:active {
  transform: scale(0.98);
}

.gh-scm-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.scm-ai        { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.scm-selection { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.scm-card      { background: linear-gradient(135deg, #d97706, #fbbf24); }
.scm-agree     { background: linear-gradient(135deg, #059669, #34d399); }
.scm-quote     { background: linear-gradient(135deg, #ea580c, #f97316); }
.scm-photo     { background: linear-gradient(135deg, #e11d48, #fb7185); }
.scm-timeline  { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.scm-chat      { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.scm-gear      { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.9); }
.gh-scm-item:hover .scm-gear { background: #ff6b35; color: #ffffff; }

.gh-scm-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.gh-scm-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gh-scm-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gh-scm-item:hover .gh-scm-sub {
  color: rgba(255, 255, 255, 0.85);
}

.gh-scm-pill {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.pill-ai    { background: rgba(168, 85, 247, 0.22); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.pill-smart { background: rgba(56, 189, 248, 0.22); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }
.pill-card  { background: rgba(251, 191, 36, 0.22); color: #fde047; border: 1px solid rgba(251, 191, 36, 0.4); }
.pill-legal { background: rgba(52, 211, 153, 0.22); color: #a7f3d0; border: 1px solid rgba(52, 211, 153, 0.4); }

.gh-scm-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 6px 10px;
}

.gh-search-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.20);
  margin: 0 10px 0 8px;
  flex-shrink: 0;
  border-radius: 1px;
}
.gh-search-input {
  flex: 1; background: transparent !important; border: none !important; outline: none !important;
  color: #ffffff !important; font-size: clamp(12.5px, 0.85vw, 13.5px); padding: 0 12px 0 4px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-width: 0;
}
.gh-search-input::placeholder { color: rgba(255, 255, 255, 0.62) !important; }
.gh-search-btn {
  height: 100%; padding: 0 clamp(11px, 0.9vw, 16px);
  background: var(--primary, #ff6b35); border: none; cursor: pointer;
  color: #ffffff; font-size: 13.5px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 8px 8px 0;
  transition: background 0.2s, transform 0.15s;
}
.gh-search-btn:hover { background: var(--primary-hover, #e0531b); transform: scale(1.02); }
.gh-search-btn:active { transform: scale(0.96); }

/* ── Actions Row ── */
.gh-actions {
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0; margin-left: auto;
}

/* ── Icon Button (universal) ── */
.gh-icon-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: none; border: none; cursor: pointer;
  color: var(--text-grey); font-size: 17px;
  text-decoration: none; transition: background 0.18s, color 0.18s;
}
.gh-icon-btn:hover { background: rgba(255,255,255,0.07); color: #fff; }
.gh-icon-btn i { display: block; }

/* ── Theme Toggle Button ── */
.gh-theme-toggle-btn {
  position: relative;
  overflow: hidden;
}
.gh-drawer-theme-btn {
  background: none; border: none; cursor: pointer;
  width: 100%; text-align: left; display: flex; align-items: center; gap: 12px;
  font-family: inherit; font-size: 13.5px;
}
.gh-drawer-theme-icons {
  width: 22px; display: flex; align-items: center; justify-content: center; font-size: 16px;
}

/* ── Badge ── */
.gh-badge {
  position: absolute; top: 5px; right: 5px;
  min-width: 15px; height: 15px;
  background: var(--primary); color: #fff;
  border-radius: 100px; font-size: 9px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid rgba(15,15,17,0.96);
  animation: badgePop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.gh-badge-red { background: #e63946; }
.gh-badge-blue { background: #00b4d8; }
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }

/* ── Icon Wrap (positions dropdown panel) ── */
.gh-icon-wrap { position: relative; }

/* ── Dropdown Panel (shared base) ── */
.gh-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 300px;
  background: #1a1a1e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  z-index: 5000;
  overflow: hidden;
  display: none;
  animation: panelDrop 0.2s ease;
}
.gh-panel.open { display: block; }
@keyframes panelDrop { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

/* ── Friend Request Panel ── */
.gh-panel-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px; font-weight: 800; color: #fff;
}
.gh-panel-hd i { color: var(--primary); margin-right: 6px; }
.gh-panel-see-all { font-size: 12px; color: var(--primary); font-weight: 600; }
.gh-panel-see-all:hover { text-decoration: underline; }
.gh-panel-body { max-height: 340px; overflow-y: auto; }
.gh-panel-body::-webkit-scrollbar { width: 3px; }
.gh-panel-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
.gh-panel-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12.5px; font-weight: 700; color: var(--primary);
  transition: background 0.18s;
}
.gh-panel-footer:hover { background: rgba(255,107,53,0.06); }

/* Friend request item */
.gh-fr-item { display: flex; gap: 12px; padding: 12px 18px; transition: background 0.18s; }
.gh-fr-item:hover { background: rgba(255,255,255,0.03); }
.gh-fr-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: block; }
.gh-fr-info { flex: 1; min-width: 0; }
.gh-fr-name { font-size: 13px; font-weight: 700; color: #fff; display: block; margin-bottom: 1px; }
.gh-fr-name:hover { color: var(--primary); }
.gh-fr-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.gh-fr-btns { display: flex; gap: 6px; }
.gh-fr-accept, .gh-fr-decline {
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 7px; transition: all 0.18s;
}
.gh-fr-accept { background: var(--primary); color: #fff; }
.gh-fr-accept:hover { background: var(--primary-hover); }
.gh-fr-decline { background: rgba(255,255,255,0.07); color: var(--text-grey); }
.gh-fr-decline:hover { background: rgba(255,255,255,0.13); color: #fff; }

.gh-panel-empty { text-align: center; padding: 25px 20px; color: var(--text-muted); }
.gh-panel-empty i { font-size: 26px; color: rgba(255,255,255,0.1); display: block; margin-bottom: 10px; }
.gh-panel-empty p { font-size: 12.5px; }

/* ── Friend Dropdown Extensions ── */
#ghFrPanel { min-width: 350px; max-width: 95vw; }
.gh-fr-tabs-bar {
  display: flex; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 4px; gap: 4px;
}
.gh-fr-tab-btn {
  flex: 1; padding: 7px 10px; background: transparent; border: none;
  border-radius: 8px; color: var(--text-muted); font-size: 11.5px;
  font-weight: 700; cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 6px; transition: all 0.18s ease;
}
.gh-fr-tab-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.gh-fr-tab-btn.active { background: rgba(255,107,53,0.15); color: var(--primary); }
.gh-fr-tab-req-pill {
  background: #ef4444; color: #fff; font-size: 10px; padding: 1px 6px;
  border-radius: 10px; font-weight: 800;
}
.gh-fr-sub-hd {
  padding: 10px 16px 4px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: space-between;
}
.gh-fr-sub-hd i { color: var(--primary); margin-right: 5px; }
.gh-panel-sub-link { font-size: 11px; color: var(--primary); font-weight: 600; text-transform: none; }
.gh-panel-sub-link:hover { text-decoration: underline; }
.gh-fr-chat-btn {
  padding: 4px 10px; background: rgba(255,107,53,0.15); border: 1px solid rgba(255,107,53,0.3);
  color: var(--primary); border-radius: 6px; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none; transition: all 0.18s;
  flex-shrink: 0;
}
.gh-fr-chat-btn:hover { background: var(--primary); color: #fff; }
.gh-fr-view-btn {
  padding: 4px 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #bbb; border-radius: 6px; font-size: 11px; display: inline-flex; align-items: center;
  text-decoration: none; transition: all 0.18s; flex-shrink: 0;
}
.gh-fr-view-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.gh-fr-connect-btn {
  padding: 4px 10px; background: rgba(255,107,53,0.15); border: 1px solid rgba(255,107,53,0.35);
  color: var(--primary); border-radius: 6px; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px; text-decoration: none; transition: all 0.18s;
  flex-shrink: 0;
}
.gh-fr-connect-btn:hover { background: var(--primary); color: #fff; }
.gh-fr-sent-tag {
  font-size: 11px; font-weight: 600; color: var(--text-muted); background: rgba(255,255,255,0.06);
  padding: 3px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px;
}
.gh-fr-discover-btn {
  margin-top: 10px; background: var(--primary); color: #fff; border: none;
  border-radius: 8px; padding: 6px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: opacity 0.2s;
}
.gh-fr-discover-btn:hover { opacity: 0.9; }
.gh-fr-bottom-suggest-teaser {
  padding: 10px 16px; border-top: 1px dashed rgba(255,255,255,0.06); font-size: 11.5px;
  color: var(--text-muted); display: flex; align-items: center; justify-content: space-between;
}
.gh-fr-bottom-suggest-teaser a { color: var(--primary); font-weight: 700; }
.gh-fr-bottom-suggest-teaser a:hover { text-decoration: underline; }
.gh-fr-pane { display: none; }
.gh-fr-pane.active { display: block; }

/* ── User Button ── */
.gh-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px; cursor: pointer;
  padding: 5px 10px 5px 5px;
  transition: all 0.18s;
}
.gh-user-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.15); }
.gh-user-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.gh-user-name { font-size: 13px; font-weight: 700; color: #fff; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-chevron { font-size: 9px; color: var(--text-muted); transition: transform 0.2s; }
.gh-user-btn:hover .gh-chevron { transform: rotate(180deg); }

/* ── User Panel ── */
.gh-user-panel {
  min-width: 250px;
  right: 0;
  max-height: calc(100vh - 85px);
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
[data-theme="dark"] .gh-user-panel {
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

/* Elegant, visible scrollbar indicator */
.gh-user-panel::-webkit-scrollbar {
  width: 6px;
}
.gh-user-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}
.gh-user-panel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}
.gh-user-panel::-webkit-scrollbar-thumb:hover {
  background: var(--primary, #ff6b35);
}
[data-theme="dark"] .gh-user-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .gh-user-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
}
[data-theme="dark"] .gh-user-panel::-webkit-scrollbar-thumb:hover {
  background: var(--primary, #ff6b35);
}
.gh-user-panel-hd {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 14px;
}
.gh-up-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.gh-up-name { font-size: 14px; font-weight: 800; color: #fff; }
.gh-up-email { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.gh-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  color: var(--text-grey); transition: all 0.18s;
  text-decoration: none;
}
.gh-dd-item i { width: 16px; text-align: center; color: var(--primary); font-size: 13px; flex-shrink: 0; }
.gh-dd-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.gh-dd-danger { color: #e63946 !important; }
.gh-dd-danger i { color: #e63946 !important; }
.gh-dd-danger:hover { background: rgba(230,57,70,0.08) !important; }
.gh-dd-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 0; }
.gh-dd-badge {
  margin-left: auto; background: #e63946; color: #fff;
  font-size: 10px; font-weight: 900; border-radius: 100px;
  padding: 1px 7px; min-width: 20px; text-align: center;
}

/* ── Login / Register Buttons ── */
.gh-login-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 6px clamp(8px, 0.75vw, 14px); border-radius: 8px; font-size: clamp(12.5px, 0.85vw, 14px); font-weight: 700;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; transition: all 0.18s; white-space: nowrap;
}
.gh-login-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }
.gh-register-btn {
  display: flex; align-items: center;
  padding: 6px clamp(8px, 0.75vw, 14px); border-radius: 8px; font-size: clamp(12.5px, 0.85vw, 14px); font-weight: 700;
  background: var(--primary); color: #fff;
  transition: all 0.18s; white-space: nowrap;
}
.gh-register-btn:hover { background: var(--primary-hover); color: #fff; }
.gh-mobile-search-btn { display: none; }

/* Mobile search slide-down */
.gh-mobile-search {
  display: none; background: #111114;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 12px 0;
  animation: slideDown 0.2s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.gh-mobile-search.open { display: block; }
.gh-mobile-search-form {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px; padding: 0 16px; height: 42px;
}
.gh-mobile-search-form i { color: var(--text-muted); flex-shrink: 0; }
.gh-mobile-search-form input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: 14px;
}
.gh-mobile-search-form input::placeholder { color: var(--text-muted); }
.gh-mobile-search-form button {
  background: var(--primary); color: #fff;
  border: none; border-radius: 7px;
  padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
}

/* === INLINE NAV (Dynamic & Fluid) === */
.gh-inline-nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.35vw, 6px);
  flex-shrink: 1;
}
.gh-inline-link,
[data-theme="light"] .gh-inline-link,
[data-theme="dark"] .gh-inline-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px clamp(6px, 0.55vw, 12px);
  border-radius: 8px;
  font-size: clamp(13px, 0.88vw, 15px);
  font-weight: 600;
  color: #ffffff !important;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  transition: color 0.18s, background 0.18s, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gh-inline-link:hover,
[data-theme="light"] .gh-inline-link:hover,
[data-theme="dark"] .gh-inline-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
.gh-inline-link.active,
[data-theme="light"] .gh-inline-link.active,
[data-theme="dark"] .gh-inline-link.active {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.gh-inline-link i { font-size: 12px; opacity: 0.9; }
.gh-inline-timeline {
  background: rgba(249, 168, 37, 0.2) !important;
  color: #ffca28 !important;
  border: 1px solid rgba(249, 168, 37, 0.45) !important;
}
.gh-inline-timeline:hover, .gh-inline-timeline.active {
  background: rgba(249, 168, 37, 0.35) !important;
  color: #ffe082 !important;
  transform: translateY(-2px) scale(1.05);
}
/* === BOTTOM NAV BAR === */
.gh-nav-bar {
  background: rgba(18,18,22,0.7);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.gh-nav-bar .gh-container {
  display: flex; align-items: center;
  padding-left: 20px; padding-right: 20px;
}
.gh-nav-list {
  display: flex; align-items: center;
  gap: 0; width: 100%; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.gh-nav-list::-webkit-scrollbar { display: none; }

.gh-nav-link {
  display: block; padding: 12px 14px;
  font-size: 15px; font-weight: 600;
  color: var(--text-grey); white-space: nowrap;
  position: relative; transition: color 0.18s;
}
.gh-nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transition: transform 0.2s;
  border-radius: 2px 2px 0 0;
}
.gh-nav-link:hover,
.gh-nav-link.active { color: #fff; }
.gh-nav-link:hover::after,
.gh-nav-link.active::after { transform: scaleX(1); }

/* ── Category Dropdown in Nav ── */
.gh-nav-cat { position: relative; }
.gh-nav-cat-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px; font-size: 13px; font-weight: 700;
  color: var(--text-grey); background: none; border: none; cursor: pointer;
  transition: color 0.18s; white-space: nowrap;
}
.gh-nav-cat-btn:hover { color: #fff; }
.gh-nav-cat-btn i { color: var(--primary); }

.gh-cat-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  width: 230px; background: #1a1a1e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  z-index: 5000; list-style: none;
  display: none;
  animation: panelDrop 0.2s ease;
}
.gh-cat-menu.open { display: block; }
.gh-cat-menu li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; font-size: 13px; font-weight: 500;
  color: var(--text-grey); border-radius: 8px;
  transition: all 0.18s;
}
.gh-cat-menu li a i { color: var(--primary); width: 16px; text-align: center; }
.gh-cat-menu li a:hover { background: rgba(255,255,255,0.04); color: #fff; }

/* ── Photo Selection Highlight Link ── */
.gh-nav-photosec {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px; font-weight: 800;
  color: #fff !important;
  background: linear-gradient(90deg, #f9a825, #ff6f00);
  border-radius: 20px;
  margin: 6px 4px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(249,168,37,0.55), 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.22s;
  animation: photoSecPulse 2.5s ease-in-out infinite;
}
.gh-nav-photosec i { font-size: 11px; }
.gh-nav-photosec:hover {
  background: linear-gradient(90deg, #ffca28, #ff8f00);
  box-shadow: 0 0 22px rgba(249,168,37,0.80), 0 4px 14px rgba(0,0,0,0.35);
  transform: translateY(-1px);
  color: #fff !important;
}
@keyframes photoSecPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(249,168,37,0.55), 0 2px 8px rgba(0,0,0,0.3); }
  50%       { box-shadow: 0 0 26px rgba(249,168,37,0.85), 0 2px 8px rgba(0,0,0,0.3); }
}

/* Drawer version */
.gh-drawer-photosec {
  background: linear-gradient(90deg, rgba(249,168,37,0.15), rgba(255,111,0,0.15)) !important;
  color: #f9a825 !important;
  border-left: 3px solid #f9a825;
  font-weight: 700 !important;
}
.gh-drawer-photosec i { color: #f9a825 !important; }
.gh-drawer-photosec:hover { background: linear-gradient(90deg, rgba(249,168,37,0.25), rgba(255,111,0,0.25)) !important; color: #ffca28 !important; }

/* ── Sell Button ── */
.gh-nav-sell { margin-left: auto; flex-shrink: 0; padding: 0 0 0 12px; }
.gh-sell-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 16px; border-radius: 8px;
  font-size: 12px; font-weight: 800;
  color: var(--primary) !important;
  border: 1px solid rgba(255,107,53,0.25);
  background: rgba(255,107,53,0.06);
  transition: all 0.18s; white-space: nowrap;
}
.gh-sell-btn:hover { background: rgba(255,107,53,0.12); border-color: rgba(255,107,53,0.4); color: var(--primary); }

/* ══ MOBILE DRAWER ══════════════════════════════ */
.gh-drawer {
  position: fixed; top: 0; left: 0;
  width: 290px; height: 100vh;
  background: #141418;
  border-right: 1px solid rgba(255,255,255,0.07);
  z-index: 4500;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.gh-drawer.open { transform: translateX(0); }
.gh-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.gh-drawer-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.07); border: none; cursor: pointer;
  color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
}
.gh-drawer-close:hover { background: rgba(255,255,255,0.14); }
.gh-drawer-user {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.gh-drawer-av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.gh-drawer-uname { font-size: 14px; font-weight: 800; color: #fff; }
.gh-drawer-urole { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.gh-drawer-nav { padding: 8px 0; flex: 1; }
.gh-drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  color: var(--text-grey); transition: all 0.18s;
}
.gh-drawer-link i { color: var(--primary); width: 18px; text-align: center; font-size: 15px; }
.gh-drawer-link:hover { background: rgba(255,255,255,0.04); color: #fff; }
.gh-drawer-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 6px 10px; }
.gh-drawer-danger { color: #e63946 !important; }
.gh-drawer-danger i { color: #e63946 !important; }
.gh-drawer-sell { color: var(--primary) !important; }
.gh-drawer-sell i { color: var(--primary) !important; }

/* ══ TOAST ══════════════════════════════════════ */
.notif-toast {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: #1a1a1e;
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  min-width: 300px; max-width: 340px;
  pointer-events: all;
  animation: toastIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
  cursor: pointer;
}
.notif-toast.toast-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn  { from { opacity:0; transform:translateX(60px) scale(0.9); } to { opacity:1; transform:translateX(0) scale(1); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; transform:translateX(60px); } }
.notif-toast img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.notif-toast-body { flex: 1; min-width: 0; }
.notif-toast-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.notif-toast-msg { font-size: 11.5px; color: var(--text-grey); line-height: 1.4; }
.notif-toast-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; }
.notif-toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 2px 4px; align-self: flex-start; transition: color 0.18s; }
.notif-toast-close:hover { color: #fff; }
.notif-toast.toast-msg { border-left-color: #00b4d8; }

/* ── PickMemory Linked Account Badge ── */
.gh-pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  padding: 3px 9px;
  background: linear-gradient(90deg, #1a237e, #283593);
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  color: #90caf9 !important;
  text-decoration: none;
  letter-spacing: 0.3px;
  border: 1px solid rgba(144,202,249,0.3);
  transition: all 0.2s;
}
.gh-pm-badge:hover { background: linear-gradient(90deg,#283593,#1565c0); color:#fff !important; }
.gh-drawer-pm-badge {
  background: linear-gradient(90deg,rgba(26,35,126,0.15),rgba(40,53,147,0.15)) !important;
  color: #90caf9 !important;
  border-left: 3px solid #3949ab !important;
  font-weight: 700 !important;
}
.gh-drawer-pm-badge:hover { background: rgba(26,35,126,0.3) !important; }

/* ── Mobile Photo Selection Button ── */
.gh-mobile-photosec {
  display: none; /* hidden by default — desktop shows nav bar version */
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: linear-gradient(90deg, #f9a825, #ff6f00);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
  box-shadow: 0 0 12px rgba(249,168,37,0.6);
  animation: mobilePhotoGlow 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
.gh-mobile-photosec i { font-size: 10px; }
.gh-mobile-photosec:hover {
  background: linear-gradient(90deg, #ffca28, #ff8f00);
  color: #fff !important;
}
@keyframes mobilePhotoGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(249,168,37,0.55); }
  50%       { box-shadow: 0 0 20px rgba(249,168,37,0.90); }
}

/* ── RESPONSIVE & DYNAMIC ── */
@media (max-width: 1240px) {
  .gh-search-cat, .gh-search-divider { display: none !important; }
  .gh-search-wrap { max-width: 185px; min-width: 90px; }
  .gh-inline-link { padding: 5px 7px; font-size: 13px; }
  .gh-inline-nav { gap: 2px; }
}
@media (max-width: 1180px) {
  .gh-user-name { display: none !important; }
  .gh-chevron { display: none !important; }
  .gh-user-btn { padding: 3px !important; border-radius: 50% !important; }
  .gh-search-wrap { max-width: 145px !important; min-width: 80px !important; flex: 0 1 145px !important; }
  .gh-inline-link { padding: 5px 6px !important; font-size: 12px !important; gap: 4px !important; }
  .gh-left { gap: 10px; }
  .gh-logo-text { font-size: 17px; }
  .gh-icon-btn { width: 34px; height: 34px; font-size: 15px; }
}
@media (max-width: 1080px) {
  .gh-top .gh-container { padding: 0 12px; gap: 6px; }
  .gh-search-wrap { max-width: 125px !important; min-width: 70px !important; }
  .gh-inline-link { padding: 4px 5px !important; font-size: 11.5px !important; gap: 3px !important; }
  .gh-inline-nav { gap: 1px; }
  .gh-logo-text { font-size: 16.5px; }
  .gh-login-btn, .gh-register-btn { padding: 5px 9px; font-size: 12.5px; }
}
@media (max-width: 960px) {
  .gh-hamburger { display: flex; }
  .gh-inline-nav { display: none; }
  .gh-search-wrap { display: none; }
  .gh-mobile-search-btn { display: flex; }
  .gh-user-name { display: none; }
  .gh-register-btn { display: none; }
  .gh-nav-bar { display: none; }
  .gh-logo-text { font-size: 18px; }
  /* Show Photo Selection button on mobile */
  .gh-mobile-photosec { display: flex; }
  /* Hide the desktop nav version on mobile */
  .gh-nav-photosec { display: none !important; }
  .gh-mobile-photosec { display: none !important; }
}

/* ── Mobile header: prevent horizontal overflow WITHOUT clipping dropdowns or breaking position:sticky ── */
html, body { max-width: 100%; overflow-x: clip; }
/* gh-top must stay overflow:visible so dropdown panels show below it */
.gh-header { overflow-x: clip; overflow-y: visible; }
.gh-top    { overflow: visible; }
.gh-top .gh-container { overflow: visible; }

@media (max-width: 480px) {
  .gh-top .gh-container { gap: 4px; padding: 0 8px; height: 52px; }
  .gh-left { gap: 8px; min-width: 0; flex-shrink: 1; }
  .gh-actions { gap: 2px; flex-shrink: 0; flex-wrap: nowrap; }
  .gh-icon-btn { width: 30px; height: 30px; font-size: 13px; }
  .gh-logo i { display: none; }
  .gh-logo-badge { width: 23px; height: 23px; border-radius: 7px; }
  .gh-logo-badge svg { width: 13px; height: 13px; }
  .gh-drawer-logo-badge { width: 30px !important; height: 30px !important; border-radius: 9px !important; }
  .gh-drawer-logo-badge svg { width: 17px !important; height: 17px !important; }
  .gh-logo-text { font-size: 15px; }
  .gh-drawer-logo .gh-logo-text { font-size: 18px !important; }
  /* Shorten Photo Selection button label */
  .gh-mobile-photosec span { display: none; }
  .gh-mobile-photosec { padding: 6px 8px; border-radius: 50%; flex-shrink: 0; }
  .gh-mobile-photosec i { font-size: 13px; }
  /* Hide low-priority icons on small screens — still accessible via drawer */
  a.gh-icon-btn[href="/products/wishlist"] { display: none !important; }
  a.gh-icon-btn[href="/profiles/chat"],
  .gh-icon-wrap a[href="/profiles/chat"] { display: none !important; }
  /* Compact user avatar */
  .gh-user-btn { padding: 2px !important; border-radius: 50% !important; flex-shrink: 0; }
  .gh-user-av { width: 28px; height: 28px; }
  .gh-chevron { display: none; }
}

@media (max-width: 380px) {
  /* Extra small phones — also hide friend requests icon */
  #ghFrWrap { display: none !important; }
  .gh-top .gh-container { gap: 3px; padding: 0 6px; }
  .gh-left { gap: 5px; }
  .gh-logo { gap: 5px; }
  .gh-logo-badge { width: 21px; height: 21px; }
  .gh-logo-badge svg { width: 12px; height: 12px; }
  .gh-logo-text { font-size: 13.5px; }
  .gh-icon-btn { width: 28px; height: 28px; font-size: 12.5px; }
  .gh-user-av { width: 26px; height: 26px; }
  .gh-login-btn { padding: 5px 10px; font-size: 11.5px; }
}


