/* ═══════════════════════════════════════════════════════════════════
   Minesweeper.now - Main Stylesheet
   Dark theme inspired by modern gaming platforms
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:       #0f0e17;
  --bg-surface:    #1a1828;
  --bg-card:       #221f35;
  --bg-card-hover: #2a2740;
  --bg-sidebar:    #13112a;
  --bg-topbar:     #1a1828;
  --border:        #2d2b45;
  --border-light:  #3a3756;

  --accent:        #7c3aed;
  --accent-hover:  #6d28d9;
  --accent-light:  #a78bfa;
  --accent-glow:   rgba(124, 58, 237, 0.35);

  --cyan:          #06b6d4;
  --cyan-hover:    #0891b2;
  --green:         #22c55e;
  --red:           #ef4444;
  --orange:        #f97316;
  --yellow:        #eab308;
  --gold:          #f59e0b;

  --text-primary:   #f4f3ff;
  --text-secondary: #d4d2f0;
  --text-muted:     #c0bedd;

  --sidebar-w:     240px;
  --sidebar-w-col: 64px;
  --topbar-h:      60px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-popup:  0 8px 40px rgba(0,0,0,0.6);

  --transition: 150ms ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

body.light-mode {
  --bg-base:       #f0f2f8;
  --bg-surface:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f5f3ff;
  --bg-sidebar:    #f7f5ff;
  --bg-topbar:     #ffffff;
  --border:        #e2e0f0;
  --border-light:  #d0cde8;
  --text-primary:  #12101f;
  --text-secondary:#3d3a62;
  --text-muted:    #5a5780;
}

/* Light-mode overrides */
body.light-mode .topbar {
  border-bottom: 1px solid #e2e0f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
body.light-mode .topbar-search input {
  background: #f0f2f8;
  border-color: #e2e0f0;
}
body.light-mode .topbar-icon-btn:hover {
  background: #f0eeff;
}
body.light-mode .sidebar {
  border-right: 1px solid #e2e0f0;
  box-shadow: 2px 0 8px rgba(124,58,237,0.04);
}
body.light-mode .sidebar-label {
  color: #7c3aed;
  opacity: 0.65;
}
body.light-mode .sidebar-link {
  color: #3d3a62;
}
body.light-mode .sidebar-link:hover {
  background: #ece8ff;
  color: #12101f;
}
body.light-mode .sidebar-link.active {
  background: rgba(124,58,237,0.1);
  color: #7c3aed;
}
body.light-mode .sidebar-link.active .sidebar-icon {
  color: #7c3aed;
}
body.light-mode .sidebar-section {
  border-bottom-color: #e8e5f5;
}
body.light-mode .sidebar-edge-toggle {
  color: #5a5780;
  background: #f7f5ff;
  border-color: #cfc8eb;
  box-shadow: 0 4px 14px rgba(73, 53, 142, 0.18);
}
body.light-mode .sidebar-edge-toggle:hover {
  background: #ddd6ff;
  color: #12101f;
  border-color: #7c3aed;
}
body.light-mode .card {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
body.light-mode .hero-card {
  background: linear-gradient(135deg, #ede8ff 0%, #f7f5ff 100%);
  border-color: #d8d3f0;
}
body.light-mode .hero-title { color: #12101f; }
body.light-mode .hero-subtitle { color: #5a5780; }
body.light-mode .mode-card-thumb {
  background: linear-gradient(135deg, #ede8ff 0%, #ddd6ff 100%) !important;
}
body.light-mode .mode-card-thumb::after {
  background: linear-gradient(to top, rgba(255,255,255,0.3) 0%, transparent 60%);
}
body.light-mode .mode-card {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
body.light-mode .logo-text .accent-light,
body.light-mode .topbar-logo .logo-text span { color: #7c3aed; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* Contextual links must remain distinguishable without relying on colour.
   Buttons and linked cards keep their component styling. */
#main-content p a:not(.btn):not(.card-link),
#main-content li a:not(.btn):not(.card-link),
#main-content dd a:not(.btn):not(.card-link),
#main-content td a:not(.btn):not(.card-link) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ══════════════════════════════════════
   LAYOUT SHELL
   ══════════════════════════════════════ */

.app-shell { display: flex; min-height: 100vh; }

/* ── Topbar ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 100;
  gap: 12px;
}
.topbar.has-breadcrumb { border-bottom: 0; }

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: var(--sidebar-w-col);
}

.topbar-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
}

.topbar-logo .logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.topbar-menu-toggle {
  display: none;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background var(--transition);
}
.topbar-menu-toggle:hover { background: var(--bg-card); color: var(--text-primary); }

.topbar-search {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.topbar-search input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px 9px 42px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
}
.topbar-search input::placeholder { color: var(--text-muted); }
.topbar-search input:focus { border-color: var(--accent); }
.topbar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.topbar-icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  position: relative;
  transition: background var(--transition), color var(--transition);
}
.topbar-icon-btn:hover { background: var(--bg-card); color: var(--text-primary); }
.topbar-icon-btn[aria-expanded="true"] {
  background: rgba(124, 58, 237, 0.14);
  color: var(--accent-light);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.2);
}

.nav-trigger {
  overflow: visible;
  border: 1px solid transparent;
  isolation: isolate;
}
.nav-trigger-glyph {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-disclosure {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: #d8d2f8;
  background: linear-gradient(145deg, #363052, #1d1932);
  border: 1px solid rgba(167, 139, 250, .34);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(4, 3, 12, .48), inset 0 1px rgba(255, 255, 255, .1);
  transition: transform 190ms cubic-bezier(.2,.8,.2,1), color 190ms ease, border-color 190ms ease, background 190ms ease;
  transform-origin: center;
  pointer-events: none;
}
.nav-disclosure svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[aria-expanded="true"] > .nav-disclosure {
  color: #fff;
  background: linear-gradient(145deg, var(--accent), #5b21b6);
  border-color: rgba(255, 255, 255, .28);
  transform: rotate(180deg);
}
.nav-trigger[aria-expanded="true"] {
  border-color: rgba(167, 139, 250, .24);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .08), inset 0 0 0 1px rgba(167, 139, 250, .08);
}

.topbar-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 16px; height: 16px;
  background: var(--red);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-topbar);
}

.btn-signup {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-signup:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn-login {
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-login:hover { background: var(--accent-hover); box-shadow: 0 0 16px var(--accent-glow); }

.user-avatar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.user-avatar-btn:hover { border-color: var(--accent-light); }
.user-avatar-btn[aria-expanded="true"] {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* ── Sidebar ── */
.mobile-menu-header,
.mobile-menu-quick { display: none; }

.sidebar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 90;
  transition: width var(--transition);
  padding-bottom: 16px;
}
.sidebar::-webkit-scrollbar { display: none; width: 0; height: 0; }

.sidebar.collapsed { width: var(--sidebar-w-col); }
.sidebar.collapsed .sidebar-link { justify-content: center; padding: 9px 0; margin: 1px 8px; }
.sidebar.collapsed .sidebar-link .sidebar-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.sidebar.collapsed .sidebar-link.active .sidebar-icon { background: rgba(124, 58, 237, 0.15); }
.sidebar.collapsed .sidebar-link.active { background: none; }

.sidebar-section {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-section:last-child { border-bottom: none; }

.sidebar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  padding: 12px 16px 6px;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0.7;
}
.sidebar.collapsed .sidebar-label { opacity: 0; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  margin: 1px 8px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  position: relative;
}

.sidebar-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-light);
}

.sidebar-link.active .sidebar-icon { color: var(--accent); }

.sidebar-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.sidebar-link-text {
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--transition);
}
.sidebar.collapsed .sidebar-link-text { opacity: 0; width: 0; }

.sidebar-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}
.sidebar.collapsed .sidebar-badge { display: none; }

/* ── Sidebar edge collapse control ── */
.sidebar-edge-toggle {
  position: fixed;
  top: calc(var(--topbar-h) + 18px);
  left: calc(var(--sidebar-w) - 14px);
  z-index: 120;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--text-secondary);
  background: color-mix(in srgb, var(--bg-sidebar) 88%, var(--bg-card));
  border: 1px solid var(--border-light);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(4, 2, 15, 0.42);
  cursor: pointer;
  transition: left var(--transition), color var(--transition),
              background var(--transition), border-color var(--transition),
              transform var(--transition), box-shadow var(--transition);
}
.sidebar-edge-toggle:hover,
.sidebar-edge-toggle:focus-visible {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent-light);
  box-shadow: 0 5px 18px rgba(124, 58, 237, 0.42);
  transform: scale(1.06);
}
.sidebar-edge-toggle:focus-visible {
  outline: 3px solid rgba(167, 139, 250, 0.34);
  outline-offset: 2px;
}
.sidebar-edge-icon {
  transition: transform var(--transition);
}
.sidebar.collapsed + .sidebar-edge-toggle {
  left: calc(var(--sidebar-w-col) - 14px);
}
.sidebar.collapsed + .sidebar-edge-toggle .sidebar-edge-icon {
  transform: rotate(180deg);
}

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  flex: 1;
  min-height: calc(100vh - var(--topbar-h));
  padding: 24px;
  transition: margin-left var(--transition);
}
.sidebar.collapsed ~ .main-content { margin-left: var(--sidebar-w-col); }

