@charset "UTF-8";
/* ==========================================================================
   CodeLabs Design System — Shared Stylesheet (SCSS SOURCE)
   --------------------------------------------------------------------------
   This is the authored source. Edit here, never the generated site.css.
   compilerconfig.json maps site.scss -> site.css (Web Compiler / dart-sass).

   Dark, dev-focused aesthetic. Tokens align with /wwwroot/assets/css/demo/
   unified-editors.scss so the marketing surface, app shell, and code editors
   share one visual language.

   Font pairing: IBM Plex Sans (UI) + JetBrains Mono (code/badges).
   Style: dark mode (OLED-friendly), accent blue + run green.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");
/* ===== TOKENS ===== */
:root {
  /* Surfaces */
  --bg-base: #0f1418;
  --bg-surface: #161c22;
  --bg-elevated: #1e252c;
  --bg-input: #1a2027;
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --bg-hover: rgba(255, 255, 255, 0.04);
  --bg-active: rgba(255, 255, 255, 0.08);
  /* Borders */
  --border-default: #2a323a;
  --border-subtle: #1f262d;
  --border-strong: #3a4249;
  --border-focus: #007bc0;
  /* Text */
  --text-primary: #e6edf3;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-disabled: #475569;
  --text-inverse: #0f1418;
  /* Brand */
  --accent: #007bc0;
  --accent-hover: #0099e6;
  --accent-soft: rgba(0, 123, 192, 0.12);
  --accent-glow: rgba(0, 123, 192, 0.35);
  --accent-light: #4da5f5;
  /* Semantic */
  --success: #47cf73;
  --success-soft: rgba(71, 207, 115, 0.12);
  --danger: #f34141;
  --danger-soft: rgba(243, 65, 65, 0.12);
  --warning: #f7b90c;
  --warning-soft: rgba(247, 185, 12, 0.12);
  --info: #4da5f5;
  /* Language pills */
  --lang-html: #e34c26;
  --lang-css: #2965f1;
  --lang-js: #f7df1e;
  --lang-csharp: #9b4f96;
  --lang-sql: #f29111;
  --lang-react: #61dafb;
  --lang-vue: #4fc08d;
  --lang-python: #3776ab;
  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  /* Spacing scale (4/8 rhythm) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px var(--accent-glow);
  /* Type scale */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;
  --text-5xl: 56px;
  --text-6xl: 72px;
  /* Layout */
  --nav-height: 64px;
  --sidebar-width: 240px;
  --content-max: 1200px;
  --content-narrow: 720px;
  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration: 220ms;
  --duration-slow: 320ms;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--accent);
}

button {
  font-family: inherit;
  cursor: pointer;
}

code, pre, .mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-feature-settings: "liga" 0;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

