@import url('theme.css');

body {
  padding-top: 72px;
  font-family: var(--nav-font-body);
  --sidebar-width: 232px;
  --sidebar-collapsed-width: 52px;
  --sidebar-gap: 0px;
  --app-content-offset: calc(var(--sidebar-collapsed-width) + var(--sidebar-gap));
  padding-left: var(--app-content-offset);
}

body.menu-open {
  overflow: hidden;
}

body.sidebar-pinned {
  --app-content-offset: calc(var(--sidebar-width) + var(--sidebar-gap));
}

nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1100;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 36px);
  height: 64px;
  background:
    linear-gradient(180deg, rgba(10, 12, 17, 0.97) 0%, rgba(12, 15, 21, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: var(--sidebar-collapsed-width);
  z-index: 1005;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-pinned .app-sidebar {
  width: var(--sidebar-width);
}

.app-sidebar__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 8px 10px;
  border-radius: 0 16px 16px 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 17, 0.94) 0%, rgba(12, 15, 21, 0.91) 48%, rgba(9, 11, 16, 0.96) 100%);
  border-top: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 0;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.app-sidebar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.app-sidebar__header,
.app-sidebar__footer {
  position: relative;
  z-index: 1;
}

.app-sidebar__nav {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

body:not(.sidebar-pinned) .app-sidebar .app-sidebar__nav {
  padding-right: 0;
}

.app-sidebar__nav::-webkit-scrollbar {
  width: 6px;
}

.app-sidebar__nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: var(--nav-text);
  text-decoration: none;
}

.app-sidebar__brand-mark,
.sidebar-link__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-sidebar__brand-mark {
  background: radial-gradient(circle at 30% 30%, rgba(35, 211, 238, 0.18), rgba(5, 14, 39, 0.82) 70%);
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08), inset 0 0 24px rgba(56, 189, 248, 0.08);
}

.app-sidebar__brand-mark svg,
.sidebar-link__icon svg,
.sidebar-link__chevron svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-sidebar__brand-mark svg {
  color: #61f3dc;
}

.app-sidebar__brand-text {
  font-family: var(--nav-font-headline);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sidebar-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(211, 224, 245, 0.7);
  text-decoration: none;
  font-family: var(--nav-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  color: var(--nav-text);
  background: rgba(27, 64, 112, 0.36);
}

.sidebar-link:focus-visible {
  outline: 2px solid var(--nav-accent);
  outline-offset: 2px;
}

.sidebar-link.is-active {
  color: #eef7ff;
  background: linear-gradient(90deg, rgba(34, 100, 194, 0.78), rgba(24, 74, 138, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sidebar-link.is-accent,
.sidebar-link--sub.is-active {
  background: linear-gradient(90deg, rgba(31, 112, 94, 0.82), rgba(25, 83, 82, 0.56));
}

.sidebar-link__icon {
  color: rgba(148, 179, 214, 0.88);
}

.sidebar-link.is-active .sidebar-link__icon,
.sidebar-link:hover .sidebar-link__icon,
.sidebar-link:focus-visible .sidebar-link__icon {
  color: #5eead4;
}

.sidebar-link__label,
.sidebar-link__chevron {
  opacity: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sidebar-link__label {
  flex: 1;
  white-space: nowrap;
}

.sidebar-link__chevron {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, 0.9);
  transform: rotate(90deg);
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-group .sidebar-link--group-toggle {
  cursor: pointer;
}

.sidebar-group:not(.is-open) .sidebar-link__chevron {
  transform: rotate(0deg);
}

.sidebar-submenu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 33, 66, 0.68), rgba(13, 28, 55, 0.44));
  border: 1px solid rgba(98, 129, 173, 0.08);
}

.sidebar-context-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(98, 129, 173, 0.12);
}

.sidebar-context-group__title {
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.8);
}

.sidebar-page-link.is-active,
.sidebar-page-link.sidebar-page-link--accent {
  background: linear-gradient(90deg, rgba(31, 112, 94, 0.82), rgba(25, 83, 82, 0.56));
}

.sidebar-group:not(.is-open) .sidebar-submenu {
  display: none;
}

.sidebar-link--sub {
  min-height: 34px;
  padding-inline: 8px 10px;
  border-radius: 8px;
}

