/* Shared site header (ccrusher1.com, /botdashboard/*, /u/). Loaded after each page's own <style>,
   so these header.cc-hdr rules win over the older per-page header rules. Navtabs 2026-10-12. */
html { scroll-padding-top: 84px; }
header.cc-hdr { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg, #0b0d12) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--text, #e8ecf4) 9%, transparent); }
header.cc-hdr .cc-hdr-in { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 14px; position: relative; min-height: 60px; }
header.cc-hdr .cc-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; color: inherit; }
header.cc-hdr .cc-logo { height: 24px; width: auto; display: block; }
header.cc-hdr .cc-page { color: var(--muted, #9aa3b8); font-weight: 600; font-size: .95rem; border-left: 1px solid var(--line, #2a3145); padding-left: 12px; white-space: nowrap; }
header.cc-hdr .cc-hdr-slot { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; justify-content: flex-end; }
header.cc-hdr #site-menu { margin-left: 4px; }
header.cc-hdr #site-menu .menu { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; align-items: center; margin: 0; padding: 0; }
header.cc-hdr #site-menu .menu a, header.cc-hdr #site-menu .theme-toggle { text-decoration: none; color: var(--muted, #9aa3b8); font: inherit; font-size: .9rem; font-weight: 500;
  padding: 7px 11px; border-radius: 999px; border: 1px solid transparent; background: none; cursor: pointer; white-space: nowrap; }
header.cc-hdr #site-menu .menu a:hover, header.cc-hdr #site-menu .theme-toggle:hover { color: var(--text, #e8ecf4); background: color-mix(in srgb, var(--text, #e8ecf4) 6%, transparent); }
header.cc-hdr #site-menu .menu a[aria-current="page"] { color: var(--text, #e8ecf4); border-color: var(--line, #2a3145); background: color-mix(in srgb, var(--accent, #0088ff) 14%, transparent); }
header.cc-hdr .nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; margin: 0 0 0 auto; flex-shrink: 0; order: 99;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--text, #e8ecf4) 12%, transparent);
  background: color-mix(in srgb, var(--text, #e8ecf4) 6%, transparent); color: var(--text, #e8ecf4); cursor: pointer; font: inherit; }
header.cc-hdr .nav-toggle:focus-visible { outline: 2px solid var(--accent, #0088ff); outline-offset: 2px; }
header.cc-hdr .nav-toggle-bars { display: flex; flex-direction: column; gap: 5px; width: 18px; }
header.cc-hdr .nav-toggle-bars span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
header.cc-hdr .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.cc-hdr .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
header.cc-hdr .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) { header.cc-hdr .cc-page { display: none; } }
@media (max-width: 767.98px) {
  header.cc-hdr .cc-hdr-in { padding: 8px 12px; gap: 10px; min-height: 56px; }
  header.cc-hdr .cc-logo { height: 20px; }
  header.cc-hdr .nav-toggle { display: inline-flex; }
  header.cc-hdr #site-menu { display: block; position: absolute; top: 100%; left: 0; right: 0; width: auto; margin: 0; padding: 8px 12px 14px;
    background: var(--bg-elev, #141824); border-bottom: 1px solid var(--line, #2a3145); box-shadow: var(--shadow, 0 18px 50px rgba(0,0,0,.35));
    max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
  header.cc-hdr #site-menu.is-open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
  header.cc-hdr #site-menu .menu { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 4px; width: 100%; }
  header.cc-hdr #site-menu .menu li { width: 100%; }
  header.cc-hdr #site-menu .menu a, header.cc-hdr #site-menu .theme-toggle { display: block; width: 100%; box-sizing: border-box; text-align: right;
    padding: 12px 14px; border-radius: 12px; font-size: 1rem; line-height: 1.25; }
  header.cc-hdr #site-menu .theme-toggle::after { content: "Toggle theme"; margin-left: 10px; color: var(--muted, #9aa3b8); font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) { header.cc-hdr .nav-toggle-bars span, header.cc-hdr #site-menu { transition: none !important; } }
/* Desktop: menu links on the LEFT right after the logo; only account/login items + theme on the right. */
@media (min-width: 768px) {
  header.cc-hdr .cc-hdr-in { column-gap: 2px; }
  header.cc-hdr .cc-brand { margin-right: 16px; }
  header.cc-hdr #site-menu, header.cc-hdr #site-menu .menu { display: contents; }
  header.cc-hdr #site-menu .menu > li { order: 1; list-style: none; }
  header.cc-hdr .cc-hdr-slot { order: 2; margin-left: auto; padding-left: 12px; flex: 0 1 auto; justify-content: flex-end; }
  header.cc-hdr #site-menu .menu > li.cc-theme-li { order: 3; margin-left: 6px; }
  header.cc-hdr .cc-hdr-slot:empty + .cc-hdr-row2, header.cc-hdr .cc-hdr-slot:empty { padding-left: 0; }
}
@media (max-width: 767.98px) {
  header.cc-hdr .cc-hdr-slot { flex: 1 1 auto; justify-content: flex-end; }
  header.cc-hdr .cc-hdr-slot .account { display: none; }
}
@media (min-width: 768px) {
  header.cc-hdr .cc-hdr-in { flex-wrap: nowrap; }
  header.cc-hdr #site-menu .menu > li { flex-shrink: 0; }
}
@media (min-width: 768px) and (max-width: 1365px) {
  header.cc-hdr .cc-brand { margin-right: 8px; }
  header.cc-hdr #site-menu .menu > li > a { padding: 7px 9px; }
}
header.cc-hdr #header-account[hidden] { display: none !important; }
header.cc-hdr .nt-pick[hidden] { display: none !important; }
/* Account stack: Discord + Twitch avatars layered like coins; click for the account dropdown. */
.cc-accts { position: relative; display: flex; align-items: center; }
.cc-stack { display: inline-flex; align-items: center; padding: 3px 6px 3px 3px; border-radius: 999px; cursor: pointer; font: inherit;
  border: 1px solid var(--line, #2a3145); background: color-mix(in srgb, var(--text, #e8ecf4) 5%, transparent); }
.cc-stack:hover { border-color: var(--muted, #9aa3b8); }
.cc-stack:focus-visible, .cc-acct-btn:focus-visible { outline: 2px solid var(--accent, #0088ff); outline-offset: 2px; }
.cc-stack-av, .cc-acct-av { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
  font-size: .85rem; font-weight: 800; color: #fff; box-sizing: border-box; }
.cc-stack-av { border: 2px solid var(--bg, #0b0d12); }
.cc-stack-av.dc, .cc-acct.dc .cc-acct-av { background: #5865f2; box-shadow: 0 0 0 2px #5865f2; }
.cc-stack-av.tw, .cc-acct.tw .cc-acct-av { background: #9146ff; box-shadow: 0 0 0 2px #9146ff; }
.cc-stack-av.tw { margin-left: -10px; z-index: 1; }
.cc-stack-av[data-state="out"], .cc-acct[data-state="out"] .cc-acct-av { background: color-mix(in srgb, var(--text, #e8ecf4) 10%, var(--bg, #0b0d12)); color: var(--muted, #9aa3b8); opacity: .6; }
.cc-stack-av.dc[data-state="out"], .cc-acct.dc[data-state="out"] .cc-acct-av { box-shadow: 0 0 0 2px color-mix(in srgb, #5865f2 55%, transparent); }
.cc-stack-av.tw[data-state="out"], .cc-acct.tw[data-state="out"] .cc-acct-av { box-shadow: 0 0 0 2px color-mix(in srgb, #9146ff 55%, transparent); }
.cc-stack-av img, .cc-acct-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-logo-ic { width: 17px; height: 17px; }
.cc-stack::after { content: ""; width: 0; height: 0; margin-left: 7px; border: 4px solid transparent; border-top-color: var(--muted, #9aa3b8); border-bottom-width: 0; }
.cc-acct-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 260px; padding: 6px;
  background: var(--bg-elev, #141824); border: 1px solid var(--line, #2a3145); border-radius: 14px; box-shadow: var(--shadow, 0 18px 50px rgba(0,0,0,.35)); }
.cc-acct-menu.is-open { display: grid; gap: 4px; }
.cc-acct { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; min-width: 0; }
.cc-acct:hover { background: color-mix(in srgb, var(--text, #e8ecf4) 5%, transparent); }
.cc-acct-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.cc-acct-name { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text, #e8ecf4); }
.cc-acct-pl { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.cc-acct.dc .cc-acct-pl { color: #8ea1ff; } .cc-acct.tw .cc-acct-pl { color: #c9a8ff; }
.cc-acct[data-state="out"] .cc-acct-pl { color: var(--muted, #9aa3b8); }
.cc-acct-btn { font: inherit; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  border: 1px solid var(--line, #2a3145); background: transparent; color: var(--muted, #9aa3b8); }
.cc-acct-btn.is-icon { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 10px; }
.cc-acct-btn.is-icon:hover { color: #ff6b6b; border-color: color-mix(in srgb, #ff6b6b 60%, transparent); background: color-mix(in srgb, #ff6b6b 10%, transparent); }
.cc-out-ic { width: 17px; height: 17px; }
.cc-acct.dc[data-state="out"] .cc-acct-btn { background: #5865f2; border-color: #5865f2; color: #fff; }
.cc-acct.tw[data-state="out"] .cc-acct-btn { background: #9146ff; border-color: #9146ff; color: #fff; }
@media (max-width: 767.98px) {
  header.cc-hdr .cc-hdr-slot { flex: 1 1 auto; justify-content: flex-end; }
  header.cc-hdr .cc-hdr-slot .account { display: none; }
  header.cc-hdr #site-menu .cc-stack { display: none; }
  header.cc-hdr #site-menu .cc-accts { display: block; }
  header.cc-hdr #site-menu .cc-acct-menu { display: grid; gap: 6px; position: static; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  header.cc-hdr #site-menu .cc-acct { border: 1px solid var(--line, #2a3145); border-radius: 12px; padding: 8px 10px; }
  header.cc-hdr #site-menu .cc-acct-btn.is-icon { width: 40px; height: 40px; }
  header.cc-hdr #site-menu .cc-accts-li { padding: 4px 0 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line, #2a3145); }
}
/* 8 nav links (Telegram added 2026-10-13): tighten between tablet and small desktop so links never run under the account stack. */
@media (min-width: 768px) and (max-width: 1099.98px) {
  header.cc-hdr .cc-hdr-in { padding-left: 12px; padding-right: 12px; }
  header.cc-hdr .cc-brand { margin-right: 4px; }
  header.cc-hdr .cc-logo { height: 20px; }
  header.cc-hdr #site-menu .menu > li > a { padding: 6px 6px; font-size: .82rem; }
  header.cc-hdr .cc-hdr-slot { padding-left: 6px; }
  header.cc-hdr #site-menu .menu > li.cc-theme-li { margin-left: 2px; }
}
@media (min-width: 768px) and (max-width: 899.98px) {
  header.cc-hdr .cc-logo { height: 16px; }
  header.cc-hdr #site-menu .menu > li > a { padding: 5px 4px; font-size: .76rem; }
}