::selection {
  background: var(--accent-soft);
  color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

p {
  margin: 0;
}

/* ===== LAYOUT HELPERS ===== */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container.narrow {
  max-width: var(--content-narrow);
}

.stack > * + * {
  margin-top: var(--space-md);
}

.stack-sm > * + * {
  margin-top: var(--space-sm);
}

.stack-lg > * + * {
  margin-top: var(--space-lg);
}

.stack-xl > * + * {
  margin-top: var(--space-xl);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.row-md {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.muted {
  color: var(--text-secondary);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.flex-1 {
  flex: 1;
}

.flex-grow {
  flex-grow: 1;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mt-2xl {
  margin-top: var(--space-2xl);
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}
/* ===== UTILITIES (extended — replaced repeated inline style= attributes) ===== */
/* Spacing: token scale (xs..2xl) plus a couple of literal nudges (6/12px) the
   original markup used directly. Use the token ones for new work. */
.m-0 {
  margin: 0;
}

.mt-0 {
  margin-top: 0;
}

.mt-xs {
  margin-top: var(--space-xs);
}

.mt-6 {
  margin-top: 6px;
}

.mt-12 {
  margin-top: 12px;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mx-auto {
  margin: 0 auto;
}

.ml-auto {
  margin-left: auto;
}

.p-md {
  padding: var(--space-md);
}

.p-2xl {
  padding: var(--space-2xl);
}

.py-2xl {
  padding: var(--space-2xl) 0;
}

.pt-md {
  padding-top: var(--space-md);
}

.pb-md {
  padding-bottom: var(--space-md);
}

.feed-divider {
  padding: var(--space-xl) 0 var(--space-md);
}

/* Flex / layout */
.relative {
  position: relative;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.w-auto {
  width: auto;
}

/* Text */
.fw-600 {
  font-weight: 600;
}

.text-accent {
  color: var(--accent-light);
}

.text-success {
  color: var(--success);
}

.label-caps {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Interaction */
.cursor-pointer {
  cursor: pointer;
}

.link-reset {
  text-decoration: none;
  color: inherit;
}

/* Decorative avatar / icon gradients (data-independent variants) */
.grad-blue {
  background: linear-gradient(135deg, #4da5f5, #007bc0);
}

.grad-purple {
  background: linear-gradient(135deg, #c280bb, #9b4f96);
}

.grad-green {
  background: linear-gradient(135deg, #47cf73, #289d50);
}

/* Sizing / misc */
.mw-full {
  max-width: 100%;
}

.ar-16-8 {
  aspect-ratio: 16/8;
}

.text-danger {
  color: var(--danger);
}

.fs-18 {
  font-size: 18px;
}

/* Data-driven hooks: the per-instance value is set inline as a CSS variable
   (style="--avatar-bg: …" / "--icon-color: …"); the rule lives here. */
.avatar-dyn {
  background: var(--avatar-bg);
}

.icon-dyn {
  color: var(--icon-color);
}

/* Width clamps + grid helpers */
.mw-720 {
  max-width: 720px;
}

.mw-380 {
  max-width: 380px;
}

.mi-auto {
  margin-inline: auto;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.col-span-all {
  grid-column: 1/-1;
}

.bb-none {
  border-bottom: none;
}

.sticky-top {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-md));
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-dashed {
  text-align: center;
  padding: 64px 16px;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
}

/* Spacing/gap scale fillers + literal nudges used by the markup */
.gap-xs {
  gap: var(--space-xs);
}

.gap-xl {
  gap: var(--space-xl);
}

.mt-auto {
  margin-top: auto;
}

.mt-18 {
  margin-top: 18px;
}

.p-0 {
  padding: 0;
}

.overflow-hidden {
  overflow: hidden;
}

.ar-auto {
  aspect-ratio: auto;
}

.text-xl {
  font-size: var(--text-xl);
}

.text-warning {
  color: var(--warning);
}

.fs-15 {
  font-size: var(--text-md);
}

.fs-48 {
  font-size: 48px;
}

.btn-page-current {
  background: var(--accent-soft);
  color: var(--accent-light);
}

/* ===== TOP NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(15, 20, 24, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  height: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--text-primary);
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px var(--accent-glow);
  font-family: "JetBrains Mono", monospace;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
}

.nav-link {
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--duration) var(--ease-out);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* On narrow screens the app top-nav button cluster (New pen + icons) must not
   force the shell wider than the viewport. Collapse the New-pen button to its
   icon so the row fits. */
@media (max-width: 480px) {
  .nav .nav-btn-label {
    display: none;
  }
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 7px 12px;
  width: 240px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease-out);
}

.nav-search:hover, .nav-search:focus-within {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: inherit;
  font: inherit;
  flex: 1;
  min-width: 0;
}

.nav-search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.nav-search-clear:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-search-clear[hidden] {
  display: none;
}

.nav-search kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-muted);
}

.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--text-primary);
  border-radius: var(--radius-md);
}

.nav-mobile-toggle:hover {
  background: var(--bg-hover);
}

@media (max-width: 900px) {
  .nav-search {
    display: none;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-mobile-toggle {
    display: grid;
    place-items: center;
  }
  .nav-inner {
    padding: 0 var(--space-md);
  }
}
/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--border-default);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-active);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

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

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: white;
}

.btn-success {
  background: var(--success);
  color: var(--text-inverse);
  border-color: var(--success);
}

.btn-success:hover {
  background: #5ad580;
  color: var(--text-inverse);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

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

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.btn-danger:hover {
  background: #ff5757;
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 14px 24px;
  font-size: var(--text-md);
  border-radius: var(--radius-lg);
}

.btn-icon {
  padding: 9px;
  width: 38px;
  height: 38px;
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
  padding: 6px;
}

.btn-block {
  width: 100%;
}

/* ===== INPUTS ===== */
.input, .select, .textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font: inherit;
  font-size: var(--text-sm);
  transition: all var(--duration) var(--ease-out);
}

.input:hover, .select:hover, .textarea:hover {
  border-color: var(--border-strong);
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input::placeholder, .textarea::placeholder {
  color: var(--text-muted);
}

.textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.input-label .required {
  color: var(--danger);
}

.input-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.input-icon-wrap .input {
  padding-left: 38px;
}

.checkbox, .radio {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--duration) var(--ease-out);
}

.card-hoverable:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card-tight {
  padding: var(--space-md);
}

.card-flat {
  background: var(--bg-elevated);
  border: none;
}

.card-elevated {
  box-shadow: var(--shadow-md);
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent-light);
  border-color: transparent;
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
  border-color: transparent;
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
  border-color: transparent;
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}

.badge-html {
  background: rgba(227, 76, 38, 0.15);
  color: #ff7654;
  border-color: transparent;
}

.badge-css {
  background: rgba(41, 101, 241, 0.15);
  color: #6a96ff;
  border-color: transparent;
}

.badge-js {
  background: rgba(247, 223, 30, 0.15);
  color: #f0d030;
  border-color: transparent;
}

.badge-csharp {
  background: rgba(155, 79, 150, 0.15);
  color: #c280bb;
  border-color: transparent;
}

.badge-sql {
  background: rgba(242, 145, 17, 0.15);
  color: #ffac3c;
  border-color: transparent;
}

.badge-react {
  background: rgba(97, 218, 251, 0.15);
  color: #61dafb;
  border-color: transparent;
}

.badge-pro {
  background: linear-gradient(135deg, #ffd76a, #ffae33);
  color: #2a1a00;
  border: none;
}

/* ===== TAGS ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
}

.tag:hover {
  background: var(--bg-active);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* ===== AVATARS ===== */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4da5f5, #c280bb);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 600;
  font-size: var(--text-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-sm {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: var(--text-md);
}

.avatar-xl {
  width: 96px;
  height: 96px;
  font-size: var(--text-2xl);
}

.avatar-stack {
  display: flex;
}

.avatar-stack .avatar {
  border: 2px solid var(--bg-base);
  margin-left: -8px;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

/* Avatar dropdown menu (nav chrome — wired by app-chrome.js) */
.nav-avatar-wrap {
  position: relative;
}

.avatar.avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.nav-avatar-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  padding: 6px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-avatar-menu[hidden] {
  display: none;
}

.nav-avatar-item {
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  font: inherit;
  display: block;
}

.nav-avatar-item:hover {
  background: var(--bg-elevated);
}

.nav-avatar-sep {
  height: 1px;
  background: var(--border-default);
  margin: 4px 6px;
}

/* ===== AUTH LAYOUT ===== */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: radial-gradient(ellipse at top, rgba(0, 123, 192, 0.18), transparent 50%), var(--bg-base);
}

@media (min-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr 1fr;
  }
}
.auth-form-side {
  display: grid;
  place-items: center;
  padding: var(--space-2xl) var(--space-lg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.auth-aside {
  display: none;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-surface));
  border-left: 1px solid var(--border-subtle);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

@media (min-width: 900px) {
  .auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
  }
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
  cursor: pointer;
}

.social-button:hover {
  background: var(--bg-active);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.social-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.social-divider::before, .social-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

/* ===== APP SHELL (sidebar layout) ===== */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: var(--nav-height) 1fr;
}

.app-body {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: calc(100vh - var(--nav-height));
}

/* Full-bleed pages (e.g. the public profile) hide the sidebar; without this the
   lone .app-main lands in the narrow sidebar-width column and the 1fr stays empty. */
.app-body.app-body-full {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .app-body {
    grid-template-columns: 1fr;
  }
}
.sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
}
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 8px 12px 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
}

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

.sidebar-link.active {
  background: var(--accent-soft);
  color: var(--accent-light);
}

.sidebar-link .icon {
  width: 16px;
  text-align: center;
}

.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 10px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.app-main {
  padding: var(--space-2xl) var(--space-lg);
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 768px) {
  .app-main {
    padding: var(--space-lg) var(--space-md);
  }
}
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.page-title {
  font-size: var(--text-2xl);
  font-weight: 600;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: 2px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--space-lg);
  overflow-x: auto;
}

.tab {
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* ===== PEN CARD (CodePen-style preview) ===== */
.pen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.pen-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
  display: block;
  color: inherit;
}

.pen-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.pen-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1f25, #0f1418);
  position: relative;
  overflow: hidden;
}