.sidebar-link--sub .sidebar-link__icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.sidebar-link--collapse {
  margin-top: auto;
  color: #d2deef;
  background: rgba(7, 18, 46, 0.7);
  cursor: pointer;
}

.sidebar-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link--quick {
  position: relative;
  width: 100%;
  height: auto;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  transform: none;
}

.sidebar-link--quick .picks-alert-badge {
  position: absolute;
  top: 7px;
  right: 10px;
}

.sidebar-link--quick:hover,
.sidebar-link--quick:focus-visible,
.sidebar-link--quick.is-active {
  transform: none;
}

.sidebar-link--theme {
  color: rgba(211, 224, 245, 0.7);
}

.sidebar-link--theme .theme-toggle__icon {
  width: 18px;
  height: 18px;
  background: transparent;
}

.sidebar-link--theme .theme-toggle__icon::before {
  width: 14px;
  height: 14px;
}

.sidebar-link__label--collapse {
  font-weight: 600;
}

body:not(.sidebar-pinned) .app-sidebar .app-sidebar__brand {
  justify-content: center;
}

body:not(.sidebar-pinned) .app-sidebar .app-sidebar__inner {
  padding-inline: 8px;
}

body:not(.sidebar-pinned) .app-sidebar .app-sidebar__brand-text,
body:not(.sidebar-pinned) .app-sidebar .sidebar-link__label,
body:not(.sidebar-pinned) .app-sidebar .sidebar-link__chevron {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  width: 0;
  overflow: hidden;
  flex: none;
}

body:not(.sidebar-pinned) .app-sidebar .sidebar-link,
body:not(.sidebar-pinned) .app-sidebar .sidebar-link--sub,
body:not(.sidebar-pinned) .app-sidebar .sidebar-link--collapse {
  justify-content: center;
  padding-inline: 0;
  min-height: 36px;
  gap: 0;
}

body:not(.sidebar-pinned) .app-sidebar .sidebar-submenu {
  gap: 6px;
  padding: 4px 0;
  align-items: center;
  background: transparent;
  border-color: transparent;
}

body:not(.sidebar-pinned) .app-sidebar .sidebar-link--sub {
  width: 36px;
  min-height: 36px;
  border-radius: 8px;
}

body:not(.sidebar-pinned) .app-sidebar .sidebar-context-group {
  gap: 6px;
  padding-top: 6px;
}

body:not(.sidebar-pinned) .app-sidebar .sidebar-context-group__title {
  opacity: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
}

body:not(.sidebar-pinned) .app-sidebar .sidebar-link__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

body:not(.sidebar-pinned) .app-sidebar .sidebar-group {
  gap: 6px;
}

body:not(.sidebar-pinned) .app-sidebar .sidebar-link.is-active,
body:not(.sidebar-pinned) .app-sidebar .sidebar-link.is-accent,
body:not(.sidebar-pinned) .app-sidebar .sidebar-link--sub.is-active {
  background: rgba(61, 130, 225, 0.18);
}

body:not(.sidebar-pinned) .app-sidebar .sidebar-quick-actions {
  gap: 6px;
}

body:not(.sidebar-pinned) .app-sidebar .sidebar-link--quick .picks-alert-badge {
  top: -2px;
  right: -2px;
}

body {
  padding-top: 64px;
}

main,
body > .container,
body > .container-fluid,
body > .auth-container,
body > .background-glow,
body > .particle-container {
  transition: margin 0.28s ease, transform 0.28s ease, width 0.28s ease;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 20px);
}

/* ── Logo ─────────────────────────────── */
.logo a {
  display: inline-flex;
  align-items: center;
}

.logo__mark {
  display: none;
  line-height: 0;
  overflow: hidden;
  width: 36px;
  height: 54px;
  align-items: center;
}

.logo__mark-img {
  display: block;
  width: 158px;
  height: auto;
  max-width: none;
  transform: translate(-66px, 3px);
}

.logo__img {
  height: 74px;
  width: auto;
  display: none;
  transition: opacity 0.2s ease;
}

.logo__img--dark {
  display: block;
}

html[data-theme='light'] .logo__img--dark {
  display: none;
}