/* Full-width editorial copy
   Page headings, introductions and long-form sections should use the same
   available width as the tables, cards and workbenches they describe. Keep
   width constraints on controls, dialogs and game boards, but do not impose
   an arbitrary reading column on primary page content. */
#main-content > :is(header, .section-header, .page-hero, .topic-hub-header, p),
#main-content > :is(.ab, .rl, .gm, .gl, .cs, .ct, .cm-sec, .howto-wrap),
#main-content > :is(.solver-article, .method, .reading-guide, .desk-flow) {
  width: 100%;
  max-width: none !important;
  box-sizing: border-box;
}
#main-content > header :is(h1, p),
#main-content > .section-header :is(h1, p),
#main-content > .page-hero .page-hero-text,
#main-content > .page-hero .page-hero-text :is(h1, p),
#main-content > .topic-hub-header :is(h1, p) {
  width: 100%;
  max-width: none !important;
}
.page-hero-text,
.section-title {
  min-width: 0;
  max-width: none;
}
.page-hero-text { flex: 1; }
.section-title { flex: 1; }

/* ── Global breadcrumb bar ──
   Ported from SHAREITONL: one shared strip directly below the top navigation.
   Its background deliberately matches the topbar and it has no divider,
   border, outline or shadow above or below. */
.breadcrumb-bar {
  margin: -24px -24px 24px;
  padding: 0 24px;
  background: var(--bg-topbar);
  border: 0;
  outline: 0;
  box-shadow: none;
}
.breadcrumb-container { width: 100%; }
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 11px 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}
.breadcrumb a {
  color: var(--accent-light);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--text-primary); text-decoration: underline; }