.pen-thumb-mock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.pen-thumb-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===== Live iframe thumbnail (CodePen fullcpgrid pattern) =====
   The iframe renders at 200% width/height and is scaled to 50%, giving the
   "zoomed-out poster" look CodePen uses for card grids. pointer-events
   disabled so clicks pass through to the wrapping <a class="pen-card">.
   The overlay is a transparent click-shield that prevents user interaction
   with the iframe content (e.g. selecting text inside it) while still letting
   the parent link receive hover + click. */
.pen-thumb-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  border: 0;
  background: #0f1418;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}

.pen-thumb-overlay {
  position: absolute;
  inset: 0;
  /* Subtle top→bottom darkening so the badges in the corner stay legible
     against bright pen output (e.g. white-background HTML). */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.pen-thumb-badges {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  gap: 4px;
  /* Sit above the iframe + overlay. */
  z-index: 2;
}

.pen-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pen-title {
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--text-primary);
}

.pen-author {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pen-stats {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.pen-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}
.footer-col-heading {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-link {
  display: block;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  padding: 4px 0;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ===== HERO + LANDING ===== */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 160px) 0 clamp(48px, 8vw, 120px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(0, 123, 192, 0.18), transparent 50%), radial-gradient(ellipse at 80% 30%, rgba(155, 79, 150, 0.15), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.hero h1 {
  background: linear-gradient(180deg, #fff 0%, #94a3b8 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-top: var(--space-md);
  max-width: 620px;
  margin-inline: auto;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}

.section-eyebrow {
  color: var(--accent-light);
  font-family: "JetBrains Mono", monospace;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-header h2 {
  margin-top: var(--space-sm);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--text-md);
  margin-top: var(--space-sm);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: all var(--duration) var(--ease-out);
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent-light);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: var(--space-md);
}

.feature-icon.success {
  background: var(--success-soft);
  color: var(--success);
}

.feature-icon.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.feature-icon.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.feature-card h3 {
  font-size: var(--text-lg);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: 6px;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  max-width: 1080px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 60px rgba(0, 123, 192, 0.2);
  transform: scale(1.02);
}

.pricing-card.popular::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.pricing-name {
  font-size: var(--text-md);
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-amount {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-amount small {
  font-size: var(--text-md);
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  gap: 10px;
  font-size: var(--text-sm);
}

.pricing-features .fa {
  color: var(--success);
  margin-top: 4px;
}

/* Toggle / pane / block scaffolding for the rebuilt /pricing page lives in
   wwwroot/assets/css/weboard/weboard-pricing.scss → bundle-pricing.min.css
   (linked from PricingPage.cshtml only). Don't add new pricing-* selectors
   here — keep them in the SCSS source so Web Compiler picks them up. */
/* ===== UTIL: code mock ===== */
.code-block {
  background: #0a0e12;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  font-family: "JetBrains Mono", monospace;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: auto;
}

.code-block .k {
  color: #c280bb;
}

.code-block .s {
  color: #f7b90c;
}

.code-block .c {
  color: #64748b;
  font-style: italic;
}

.code-block .n {
  color: #4da5f5;
}

.code-block .t {
  color: #47cf73;
}

/* ===== EMPTY STATES ===== */
.empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--text-secondary);
}

.empty .icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.empty h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

/* ===== TOAST + ALERT ===== */
.alert {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  font-size: var(--text-sm);
}

.alert-info {
  border-color: rgba(77, 165, 245, 0.3);
  background: rgba(77, 165, 245, 0.06);
}

.alert-success {
  border-color: rgba(71, 207, 115, 0.3);
  background: var(--success-soft);
}

.alert-warning {
  border-color: rgba(247, 185, 12, 0.3);
  background: var(--warning-soft);
}

.alert-danger {
  border-color: rgba(243, 65, 65, 0.3);
  background: var(--danger-soft);
}

.alert .icon {
  flex-shrink: 0;
  font-size: 18px;
  padding-top: 1px;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.pulse {
  animation: pulse 2s var(--ease-out) infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 24px var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 40px var(--accent-glow);
  }
}
/* ===== PAGE COMPONENTS (extracted from inline blocks) ===== */
/* Profile settings — floating toast (profile-settings.js) */
#profile-toast-host {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.profile-toast {
  pointer-events: auto;
  min-width: 220px;
  max-width: 380px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  font: 13px/1.4 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateY(8px);
  background: #2c7be5;
}

.profile-toast.err {
  background: #c0392b;
}

.profile-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Profile settings — link-label select (profile-settings.js + ProfileSettings.cshtml) */
.profile-link-label {
  width: 140px;
}

/* Activity — inline comment composer + hearted action (activity.js) */
.activity-composer {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

[data-action=heart].is-active {
  color: var(--danger);
}

/* Activity card (_ActivityCard.cshtml) */
.activity-quote {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent);
}

.chip-thumb {
  width: 40px;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1f25, #2d353c);
  border-radius: var(--radius-sm);
}

/* Notification row (_NotificationRow.cshtml) */
.notif-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.notif-card.is-unread {
  border-left: 3px solid var(--accent);
}

.notif-card.is-read {
  opacity: 0.85;
}

.notif-icon-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--bg-input);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: var(--icon-color);
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
}