html[data-theme='light'] .logo__img--light {
  display: block;
}

.logo a:hover .logo__img {
  opacity: 0.85;
}

/* ── Sport selector ──────────────────── */
.sport-select {
  position: relative;
}

.sport-select__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nav-font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--nav-border);
  background: var(--surface-nav-strong);
  color: var(--nav-text);
  cursor: default;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.sport-select__label:hover,
.sport-select__label:focus {
  border-color: var(--nav-accent);
  background: var(--surface-overlay);
  outline: none;
}

/* ── Search toggle ───────────────────── */
.nav-search-shell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-search-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--nav-border);
  background: var(--surface-nav-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-text-muted);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  flex-shrink: 0;
}

.nav-search-toggle:hover,
.nav-search-shell:focus-within .nav-search-toggle,
.nav-search-shell.is-open .nav-search-toggle {
  border-color: var(--nav-accent);
  background: var(--nav-accent-soft);
  color: var(--nav-accent);
}

.nav-search-toggle:focus-visible {
  outline: 2px solid var(--nav-accent);
  outline-offset: 2px;
}

.nav-search-toggle__icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-search-toggle__icon svg {
  display: block;
  width: 17px;
  height: 17px;
}

/* Search expand */
.nav-search-shell .desktop-search-container {
  flex: 0 0 0;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.nav-search-shell.is-open .desktop-search-container,
.nav-search-shell:hover .desktop-search-container,
.nav-search-shell:focus-within .desktop-search-container {
  flex: 0 0 clamp(200px, 24vw, 300px);
  max-width: clamp(200px, 24vw, 300px);
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
}

.desktop-search-container {
  position: relative;
}

/* ── Search input ────────────────────── */
.nav-search-container {
  width: 100%;
  position: relative;
}

.nav-search-container .twitter-typeahead,
.nav-search-container .player-search-input,
.nav-search-container .tt-input {
  width: 100% !important;
}

.nav-search-container .player-search-input,
.nav-search-container .tt-input {
  border: 1px solid var(--nav-border);
  box-sizing: border-box;
  background-color: var(--surface-nav-strong);
  color: var(--nav-text);
  font-family: var(--nav-font-body);
  font-size: 0.9rem;
  padding: 0.58rem 1rem 0.58rem 2.5rem;
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='20' y1='20' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.9rem center;
  background-size: 16px 16px;
}

.nav-search-container .player-search-input:-webkit-autofill,
.nav-search-container .tt-input:-webkit-autofill {
  box-shadow: 0 0 0 1000px var(--surface-overlay) inset;
  -webkit-text-fill-color: var(--nav-text);
}

.nav-search-container .player-search-input::placeholder,
.nav-search-container .tt-input::placeholder {
  color: var(--nav-text-muted);
  opacity: 0.6;
}

.nav-search-container .player-search-input:focus,
.nav-search-container .tt-input:focus {
  border-color: var(--nav-accent);
  background-color: var(--surface-overlay);
  box-shadow: 0 0 0 3px var(--nav-accent-soft);
}

.nav-search-container .twitter-typeahead {
  display: block !important;
}

.nav-search-container .tt-menu {
  margin-top: 6px;
  width: 100%;
  min-width: 220px;
  background: var(--surface-overlay);
  border: 1px solid var(--nav-border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24), 0 0 0 1px var(--nav-border);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1300;
}

.nav-search-container .tt-suggestion {
  padding: 0.75rem 1rem;
  display: block;
  color: var(--nav-text);
  font-family: var(--nav-font-body);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.12s ease;
  cursor: pointer;
}

.nav-search-container .tt-suggestion:last-child {
  border-bottom: none;
}

.nav-search-container .tt-suggestion:hover,
.nav-search-container .tt-suggestion.tt-cursor {
  background: var(--nav-accent-soft);
  color: var(--nav-text);
}

.nav-search-container .tt-dataset .tt-empty-message,
.nav-search-container .tt-dataset .tt-pending-message {
  padding: 0.75rem 1rem;
  color: var(--nav-text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ── Theme toggle ────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--nav-border);
  background: var(--surface-nav-strong);
  color: var(--nav-text);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-family: var(--nav-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--nav-accent);
  background: var(--nav-accent-soft);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--nav-accent);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--nav-accent-soft);
  font-size: 0; /* hide D/L text, use CSS icon */
  position: relative;
  flex-shrink: 0;
}