.breadcrumb .sep { color: var(--text-muted); opacity: .55; }
.breadcrumb [aria-current="page"] { color: var(--text-primary); }

/* ══════════════════════════════════════
   CARDS
   ══════════════════════════════════════ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-body { padding: 20px; }

/* ── Game Mode Cards ── */
.mode-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.mode-card:hover,
.mode-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2);
}

.mode-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.mode-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.mode-card-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge-hot    { background: var(--red);    color: white; }
.badge-new    { background: var(--accent); color: white; }
.badge-ng     { background: var(--cyan);   color: white; }
.badge-top    { background: var(--gold);   color: black; }
.badge-live   { background: var(--green);  color: white; }

.mode-card-info { padding: 12px; }
.mode-card-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.mode-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Featured Hero Card ── */
.hero-card {
  background: linear-gradient(135deg, #1e1640 0%, #0f0e20 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  position: relative;
  margin-bottom: 32px;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-title span { color: var(--accent-light); }

.hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 420px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-board-preview {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(9, 28px);
  grid-template-rows: repeat(9, 28px);
  gap: 2px;
  opacity: 0.7;
}

.hero-cell {
  width: 28px; height: 28px;
  border-radius: 4px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.hero-cell.revealed { background: var(--bg-surface); }
.hero-cell.flag     { background: var(--bg-card); color: var(--red); }
.hero-cell.mine     { background: var(--red); }
.hero-cell.n1 { color: #3b82f6; }
.hero-cell.n2 { color: #22c55e; }
.hero-cell.n3 { color: var(--red); }

/* ── Section Headers ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ── Page Hero Header ── */
.page-hero {
  display: flex; align-items: center; gap: 18px; margin-bottom: 8px;
}
.page-hero-icon {
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(124,58,237,.25);
  background: rgba(124,58,237,.15);
}
.page-hero-icon svg { width: 28px; height: 28px; display: block; }
.page-hero-text h1 { margin: 0 0 2px; font-size: 24px; font-weight: 900; }
.page-hero-text p  { margin: 0; font-size: 13px; color: var(--text-muted); }

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  transition: color var(--transition);
}
.section-link:hover { color: var(--accent); }

/* ══════════════════════════════════════
   LEADERBOARD TABLE
   ══════════════════════════════════════ */

.lb-table {
  width: 100%;
  border-collapse: collapse;
}

.lb-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.lb-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.lb-table tbody tr:hover td { background: var(--bg-card-hover); }
.lb-table tbody tr:last-child td { border-bottom: none; }

.lb-rank {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  min-width: 36px;
}
.lb-rank.gold   { color: var(--gold); }
.lb-rank.silver { color: #94a3b8; }
.lb-rank.bronze { color: #cd7c3a; }

.lb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.lb-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.lb-time {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-weight: 600;
  color: var(--green);
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--accent); }

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(124,58,237,0.1); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-card); color: var(--text-primary); }

.btn-danger {
  background: var(--red);
  color: white;
}
.btn-danger:hover { background: #dc2626; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-pill { border-radius: 999px; }
.btn-icon { padding: 10px; }

/* ══════════════════════════════════════
   FORMS
   ══════════════════════════════════════ */

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control.is-invalid { border-color: var(--red); }
.form-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-base);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-popup);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-align: center;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

.auth-divider {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 20px 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ══════════════════════════════════════
   FLASH MESSAGES
   ══════════════════════════════════════ */

.flash-container {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.flash {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
  animation: slideIn 0.2s ease;
  cursor: pointer;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.flash-success { background: #14532d; border: 1px solid #22c55e; color: #86efac; }
.flash-error   { background: #450a0a; border: 1px solid var(--red); color: #fca5a5; }
.flash-info    { background: #0c1a4d; border: 1px solid #3b82f6; color: #93c5fd; }
.flash-warning { background: #451a03; border: 1px solid var(--orange); color: #fed7aa; }

/* ══════════════════════════════════════
   FILTERS BAR
   ══════════════════════════════════════ */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-bar-secondary {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
@media (max-width: 600px) {
  .filter-bar-secondary { margin-left: 0; flex-basis: 100%; }
}

.filter-btn {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.filter-select {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* ══════════════════════════════════════
   ANNOUNCEMENTS
   ══════════════════════════════════════ */

.announcement {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
}
.announcement-info        { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }
.announcement-warning     { background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.3); color: #fed7aa; }
.announcement-maintenance { background: rgba(234,179,8,0.12);  border: 1px solid rgba(234,179,8,0.3);  color: #fde68a; }

/* ══════════════════════════════════════
   TAGS & BADGES (inline)
   ══════════════════════════════════════ */

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.tag:hover { border-color: var(--accent); color: var(--accent-light); }
.tag-accent { background: rgba(124,58,237,0.15); border-color: var(--accent); color: var(--accent-light); }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.status-active    { background: rgba(34,197,94,0.15); color: var(--green); }
.status-suspended { background: rgba(249,115,22,0.15); color: var(--orange); }
.status-banned    { background: rgba(239,68,68,0.15);  color: var(--red); }
.status-new       { background: rgba(124,58,237,0.15); color: var(--accent-light); }
.status-open      { background: rgba(59,130,246,0.15); color: #60a5fa; }
.status-resolved  { background: rgba(34,197,94,0.15);  color: var(--green); }
.status-closed    { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* ══════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════ */

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 24px;
  justify-content: center;
}

.page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
  padding: 0 10px;
}
.page-btn:hover      { border-color: var(--accent); color: var(--text-primary); }
.page-btn.active     { background: var(--accent); border-color: var(--accent); color: white; }
.page-btn.disabled   { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ══════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════ */

.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - var(--topbar-h)); }
.admin-sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 16px 0;
}
.admin-content { padding: 24px; overflow: auto; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   PROFILE
   ══════════════════════════════════════ */

.profile-header {
  background: linear-gradient(135deg, #1e1640, #0f0e20);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  border: 3px solid var(--accent-light);
}

.profile-username {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-rank {
  font-size: 14px;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.profile-stat { text-align: center; }
.profile-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.profile-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   BLOG
   ══════════════════════════════════════ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.blog-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}
.blog-card:hover, .blog-card:focus-within { transform: translateY(-3px); border-color: var(--accent); }

.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card-hover));
  object-fit: cover;
}
.blog-card-image-link {
  display: block;
  line-height: 0;
}

.blog-card-body { padding: 16px; }

.blog-card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   HELP CENTER
   ══════════════════════════════════════ */

.help-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.help-nav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
}

.help-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.help-nav-link:last-child { border-bottom: none; }
.help-nav-link:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.help-nav-link.active { background: rgba(124,58,237,0.1); color: var(--accent-light); }

.help-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.help-content h1 { font-size: 26px; font-weight: 900; margin-bottom: 16px; }
.help-content h2 { font-size: 18px; font-weight: 800; margin: 28px 0 12px; color: var(--accent-light); }
.help-content p  { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 12px; }
.help-content ul, .help-content ol { padding-left: 24px; margin-bottom: 12px; }
.help-content li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 4px; }
/* Blog article body links - Underlined, accent colour, never on headings */
.help-content p a,
.help-content li a,
.help-content td a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.help-content p a:hover,
.help-content li a:hover,
.help-content td a:hover { color: var(--text-primary); }
.help-content h1 a,
.help-content h2 a,
.help-content h3 a,
.help-content h4 a { text-decoration: none; pointer-events: none; color: inherit; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */

.site-footer {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  margin-top: 48px;
  margin-left: var(--sidebar-w);
  transition: margin-left var(--transition);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 32px;
  max-width: 960px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--accent-light); }

/* Footer accordion sections - Desktop: render flat, no toggle */
.footer-section { display: block; }
.footer-section > .footer-title { list-style: none; cursor: default; display: flex; align-items: center; justify-content: space-between; }
.footer-section > .footer-title::-webkit-details-marker { display: none; }
.footer-chev { display: none; transition: transform .2s; flex-shrink: 0; opacity: .6; }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   TOPBAR POPOVERS
   ══════════════════════════════════════ */

.lang-dropdown {
  position: relative;
}

.nav-popover {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  width: 282px;
  padding: 0;
  background:
    linear-gradient(rgba(167,139,250,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,.025) 1px, transparent 1px),
    radial-gradient(circle at 100% 0%, rgba(124,58,237,.17), transparent 180px),
    rgba(24, 21, 41, .985);
  background-size: 24px 24px, 24px 24px, auto, auto;
  border: 1px solid rgba(167, 139, 250, .22);
  border-radius: 17px;
  box-shadow: 0 26px 70px rgba(3, 2, 12, .68), 0 8px 24px rgba(3, 2, 12, .34), inset 0 1px rgba(255,255,255,.055);
  max-height: min(420px, calc(100vh - var(--topbar-h) - 28px));
  z-index: 300;
  overflow-x: hidden;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-9px) scale(.975);
  transform-origin: top right;
  pointer-events: none;
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  transition: opacity 170ms ease, transform 190ms cubic-bezier(.2,.8,.2,1), visibility 190ms;
}
.nav-popover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,.85), rgba(6,182,212,.65), transparent);
  opacity: .92;
}
.nav-popover::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 13px;
  width: 10px;
  height: 10px;
  background: #201b36;
  border-top: 1px solid rgba(167,139,250,.24);
  border-left: 1px solid rgba(167,139,250,.24);
  transform: rotate(45deg);
}
.nav-popover.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-popover-games { width: 304px; }
.nav-popover-language { width: 270px; }
.nav-popover-user { width: 318px; }
.nav-popover-header,
.notif-header {
  position: relative;
  padding: 15px 16px 13px;
  border-bottom: 1px solid rgba(167,139,250,.12);
  background: linear-gradient(110deg, rgba(124,58,237,.09), rgba(6,182,212,.035));
}
.nav-popover-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}
.nav-popover-heading > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.nav-popover-heading small {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}
.nav-popover-heading strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-popover-mark,
.nav-option-icon {
  --tone: 167,139,250;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: rgb(var(--tone));
  background: linear-gradient(145deg, rgba(var(--tone),.17), rgba(var(--tone),.055));
  border: 1px solid rgba(var(--tone),.23);
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 6px 15px rgba(0,0,0,.16);
}
.nav-popover-mark { width: 36px;height: 36px;border-radius: 11px; }
.nav-option-icon { width: 34px;height: 34px;border-radius: 10px; }
.nav-popover-mark svg,
.nav-option-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tone-violet { --tone: 167,139,250; }
.tone-cyan { --tone: 34,211,238; }
.tone-blue { --tone: 96,165,250; }
.tone-green { --tone: 74,222,128; }
.tone-gold { --tone: 250,204,21; }
.tone-rose { --tone: 251,113,133; }
.nav-popover-list { padding: 7px; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.25;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.lang-option:hover {
  background: linear-gradient(90deg, rgba(124,58,237,.13), rgba(124,58,237,.045));
  border-color: rgba(167,139,250,.13);
  color: var(--text-primary);
  transform: translateX(3px);
}
.lang-option:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: -2px;
}
.nav-option-copy { display:flex;min-width:0;flex:1;flex-direction:column;gap:3px; }
.nav-option-copy strong { overflow:hidden;color:inherit;font-size:12.5px;font-weight:750;text-overflow:ellipsis;white-space:nowrap; }
.nav-option-copy small { color:var(--text-muted);font-size:10px;line-height:1.2; }
.nav-option-exit { margin-left:auto;color:var(--text-muted);font-size:13px;transition:color var(--transition),transform var(--transition); }
.lang-option:hover .nav-option-exit { color:var(--cyan);transform:translate(2px,-2px); }
.language-list { display:grid;grid-template-columns:1fr 1fr;gap:3px; }
.language-list .lang-option { min-width:0; }
.language-token {
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  flex:0 0 31px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.075);
  border-radius:9px;
  font-size:16px;
  box-shadow:inset 0 1px rgba(255,255,255,.055);
}
.lang-option.active {
  color: #ddd6fe;
  background: linear-gradient(110deg, rgba(124,58,237,.2), rgba(6,182,212,.055));
  border-color: rgba(167,139,250,.2);
  font-weight: 650;
}
.lang-option.active::after {
  content: "";
  width: 6px;
  height: 10px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}
.nav-user-summary { padding:15px 15px 12px;border-bottom:1px solid rgba(167,139,250,.12);background:linear-gradient(120deg,rgba(124,58,237,.11),rgba(6,182,212,.035)); }
.nav-user-identity { display:flex;align-items:center;gap:10px;margin-bottom:12px; }
.nav-user-identity > span { display:grid;place-items:center;width:36px;height:36px;color:#fff;background:linear-gradient(145deg,var(--accent),#5b21b6);border:1px solid rgba(255,255,255,.18);border-radius:11px;box-shadow:0 7px 17px rgba(124,58,237,.27);font-size:13px;font-weight:850; }
.nav-user-identity div { display:flex;min-width:0;flex-direction:column;gap:2px; }
.nav-user-identity small { color:var(--text-muted);font-size:9px;font-weight:750;letter-spacing:.07em;text-transform:uppercase; }
.nav-user-identity strong { overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap; }
.nav-user-stats { display:grid;grid-template-columns:repeat(3,1fr);gap:6px;text-align:center; }
.nav-user-stat { --tone:167,139,250;padding:7px 4px;background:rgba(var(--tone),.07);border:1px solid rgba(var(--tone),.12);border-radius:9px; }
.nav-user-stat strong { display:block;color:rgb(var(--tone));font-size:13px;font-weight:850;font-variant-numeric:tabular-nums; }
.nav-user-stat small { display:block;margin-top:2px;color:var(--text-muted);font-size:8px;font-weight:750;letter-spacing:.06em;text-transform:uppercase; }
.nav-logout { width:100%;font-family:inherit;text-align:left; }
.nav-logout .nav-option-copy strong { color:#fda4af; }

.notif-panel.nav-popover-notifications {
  position:absolute;
  top:calc(100% + 13px);
  right:-38px;
  display:flex;
  width:360px;
  max-height:min(470px,calc(100vh - var(--topbar-h) - 28px));
  flex-direction:column;
  padding:0;
  overflow:hidden;
}
.notif-header { display:flex;align-items:center;justify-content:space-between;gap:12px;flex:0 0 auto; }
.nav-text-action { flex:0 0 auto;padding:6px 8px;color:var(--accent-light);border:1px solid rgba(167,139,250,.15);border-radius:7px;font-size:10px;font-weight:750; }
.nav-text-action:hover { color:#fff;background:rgba(124,58,237,.14);border-color:rgba(167,139,250,.3); }
.notif-list { overflow-y:auto;flex:1;max-height:380px;padding:7px; }
.notif-item { display:flex;gap:11px;padding:10px;border:1px solid transparent;border-radius:11px;cursor:pointer;text-decoration:none;color:inherit;transition:background var(--transition),border-color var(--transition),transform var(--transition); }
.notif-item+.notif-item { margin-top:3px; }
.notif-item:hover { background:rgba(124,58,237,.08);border-color:rgba(167,139,250,.12);transform:translateX(2px); }
.notif-item.unread { background:linear-gradient(90deg,rgba(124,58,237,.13),rgba(124,58,237,.035));border-color:rgba(167,139,250,.1); }
.notif-item.unread:hover { background:linear-gradient(90deg,rgba(124,58,237,.18),rgba(124,58,237,.055)); }
.notif-icon { display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid rgba(255,255,255,.07);border-radius:10px; }
.notif-item .notif-title { color:var(--text-primary);font-size:12px;font-weight:700;line-height:1.35; }
.notif-item .notif-body { margin-top:3px;color:var(--text-muted);font-size:10.5px;line-height:1.45; }
.notif-item .notif-time { margin-top:4px;color:var(--text-muted);font-size:9px; }
.notif-empty { padding:42px 16px;text-align:center;color:var(--text-muted);font-size:12px; }

body.light-mode .nav-popover {
  background:
    linear-gradient(rgba(124,58,237,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(124,58,237,.035) 1px,transparent 1px),
    radial-gradient(circle at 100% 0%,rgba(124,58,237,.1),transparent 180px),
    rgba(255,255,255,.985);
  border-color:#d9d3ee;
  box-shadow:0 22px 55px rgba(44,31,91,.2),0 7px 18px rgba(44,31,91,.1),inset 0 1px #fff;
}
body.light-mode .nav-popover::after { background:#fff;border-color:#d9d3ee; }
body.light-mode .language-token { background:rgba(124,58,237,.045);border-color:rgba(124,58,237,.09); }
body.light-mode .nav-disclosure { color:#5b4c87;background:linear-gradient(145deg,#fff,#eeeafb);border-color:#d7cff1;box-shadow:0 3px 8px rgba(50,35,105,.16),inset 0 1px #fff; }
body.light-mode [aria-expanded="true"] > .nav-disclosure { color:#fff;background:linear-gradient(145deg,var(--accent),#5b21b6);border-color:rgba(91,33,182,.2); }

@media(max-width:560px) {
  .nav-popover,
  .notif-panel.nav-popover-notifications {
    position:fixed;
    top:calc(var(--topbar-h) + 7px);
    left:8px;
    right:8px;
    width:auto;
    max-height:calc(100vh - var(--topbar-h) - 18px);
    transform-origin:top center;
  }
  .nav-popover::after { display:none; }
  .language-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-popover,
  .lang-option,
  .nav-disclosure,
  .notif-item { transition: none; }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-board-preview { display: none; }
}

@media (min-width: 769px) and (max-width: 900px) {
  .sidebar { width: var(--sidebar-w-col); }
  .sidebar .sidebar-link-text,
  .sidebar .sidebar-label,
  .sidebar .sidebar-badge { opacity: 0; width: 0; overflow: hidden; }
  .main-content { margin-left: var(--sidebar-w-col); }
  .sidebar-edge-toggle { display: none; }
}

@media (max-width: 768px) {
  :root { --topbar-h: 56px; }

  /* Mobile navigation drawer */
  .sidebar {
    top: 0;
    width: min(88vw, 340px);
    padding: 0 0 calc(18px + env(safe-area-inset-bottom));
    transform: translate3d(-104%, 0, 0);
    background:
      radial-gradient(circle at 12% 0%, rgba(124,58,237,.22), transparent 230px),
      linear-gradient(180deg, #17142b 0%, var(--bg-sidebar) 42%, #100e21 100%);
    border-right: 1px solid rgba(167,139,250,.22);
    box-shadow: 18px 0 55px rgba(5,3,15,.58);
    transition: transform .28s cubic-bezier(.22,.8,.24,1);
    z-index: 250;
    scrollbar-width: none;
    overscroll-behavior: contain;
  }
  .sidebar.mobile-open { transform: translate3d(0, 0, 0); }
  .sidebar-backdrop { top: 0 !important; }
  .sidebar .sidebar-link-text,
  .sidebar .sidebar-label,
  .sidebar .sidebar-badge { opacity: 1; width: auto; }

  .mobile-menu-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
    background: linear-gradient(180deg, rgba(23,20,43,.98), rgba(23,20,43,.92));
    border-bottom: 1px solid rgba(167,139,250,.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .mobile-menu-header::after {
    content: "";
    position: absolute;
    right: 58px;
    bottom: -1px;
    width: 68px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    opacity: .72;
  }
  .mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .mobile-menu-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: #fff;
    background: linear-gradient(145deg, var(--accent), #5b21b6);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(124,58,237,.34), inset 0 1px rgba(255,255,255,.16);
  }
  .mobile-menu-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
  }
  .mobile-menu-brand-copy strong {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.1;
    letter-spacing: -.02em;
  }
  .mobile-menu-brand-copy strong span { color: var(--accent-light); }
  .mobile-menu-brand-copy small {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .mobile-menu-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    color: var(--text-secondary);
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    transition: background var(--transition), color var(--transition), transform var(--transition);
  }
  .mobile-menu-close:hover,
  .mobile-menu-close:focus-visible {
    color: #fff;
    background: rgba(124,58,237,.22);
    transform: rotate(4deg);
  }
  .mobile-menu-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 12px 2px;
  }
  .mobile-menu-quick a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 10px;
    color: #fff;
    background: linear-gradient(145deg, var(--accent), #6d28d9);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(124,58,237,.18);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
  }
  .mobile-menu-quick a + a {
    color: var(--accent-light);
    background: rgba(124,58,237,.1);
    border-color: rgba(167,139,250,.24);
    box-shadow: none;
  }
  .sidebar .sidebar-section {
    margin: 10px 10px 0;
    padding: 8px 6px;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 14px;
  }
  .sidebar .sidebar-section:last-of-type { margin-bottom: 8px; }
  .sidebar .sidebar-label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px 8px;
    color: var(--accent-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    opacity: .88;
  }
  .sidebar .sidebar-label::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    background: currentColor;
    border-radius: 2px;
    box-shadow: 0 0 9px currentColor;
    transform: rotate(45deg);
  }
  .sidebar .sidebar-link {
    min-height: 46px;
    gap: 11px;
    margin: 2px 0;
    padding: 6px 9px;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
  }
  .sidebar .sidebar-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    color: var(--text-muted);
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 9px;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
  }
  .sidebar .sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,.05);
  }
  .sidebar .sidebar-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(124,58,237,.27), rgba(124,58,237,.08));
    border-color: rgba(167,139,250,.22);
    box-shadow: inset 3px 0 var(--accent-light), 0 7px 18px rgba(5,3,15,.12);
  }
  .sidebar .sidebar-link.active .sidebar-icon {
    color: #fff;
    background: linear-gradient(145deg, var(--accent), #6d28d9);
    border-color: rgba(255,255,255,.17);
    box-shadow: 0 5px 14px rgba(124,58,237,.25);
  }
  .sidebar .sidebar-badge {
    padding: 2px 7px;
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
    font-size: 8px;
    letter-spacing: .04em;
  }

  /* Sidebar backdrop */
  .sidebar-backdrop {
    position: fixed; inset: 0; z-index: 199;
    background: linear-gradient(90deg, rgba(7,5,18,.35), rgba(7,5,18,.78));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0; pointer-events: none;
    transition: opacity .28s ease;
  }
  .sidebar-backdrop.active { opacity: 1; pointer-events: auto; }

  .topbar-menu-toggle[aria-expanded="true"] {
    color: var(--accent-light);
    background: rgba(124,58,237,.16);
    box-shadow: inset 0 0 0 1px rgba(167,139,250,.18);
  }

  body.light-mode .sidebar {
    background:
      radial-gradient(circle at 12% 0%, rgba(124,58,237,.14), transparent 230px),
      linear-gradient(180deg, #fbfaff 0%, #f4f1ff 100%);
    border-right-color: #d8d3f0;
    box-shadow: 18px 0 50px rgba(39,27,90,.18);
  }
  body.light-mode .mobile-menu-header {
    background: rgba(251,250,255,.94);
    border-bottom-color: #ded9f1;
  }
  body.light-mode .mobile-menu-close,
  body.light-mode .sidebar .sidebar-icon,
  body.light-mode .sidebar .sidebar-section {
    background: rgba(124,58,237,.045);
    border-color: rgba(124,58,237,.1);
  }
  body.light-mode .sidebar .sidebar-link.active { color: #4c1d95; }

  @media (prefers-reduced-motion: reduce) {
    .sidebar,
    .sidebar-backdrop,
    .mobile-menu-close { transition: none; }
  }

  /* Main content - min-width:0 prevents flex children from forcing horizontal overflow */
  .main-content { margin-left: 0 !important; padding: 16px; min-width: 0; max-width: 100vw; overflow-x: hidden; }
  .breadcrumb-bar { margin: -16px -16px 16px; padding: 0 16px; }
  .breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-block: 10px;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .sidebar.collapsed ~ .main-content { margin-left: 0 !important; }
  .sidebar-edge-toggle { display: none; }
  .app-shell { max-width: 100vw; overflow-x: hidden; }

  /* Footer - Collapsible accordion sections on mobile */
  .site-footer { margin-left: 0 !important; padding: 24px 16px 16px; margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 0 !important; max-width: none; }
  .footer-brand { padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
  .footer-tagline { font-size: 12px; }
  .footer-section {
    border-bottom: 1px solid var(--border);
  }
  .footer-section > .footer-title {
    padding: 14px 0;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
  }
  .footer-section .footer-chev { display: block; }
  .footer-section[open] .footer-chev { transform: rotate(180deg); }
  .footer-section .footer-links { padding: 0 0 14px; gap: 10px; }
  .footer-section .footer-link {
    display: flex;
    align-items: center;
    min-height: 24px;
    font-size: 13px;
  }
  .footer-bottom {
    flex-direction: column; gap: 10px; text-align: center;
    margin-top: 18px; padding-top: 16px;
    font-size: 12px;
  }
  .footer-bottom > div { gap: 12px !important; flex-wrap: wrap; justify-content: center; }
  .footer-bottom .footer-link { font-size: 12px; }

  /* Topbar */
  .topbar-menu-toggle { display: flex; }
  .topbar-search { max-width: 200px; }
  .topbar-logo { width: auto; }
  .topbar-logo .logo-text { display: none; }

  /* Hero */
  .hero-card { padding: 24px; flex-direction: column; }

  /* Help */
  .help-layout { grid-template-columns: 1fr; }
  .help-nav { position: static; }

  /* Stat grid */
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tables: horizontal scroll wrapper */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lb-table { min-width: 480px; }

  /* Cards containing tables: allow horizontal scroll */
  .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Responsive grid utility */
  .responsive-grid { grid-template-columns: 1fr !important; }

  /* Filter bar wrap */
  .filter-bar { flex-wrap: wrap; gap: 6px; }

  /* Section header */
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Cards grid (explore more, related pages) */
  [style*="grid-template-columns:repeat(auto-fill"] { grid-template-columns: 1fr 1fr !important; }

  /* Profile header */
  .profile-header { flex-direction: column; text-align: center; }
  .profile-header .lb-avatar { margin: 0 auto; }

  /* Mode cards */
  .mode-cards { grid-template-columns: 1fr 1fr; }

  /* Pagination compact */
  .pagination { flex-wrap: wrap; justify-content: center; gap: 4px; }
}

@media (max-width: 480px) {
  .topbar-search { display: none; }
  .topbar-actions { gap: 2px; }
  /* The sticky signup CTA remains visible; keep the fixed header within the
     viewport and leave the primary Log In action available on small phones. */
  .topbar-actions .btn-signup { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }
  .hero-card { padding: 24px 20px; }
  /* Compact 2-column mode cards on mobile */
  .mode-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mode-card-thumb { aspect-ratio: 4/3; }
  .mode-card-thumb img { width: 44px !important; height: 44px !important; }
  .mode-card-info { padding: 8px 10px; }
  .mode-card-name { font-size: 13px; margin-bottom: 2px; }
  .mode-card-meta { font-size: 11px; }
  .mode-card-badge { font-size: 9px; padding: 2px 6px; top: 6px; left: 6px; }

  .footer-grid { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:repeat(auto-fill"] { grid-template-columns: 1fr !important; }

  /* Card body padding */
  .card-body { padding: 14px; }
  .card-header { padding: 12px 14px; }
}

/* ══════════════════════════════════════
   UTILS
   ══════════════════════════════════════ */
.flex   { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--text-primary); }
.text-accent  { color: var(--accent-light); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-gold    { color: var(--gold); }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }
.hidden       { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ═══ Inline SVG Icons (emoji replacements) ═══════════════════════════════ */
.ico { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; flex-shrink: 0; }
.ico svg { display: block; }
.ico-sm svg { width: 14px; height: 14px; }
.ico-md svg { width: 18px; height: 18px; }
.ico-lg svg { width: 24px; height: 24px; }
.ico-xl svg { width: 36px; height: 36px; }

/* ══════════════════════════════════════
   STICKY SIGNUP BAR (guests, every page)
   ══════════════════════════════════════ */
.signup-sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(135deg, #1e1640, #2d1b69);
  border-top: 2px solid rgba(124,58,237,.7);
  box-shadow: 0 -10px 30px rgba(0,0,0,.55);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.signup-sticky.dismissed { display: none; }
.signup-sticky-text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -.1px;
}
.signup-sticky-text span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #c4b5fd;
  margin-top: 3px;
  letter-spacing: 0;
}
.signup-sticky-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.signup-sticky-google,
.signup-sticky-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, box-shadow .12s, opacity .12s;
  white-space: nowrap;
  min-height: 44px;
}
.signup-sticky-google { background: #fff; color: #1f1f1f; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.signup-sticky-email  { background: #7c3aed; color: #fff; box-shadow: 0 2px 12px rgba(124,58,237,.5); }
.signup-sticky-google:hover,
.signup-sticky-email:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.signup-sticky-google svg,
.signup-sticky-email svg { width: 18px; height: 18px; }
.signup-sticky-close {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
}
.signup-sticky-close:hover { background: rgba(255,255,255,.20); color: #fff; }
.signup-sticky-close svg { width: 20px; height: 20px; }

/* Push the page bottom up so the sticky bar doesn't cover content */
body.has-sticky-signup { padding-bottom: 104px; }
body.has-sticky-signup .site-footer { padding-bottom: 32px; }

/* Mobile (<=600px) - Keep it BIG and visible */
@media (max-width: 600px) {
  .signup-sticky { gap: 10px; padding: 14px 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .signup-sticky-text { font-size: 14px; }
  .signup-sticky-text span { font-size: 11px; margin-top: 2px; }
  .signup-sticky-buttons { gap: 8px; }
  .signup-sticky-google,
  .signup-sticky-email { padding: 12px 16px; font-size: 13px; gap: 6px; min-height: 44px; }
  .signup-sticky-google svg,
  .signup-sticky-email svg { width: 16px; height: 16px; }
  .signup-sticky-close { width: 34px; height: 34px; }
  body.has-sticky-signup { padding-bottom: 96px; }
}
/* Very small phones - Drop button icons but keep big text */
@media (max-width: 380px) {
  .signup-sticky { gap: 8px; padding: 12px 12px; }
  .signup-sticky-text { font-size: 13px; }
  .signup-sticky-text span { font-size: 10px; }
  .signup-sticky-google svg,
  .signup-sticky-email svg { display: none; }
  .signup-sticky-google,
  .signup-sticky-email { padding: 12px 14px; font-size: 13px; }
  .signup-sticky-close { width: 32px; height: 32px; }
}
/* Desktop - Even bigger */
@media (min-width: 900px) {
  .signup-sticky {
    padding: 20px 36px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    gap: 18px;
  }
  .signup-sticky-text { font-size: 18px; }
  .signup-sticky-text span { font-size: 14px; }
  .signup-sticky-google,
  .signup-sticky-email { padding: 14px 26px; font-size: 15px; gap: 10px; min-height: 48px; }
  .signup-sticky-google svg,
  .signup-sticky-email svg { width: 20px; height: 20px; }
  body.has-sticky-signup { padding-bottom: 112px; }
}

/* ── Card links ──
   A card links only its title/name, so the anchor text is the title, not
   title + description. The title link's ::after overlay keeps the whole card
   clickable. Put .card-linked on any card that is not already positioned. */
.card-linked { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.help-content .card-link { pointer-events: auto; }

/* A visible keyboard focus state is required even on controls whose default
   outline was removed by the component reset. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}