/* In-app 404 (App/NotFound.cshtml) */
.notfound-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 48px 16px;
  text-align: center;
}

.notfound-code {
  font-size: 96px;
  line-height: 1;
  color: var(--accent-light);
  font-family: var(--font-mono, monospace);
  margin-bottom: 8px;
}

.notfound-title {
  margin: 8px 0 12px;
}

.notfound-sub {
  max-width: 520px;
  margin: 0 auto 24px;
}

.notfound-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== VIEW-SPECIFIC COMPONENTS (extracted from inline style= attributes) ===== */
/* AppLayout chrome */
.nav-avatar-item-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.sidebar-pro-card {
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  border-color: var(--accent);
}

/* Collection card (_CollectionCard.cshtml) */
.collection-thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16/10;
  gap: 1px;
  background: var(--border-default);
}

.collection-thumb-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
}

/* Collections list (_CollectionsList.cshtml) */
.collection-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.collection-new-card {
  background: transparent;
  border-style: dashed;
  cursor: pointer;
  display: grid;
  place-items: center;
  min-height: 280px;
}

/* Dashboard (App/Dashboard.cshtml) */
.dashboard-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dashboard-kpi-value {
  font-size: var(--text-3xl);
  font-weight: 700;
}

.dashboard-main-grid {
  grid-template-columns: 2fr 1fr;
}