.theme-toggle__icon::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* Dark theme → show moon icon */
html[data-theme='dark'] .theme-toggle__icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
}

/* Light theme → show sun icon */
html[data-theme='light'] .theme-toggle__icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cline x1='12' y1='2' x2='12' y2='5'/%3E%3Cline x1='12' y1='19' x2='12' y2='22'/%3E%3Cline x1='2' y1='12' x2='5' y2='12'/%3E%3Cline x1='19' y1='12' x2='22' y2='12'/%3E%3Cline x1='4.93' y1='4.93' x2='7.05' y2='7.05'/%3E%3Cline x1='16.95' y1='16.95' x2='19.07' y2='19.07'/%3E%3Cline x1='4.93' y1='19.07' x2='7.05' y2='16.95'/%3E%3Cline x1='16.95' y1='7.05' x2='19.07' y2='4.93'/%3E%3C/svg%3E");
}

/* Quick-rail theme toggle icon inherits theme-toggle__icon styles above */
.quick-rail-btn__icon.theme-toggle__icon {
  background: transparent;
  width: 20px;
  height: 20px;
}

.quick-rail-btn__icon.theme-toggle__icon::before {
  width: 14px;
  height: 14px;
}

/* ── Desktop nav links ───────────────── */
.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav-links a {
  color: var(--nav-text-muted);
  text-decoration: none;
  font-family: var(--nav-font-headline);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.desktop-nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--nav-accent);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.desktop-nav-links a:hover,
.desktop-nav-links a:focus,
.desktop-nav-links a.active {
  color: var(--nav-text);
}

.desktop-nav-links a:hover::after,
.desktop-nav-links a:focus::after,
.desktop-nav-links a.active::after {
  transform: scaleX(1);
}

.desktop-nav-links a:focus-visible {
  outline: 2px solid var(--nav-accent);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Account dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  min-width: 164px;
  background: var(--surface-overlay);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  z-index: 1250;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--nav-text-muted);
  font-family: var(--nav-font-body);
  font-size: 0.88rem;
  transition: background 0.12s ease, color 0.12s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--nav-accent-soft);
  color: var(--nav-text);
}

/* ── Hamburger ───────────────────────── */
.hamburger {
  display: none;
  width: 38px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--nav-border);
  background: var(--surface-nav-strong);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  flex-shrink: 0;
}

.hamburger span {
  width: 18px;
  height: 2px;
  display: block;
  background: var(--nav-text);
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, width 0.3s ease;
  transform-origin: center;
}

.hamburger:hover,
.hamburger:focus-visible {
  background: var(--nav-accent-soft);
  border-color: var(--nav-accent);
}

.hamburger:focus-visible {
  outline: 2px solid var(--nav-accent);
  outline-offset: 2px;
}

/* Hamburger → X animation when active */
.hamburger.active {
  border-color: var(--nav-accent);
  background: var(--nav-accent-soft);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile overlay ──────────────────── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Mobile menu ─────────────────────── */
@keyframes mobileMenuItemIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100dvh;
  background:
    linear-gradient(160deg, rgba(10, 16, 30, 0.99) 0%, rgba(6, 9, 18, 0.99) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    -32px 0 80px rgba(0, 0, 0, 0.6),
    -1px 0 0 rgba(56, 189, 248, 0.08);
  z-index: 1200;
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Accent stripe at top */
.mobile-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nav-accent) 0%, transparent 80%);
  z-index: 2;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Stagger entrance for list items */
.mobile-menu.active ul li {
  opacity: 0;
  animation: mobileMenuItemIn 0.3s ease forwards;
}
.mobile-menu.active ul li:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu.active ul li:nth-child(2) { animation-delay: 0.13s; }
.mobile-menu.active ul li:nth-child(3) { animation-delay: 0.18s; }
.mobile-menu.active ul li:nth-child(4) { animation-delay: 0.22s; }
.mobile-menu.active ul li:nth-child(5) { animation-delay: 0.26s; }
.mobile-menu.active ul li:nth-child(6) { animation-delay: 0.30s; }
.mobile-menu.active ul li:nth-child(7) { animation-delay: 0.34s; }
.mobile-menu.active ul li:nth-child(8) { animation-delay: 0.38s; }

/* Close button */
.mobile-menu .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--nav-text-muted);
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  z-index: 3;
}

.mobile-menu .close-btn:hover {
  color: var(--nav-text);
  background: var(--nav-accent-soft);
  border-color: var(--nav-accent);
}

/* List container */
/* Search wrapper sits outside <ul> so typeahead dropdown isn't clipped */
.mobile-search-wrapper {
  padding: 68px 18px 12px;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0 0 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}
.mobile-menu ul::-webkit-scrollbar { display: none; }

/* All list items – no dividers */
.mobile-menu ul li {
  border-bottom: none;
  padding: 0;
}

.mobile-menu ul li:last-child {
  border-bottom: none;
}

/* ── Sport switcher ── */
.mobile-menu ul li.mobile-sport-switcher {
  padding: 0 18px 12px;
}

/* ── Nav links ── */
.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 15px 22px;
  color: rgba(241, 245, 249, 0.75);
  text-decoration: none;
  font-family: var(--nav-font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.18s ease, background 0.18s ease, padding-left 0.18s ease;
}

.mobile-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: var(--nav-accent);
  border-radius: 0 3px 3px 0;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu a::after {
  content: '›';
  margin-left: auto;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: var(--nav-accent);
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  color: var(--nav-text);
  background: rgba(56, 189, 248, 0.06);
  padding-left: 28px;
}

.mobile-menu a:hover::before,
.mobile-menu a:focus::before {
  transform: translateY(-50%) scaleY(1);
}