.dashboard-chart-svg {
  width: 100%;
  height: 220px;
}

.dashboard-recent-pen {
  text-decoration: none;
  color: inherit;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background var(--duration);
}

.dashboard-recent-pen:hover {
  background: var(--bg-hover);
} /* replaces the old inline onmouseover/onmouseout handlers */
.dashboard-recent-thumb {
  width: 56px;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1f25, #2d353c);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.dashboard-recent-meta {
  min-width: 0;
}

.dashboard-recent-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-activity-row {
  padding: var(--space-sm) 0;
}

.dashboard-activity-quote {
  margin-top: 2px;
}

/* Profile (App/Profile.cshtml) */
.profile-header {
  background: linear-gradient(180deg, var(--bg-surface), transparent);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.profile-header-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--accent-soft), transparent 60%);
  pointer-events: none;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  font-size: var(--text-3xl);
  border: 3px solid var(--bg-base);
}

.profile-identity {
  min-width: 280px;
}

.profile-display-name {
  font-size: var(--text-3xl);
}

.profile-bio {
  max-width: 540px;
}

.profile-actions {
  align-self: flex-start;
}

.profile-content-grid {
  grid-template-columns: 1fr 280px;
  gap: var(--space-2xl);
  align-items: start;
}

.profile-rank {
  width: 24px;
}

.profile-heatmap {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 3px;
}

.profile-heatmap-cell {
  aspect-ratio: 1;
  background: var(--cell-bg);
  border-radius: 2px;
}

.profile-heatmap-legend {
  display: flex;
  justify-content: space-between;
}

.profile-legend-row {
  gap: 4px;
}

.profile-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.profile-legend-swatch-0 {
  background: var(--bg-elevated);
}

.profile-legend-swatch-1 {
  background: rgba(0, 123, 192, 0.4);
}

.profile-legend-swatch-2 {
  background: var(--accent);
}