.mobile-menu a:hover::after,
.mobile-menu a:focus::after {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu a.active {
  color: var(--nav-accent);
}

/* Divider before nav links (between theme toggle li and first nav link) */
.mobile-menu ul li:has(a[href]):first-of-type {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Search container */
.mobile-search-wrapper .nav-search-container {
  width: 100%;
}

.mobile-menu .player-search-input,
.mobile-menu .tt-input {
  font-size: 0.9rem;
}

/* ── Mobile sport switcher ───────────── */
.mobile-sport-switcher {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-sport-switcher__label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nav-text-muted);
  font-weight: 600;
  padding-left: 2px;
}

.mobile-sport-switcher__value {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--nav-text);
  font-family: var(--nav-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: default;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mobile-sport-switcher__value:hover,
.mobile-sport-switcher__value:focus {
  border-color: var(--nav-accent);
  background: rgba(56, 189, 248, 0.06);
  outline: none;
}

/* Mobile theme toggle */
.theme-toggle--mobile {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: calc(100% - 36px);
  margin: 0 18px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 11px 16px;
  gap: 10px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.theme-toggle--mobile:hover {
  background: var(--nav-accent-soft);
  border-color: var(--nav-accent);
}

/* Light mode overrides for mobile menu */
html[data-theme='light'] .mobile-menu {
  background: linear-gradient(160deg, rgba(248, 250, 255, 0.99) 0%, rgba(241, 245, 252, 0.99) 100%);
  border-left-color: rgba(15, 23, 42, 0.1);
  box-shadow: -32px 0 80px rgba(0, 0, 0, 0.18);
}

html[data-theme='light'] .mobile-menu::before {
  background: linear-gradient(90deg, var(--nav-accent) 0%, transparent 80%);
}

html[data-theme='light'] .mobile-menu .close-btn {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
}

html[data-theme='light'] .mobile-menu a {
  color: rgba(15, 23, 42, 0.65);
}

html[data-theme='light'] .mobile-menu a:hover {
  color: var(--nav-text);
  background: rgba(37, 99, 235, 0.06);
}

html[data-theme='light'] .mobile-menu ul li:has(a[href]):first-of-type {
  border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme='light'] .mobile-sport-switcher__value {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme='light'] .theme-toggle--mobile {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}

/* ── Responsive breakpoints ──────────── */
@media (max-width: 960px) {
  body {
    padding-left: 0;
  }

  .app-sidebar {
    display: none;
  }

  .theme-toggle:not(.theme-toggle--mobile) {
    display: none;
  }

  .theme-toggle--mobile {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .desktop-search-container {
    display: none;
  }

  .desktop-nav-links {
    display: none;
  }

  .sport-select {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 560px) {
  nav {
    padding: 0 16px;
    height: 58px;
  }

  body {
    padding-top: 58px;
  }

  .logo__mark {
    display: inline-flex;
  }

  .logo__mark-img {
    width: 150px;
    transform: translate(-63px, 3px);
  }

  .logo__img {
    display: none !important;
  }

  .mobile-search-wrapper {
    padding-top: 62px;
  }
}

@media (min-width: 961px) and (max-width: 1180px) {
  body {
    --sidebar-width: 220px;
    --sidebar-collapsed-width: 52px;
  }
}

@media (max-width: 375px) {
  nav {
    padding: 0 14px;
  }

  .logo__mark-img {
    width: 140px;
    transform: translate(-58px, 3px);
  }

  .logo__mark {
    width: 34px;
    height: 50px;
  }
}

/* ── Override Typeahead.js inline bg injected at init time (both theme directions) ── */
html[data-theme='light'] .nav-search-container .player-search-input,
html[data-theme='light'] .nav-search-container .tt-input,
html[data-theme='light'] .nav-search-container .tt-hint {
  background-color: var(--surface-nav-strong) !important;
  color: var(--nav-text) !important;
  border-color: var(--nav-border) !important;
}

html[data-theme='dark'] .nav-search-container .player-search-input,
html[data-theme='dark'] .nav-search-container .tt-input,
html[data-theme='dark'] .nav-search-container .tt-hint {
  background-color: var(--surface-nav-strong) !important;
  color: var(--nav-text) !important;
  border-color: var(--nav-border) !important;
}

html[data-theme='light'] .app-sidebar__inner {
  background:
    linear-gradient(180deg, rgba(236, 244, 255, 0.94) 0%, rgba(223, 234, 249, 0.94) 52%, rgba(239, 245, 255, 0.96) 100%);
  border-color: rgba(71, 85, 105, 0.10);
  box-shadow:
    0 8px 20px rgba(148, 163, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme='light'] nav {
  background:
    linear-gradient(180deg, rgba(237, 243, 252, 0.96) 0%, rgba(228, 236, 248, 0.94) 100%);
  border-bottom-color: rgba(71, 85, 105, 0.12);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.72);
}

html[data-theme='light'] .app-sidebar::before {
  background: rgba(71, 85, 105, 0.12);
}

html[data-theme='light'] .app-sidebar__brand-mark {
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.85) 68%);
  border-color: rgba(37, 99, 235, 0.14);
}

html[data-theme='light'] .sidebar-link {
  color: rgba(30, 41, 59, 0.72);
}

html[data-theme='light'] .sidebar-link .sidebar-link__icon {
  color: rgba(71, 85, 105, 0.72);
}

html[data-theme='light'] .sidebar-link:hover .sidebar-link__icon,
html[data-theme='light'] .sidebar-link:focus-visible .sidebar-link__icon {
  color: rgba(15, 23, 42, 0.88);
}

html[data-theme='light'] .sidebar-link:hover,
html[data-theme='light'] .sidebar-link:focus-visible {
  background: rgba(191, 219, 254, 0.48);
}

html[data-theme='light'] .sidebar-submenu {
  background: linear-gradient(180deg, rgba(226, 236, 248, 0.92), rgba(235, 242, 251, 0.84));
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme='light'] .sidebar-context-group {
  border-top-color: rgba(148, 163, 184, 0.22);
}

html[data-theme='light'] .sidebar-context-group__title {
  color: rgba(71, 85, 105, 0.82);
}

html[data-theme='light'] .sidebar-link--collapse {
  background: rgba(226, 236, 248, 0.84);
}

/* ═══════════════════════════════════════════════════
   ELITE SIDEBAR — new elements & behaviors
   ═══════════════════════════════════════════════════ */

/* ── Section labels ──────────────────────────────── */
.sidebar-section-label {
  display: block;
  padding: 12px 10px 4px;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.45);
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.18s ease, height 0.18s ease, padding 0.18s ease;
  pointer-events: none;
  user-select: none;
}

/* First section label needs no top padding */
.app-sidebar__nav > .sidebar-section-label:first-child {
  padding-top: 4px;
}

/* ── Dividers ─────────────────────────────────────── */
.sidebar-divider {
  height: 1px;
  margin: 6px 8px;
  background: rgba(148, 163, 184, 0.1);
  border: none;
  flex-shrink: 0;
}

/* ── Nav links (primary navigation items) ─────────── */
.sidebar-link--nav {
  position: relative;
  text-decoration: none;
}

.sidebar-link--nav.is-active {
  color: var(--nav-text);
  background: rgba(56, 189, 248, 0.09);
}

.sidebar-link--nav.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 54%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--nav-accent);
}

.sidebar-link--nav.is-active .sidebar-link__icon {
  color: var(--nav-accent);
}

/* ── Collapse button: rotate icon when expanded ──── */
body.sidebar-pinned .sidebar-collapse-icon {
  transform: scaleX(-1);
}

.sidebar-collapse-icon {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Collapsed state: hide section labels + dividers */
body:not(.sidebar-pinned) .app-sidebar .sidebar-section-label {
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
}

body:not(.sidebar-pinned) .app-sidebar .sidebar-divider {
  margin: 4px 6px;
}

/* ── Sidebar footer layout ───────────────────────── */
.app-sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

/* ── Floating tooltip (JS-driven) ────────────────── */
.sidebar-tooltip {
  position: fixed;
  z-index: 2000;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.96);
  color: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 5px 10px;
  border-radius: 8px;
  font-family: var(--nav-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.04);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.12s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sidebar-tooltip.is-visible {
  opacity: 1;
}

/* ── Desktop layout adjustments ─────────── */
@media (min-width: 961px) {
  .desktop-nav-links {
    display: flex;
  }

  /* Align logo V with sidebar center — stays fixed regardless of sidebar state */
  nav {
    padding-left: 3px;
  }

  /* Always-visible search bar — hide toggle, show input permanently */
  .nav-search-toggle {
    display: none;
  }

  .nav-search-shell .desktop-search-container {
    flex: 0 0 clamp(180px, 16vw, 240px);
    max-width: clamp(180px, 16vw, 240px);
    opacity: 1;
    pointer-events: auto;
    overflow: visible;
  }
}

/* ── Light mode overrides for new elements ─────── */
html[data-theme='light'] .sidebar-section-label {
  color: rgba(71, 85, 105, 0.55);
}

html[data-theme='light'] .sidebar-divider {
  background: rgba(71, 85, 105, 0.1);
}

html[data-theme='light'] .sidebar-link--nav.is-active {
  background: rgba(37, 99, 235, 0.08);
  color: rgba(15, 23, 42, 0.9);
}

html[data-theme='light'] .sidebar-link--nav.is-active::before {
  background: var(--nav-accent);
}

html[data-theme='light'] .sidebar-link--nav.is-active .sidebar-link__icon {
  color: var(--nav-accent);
}

html[data-theme='light'] .sidebar-tooltip {
  background: rgba(248, 250, 252, 0.98);
  color: #0f172a;
  border-color: rgba(71, 85, 105, 0.2);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(255,255,255,0.8);
}

/* ── Mobile inline search overlay ───────────────────────────────── */
.mobile-nav-search-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background:
    linear-gradient(180deg, rgba(10, 12, 17, 0.97) 0%, rgba(12, 15, 21, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Only show overlay mechanism on mobile */
@media (min-width: 961px) {
  .mobile-nav-search-overlay {
    display: none;
  }
}

nav.is-mobile-search-open .mobile-nav-search-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-search-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--nav-border);
  background: var(--surface-nav-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--nav-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.mobile-nav-search-back:hover,
.mobile-nav-search-back:focus-visible {
  border-color: var(--nav-accent);
  color: var(--nav-accent);
}

.mobile-nav-search-back:focus-visible {
  outline: 2px solid var(--nav-accent);
  outline-offset: 2px;
}

.mobile-nav-search-input-wrap {
  flex: 1;
  min-width: 0;
}

.mobile-nav-search-container {
  width: 100%;
}

/* ── Nav user area (top-right auth, desktop only) ───────────────── */
.nav-user-area {
  display: none;
  align-items: center;
}

@media (min-width: 961px) {
  .nav-user-area {
    display: flex;
  }
}

.nav-user-menu {
  position: relative;
}

.nav-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.22) 0%, rgba(31, 111, 235, 0.1) 100%);
  border: 1.5px solid rgba(31, 111, 235, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nav-font-headline);
  font-size: 13px;
  font-weight: 700;
  color: #90b8ff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  letter-spacing: 0.02em;
}