/* Account settings (App/AccountSettings.cshtml) */
.account-plan-card {
  background: linear-gradient(135deg, var(--bg-surface), rgba(0, 123, 192, 0.08));
}

.account-inset-row {
  padding: var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}

.account-icon-lg {
  font-size: 20px;
}

.account-icon-md {
  font-size: 18px;
}

.account-color-warning {
  color: var(--warning);
}

.account-danger-card {
  border-color: rgba(243, 65, 65, 0.3);
}

.account-zone-row {
  padding: var(--space-md);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
}

.account-zone-row-danger {
  padding: var(--space-md);
  border: 1px solid rgba(243, 65, 65, 0.3);
  border-radius: var(--radius-md);
}

/* Profile settings (App/ProfileSettings.cshtml) */
.profilesettings-avatar {
  width: 96px;
  height: 96px;
  font-size: var(--text-3xl);
}

.profilesettings-strong {
  color: var(--text-primary);
}

.profilesettings-toggle-row {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
}

/* Home (HomePage.cshtml) */
.home-editor-preview {
  margin-top: var(--space-3xl);
}

.home-preview-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.home-preview-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-elevated);
}

.home-traffic-lights {
  display: flex;
  gap: 6px;
}

.home-traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.home-traffic-light-red {
  background: #ff5f57;
}

.home-traffic-light-amber {
  background: #febc2e;
}

.home-traffic-light-green {
  background: #28c840;
}

.home-preview-split {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 360px;
}

.home-preview-pane {
  border-right: 1px solid var(--border-subtle);
  padding: var(--space-md);
}

.home-code-bare {
  border: none;
  padding: 0;
  background: transparent;
}

.home-preview-render {
  padding: var(--space-md);
  background: linear-gradient(135deg, #1a1f25, #0f1418);
}

.home-preview-card {
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
}

.home-preview-card-title {
  font-size: var(--text-lg);
  margin-bottom: 6px;
}

.home-collab-band {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-subtle);
}

.home-collab-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-2xl);
}

.home-text-md {
  font-size: var(--text-md);
}

.home-collab-bullet-icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.home-chat-panel {
  background: var(--bg-base);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  overflow: hidden;
}

.home-chat-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--accent-soft), transparent 60%);
  pointer-events: none;
}

.home-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.home-chat-bubble {
  background: var(--bg-elevated);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.home-chat-bubble-me {
  background: var(--accent-soft);
  color: var(--accent-light);
}

.home-cta-card {
  padding: var(--space-3xl);
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-elevated));
  overflow: hidden;
}

.home-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, var(--accent-soft), transparent 50%);
  pointer-events: none;
}

/* About / Contact / Legal (AboutPage / ContactPage / LegalPage) */
.about-section-flush {
  padding-top: 0;
}

.about-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.about-stat-amount {
  font-size: var(--text-3xl);
}

.about-team-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-text-md {
  font-size: var(--text-md);
}

.legal-hero {
  padding-bottom: var(--space-xl);
}

.legal-prose {
  font-size: var(--text-md);
  line-height: 1.7;
}

/* Error pages (NotFoundPage / ServerErrorPage) */
.error-section {
  min-height: calc(100vh - 240px);
  display: flex;
  align-items: center;
}

.error-bignum {
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 700;
  line-height: 1;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}

.notfound-bignum {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-soft));
}

.error-bignum-500 {
  background: linear-gradient(135deg, #ff6b6b, #d93636);
}

.error-body {
  max-width: 540px;
  margin-inline: auto;
}

.notfound-popular {
  margin-top: var(--space-3xl);
}

.error-trace-card {
  padding: var(--space-lg);
  text-align: left;
  max-width: 560px;
  margin-inline: auto;
}

.error-trace-pre {
  margin: 0;
  font-size: var(--text-xs);
}

/* Blog index (BlogIndexPage.cshtml) */
.blog-section {
  padding: var(--space-3xl) 0 var(--space-xl);
}

.blog-header-row {
  align-items: flex-end;
}

.blog-title {
  font-size: var(--text-4xl);
}

.blog-intro {
  font-size: var(--text-md);
}

.blog-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-xl);
}

.blog-featured-cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1f25, #2d353c);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.blog-cover-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--accent-soft), transparent 60%);
}