.nav-avatar-btn:hover,
.nav-user-menu:focus-within .nav-avatar-btn {
  border-color: rgba(31, 111, 235, 0.65);
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.32) 0%, rgba(31, 111, 235, 0.16) 100%);
  color: #b8d0ff;
}

.nav-user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  padding: 10px 0 0;
  background: transparent;
  z-index: 1200;
}

.nav-user-dropdown::before {
  content: '';
  display: block;
  position: absolute;
  inset: 10px 0 0;
  background: rgba(16, 20, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
}

.nav-user-menu:hover .nav-user-dropdown,
.nav-user-menu:focus-within .nav-user-dropdown {
  display: block;
}

.nav-user-dropdown-email {
  padding: 9px 12px 8px;
  font-size: 11.5px;
  font-family: var(--nav-font-body);
  color: var(--nav-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nav-user-dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  text-decoration: none;
  font-family: var(--nav-font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--nav-text-muted);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  box-sizing: border-box;
}

.nav-user-dropdown-item:hover,
.nav-user-dropdown-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--nav-text);
  outline: none;
}

.nav-user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 4px 0;
}

.nav-user-dropdown-item--danger:hover,
.nav-user-dropdown-item--danger:focus-visible {
  background: rgba(220, 38, 38, 0.1);
  color: #ff8a8a;
}

/* Sign in button */
.nav-signin-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: rgba(31, 111, 235, 0.1);
  border: 1px solid rgba(31, 111, 235, 0.28);
  border-radius: 8px;
  color: #7eb3ff;
  font-family: var(--nav-font-body);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-signin-btn:hover {
  background: rgba(31, 111, 235, 0.18);
  border-color: rgba(31, 111, 235, 0.48);
  color: #a8ccff;
}

/* Light mode overrides */
html[data-theme='light'] .nav-avatar-btn {
  background: rgba(29, 78, 216, 0.08);
  border-color: rgba(29, 78, 216, 0.28);
  color: #2563eb;
}

html[data-theme='light'] .nav-avatar-btn:hover,
html[data-theme='light'] .nav-user-menu:focus-within .nav-avatar-btn {
  background: rgba(29, 78, 216, 0.14);
  border-color: rgba(29, 78, 216, 0.45);
  color: #1d4ed8;
}

html[data-theme='light'] .nav-user-dropdown::before {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
}

html[data-theme='light'] .nav-user-dropdown-email {
  color: #64748b;
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme='light'] .nav-user-dropdown-item {
  color: #475569;
}

html[data-theme='light'] .nav-user-dropdown-item:hover,
html[data-theme='light'] .nav-user-dropdown-item:focus-visible {
  background: rgba(15, 23, 42, 0.05);
  color: #1f2937;
}

html[data-theme='light'] .nav-user-dropdown-divider {
  background: rgba(15, 23, 42, 0.08);
}

html[data-theme='light'] .nav-user-dropdown-item--danger:hover,
html[data-theme='light'] .nav-user-dropdown-item--danger:focus-visible {
  background: rgba(220, 38, 38, 0.06);
  color: #dc2626;
}

html[data-theme='light'] .nav-signin-btn {
  background: rgba(29, 78, 216, 0.07);
  border-color: rgba(29, 78, 216, 0.22);
  color: #2563eb;
}

html[data-theme='light'] .nav-signin-btn:hover {
  background: rgba(29, 78, 216, 0.12);
  border-color: rgba(29, 78, 216, 0.38);
  color: #1d4ed8;
}

html[data-theme='light'] .mobile-nav-search-overlay {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.97) 0%, rgba(241, 245, 249, 0.96) 100%);
}