.blog-cover-label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  font-family: "JetBrains Mono", monospace;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.blog-cover-badges {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
}

.blog-featured-headline {
  font-size: var(--text-3xl);
}

.blog-post-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.blog-post-title {
  line-height: 1.3;
}

.blog-newsletter {
  padding: var(--space-2xl);
  margin-top: var(--space-3xl);
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-elevated));
}

.blog-newsletter-form {
  margin: var(--space-lg) auto 0;
  max-width: 480px;
}

/* Blog post (BlogPost.cshtml) */
.blogpost-backlink {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.blogpost-subtitle {
  line-height: 1.5;
}

.blogpost-meta {
  padding: var(--space-md) 0;
  border-block: 1px solid var(--border-subtle);
}

.blogpost-hero {
  aspect-ratio: 16/8;
  background: linear-gradient(135deg, #1a1f25, #2d353c);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.blogpost-cover-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, var(--accent-soft), transparent 60%);
}

.blogpost-cover-label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  font-family: "JetBrains Mono", monospace;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.blogpost-body {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--text-primary);
}

.blogpost-related {
  margin-top: var(--space-3xl);
}

.blogpost-related-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Search (SearchPage.cshtml) */
.search-title {
  font-size: var(--text-2xl);
}

.search-layout {
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
}

/* Tag (TagPage.cshtml) */
.tag-hero-section {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: radial-gradient(ellipse at top, rgba(155, 79, 150, 0.18), transparent 60%);
}

.tag-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #c280bb, #9b4f96);
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
  font-size: 32px;
  box-shadow: 0 12px 40px rgba(155, 79, 150, 0.4);
}

.tag-icon-glyph {
  color: white;
}

.tag-title {
  font-size: var(--text-4xl);
}

.tag-description {
  max-width: 540px;
}

.tag-related-row {
  gap: var(--space-xs);
}

.tag-related-label {
  margin-right: var(--space-sm);
}

.tag-content-section {
  padding: var(--space-xl) 0;
}

/* Discover trending (DiscoverTrendingPage.cshtml) */
.discover-hero-section {
  padding: var(--space-2xl) 0 var(--space-md);
}

.discover-hero-row {
  margin-bottom: var(--space-xl);
  align-items: flex-end;
  gap: var(--space-md);
}

.discover-hero-heading {
  font-size: var(--text-4xl);
  margin-top: var(--space-sm);
}

.discover-hero-subtitle {
  margin-top: var(--space-sm);
  font-size: var(--text-md);
  max-width: 640px;
}

.discover-tab-icon-fire {
  color: var(--warning);
  margin-right: 6px;
}

.discover-tab-icon-bolt {
  color: var(--accent-light);
  margin-right: 6px;
}

.discover-tag-row {
  margin: var(--space-lg) 0;
  gap: var(--space-xs);
}

.discover-spotlight-grid {
  grid-template-columns: 1.6fr 1fr;
}

.discover-pick-mock {
  font-size: var(--text-md);
}

.discover-pick-badges {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  gap: var(--space-sm);
}

.discover-pick-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.discover-spotlight-card {
  background: linear-gradient(180deg, var(--bg-surface), var(--bg-elevated));
}

.discover-spotlight-thumb {
  width: 60px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1f25, #2d353c);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

/* Help (HelpArticle / HelpIndexPage / HelpSection) */
.help-back-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.help-doc-grid {
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.help-sidebar-section {
  padding: 0;
  margin-top: var(--space-lg);
}

.help-article-summary {
  font-size: var(--text-lg);
  line-height: 1.5;
}

.help-article-body {
  padding: var(--space-2xl);
  font-size: var(--text-md);
  line-height: 1.7;
}

.help-article-card {
  display: block;
}

.helpindex-hero-section {
  padding: var(--space-3xl) 0 var(--space-xl);
  background: radial-gradient(ellipse at top, var(--accent-soft), transparent 60%);
}

.helpindex-search {
  width: 100%;
  max-width: 560px;
  margin: var(--space-xl) auto 0;
  padding: 14px 18px;
  font-size: var(--text-md);
}

.helpindex-search-input {
  font-size: var(--text-md);
}

.helpindex-sections {
  padding-top: var(--space-xl);
}

.helpindex-quicklinks-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: var(--space-3xl);
}

.helpindex-section-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.helpsection-section {
  padding-top: var(--space-2xl);
}
