/* ============================================================
   BareTools — Linear / Vercel style
   Theme system: CSS variables for light/dark
   Typography: Inter (UI) + JetBrains Mono (code)
   ============================================================ */

/* ===== CSS Custom Properties — Light (default) ===== */
:root {
  /* Backgrounds */
  --bg: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-code: #1a1d23;
  --code-bg: #1a1d23;
  --code-text: #e5e5e5;
  --code-head-bg: #23272f;
  --code-inline-bg: rgba(0,0,0,0.06);
  --arch-bg: #fafafa;
  --arch-node-bg: #ffffff;
  --arch-node-border: #e5e5e5;
  --arch-edge-color: #d4d4d4;
  --arch-node-input-bg: #fafafa;
  --arch-node-input-border: #d4d4d4;
  --arch-node-planner-bg: #eff6ff;
  --arch-node-planner-border: #93c5fd;
  --arch-node-worker-bg: #f0fdfa;
  --arch-node-worker-border: #5eead4;
  --arch-node-reviewer-bg: #f5f3ff;
  --arch-node-reviewer-border: #c4b5fd;
  --arch-node-output-bg: #f0fdf4;
  --arch-node-output-border: #86efac;
  --bg-input: #ffffff;
  --bg-hover: #f5f5f5;
  --bg-active: #ececec;

  /* Text */
  --text: #0a0a0a;
  --text-secondary: #404040;
  --text-tertiary: #525252;
  --text-muted: #8a8a8a;
  --text-inverse: #ffffff;
  --text-code: #e5e5e5;

  /* Borders */
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --border-subtle: #f0f0f0;
  --border-code: #1f1f1f;

  /* Accent — single color: cyan */
  --accent: #06b6d4;
  --accent-soft: rgba(6, 182, 212, 0.1);
  --accent-strong: #0891b2;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);

  /* Radii — friendly, approachable */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Typography */
  --font-display: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  /* Easing */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container: 1280px;

  /* Logo colors — light theme */
  --logo-primary: #0a0a0a;
  --logo-accent: #06b6d4;
  --logo-bg: #e5e5e5;
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0e1013;
  --bg-secondary: #16181d;
  --bg-tertiary: #1a1d24;
  --bg-card: #1a1d24;
  --bg-elevated: #1e2128;
  --bg-code: #1a1d23;
  --code-bg: #1a1d23;
  --code-text: #d4d4d4;
  --code-head-bg: #23272f;
  --code-inline-bg: rgba(255,255,255,0.1);
  --arch-bg: #16181d;
  --arch-node-bg: #1e2128;
  --arch-node-border: #2d3340;
  --arch-edge-color: #3d4451;
  --arch-node-input-bg: #1a1d24;
  --arch-node-input-border: #4a5160;
  --arch-node-planner-bg: #0c1a33;
  --arch-node-planner-border: #1e40af;
  --arch-node-worker-bg: #0f1c1a;
  --arch-node-worker-border: #0d9488;
  --arch-node-reviewer-bg: #1a1033;
  --arch-node-reviewer-border: #7c3aed;
  --arch-node-output-bg: #0a1a10;
  --arch-node-output-border: #16a34a;
  --bg-input: #1e2128;
  --bg-hover: #23272f;
  --bg-active: #2d3340;

  --text: #ffffff;
  --text-secondary: #d4d4d4;
  --text-tertiary: #a1a1a1;
  --text-muted: #737373;
  --text-inverse: #000000;
  --text-code: #d4d4d4;

  --border: #2d3340;
  --border-strong: #3d4451;
  --border-subtle: #23272f;
  --border-code: #2d3340;

  --accent: #06b6d4;
  --accent-soft: rgba(6, 182, 212, 0.12);
  --accent-strong: #22d3ee;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);

  /* Typography (same families) */
  --font-display: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* Logo colors — dark theme */
  --logo-primary: #ffffff;
  --logo-accent: #22d3ee;
  --logo-bg: #23272f;
}

/* ===== Base reset ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
  overflow-x: hidden;
}

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

/* ===== Accessibility: Global focus-visible ring ===== */
*:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

*:focus:not(:focus-visible) {
  outline: none !important;
}

/* Skip link — keyboard-only way to jump to main content */
.skip-link {
  position: fixed;
  top: -100px;
  left: 8px;
  z-index: var(--z-tooltip);
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* Screen-reader only helper */
.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;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

.page {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ===== Container ===== */
.container-x {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container-x {
    padding: 0 16px;
  }
}

/* ============================================================
   Navigation — Linear style
   ============================================================ */

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-bar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-secondary) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--logo-bg);
  transition: background 0.2s var(--ease);
}

.brand-logo .site-logo-svg {
  width: 28px;
  height: 28px;
  display: block;
  color: var(--logo-primary);
}

body.theme-light .brand-logo {
  /* gray tile for light theme — logo sits on a soft gray base */
}

.brand-text {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1;
}

.brand-text-ai {
  color: var(--text);
  font-weight: 600;
  margin-right: 2px;
}

.brand-text-depot {
  color: var(--accent);
  font-weight: 600;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

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

.nav-link.active {
  color: var(--text);
}

.nav-link::after {
  display: none !important;
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  padding: 0;
  flex-shrink: 0;
}

.nav-icon-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.nav-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.lang-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.75;
}

.lang-btn .chev {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 100;
  padding: 4px;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.1s var(--ease), background-color 0.1s var(--ease), border-color 0.1s var(--ease), box-shadow 0.1s var(--ease), transform 0.1s var(--ease), opacity 0.1s var(--ease), backdrop-filter 0.1s var(--ease);
  border-radius: 6px;
  gap: 8px;
}

.lang-option:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.lang-option.active {
  color: var(--text);
  background: var(--bg-active);
  font-weight: 500;
}

.lang-option > span:first-child {
  width: 24px;
  text-align: center;
}

.lang-option > span:nth-child(2) {
  flex: 1;
}

/* Nav buttons */
.btn-nav-ghost {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.btn-nav-primary {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-primary:hover {
  opacity: 0.9;
}

/* User menu */
.user-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 100;
}

.user-dropdown a,
.user-dropdown .user-item {
  color: var(--text-secondary);
  font-size: 14px;
}

.user-dropdown a:hover,
.user-dropdown .user-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* Mobile menu button */
.nav-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav-menu-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: inline-flex;
  }

  .lang-switcher,
  .auth-buttons {
    display: none;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-info-col-sticky {
    position: static;
  }
  .included-detail-list {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .article-sidebar {
    display: none;
  }
  .mobile-toc-wrap {
    display: block;
  }
  .article-main {
    max-width: 100%;
  }
  .article-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prompts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile menu drawer */
.mobile-menu-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: none;
  animation: fadeIn 0.2s var(--ease);
}

.mobile-menu-drawer.open {
  display: block;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.25s var(--ease-out);
  overflow-y: auto;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.mobile-menu-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
}

.mobile-menu-close:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  flex: 1;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  border-left: 2px solid transparent;
}

.mobile-menu-link:hover {
  color: var(--text);
  background: var(--bg-hover);
  border-left-color: var(--accent);
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 20px;
}

.mobile-menu-footer {
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-footer-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  text-align: left;
}

.mobile-menu-footer-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-hover);
}

.mobile-menu-kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-tertiary);
}

.mobile-menu-lang-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.mobile-lang-btn {
  flex: 1;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
}

.mobile-lang-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.mobile-menu-auth {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
}

/* Mobile specific fixes */
@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
    min-height: 480px;
  }

  .hero h1 {
    font-size: 36px !important;
    line-height: 1.15 !important;
  }

  .hero-subtitle {
    font-size: 16px !important;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .prompts-grid,
  .products-grid,
  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .detail-page {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .detail-title-lg {
    font-size: 32px !important;
  }

  .detail-desc-lg {
    font-size: 16px !important;
  }

  .detail-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .detail-actions-row .btn {
    width: 100%;
  }

  .detail-section {
    padding: 32px 0;
  }

  .detail-section-title {
    font-size: 22px !important;
  }

  .arch-diagram-container {
    min-height: 280px;
    padding: 12px;
  }

  .arch-canvas-wrap {
    height: 260px;
  }

  .arch-minimap {
    display: none;
  }

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

  .article-body {
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 24px;
  }

  .article-body h3 {
    font-size: 20px;
  }

  .article-title-lg {
    font-size: 32px !important;
  }

  .checkout-page,
  .download-success-page,
  .not-found-page {
    padding: 48px 0;
  }

  .not-found-code {
    font-size: 72px;
  }

  pre, .code-block {
    font-size: 12px;
  }

  .skill-file-body {
    padding: 16px;
    font-size: 14px;
  }

  .skill-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .skill-head-actions {
    width: 100%;
    margin-top: 12px;
  }

  .skill-head-actions .btn {
    flex: 1;
  }

  .prompt-var-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .prompt-example-grid {
    grid-template-columns: 1fr;
  }

  .premium-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .premium-cta-action {
    align-items: flex-start;
    width: 100%;
  }

  .premium-cta-action .btn {
    width: 100%;
  }

  .search-modal {
    max-width: none;
    margin: 16px;
  }

  .search-modal-backdrop {
    padding-top: 5vh;
  }
}

/* ============================================================
   HERO — Linear style, content platform feel
   ============================================================ */

.hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
  min-height: 520px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 0%, transparent 100%);
  pointer-events: none;
  opacity: 0.8;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.hero-eyebrow .dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--text-tertiary);
}

.hero-eyebrow .dot.accent {
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-ui);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 16px;
  text-wrap: pretty;
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 28px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-search {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.hero-search-input {
  width: 100%;
  height: 48px;
  padding: 0 80px 0 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease);
}

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

.hero-search-input::placeholder {
  color: var(--text-tertiary);
}

.hero-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  z-index: 1;
}

.hero-search-kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  line-height: 1.4;
  pointer-events: none;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
}

.hero-search:hover .hero-search-kbd {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-search-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

/* Hero hot tags */
.hero-hot-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.hero-hot-tags-label {
  font-weight: 500;
  margin-right: 4px;
}

.hero-hot-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
}

.hero-hot-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Hero CTA row */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  min-width: 160px;
  justify-content: center;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.hero-cta-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.hero-cta-btn:hover {
  transform: translateY(-1px);
}

/* Hero trust row */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-trust-item strong {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.hero-trust-item.hero-trust-free {
  color: var(--success, #10b981);
  gap: 4px;
}

.hero-trust-item.hero-trust-free svg {
  width: 14px;
  height: 14px;
}

.hero-trust-sep {
  color: var(--border);
}

/* ============================================================
   Buttons — Linear style
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

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

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

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

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

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

.btn-sm {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  height: 48px;
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.section-head-left {
  flex: 1;
}

.section-title {
  font-family: var(--font-ui);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 6px;
}

.section-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 520px;
}

.section-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  flex-shrink: 0;
}

.section-view-all:hover {
  color: var(--text);
  gap: 10px;
}

.section-view-all svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

/* ============================================================
   Cards — Linear style (12px radius, subtle border, minimal)
   ============================================================ */

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out), backdrop-filter 0.2s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text);
  flex-shrink: 0;
}

.card-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.card-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
}

.card-link:hover {
  color: var(--accent);
  gap: 6px;
}

.card-link svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Product cards */
.product-card .product-price {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.product-card .product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

/* ============================================================
   Article cards
   ============================================================ */

.articles-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out), opacity 0.2s var(--ease-out), backdrop-filter 0.2s var(--ease-out);
}

.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.article-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-secondary);
}

.article-card.featured .article-thumb {
  height: 260px;
}

.article-thumb-icon {
  font-size: 44px;
  opacity: 0.85;
}

.article-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.article-tag {
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.article-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card.featured .article-title {
  font-size: 20px;
}

.article-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   Steps / features row (small, minimal)
   ============================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.feature-item {
  padding: 28px 24px;
  text-align: left;
  border-right: 1px solid var(--border-subtle);
}

.feature-item:last-child {
  border-right: none;
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   CTA Banner — subtle
   ============================================================ */

.cta-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-title {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Category entry cards
   ============================================================ */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease), backdrop-filter 0.2s var(--ease);
  position: relative;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
}

.category-card-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.category-card-body {
  flex: 1;
  min-width: 0;
}

.category-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.category-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.category-card-count {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.category-card-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
}

.category-card:hover .category-card-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

/* ============================================================
   Scenario browsing section
   ============================================================ */

.scenario-section {
  background: var(--bg-alt);
}

.scenario-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.scenario-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, backdrop-filter 0.2s ease;
  text-align: left;
  font: inherit;
  color: inherit;
}

.scenario-chip:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.scenario-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.scenario-chip-icon svg {
  width: 20px;
  height: 20px;
}

.scenario-chip-label {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .scenario-chips {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .scenario-chips {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Value props section
   ============================================================ */

.section-head-center .section-head-left {
  text-align: center;
  margin: 0 auto;
}

.section-desc-center {
  margin: 0 auto;
}

.valueprops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.valueprop-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease), backdrop-filter 0.2s var(--ease);
}

.valueprop-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.valueprop-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
}

.valueprop-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.valueprop-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}

.valueprop-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   Tool card — stars row
   ============================================================ */

.card-footer-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
}

.card-tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.card-stars svg {
  width: 13px;
  height: 13px;
  color: #f59e0b;
}

/* ============================================================
   SPLASH PAGE — minimal
   ============================================================ */

#splashOverlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

#splashOverlay.splash-fade-out {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.splash-page {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 480px;
  padding: 40px;
}

/* Logo animation */
.splash-logo {
  margin: 0 auto 28px;
  width: 90px;
  height: 90px;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo .site-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--logo-primary);
}

.splash-anim-logo {
  animation: splashFadeIn 0.6s var(--ease-out) 0.1s forwards;
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Title */
.splash-title {
  font-family: var(--font-ui);
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 28px;
  color: var(--text);
  opacity: 0;
}

.splash-anim-title {
  animation: splashFadeUp 0.5s var(--ease-out) 0.35s forwards;
}

.splash-title-ai { color: var(--text); font-size: 0.95em; }
.splash-title-depot { color: var(--accent); }

/* Divider */
.splash-divider {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 28px;
  overflow: hidden;
  opacity: 0;
}

.splash-divider-line {
  width: 100%;
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: center;
}

.splash-anim-divider {
  animation: splashFadeIn 0.4s var(--ease-out) 0.6s forwards;
}

.splash-anim-divider .splash-divider-line {
  animation: splashLineGrow 0.7s var(--ease-out) 0.6s forwards;
}

@keyframes splashLineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Description lines */
.splash-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
}

.splash-line {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  opacity: 0;
}

.splash-anim-line-1 { animation: splashFadeUp 0.5s var(--ease-out) 0.75s forwards; }
.splash-anim-line-2 { animation: splashFadeUp 0.5s var(--ease-out) 0.9s forwards; }
.splash-anim-line-3 { animation: splashFadeUp 0.5s var(--ease-out) 1.05s forwards; }

@keyframes splashFadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA */
.splash-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.splash-anim-cta {
  animation: splashFadeUp 0.5s var(--ease-out) 1.2s forwards;
}

.splash-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
}

.splash-enter-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.splash-enter-btn:active {
  transform: translateY(0) scale(0.97);
}

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

.splash-enter-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.splash-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ============================================================
   Footer — Linear style, 4 columns
   ============================================================ */

.footer {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-subtle) !important;
  color: var(--text-secondary) !important;
  padding: 56px 0 24px !important;
  margin-top: 40px;
}

.footer-content.footer-three-col {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-col-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-copyright-mini {
  color: var(--text-tertiary);
  font-size: 12px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .footer-content.footer-three-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-col-group {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.footer-brand-col {
  padding-right: 20px;
}

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

.footer-brand-logo {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-logo .site-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
  color: var(--logo-primary);
}

body.theme-light .footer-brand-logo {
  /* SVG adapts via CSS vars */
}

.footer-brand-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.footer-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.footer h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text) !important;
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer a {
  font-size: 13.5px;
  color: var(--text-secondary) !important;
  text-decoration: none;
  transition: color 0.15s var(--ease);
  line-height: 1.5;
  cursor: pointer;
}

.footer a:hover {
  color: var(--text) !important;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle) !important;
  font-size: 12.5px;
  color: var(--text-tertiary) !important;
}

.footer-bottom-left,
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom a {
  font-size: 12.5px;
  color: var(--text-tertiary) !important;
}

.footer-bottom a:hover {
  color: var(--text-secondary) !important;
}

.social-links {
  display: flex;
  gap: 6px;
}

.social-link {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
}

.social-link:hover {
  background: var(--bg-hover);
  color: var(--text) !important;
}

.social-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
}

/* ============================================================
   Inner pages — headers & layouts
   ============================================================ */

.page-header {
  background: var(--bg) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  padding: 96px 0 48px !important;
}

.page-header h1 {
  color: var(--text) !important;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
}

.page-header p {
  color: var(--text-secondary) !important;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

.page-title-lg {
  font-size: clamp(32px, 5vw, 44px) !important;
  letter-spacing: -0.025em !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
}

.page-subtitle-lg {
  font-size: 17px !important;
  line-height: 1.6 !important;
  max-width: 600px !important;
}

/* List page search */
.list-search {
  position: relative;
  margin-bottom: 20px;
}

.list-search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  background: var(--bg-card) !important;
  color: var(--text) !important;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.list-search-input:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.list-search-input::placeholder {
  color: var(--text-tertiary) !important;
}

.list-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}

/* Filter tabs (pill style) */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  align-items: center;
}

.filter-tabs .filter-tab {
  color: var(--text-secondary) !important;
  background: transparent !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-full) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  height: 36px;
  min-height: 36px;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.filter-tabs .filter-tab:hover {
  border-color: var(--border-strong) !important;
  color: var(--text) !important;
}

.filter-tabs .filter-tab.active {
  background: var(--text) !important;
  color: var(--bg) !important;
  border-color: var(--text) !important;
}

.filter-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* Tool list section spacing */
.list-tools-section {
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Detail page */
.detail-page {
  background: var(--bg) !important;
  padding-top: 80px;
}

.breadcrumb a {
  color: var(--text-tertiary) !important;
  font-size: 13px;
}

.breadcrumb .sep {
  color: var(--border) !important;
}

.breadcrumb .current {
  color: var(--text) !important;
}

.detail-header h1 {
  color: var(--text) !important;
  font-family: var(--font-ui);
}

.detail-desc {
  color: var(--text-secondary) !important;
}

/* Workspace */
.workspace-card,
.tool-workspace,
.workspace-panel {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

.workspace-header h3 {
  color: var(--text) !important;
  font-family: var(--font-ui);
}

.code-output,
.output-area {
  background: var(--bg-code) !important;
  color: var(--text-code) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-code) !important;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-md) !important;
  font-family: inherit;
  font-size: 14px;
}

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

input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary) !important;
}

/* Usage guide */
.tool-usage-guide {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

.tool-usage-header h3 {
  color: var(--text) !important;
  font-family: var(--font-ui);
}

.tool-usage-header span {
  color: var(--text-secondary) !important;
}

.usage-icon {
  background: var(--bg-tertiary) !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-md);
}

.tool-usage-col h4 {
  color: var(--text) !important;
  font-family: var(--font-ui);
}

.tool-usage-steps li {
  color: var(--text-secondary) !important;
}

.usage-param-name {
  color: var(--text) !important;
  background: var(--bg-tertiary) !important;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.usage-param-desc {
  color: var(--text-secondary) !important;
}

/* Sidebar */
.related-section h4 {
  color: var(--text) !important;
  font-family: var(--font-ui);
}

.related-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
}

.related-item:hover {
  border-color: var(--border-strong) !important;
}

.related-item-title {
  color: var(--text) !important;
}

.related-item-desc {
  color: var(--text-secondary) !important;
}

/* Article content */
.article-content h1,
.article-content h2,
.article-content h3 {
  color: var(--text) !important;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.article-content p {
  color: var(--text-secondary) !important;
  line-height: 1.8;
  font-size: 16px;
}

.article-content a {
  color: var(--accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content code {
  background: var(--bg-tertiary) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  padding: 2px 6px;
  font-family: var(--font-mono);
}

.article-content pre {
  background: var(--bg-code) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-code) !important;
  padding: 16px !important;
  overflow-x: auto;
}

.article-content pre code {
  background: transparent !important;
  padding: 0 !important;
  color: var(--text-code) !important;
  font-size: 13px;
  line-height: 1.6;
}

.article-content blockquote {
  border: 1px solid var(--accent) !important;
  background: var(--accent-soft) !important;
  color: var(--text-secondary) !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 16px !important;
}

.article-content hr {
  border-color: var(--border-subtle) !important;
}

.article-content table {
  border-color: var(--border) !important;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-content th,
.article-content td {
  border-color: var(--border-subtle) !important;
  color: var(--text-secondary) !important;
  padding: 10px 14px;
  text-align: left;
}

.article-content th {
  background: var(--bg-secondary) !important;
  color: var(--text) !important;
  font-weight: 600;
}

/* Article body width */
.article-body-wrap {
  max-width: 780px;
  margin: 0 auto;
}

/* TOC */
.toc {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  padding: 16px;
}

.toc a {
  color: var(--text-secondary) !important;
  font-size: 13px;
  line-height: 2;
  text-decoration: none;
  display: block;
  transition: color 0.15s var(--ease);
}

.toc a:hover {
  color: var(--text) !important;
}

.toc a.active {
  color: var(--accent) !important;
  font-weight: 500;
}

/* Store / product pages */
.product-detail-hero {
  background: var(--bg) !important;
}

.pricing-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

.pricing-card.featured {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

/* Auth modals */
.auth-modal {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-xl) !important;
}

.auth-modal h2 {
  color: var(--text) !important;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.auth-modal p {
  color: var(--text-secondary) !important;
}

.auth-modal input {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-md) !important;
}

.auth-modal input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-modal .auth-divider span {
  background: var(--bg-elevated) !important;
  color: var(--text-tertiary) !important;
}

.auth-social-btn {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-md) !important;
  font-family: inherit;
}

.auth-social-btn:hover {
  background: var(--bg-hover) !important;
  border-color: var(--border-strong) !important;
}

/* Search modal */
.search-modal {
  background: var(--bg-elevated) !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-xl) !important;
  color: var(--text) !important;
}

.search-modal input {
  color: var(--text) !important;
  background: transparent !important;
  font-family: inherit;
}

.search-modal input::placeholder {
  color: var(--text-tertiary) !important;
}

.search-result-item {
  color: var(--text-secondary) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

.search-result-item:hover {
  background: var(--bg-hover) !important;
  color: var(--text) !important;
}

.search-result-type {
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
}

/* Modal backdrops */
.modal-backdrop,
.overlay,
.modal-overlay {
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

.auth-guard-hint {
  margin-bottom: 16px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.modal-form-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--text);
}

.modal-form-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.5;
}

/* Agent architecture */
.agent-arch-node {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-md) !important;
}

.agent-arch-node .node-title {
  color: var(--text) !important;
  font-weight: 600;
}

.agent-arch-node .node-desc {
  color: var(--text-secondary) !important;
  font-size: 12px;
}

.agent-arch-arrow {
  border-color: var(--border) !important;
}

.agent-flow-line {
  background: var(--border) !important;
}

/* Skill markdown */
.skill-content h1,
.skill-content h2,
.skill-content h3 {
  color: var(--text) !important;
  font-family: var(--font-ui);
}

.skill-content p {
  color: var(--text-secondary) !important;
}

.skill-content code {
  background: var(--bg-tertiary) !important;
  color: var(--text) !important;
}

.skill-content pre {
  background: var(--bg-code) !important;
  border: 1px solid var(--border-code) !important;
  border-radius: var(--radius-md) !important;
}

.skill-content a {
  color: var(--accent) !important;
}

.skill-content blockquote {
  border-left-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  color: var(--text-secondary) !important;
}

/* Prompt cards */
.prompt-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
}

.prompt-card:hover {
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-md) !important;
}

.prompt-card h3 {
  color: var(--text) !important;
}

.prompt-card p {
  color: var(--text-secondary) !important;
}

.prompt-card pre {
  background: var(--bg-code) !important;
  border: 1px solid var(--border-code) !important;
  color: var(--text-code) !important;
  border-radius: var(--radius-md) !important;
}

/* About page */
.about-page-layout {
  padding-top: 80px !important;
  background: var(--bg) !important;
}

.about-section {
  background: var(--bg) !important;
}

.about-section.alt {
  background: var(--bg-secondary) !important;
}

.about-stat-num {
  color: var(--text) !important;
  font-family: var(--font-ui);
  font-weight: 700;
}

.about-stat-label {
  color: var(--text-secondary) !important;
}

.timeline-item::before {
  background: var(--border) !important;
}

.timeline-item .tl-dot {
  background: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-soft) !important;
}

.timeline-item .tl-year {
  color: var(--accent) !important;
  font-weight: 600;
}

.timeline-item .tl-title {
  color: var(--text) !important;
}

.timeline-item .tl-desc {
  color: var(--text-secondary) !important;
}

/* Store */
.store-banner {
  background: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
}

.checkout-box {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
}

.checkout-box h3 {
  color: var(--text) !important;
}

.checkout-line {
  border-color: var(--border-subtle) !important;
}

.checkout-total {
  color: var(--text) !important;
}

/* Success / download */
.success-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
}

.success-icon-wrap {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  border-radius: var(--radius-full);
}

/* Toast */
.toast {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: inherit;
}

/* Tabs / chips */
.tabs button,
.chip {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
}

.tabs button.active,
.chip.active {
  background: var(--text) !important;
  color: var(--bg) !important;
  border-color: var(--text) !important;
}

/* Dividers */
hr,
.divider,
.divider-line {
  border-color: var(--border-subtle) !important;
  background: var(--border-subtle) !important;
}

/* Misc helpers */
.muted { color: var(--text-secondary) !important; }
.subtle { color: var(--text-tertiary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.font-ui { font-family: var(--font-ui); }
.font-mono { font-family: var(--font-mono); }

/* Panda placeholders — hidden permanently */
.panda-placeholder,
.about-light-panda,
.ai-about-visual,
.huahua-hero-wrap,
#heroPanda,
#aboutPanda,
.site-panda-container,
.site-panda {
  display: none !important;
}

/* Page transition */
.page-transition-enter {
  opacity: 0;
  transform: translateY(4px);
}
.page-transition-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

/* ============================================================
   Global search bar
   ============================================================ */

.global-search {
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.global-search .search-input {
  background: transparent !important;
  border: none !important;
  color: var(--text) !important;
  font-size: 15px;
  flex: 1;
  padding: 8px 0;
  font-family: inherit;
}

.global-search .search-input:focus {
  outline: none;
  box-shadow: none !important;
}

/* ============================================================
   UX: Auth modal enhancements (password toggle, strength meter, remember me)
   ============================================================ */
.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.form-label-row .form-label {
  margin: 0;
}

.form-forgot-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s var(--ease);
}

.form-forgot-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.form-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-with-icon .form-input {
  width: 100%;
  padding-right: 40px;
}

.form-icon-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
  transition: color 0.15s var(--ease);
}

.form-icon-btn:hover {
  color: var(--text-secondary);
}

.pwd-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: -4px;
}

.pwd-bars {
  display: flex;
  gap: 3px;
  flex: 1;
  max-width: 120px;
}

.pwd-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  opacity: 0.5;
  transition: background 0.2s var(--ease);
}

.pwd-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  min-width: 48px;
  text-align: right;
}

.form-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -4px 0 16px;
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

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

.form-required {
  color: #ef4444;
  font-weight: 600;
  margin-left: 2px;
}

/* ============================================================
   UX: Account gate (friendly unlogged-in page)
   ============================================================ */
.account-gate-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.account-gate-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-gate-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.account-gate-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 24px;
}

.account-gate-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.account-gate-actions .btn {
  min-width: 120px;
}

/* ============================================================
   UX: Profile avatar hint
   ============================================================ */
.profile-avatar-with-hint {
  position: relative;
}

.profile-avatar-hint {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--bg);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  transition: color 0.15s var(--ease);
}

.profile-avatar-hint:hover {
  color: var(--accent);
}

/* ============================================================
   UX: Review list enhancements (sort, expand, badge)
   ============================================================ */
.review-section-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 28px 0 24px;
}

.review-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.review-list-header-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.review-list-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.review-list-count {
  font-size: 14px;
  color: var(--text-tertiary);
  font-weight: 400;
}

.review-sort-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.review-sort-select label {
  font-weight: 500;
}

.review-sort-select select {
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  transition: border-color 0.15s var(--ease);
}

.review-sort-select select:hover {
  border-color: var(--border-strong);
}

.review-sort-select select:focus {
  outline: none;
  border-color: var(--accent);
}

.review-is-mine .review-avatar {
  box-shadow: 0 0 0 2px var(--accent);
}

.review-badge-you {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-full);
  vertical-align: middle;
  letter-spacing: 0.02em;
}

.review-item-content.review-content-collapsed {
  margin-bottom: 4px;
}

.review-expand-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s var(--ease);
  margin-bottom: 8px;
}

.review-expand-btn:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ============================================================
   UX: Search enhancements (suggestion tags, mobile fullscreen)
   ============================================================ */
.search-suggest-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.search-suggest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.search-suggest-tags-center {
  justify-content: center;
  margin-top: 16px;
}

.search-suggest-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
}

.search-suggest-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.search-suggest-tag svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.search-no-results-hint {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 6px 0 0;
}

@media (max-width: 640px) {
  .search-modal-backdrop {
    padding: 0;
    backdrop-filter: blur(8px);
  }

  .search-modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    top: 0;
    transform: none;
  }

  .search-results-body {
    max-height: calc(100vh - 120px);
  }

  .search-modal-footer {
    flex-wrap: wrap;
    gap: 8px;
  }

  .search-shortcuts {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
}

/* ============================================================
   UX: Account page breadcrumb alignment
   ============================================================ */
.detail-breadcrumb {
  padding-top: 20px;
}

/* ============================================================
   UX: User menu avatar hover hint
   ============================================================ */
#authUser .user-avatar-btn {
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

#authUser:hover .user-avatar-btn {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .cards-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid-3,
  .articles-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .article-card.featured {
    grid-column: 1 / -1;
  }

  .article-card.featured .article-thumb {
    height: 200px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .feature-item:nth-child(even) {
    border-left: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  .container-x {
    padding: 0 16px;
  }

  .nav-inner {
    padding: 0 16px;
  }

  .hero {
    padding: 120px 0 64px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .section-title {
    font-size: clamp(20px, 6vw, 24px);
  }

  .cards-grid-4,
  .cards-grid-3,
  .category-grid,
  .valueprops-grid,
  .cards-grid-2,
  .articles-grid,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .article-card.featured .article-thumb {
    height: 180px;
  }

  .feature-item {
    border-left: none !important;
  }

  .cta-banner {
    padding: 36px 20px;
    border-radius: var(--radius);
  }

  .cta-btns {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .cta-btns button {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom-left,
  .footer-bottom-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Splash */
  .splash-logo {
    width: 48px;
    height: 48px;
  }

  .splash-title {
    font-size: clamp(32px, 12vw, 48px);
  }

  .splash-line {
    font-size: 14px;
  }

  /* Hide some nav items on mobile */
  .btn-nav-ghost {
    display: none;
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease), backdrop-filter 0.2s var(--ease);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Detail pages — tool/agent/skill/product/article
   ============================================================ */

.detail-page {
  padding: 88px 0 80px;
}

.detail-breadcrumb {
  margin-bottom: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-breadcrumb a {
  color: var(--text-tertiary) !important;
  cursor: pointer;
  transition: color 0.15s var(--ease);
}

.detail-breadcrumb a:hover {
  color: var(--text) !important;
}

.detail-breadcrumb .sep {
  color: var(--border-strong);
}

.detail-breadcrumb .current {
  color: var(--text);
  font-weight: 500;
}

.detail-header {
  margin-bottom: 36px;
  max-width: 820px;
}

.detail-icon-wrap {
  margin-bottom: 20px;
}

.detail-icon-lg {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text);
}

.detail-icon-lg svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.75;
}

.detail-title-lg {
  font-size: clamp(28px, 4vw, 40px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
  margin: 0 0 12px !important;
  color: var(--text) !important;
  font-family: var(--font-ui) !important;
}

.detail-desc-lg {
  font-size: 17px !important;
  line-height: 1.65 !important;
  color: var(--text-secondary) !important;
  margin: 0 0 20px !important;
}

.detail-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.detail-tag-accent {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Detail header top row (title + badges) */
.detail-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.detail-header-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
  margin-top: 6px;
}

.detail-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.detail-cta-main {
  height: 40px;
  padding: 0 20px;
  font-weight: 600;
}

.detail-fav-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  min-width: unset;
  justify-content: center;
  border-radius: var(--radius-md);
}

.detail-fav-btn.is-favorited svg {
  fill: var(--accent);
  stroke: var(--accent);
}

/* Tool workspace */
.tool-workspace-wrap {
  margin-bottom: 56px;
}

.tool-workspace {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 24px;
}

.tool-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-toolbar-left, .toolbar-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tool-toolbar-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-tertiary);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tool-toolbar-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.tool-toolbar-btn.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.tool-toolbar-btn.primary:hover {
  opacity: 0.9;
}

.tool-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.workspace-panel {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.panel-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.panel-actions {
  display: flex;
  gap: 4px;
}

.panel-actions button {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
}

.panel-actions button:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.panel-actions svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.75;
}

.code-output, .output-area, textarea.tool-input {
  flex: 1;
  background: var(--bg-code) !important;
  color: var(--text-code) !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  min-height: 200px;
  width: 100%;
  outline: none;
}

textarea.tool-input:focus {
  box-shadow: none !important;
}

@media (max-width: 768px) {
  .tool-panels {
    grid-template-columns: 1fr;
  }
}

/* Detail content sections */
.detail-content {
  max-width: 820px;
  margin: 0 auto;
}

.detail-section {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
}

.detail-section:first-child {
  border-top: none;
  padding-top: 0;
}

.detail-section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 20px;
  font-family: var(--font-ui);
  line-height: 1.25;
}

.detail-section-body {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

/* Plain-language summary (top of detail page) */
.detail-plain-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 8px;
  padding: 20px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
}

.detail-plain-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-plain-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.detail-plain-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

@media (max-width: 720px) {
  .detail-plain-summary {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 14px;
  }
}

/* Section titles with badges (beginner / advanced) */
.detail-section-title-friendly {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section-title-advanced {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-section-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  line-height: 1;
}

.beginner-badge {
  background: var(--accent-soft);
  color: var(--accent);
}

.advanced-badge {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.detail-section-subtitle {
  margin: -10px 0 18px;
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.detail-section-advanced {
  border-top: 1px dashed var(--border);
  padding-top: 28px;
}

/* Steps list */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.step-content h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.step-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Feature check list */
.feature-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.feature-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 2px 0;
}

.check-icon {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .feature-check-list {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s var(--ease);
  gap: 12px;
}

.faq-q:hover {
  background: var(--bg-hover);
}

.faq-chev {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.2s var(--ease);
}

.faq-item.open .faq-chev {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s var(--ease);
  padding: 0 18px;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 18px 16px;
}

.faq-a p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Knowledge featured card */
.knowledge-featured {
  display: grid !important;
  grid-template-columns: 1.1fr 1fr !important;
  gap: 0 !important;
  min-height: 300px;
  margin-bottom: 0;
}

.knowledge-featured .article-thumb {
  height: 100% !important;
  min-height: 300px;
}

.knowledge-featured .article-body {
  padding: 32px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 14px !important;
}

.knowledge-featured .article-title {
  font-size: 22px !important;
  line-height: 1.35 !important;
  -webkit-line-clamp: 3 !important;
}

.knowledge-featured .article-desc {
  display: block !important;
  -webkit-line-clamp: unset !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
}

.article-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* Buttons — Linear style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.75;
}

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

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

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

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

.btn-accent:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

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

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

.btn-paypal {
  background: #ffc439;
  color: #003087;
  border-color: #ffc439;
  font-weight: 600;
}

.btn-paypal:hover {
  background: #ffb700;
  border-color: #ffb700;
  transform: translateY(-1px);
}

.btn-sm {
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: var(--radius-md);
}

.btn-lg {
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
}

.btn-wide {
  width: 100%;
}

.btn-price {
  font-weight: 600;
  font-size: 12px;
  opacity: 0.85;
}

/* Detail actions row */
.detail-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

/* Detail overview */
.detail-overview p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

.detail-overview p:last-child {
  margin-bottom: 0;
}

/* Architecture diagram */
.arch-diagram-container {
  position: relative;
  background: var(--arch-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 360px;
  overflow: hidden;
}

.arch-canvas-wrap {
  width: 100%;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  border-radius: var(--radius-md);
  user-select: none;
}

.arch-canvas-wrap:active {
  cursor: grabbing;
}

.arch-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.arch-flow-g {
  transition: transform 0.08s ease-out;
}

/* Node styles — theme adaptive */
.arch-node-rect {
  fill: var(--arch-node-bg);
  stroke: var(--arch-node-border);
  stroke-width: 1px;
  transition: fill 0.15s var(--ease), stroke 0.15s var(--ease);
  rx: 8;
  ry: 8;
}

.arch-node {
  cursor: pointer;
}

.arch-node:hover .arch-node-rect {
  stroke: var(--accent);
  stroke-width: 1.5px;
  filter: drop-shadow(0 2px 8px var(--accent-soft));
}

.arch-node-label {
  fill: var(--text);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-ui);
  pointer-events: none;
}

/* Node type variants — subtle,克制的颜色 */
.arch-node-input .arch-node-rect {
  fill: var(--arch-node-input-bg);
  stroke: var(--arch-node-input-border);
  stroke-dasharray: 6 3;
}

.arch-node-planner .arch-node-rect {
  fill: var(--arch-node-planner-bg);
  stroke: var(--arch-node-planner-border);
}

.arch-node-worker .arch-node-rect {
  fill: var(--arch-node-worker-bg);
  stroke: var(--arch-node-worker-border);
}

.arch-node-reviewer .arch-node-rect {
  fill: var(--arch-node-reviewer-bg);
  stroke: var(--arch-node-reviewer-border);
}

.arch-node-output .arch-node-rect {
  fill: var(--arch-node-output-bg);
  stroke: var(--arch-node-output-border);
}

/* Edges */
.arch-edge {
  stroke: var(--arch-edge-color);
  stroke-width: 1.5px;
  fill: none;
  transition: stroke 0.15s var(--ease);
}

.arch-arrow {
  fill: var(--arch-edge-color);
}

.arch-edge-animated {
  stroke-dasharray: 6 4;
  animation: archFlowDash 2s linear infinite;
}

@keyframes archFlowDash {
  to { stroke-dashoffset: -20; }
}

.arch-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.arch-ctrl-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: var(--font-ui);
  font-weight: 500;
  line-height: 1;
}

.arch-ctrl-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.arch-ctrl-btn + .arch-ctrl-btn {
  border-top: 1px solid var(--border-subtle);
}

.arch-minimap {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 120px;
  height: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  z-index: 2;
  overflow: hidden;
  opacity: 0.85;
}

.arch-minimap-inner {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(135deg, var(--arch-bg), var(--bg-tertiary));
}

.arch-minimap-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 50%, var(--accent-soft) 0, transparent 40%),
    radial-gradient(circle at 70% 50%, rgba(var(--violet-rgb, 139, 92, 246), 0.08) 0, transparent 40%);
  opacity: 0.6;
}

.minimap-vp {
  position: absolute;
  border: 1.5px solid var(--accent);
  background: rgba(6, 182, 212, 0.12);
  border-radius: 2px;
  pointer-events: none;
  transition: color 0.08s ease-out, background-color 0.08s ease-out, border-color 0.08s ease-out, box-shadow 0.08s ease-out, transform 0.08s ease-out, opacity 0.08s ease-out, backdrop-filter 0.08s ease-out;
  left: 10%;
  top: 15%;
  width: 50%;
  height: 50%;
}

.arch-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-tertiary);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

.arch-node-panel {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  animation: panelIn 0.2s var(--ease-out);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.arch-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.arch-panel-head h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.arch-panel-close {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
}

.arch-panel-close:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.arch-panel-close:hover {
  color: var(--text);
}

.arch-panel-body {
  padding: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Tag pills */
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
}

.tag-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

/* Prompt list simple */
.prompt-list-simple {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  cursor: pointer;
}

.prompt-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.prompt-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}

.prompt-item-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.prompt-item-preview {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
  font-family: var(--font-mono);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Code block */
.code-block-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--code-bg);
}

.code-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--code-head-bg);
  border-bottom: 1px solid var(--border);
}

.code-block-filename {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.code-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
}

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

.code-copy-btn svg {
  width: 12px;
  height: 12px;
}

.code-block {
  margin: 0;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.65;
  font-family: var(--font-mono);
  color: var(--code-text);
  background: var(--code-bg);
  overflow-x: auto;
}

.code-block code {
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Example grid */
.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.example-card-label {
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.example-card-text {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  min-height: 80px;
}

@media (max-width: 640px) {
  .example-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium CTA card */
.premium-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(var(--violet-rgb), 0.15));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.premium-cta-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.premium-cta-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.premium-cta-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 500px;
}

.premium-cta-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.premium-cta-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  font-family: var(--font-ui);
}

@media (max-width: 640px) {
  .premium-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .premium-cta-action {
    align-items: flex-start;
  }
}

/* Skill detail — GitHub style */
.skill-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.skill-head-left {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.skill-head-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  margin-top: 4px;
}

.skill-head-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.skill-head-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-head-path {
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.skill-head-path strong {
  color: var(--accent);
  font-weight: 500;
}

.skill-head-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.skill-head-desc {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

.skill-head-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.skill-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.skill-meta-label {
  color: var(--text-tertiary);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.skill-meta-dot {
  color: var(--border-strong);
}

.skill-head-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.section-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 32px 0;
}

/* SKILL.md file viewer */
.skill-file-viewer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 16px;
}

.skill-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
  flex-wrap: wrap;
}

.skill-file-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-file-icon {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
}

.skill-file-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-mono);
}

.skill-file-head-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.skill-view-toggle {
  display: flex;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-right: 8px;
}

.skill-view-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
}

.skill-view-btn.active {
  background: var(--text);
  color: var(--bg);
}

.skill-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
}

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

.skill-file-body {
  padding: 24px 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.skill-file-body h1, .skill-file-body h2, .skill-file-body h3, .skill-file-body h4 {
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.skill-file-body h1:first-child, .skill-file-body h2:first-child {
  margin-top: 0;
}

.skill-file-body h1 { font-size: 24px; }
.skill-file-body h2 { font-size: 20px; }
.skill-file-body h3 { font-size: 17px; }

.skill-file-body p {
  margin: 0 0 14px;
}

.skill-file-body code {
  background: var(--code-inline-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.skill-file-body pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 14px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.skill-file-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.skill-file-body ul, .skill-file-body ol {
  padding-left: 20px;
  margin: 0 0 14px;
}

.skill-file-body li {
  margin-bottom: 6px;
}

.skill-file-body blockquote {
  border: 1px solid var(--accent);
  padding-left: 16px;
  margin: 14px 0;
  color: var(--text-tertiary);
  font-style: italic;
}

/* Raw view with line numbers */
.skill-md-raw {
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.raw-line {
  display: flex;
  min-height: 22px;
}

.raw-line-num {
  display: inline-block;
  width: 40px;
  text-align: right;
  padding-right: 16px;
  color: var(--text-tertiary);
  user-select: none;
  font-family: var(--font-mono);
  font-size: 12px;
  flex-shrink: 0;
  opacity: 0.5;
}

.raw-line-code {
  flex: 1;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Article detail */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  margin-top: 48px;
}

.article-main {
  min-width: 0;
  max-width: 760px;
}

.article-eyebrow {
  margin-bottom: 16px;
}

.article-eyebrow-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-title-lg {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 20px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.article-avatar-sm {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.article-meta-name {
  color: var(--text-secondary);
  font-weight: 500;
}

.article-meta-dot {
  color: var(--border-strong);
}

/* Article body */
.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.article-body h2 {
  font-size: 28px;
  margin: 48px 0 20px;
}

.article-body h3 {
  font-size: 22px;
  margin: 32px 0 16px;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s var(--ease);
}

.article-body a:hover {
  border-bottom-color: var(--accent);
}

.article-body blockquote {
  border: 1px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-body blockquote p {
  margin: 0;
}

.article-body img {
  border-radius: var(--radius-md);
  max-width: 100%;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin: 0 0 20px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body code {
  background: var(--code-inline-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.article-body pre {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  position: relative;
}

.article-body pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* Article author card */
.article-author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  margin: 48px 0 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.article-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  flex-shrink: 0;
}

.article-author-info {
  flex: 1;
  min-width: 0;
}

.article-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.article-author-bio {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Article related block */
.article-related-block {
  margin-top: 48px;
}

.article-related-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-resource-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.related-res-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.related-res-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.related-res-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.related-res-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
}

.related-resource-card:hover .related-res-link {
  color: var(--accent);
}

.related-product-card .related-res-type {
  color: var(--violet);
}

/* Article sidebar TOC */
.article-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.article-toc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.article-toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--border-subtle);
  padding-left: 12px;
}

.article-toc-item {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 4px 0 4px 0;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.15s var(--ease);
  position: relative;
}

.article-toc-item:hover {
  color: var(--text-secondary);
}

.article-toc-item.active {
  color: var(--accent);
  font-weight: 500;
}

.article-toc-item.active::before {
  content: '';
  position: absolute;
  left: -13px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.article-toc-level-3 {
  padding-left: 16px;
  font-size: 12px;
}

.article-toc-level-3.active::before {
  left: 3px;
}

/* Mobile TOC */
.mobile-toc-wrap {
  display: none;
  margin-bottom: 32px;
}

.mobile-toc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.mobile-toc-btn svg:last-child {
  margin-left: auto;
}

.mobile-toc-list {
  display: none;
  margin-top: 4px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mobile-toc-list.open {
  display: block;
}

.mobile-toc-list .article-toc-item {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
}

.mobile-toc-list .article-toc-item.active {
  background: var(--accent-soft);
}

.mobile-toc-list .article-toc-item.active::before {
  display: none;
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .article-sidebar {
    display: none;
  }
  .mobile-toc-wrap {
    display: block;
  }
  .article-main {
    max-width: 100%;
  }
  .article-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .article-related-grid {
    grid-template-columns: 1fr;
  }
}

.article-author-card .btn-ghost {
  flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.breadcrumb a {
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb .sep {
  color: var(--border-strong);
}

.breadcrumb .current {
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Search input — Linear style */
.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  stroke-width: 2 !important;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 36px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

/* Tag pill active */
.tag-pill.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.tag-pill.active:hover {
  transform: none;
}

/* Products grid (for reuse) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-tertiary);
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

.search-item-icon-wrap {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-tertiary);
}

.search-item-icon-wrap svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75px !important;
}

/* Simple auth modal */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s var(--ease);
}

.auth-modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: slideUp 0.2s var(--ease-out);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-modal-head {
  padding: 24px 24px 0;
  text-align: center;
}

.auth-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}

.auth-modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.auth-modal-body {
  padding: 20px 24px 24px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s var(--ease);
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: var(--accent);
}

.auth-submit-btn {
  width: 100%;
  height: 40px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s var(--ease);
}

.auth-submit-btn:hover {
  opacity: 0.88;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

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

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.auth-switch a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.auth-modal-close:hover {
  color: var(--text);
}

.auth-modal {
  position: relative;
}

/* User dropdown */
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  z-index: 100;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.user-dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
}

/* Checkout page */
.checkout-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 0;
}

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

.checkout-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.checkout-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.checkout-product {
  font-size: 14px;
  color: var(--text-secondary);
}

.checkout-body {
  padding: 24px 28px;
}

.checkout-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.checkout-price-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.checkout-price-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

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

.checkout-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s var(--ease);
  box-sizing: border-box;
}

.checkout-input:focus {
  border-color: var(--accent);
}

.checkout-paypal-btn {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffc439;
  color: #003087;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.checkout-paypal-btn:hover {
  background: #ffb700;
  transform: translateY(-1px);
}

.checkout-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.checkout-sec-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Download success */
.download-success-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 80px 0;
  text-align: center;
}

.download-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-success-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2.5;
}

.download-success-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.download-success-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 auto 32px;
  line-height: 1.6;
  max-width: 400px;
}

.download-success-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 28px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 32px;
  transition: opacity 0.15s var(--ease);
}

.download-success-btn:hover {
  opacity: 0.88;
}

.download-order-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: left;
}

.download-order-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 14px;
}

.order-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
}

.order-row:last-child {
  border-bottom: none;
}

.order-label {
  color: var(--text-tertiary);
}

.order-value {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* 404 page */
.not-found-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 16px;
}

.not-found-code {
  font-size: 96px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin: 0 0 16px;
}

.not-found-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.not-found-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 400px;
  line-height: 1.6;
}

.not-found-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: opacity 0.15s var(--ease);
}

.not-found-btn:hover {
  opacity: 0.88;
}

/* Detail page base */
.detail-page {
  padding-top: 48px;
  padding-bottom: 80px;
}

.detail-breadcrumb {
  margin-bottom: 24px;
}

.detail-section {
  margin-bottom: 48px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.detail-section-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.detail-section-body p {
  margin: 0 0 12px;
}

.detail-section-body p:last-child {
  margin-bottom: 0;
}

/* Usage guide rich content */
.detail-usage-guide h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.detail-usage-guide h3:first-child {
  margin-top: 0;
}

.detail-usage-guide h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
  letter-spacing: -0.005em;
}

.detail-usage-guide ul,
.detail-usage-guide ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14.5px;
}

.detail-usage-guide ul li,
.detail-usage-guide ol li {
  margin-bottom: 6px;
}

.detail-usage-guide ul li::marker {
  color: var(--text-tertiary);
}

.detail-usage-guide ol li::marker {
  color: var(--text-tertiary);
  font-weight: 600;
}

.detail-usage-guide p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 14.5px;
}

.detail-usage-guide strong {
  color: var(--text);
  font-weight: 600;
}

.detail-usage-guide code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--accent-cyan);
  word-break: break-word;
}

.detail-usage-guide pre.code-block {
  background: var(--code-bg, #0d1117) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 16px 18px !important;
  overflow-x: auto !important;
  margin: 12px 0 18px !important;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #e6edf3 !important;
}

.detail-usage-guide pre.code-block code {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
}

.detail-usage-guide table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 13.5px;
}

.detail-usage-guide table th,
.detail-usage-guide table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.detail-usage-guide table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text);
}

.detail-usage-guide table td {
  color: var(--text-secondary);
}

/* FAQ list in usage guide (troubleshooting sections) */
.detail-usage-guide .faq-list {
  margin-top: 8px;
}

.detail-usage-guide .faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: var(--bg-secondary);
}

.detail-usage-guide .faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-weight: 500;
}

.detail-usage-guide .faq-q:hover {
  color: var(--accent-cyan);
}

.detail-usage-guide .faq-chev {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.2s ease;
}

.detail-usage-guide .faq-item.open .faq-chev {
  transform: rotate(180deg);
}

.detail-usage-guide .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 16px;
}

.detail-usage-guide .faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 16px 14px;
}

.detail-usage-guide .faq-a p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Product detail hero */
.product-hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.product-preview-col {
  min-width: 0;
}

.product-preview-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-preview-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-preview-icon {
  font-size: 96px;
  line-height: 1;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.08));
}

.product-info-col-sticky {
  position: sticky;
  top: 80px;
  align-self: start;
}

.product-info-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-info-tags {
  display: flex;
  gap: 8px;
}

.product-info-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-info-popular {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-info-title {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

.product-info-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.product-info-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0 4px;
}

.product-price-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  font-family: var(--font-ui);
}

.product-price-orig {
  font-size: 16px;
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.product-price-free {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.product-includes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.include-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.include-check {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.license-selector-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0;
}

.license-mini-option {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  text-align: center;
}

.license-mini-option:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.license-mini-option.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.product-security-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.sec-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 8px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.meta-label {
  color: var(--text-tertiary);
}

.meta-value {
  color: var(--text-secondary);
  font-weight: 500;
}

.free-get-box {
  margin: 8px 0;
}

/* Included detail list */
.included-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.included-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.include-icon-box {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Req list */
.req-list-simple {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.req-list-simple li {
  line-height: 1.6;
}

/* FAQ list — linear style */
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s var(--ease);
}

.faq-q:hover {
  background: var(--bg-hover);
}

.faq-chev {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
  color: var(--text-tertiary);
  stroke-width: 1.75 !important;
}

.faq-item.open .faq-chev {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-card);
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding-bottom: 18px;
}

.faq-a p {
  margin: 0;
}

@media (max-width: 900px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-info-col-sticky {
    position: static;
  }
  .included-detail-list {
    grid-template-columns: 1fr;
  }
}

/* Prompts page */
.prompts-page-head {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 16px;
}

.prompts-page-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.15;
}

.prompts-page-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.6;
}

.prompts-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.prompts-search-wrap {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.prompts-cats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prompt-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.prompt-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.prompt-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}

.prompt-card-bestfor {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.prompt-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.prompt-card-tags {
  display: flex;
  gap: 4px;
}

.prompt-card-tag {
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.copy-prompt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
}

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

.copy-prompt-btn svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 1024px) {
  .prompts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .prompts-grid {
    grid-template-columns: 1fr;
  }
}

/* Prompt detail expand */
.prompt-detail-panel {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}

.prompt-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.prompt-detail-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.prompt-detail-actions {
  display: flex;
  gap: 6px;
}

.prompt-detail-body {
  padding: 20px;
}

.prompt-vars-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.prompt-vars-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.prompt-vars-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prompt-var-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start;
}

.prompt-var-name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-weight: 500;
}

.prompt-var-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.prompt-var-input {
  width: 100%;
  padding: 6px 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s var(--ease);
}

.prompt-var-input:focus {
  border-color: var(--accent);
}

.prompt-example-section {
  margin-top: 20px;
}

.prompt-example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.prompt-example-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prompt-example-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.prompt-example-text {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  max-height: 180px;
  overflow-y: auto;
}

@media (max-width: 640px) {
  .prompt-var-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .prompt-example-grid {
    grid-template-columns: 1fr;
  }
}

/* Search modal */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
  animation: fadeIn 0.15s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-modal {
  width: 100%;
  max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: slideDown 0.2s var(--ease-out);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.search-modal-icon {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-modal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text);
  font-family: inherit;
  font-weight: 500;
}

.search-modal-input::placeholder {
  color: var(--text-tertiary);
}

.search-modal-kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-tertiary);
}

.search-modal-kbd kbd {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
}

.search-results-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
}

.search-group {
  margin-bottom: 8px;
}

.search-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 8px 12px 6px;
}

.search-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.1s var(--ease);
}

.search-item:hover, .search-item.active {
  background: var(--bg-hover);
}

.search-item-icon {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-top: 2px;
}

.search-item-content {
  flex: 1;
  min-width: 0;
}

.search-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.search-item-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item-type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-item.active .search-item-name {
  color: var(--accent);
}

.search-no-results {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-tertiary);
}

.search-no-results-icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.search-no-results-text {
  font-size: 14px;
}

.search-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 6px;
}

.search-recent-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.search-recent-clear {
  font-size: 11px;
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.search-recent-clear:hover {
  color: var(--text);
}

.search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
}

.search-shortcuts {
  display: flex;
  gap: 14px;
}

.search-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.search-shortcut kbd {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.article-date {
  color: var(--text-tertiary);
}

.article-date::before {
  content: '·';
  margin: 0 8px;
  color: var(--border-strong);
}

@media (max-width: 768px) {
  .knowledge-featured {
    grid-template-columns: 1fr !important;
  }
  .knowledge-featured .article-thumb {
    min-height: 180px;
  }
  .knowledge-featured .article-body {
    padding: 20px !important;
  }
}

/* Agent mini flow in card */
.agent-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 4px;
}

.agent-mini-flow {
  width: 100%;
  margin: 4px 0 8px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.7;
}

.agent-mini-flow .flow-node {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.agent-mini-flow .flow-node svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.agent-mini-flow .flow-line {
  width: 14px;
  height: 1px;
  background: var(--border);
}

.skill-card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.skill-version {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  font-weight: 500;
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* Product card tag on top right */
.product-card .product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  font-family: var(--font-ui);
}

.product-price.free {
  color: var(--accent);
}

/* URL Parse Tool */
.url-parse-panel {
  padding: 20px;
  background: var(--bg-deep);
  border-radius: 12px;
}
.url-component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.url-component-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
}
.url-component-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.url-component-value {
  font-size: 13px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}
.url-query-table-inner {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
}
.url-query-table-inner th {
  background: var(--bg-deep);
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-strong);
}
.url-query-table-inner td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-strong);
}
.url-query-table-inner tr:last-child td {
  border-bottom: none;
}
.url-query-key {
  font-weight: 600;
  color: var(--text-primary);
  width: 35%;
  font-family: 'JetBrains Mono', monospace;
}
.url-query-val code {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  word-break: break-all;
}

/* Agent Demo Panel */
.demo-panel {
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 20px;
}
.demo-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.demo-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.demo-input:focus {
  border-color: var(--accent);
}
.demo-workflow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.demo-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity .3s;
}
.demo-step.done {
  opacity: 1;
  border-color: var(--success-color, #10b981);
}
.demo-step-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.demo-step-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.demo-step-info { flex: 1; }
.demo-step-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.demo-step-status {
  font-size: 12px;
  margin-top: 2px;
}
.demo-step-status-running { color: var(--accent); }
.demo-step-status-done { color: var(--success-color, #10b981); }
.demo-output {
  margin-top: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
}
.demo-output-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border-strong);
  color: var(--text-tertiary);
}
.demo-output-content {
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.demo-output-content h4 {
  margin: 0 0 10px;
  color: var(--text-primary);
}
.demo-output-content ul {
  margin: 10px 0;
  padding-left: 20px;
}
.demo-output-content li {
  margin-bottom: 6px;
}

/* Free Download Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-card {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-tertiary);
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.modal-close:hover {
  background: var(--bg-deep);
  color: var(--text-primary);
}
.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.modal-desc {
  font-size: 14px;
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 20px;
  line-height: 1.5;
}
.modal-note {
  font-size: 12px;
  text-align: center;
  color: var(--text-tertiary);
  margin: 12px 0 0;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--accent);
}
.btn-wide {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   Account Center
   ============================================================ */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.account-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
}
.account-side-user {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-side-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.account-side-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}
.account-side-email {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.account-side-nav {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.account-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: color .15s ease-out, background-color .15s ease-out, border-color .15s ease-out, box-shadow .15s ease-out, transform .15s ease-out, opacity .15s ease-out, backdrop-filter .15s ease-out;
}
.account-nav-item:hover {
  background: var(--bg-deep);
  color: var(--text-primary);
}
.account-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.ac-nav-label { display: flex; align-items: center; gap: 10px; }
.ac-nav-badge {
  background: var(--bg-deep);
  color: var(--text-tertiary);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 10px;
}
.account-nav-item.active .ac-nav-badge {
  background: rgba(255,255,255,0.2);
  color: var(--accent);
}
.ac-nav-logout {
  margin-top: 6px;
  color: var(--danger-color, #ef4444);
  border-top: 1px solid var(--border-strong);
  padding-top: 12px;
  margin-top: 10px;
}
.ac-nav-logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger-color, #ef4444);
}

.account-content {
  min-width: 0;
}
.account-section {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 28px;
}
.account-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.account-section-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0 0 20px;
}

/* Profile card */
.profile-card {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
}
.profile-head {
  padding: 24px;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--border-strong);
}
.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
}
.profile-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.profile-email {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
}
.profile-info-grid {
  padding: 20px 24px;
  display: grid;
  gap: 16px;
}
.profile-info-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}
.profile-info-label {
  font-size: 13px;
  color: var(--text-tertiary);
}
.profile-info-value {
  font-size: 14px;
  color: var(--text-primary);
}
.profile-info-edit {
  display: flex;
  gap: 10px;
}
.profile-info-edit .form-input {
  flex: 1;
  max-width: 300px;
}

/* Orders list */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.order-card {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.order-card:hover { border-color: var(--accent); }
.order-head {
  padding: 12px 18px;
  background: var(--bg-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-strong);
}
.order-id-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-label {
  font-size: 12px;
  color: var(--text-tertiary);
}
.order-id {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}
.order-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.status-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.status-pending {
  background: rgba(251, 191, 36, 0.1);
  color: #f59e0b;
}
.order-body {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.order-product-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.order-product-meta {
  font-size: 13px;
  color: var(--text-tertiary);
  display: flex;
  gap: 8px;
  align-items: center;
}
.order-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.order-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}
.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.empty-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0 0 20px;
}

/* Favorites */
.fav-group {
  margin-bottom: 32px;
}
.fav-group:last-child { margin-bottom: 0; }
.fav-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 14px;
}
.fav-card {
  position: relative;
}
.fav-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  z-index: 2;
}
.fav-card:hover .fav-remove-btn { opacity: 1; }
.fav-remove-btn:hover { background: rgba(239, 68, 68, 0.9); }

/* Purchased products */
.product-card.purchased-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}
.purchased-card .product-card-icon {
  width: 48px;
  height: 48px;
}
.purchased-card .product-card-title {
  margin: 0 0 4px;
  font-size: 15px;
}
.purchased-card .product-card-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0 0 8px;
}
.product-card-tags { display: flex; gap: 6px; }
.product-card-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}
.product-card-actions {
  display: flex;
  gap: 8px;
}

/* Sidebar favorite button */
.article-sidebar-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-strong);
}
.sidebar-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: color .2s ease-out, background-color .2s ease-out, border-color .2s ease-out, box-shadow .2s ease-out, transform .2s ease-out, opacity .2s ease-out, backdrop-filter .2s ease-out;
}
.sidebar-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sidebar-action-btn.favorited {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
  font-weight: 600;
}

/* Product favorite button */
.product-fav-btn {
  margin-top: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: color .2s ease-out, background-color .2s ease-out, border-color .2s ease-out, box-shadow .2s ease-out, transform .2s ease-out, opacity .2s ease-out, backdrop-filter .2s ease-out;
}
.product-fav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.product-fav-btn.favorited {
  background: var(--accent-soft);
  border-style: solid;
  border-color: transparent;
  color: var(--accent);
  font-weight: 600;
}

/* User menu link */
.user-menu-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: none;
  border: none;
  border-top: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
  margin-top: 8px;
}
.user-menu-link:hover {
  background: var(--bg-deep);
}
.user-empty-hint {
  padding: 16px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Mobile account */
@media (max-width: 900px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    position: static;
  }
  .account-side-nav {
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: wrap;
  }
  .account-nav-item {
    flex: 1;
    min-width: 100px;
    justify-content: center;
  }
  .ac-nav-logout {
    border-top: none;
    margin-top: 2px;
    padding-top: 10px;
    border-left: 1px solid var(--border-strong);
  }
  .profile-info-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .order-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .order-price-row {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================
   UX Optimization: Tooltip System
   ============================================================ */
.tooltip {
  position: relative;
}

/* Default: tooltip below the trigger (safe for top-of-page elements like nav) */
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  padding: 5px 10px;
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
  z-index: 100;
  letter-spacing: 0.01em;
}

.tooltip::before {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-bottom-color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s var(--ease);
  z-index: 100;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
}

.tooltip:hover::after {
  transform: translateX(-50%) translateY(0);
}

/* Tooltip on top for bottom-edge elements */
.tooltip-above::after {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(2px);
}

.tooltip-above::before {
  top: auto;
  bottom: calc(100% + 2px);
  border-bottom-color: transparent;
  border-top-color: var(--text);
}

.tooltip-above:hover::after {
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   UX Optimization: Button Variants
   ============================================================ */
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

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

.btn-danger {
  background: var(--danger-color, #ef4444);
  color: var(--text-inverse);
  border-color: var(--danger-color, #ef4444);
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.btn-text {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding: 0 4px;
  height: auto;
  font-size: 13px;
  font-weight: 500;
}

.btn-text:hover {
  background: transparent;
  color: var(--accent-strong);
  text-decoration: underline;
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.05s;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary:disabled {
  background: var(--text-muted);
  border-color: var(--text-muted);
}

/* ============================================================
   UX Optimization: Unified Card Hover & Clickability
   ============================================================ */
.card,
.agent-card,
.skill-card,
.article-card,
.product-card {
  cursor: pointer;
}

.card .card-link svg {
  transition: transform 0.2s var(--ease);
}

.card:hover .card-link svg {
  transform: translate(2px, -2px);
}

/* ============================================================
   UX Optimization: Toast Redesign
   ============================================================ */
#toastContainer .toast {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 18px !important;
  min-width: 240px !important;
  max-width: 360px !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  opacity: 0;
  transform: translateX(20px);
  animation: toastIn 0.25s var(--ease-out) forwards !important;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#toastContainer .toast.success {
  border: 1px solid #10b981 !important;
}

#toastContainer .toast.success .toast-icon {
  color: #10b981;
}

#toastContainer .toast.error {
  border: 1px solid #ef4444 !important;
}

#toastContainer .toast.error .toast-icon {
  color: #ef4444;
}

#toastContainer .toast.warning {
  border: 1px solid #f59e0b !important;
}

#toastContainer .toast.warning .toast-icon {
  color: #f59e0b;
}

#toastContainer .toast.info {
  border: 1px solid var(--accent) !important;
}

#toastContainer .toast.info .toast-icon {
  color: var(--accent);
}

#toastContainer .toast .toast-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#toastContainer .toast .toast-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* ============================================================
   UX Optimization: Nav Active & Tooltip
   ============================================================ */
.nav-link.active {
  color: var(--text) !important;
  background: var(--bg-hover) !important;
  font-weight: 600 !important;
}

.nav-link.active::after {
  width: 16px !important;
  height: 2px;
  left: 50% !important;
  transform: translateX(-50%);
  bottom: 2px !important;
  background: linear-gradient(90deg, var(--accent), var(--violet)) !important;
  border-radius: 1px;
}

/* ============================================================
   UX Optimization: Anchor Scroll Offset
   ============================================================ */
.section,
[id^="sec-"] {
  scroll-margin-top: 80px;
}

/* ============================================================
   UX Optimization: Sign Up Button Upgrade
   ============================================================ */
.btn-signup {
  background: linear-gradient(135deg, var(--accent), var(--violet)) !important;
  color: var(--text-inverse) !important;
  border: none !important;
  padding: 7px 16px !important;
  height: 34px !important;
  border-radius: var(--radius-md) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease) !important;
  font-family: inherit !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25) !important;
}

.btn-signup:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35) !important;
  opacity: 1 !important;
}

.btn-signup:active {
  transform: translateY(0) scale(0.97) !important;
}

/* ============================================================
   UX Optimization: Hero Search Enhancement
   ============================================================ */
.hero-search-input {
  cursor: pointer;
}

.hero-search-input:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-soft) !important;
}

/* ============================================================
   UX Optimization: Modal Enhancement
   ============================================================ */
.modal-overlay {
  will-change: opacity, visibility;
}

.modal-overlay.active {
  animation: modalFadeIn 0.2s var(--ease-out) forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0);
}

/* ============================================================
   UX Optimization: Page Transition
   ============================================================ */
.page {
  animation: pageFadeIn 0.3s var(--ease-out);
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   UX Optimization: External Link Indicator
   ============================================================ */
a[target="_blank"].external-link::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M7 7h10v10'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

a[target="_blank"].external-link:hover::after {
  opacity: 1;
}

/* ============================================================
   UX: Tools list enhancements
   ============================================================ */
.list-search {
  position: relative;
}

.list-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
}

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

.tools-filter-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.tools-filter-status-label {
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

.tools-filter-chip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
}

.tools-filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
  flex-shrink: 0;
}

.tools-filter-clear:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.filter-tabs {
  align-items: center;
}

.filter-tab-count {
  margin-left: 4px;
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.filter-count {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: auto;
  flex-shrink: 0;
}

.filter-count strong {
  color: var(--text);
  font-weight: 600;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  border-radius: 50%;
  margin-bottom: 4px;
}

.empty-state-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.empty-state-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.5;
}

/* ============================================================
   UX: Tool detail layout + sticky TOC
   ============================================================ */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-toc {
  position: sticky;
  top: 96px;
  padding-top: 8px;
}

.detail-toc-inner {
  padding: 16px 0;
  border-left: 1px solid var(--border);
}

.detail-toc-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 0 20px 12px;
}

.detail-toc nav {
  display: flex;
  flex-direction: column;
}

.detail-toc-link {
  display: block;
  padding: 7px 20px 7px 19px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  cursor: pointer;
}

.detail-toc-link:hover {
  color: var(--text);
  border-left-color: var(--border-strong);
}

.detail-toc-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

/* Empty state — large variant */
.empty-state-lg {
  padding: 80px 24px;
}

.empty-state-lg .empty-state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.empty-state-lg .empty-state-icon svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 auto 20px;
  max-width: 420px;
  line-height: 1.5;
}

.empty-state .btn {
  height: 38px;
  padding: 0 16px;
}

/* List result bar + sort */
.list-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 16px;
  flex-wrap: wrap;
}

.list-result-count {
  font-size: 13px;
  color: var(--text-secondary);
}

.list-result-count strong {
  color: var(--text);
  font-weight: 600;
}

.filter-right-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.list-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.list-sort-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.list-sort-select {
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
}

.list-sort-select:hover {
  border-color: var(--border-strong);
}

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

/* Legal page */
.legal-last-updated {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-page-content h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
  color: var(--text);
  scroll-margin-top: 80px;
}

.legal-page-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

/* About: What you'll find grid */
.about-find-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.about-find-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.about-find-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.about-find-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text);
}

.about-find-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* About: Why free */
.about-why-free {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-why-free .section-label {
  justify-content: center;
}

.about-why-free .section-title {
  text-align: center;
  margin: 8px 0 12px;
}

.about-why-free .section-desc {
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  .about-find-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   UX: JSON tool enhancements
   ============================================================ */
.json-output-wrapper.tool-textarea {
  padding: 0;
  overflow: auto;
  height: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

.json-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: italic;
}

.json-error {
  padding: 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  margin: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
}

.json-error-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  gap: 12px;
}

.json-error-header strong {
  color: #ef4444;
  font-size: 13px;
  font-weight: 600;
}

.json-error-pos {
  font-size: 11px;
  color: #ef4444;
  opacity: 0.8;
  font-family: var(--font-mono);
}

.json-error-msg {
  color: var(--text-secondary);
  margin-bottom: 8px;
  word-break: break-all;
}

.json-error-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ============================================================
   UX: UUID result copy feedback
   ============================================================ */
.uuid-result-item.copied {
  background: var(--accent-soft) !important;
  border-color: var(--accent) !important;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
}

.uuid-result-item.copied code {
  color: var(--accent-strong) !important;
}

/* ============================================================
   UX: Review section enhancements
   ============================================================ */
.review-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
  gap: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
}

.review-empty-stars {
  margin-bottom: 8px;
  opacity: 0.5;
}

.review-empty-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.review-empty-desc {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 360px;
  line-height: 1.5;
}

.form-required {
  color: #ef4444;
  font-weight: 600;
  margin-left: 2px;
}

.form-hint-min {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 6px;
}

.rating-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  min-height: 18px;
  transition: color 0.15s var(--ease);
}

.rating-hint strong {
  color: var(--text);
  font-weight: 600;
}

.rating-hint.preview {
  color: var(--accent);
}

.char-count {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: right;
  margin-top: 4px;
  font-family: var(--font-mono);
}

.char-count span.char-ok {
  color: #10b981;
  font-weight: 600;
}

.review-pending-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: #10b981;
  font-weight: 500;
  margin-bottom: 16px;
}

.review-pending-note svg {
  flex-shrink: 0;
}

.modal-subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.input-error {
  animation: inputShake 0.3s ease;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ============================================================
   UX: Prompt tool form required
   ============================================================ */
.prompt-form-row label .form-required {
  color: #ef4444;
}

/* ============================================================
   Responsive: TOC hide on mobile
   ============================================================ */
@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-toc {
    display: none;
  }
}

/* ============================================================
   UX: Page header secondary subtitle
   ============================================================ */
.page-subtitle-secondary {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--text-tertiary);
  max-width: 640px;
  line-height: 1.6;
}

/* ============================================================
   UX: Architecture diagram enhancements
   ============================================================ */
.detail-section-subtitle {
  margin: -8px 0 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.arch-zoom-level {
  min-width: 48px;
  text-align: center;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0 4px;
}

.arch-ctrl-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

.arch-ctrl-reset {
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch-hint-bar {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 14px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  z-index: 3;
  pointer-events: none;
}

[data-theme="light"] .arch-hint-bar {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.arch-hint-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.arch-tap-hint {
  display: none;
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text-inverse);
  border-radius: var(--radius-full);
  font-size: 11px;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

@media (max-width: 768px) {
  .arch-hint-bar {
    display: none;
  }
  .arch-tap-hint {
    display: block;
  }
}

.arch-minimap-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  padding: 8px 10px 4px;
}

/* Arch node step number */
.arch-node-step {
  font-size: 9px;
  font-weight: 700;
  fill: var(--text-tertiary);
  font-family: var(--font-mono);
  opacity: 0.6;
}

/* Arch node panel enhancements */
.arch-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.arch-panel-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.arch-node-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

.arch-node-badge.node-type-input { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.arch-node-badge.node-type-planner { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.arch-node-badge.node-type-worker { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.arch-node-badge.node-type-reviewer { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.arch-node-badge.node-type-output { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.arch-node-badge.node-type-aggregator { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

.arch-panel-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.arch-panel-body {
  padding: 14px 18px 18px;
}

.arch-panel-section {
  margin-bottom: 14px;
}

.arch-panel-section:last-child {
  margin-bottom: 0;
}

.arch-panel-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.arch-panel-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.arch-node-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
}

.node-type-input { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.node-type-planner { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.node-type-worker { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.node-type-reviewer { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.node-type-output { background: rgba(236, 72, 153, 0.12); color: #ec4899; }
.node-type-aggregator { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }

.arch-panel-pills {
  gap: 6px !important;
}

.arch-panel-code {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============================================================
   UX: Prompts page enhancements
   ============================================================ */
.prompts-result-count {
  font-size: 13px;
  color: var(--text-secondary);
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.prompts-result-count strong {
  color: var(--text);
  font-weight: 600;
}

.prompts-empty {
  grid-column: 1 / -1 !important;
  padding: 60px 20px !important;
}

.copy-prompt-btn.copied {
  background: var(--accent) !important;
  color: var(--text-inverse) !important;
  border-color: var(--accent) !important;
}

/* ============================================================
   UX: Agent detail layout (uses same .detail-layout as tools)
   ============================================================ */
.agent-detail-layout .detail-toc {
  top: 96px;
}

/* ============================================================
   UX: Article reading progress bar
   ============================================================ */
.article-read-progress-wrap {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 90;
  background: transparent;
}

.article-read-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  border-radius: 0 2px 2px 0;
  transition: width 0.05s linear;
}

/* ============================================================
   UX: Article share + save action row
   ============================================================ */
.article-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  margin: 40px 0 8px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.article-share-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-share-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-right: 4px;
}

.article-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
}

.article-share-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-secondary);
}

.article-fav-btn-inline {
  gap: 6px;
}

/* Sidebar share buttons */
.sidebar-share-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.sidebar-share-btns {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.sidebar-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
}

.sidebar-icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-secondary);
}

.sidebar-icon-btn.copied {
  color: #10b981;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

/* ============================================================
   UX: Article prev/next navigation
   ============================================================ */
.article-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.article-nav-card {
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-nav-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.article-nav-prev {
  text-align: left;
}

.article-nav-next {
  text-align: right;
  align-items: flex-end;
}

.article-nav-dir {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.article-nav-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   UX: Product detail TOC sidebar
   ============================================================ */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

.product-detail-content {
  min-width: 0;
}

.product-detail-toc {
  position: sticky;
  top: 96px;
  align-self: start;
}

/* ============================================================
   UX: Checkout page enhancements
   ============================================================ */
.checkout-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.trust-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Email validation states */
.form-input.input-error {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.04);
}

.form-input.input-valid {
  border-color: #10b981 !important;
}

.form-hint-error {
  color: #ef4444 !important;
}

.form-hint-valid {
  color: #10b981 !important;
}

/* PayPal button processing */
.paypal-btn-gold.processing {
  opacity: 0.8;
  cursor: not-allowed;
}

.paypal-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 48, 135, 0.25);
  border-top-color: #003087;
  border-radius: 50%;
  animation: paypalSpin 0.8s linear infinite;
}

@keyframes paypalSpin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   UX: Download success page enhancements
   ============================================================ */
.success-icon-animated {
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.success-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 32px;
}

.success-note-format {
  margin-top: 4px;
}

.success-next-steps {
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.success-next-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
}

.success-next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.success-next-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  font-family: inherit;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.success-next-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.success-next-card svg {
  color: var(--accent);
}

/* ============================================================
   UX: Article body width optimization (760 -> 720 for readability)
   ============================================================ */
.article-main {
  max-width: 720px;
}

.article-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  text-wrap: pretty;
  word-spacing: 0.01em;
}

/* Paragraphs: optimal line-length + breathing room */
.article-body p {
  margin: 0 0 22px;
}

/* Section headings: more breathing room */
.article-body h2 {
  font-size: 26px;
  margin: 56px 0 18px;
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}

.article-body h3 {
  font-size: 20px;
  margin: 36px 0 12px;
  scroll-margin-top: 80px;
}

/* Link underline on hover */
.article-body a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s var(--ease);
}

.article-body a:hover {
  text-decoration-color: var(--accent);
  border-bottom: none;
}

/* Blockquote: softer, more magazine feel */
.article-body blockquote {
  margin: 28px 0;
  padding: 8px 0 8px 20px;
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 0;
}

.article-body blockquote p {
  margin: 0;
}

/* Images: add subtle frame */
.article-body img {
  margin: 24px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Code blocks in article */
.article-body pre {
  margin: 28px 0;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.65;
}

/* Tables: clean minimalist */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.article-body th,
.article-body td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-secondary);
}

/* ============================================================
   UX: Knowledge featured card enhancement
   ============================================================ */
.knowledge-featured {
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease), backdrop-filter 0.2s var(--ease);
}

.knowledge-featured:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.knowledge-featured .article-title {
  font-size: 24px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.knowledge-featured .article-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.article-card .article-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.article-card .article-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* ============================================================
   UX: Product card price emphasis
   ============================================================ */
.product-card .product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.product-card .product-price.free {
  color: #10b981;
}

.product-card-badge.free-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-weight: 600;
}

/* ============================================================
   UX: Mobile responsive adjustments
   ============================================================ */
@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-toc {
    display: none;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: none;
  }

  .mobile-toc-wrap {
    display: block !important;
  }

  .success-next-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .article-pagination {
    grid-template-columns: 1fr;
  }

  .article-nav-next {
    text-align: left;
    align-items: flex-start;
  }

  .success-next-grid {
    grid-template-columns: 1fr;
  }

  .article-actions-row {
    justify-content: center;
  }
}

/* ============================================================
   UX: Architecture diagram node active/done states
   ============================================================ */
.arch-node.node-active .arch-node-rect {
  stroke: var(--accent);
  stroke-width: 2px;
  filter: drop-shadow(0 0 12px var(--accent-soft)) drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  animation: archNodePulse 1.2s ease-in-out infinite;
}

.arch-node.node-active .arch-node-label {
  font-weight: 600;
}

@keyframes archNodePulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px var(--accent-soft)) drop-shadow(0 2px 4px rgba(0,0,0,0.08));
  }
  50% {
    filter: drop-shadow(0 0 16px var(--accent-soft)) drop-shadow(0 2px 6px rgba(0,0,0,0.12));
  }
}

.arch-node.node-done .arch-node-rect {
  stroke: #10b981;
  stroke-width: 1.5px;
  fill: rgba(16, 185, 129, 0.08);
}

.arch-node.node-done .arch-node-label {
  color: #10b981;
  fill: #10b981;
  font-weight: 500;
}

/* Edge flowing animation (during demo) */
.arch-edge.edge-flowing {
  stroke: var(--accent);
  stroke-width: 2px;
  stroke-dasharray: 4 3;
  animation: archEdgeFlow 0.8s linear infinite;
}

.arch-edge.edge-flowing + .arch-arrow,
[data-theme="light"] .arch-edge.edge-flowing ~ marker .arch-arrow,
[data-theme="dark"] .arch-edge.edge-flowing ~ marker .arch-arrow {
  fill: var(--accent);
}

@keyframes archEdgeFlow {
  to { stroke-dashoffset: -14; }
}

/* Subtle continuous flow on all edges (passive) */
.arch-edge-animated {
  stroke-dasharray: 8 6;
  animation: archFlowDashSlow 3s linear infinite;
  opacity: 0.7;
}

@keyframes archFlowDashSlow {
  to { stroke-dashoffset: -28; }
}

/* ============================================================
   UX: Variable table fill button
   ============================================================ */
.var-example-cell {
  position: relative;
  white-space: nowrap;
}

.var-example-text {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.var-fill-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  white-space: nowrap;
  vertical-align: middle;
}

.var-fill-btn:hover {
  background: var(--accent);
  color: var(--text-inverse);
}

.var-fill-btn.filled {
  background: var(--success-color, #10b981);
  color: var(--text-inverse);
}

/* ============================================================
   UX: Generated prompt live badge
   ============================================================ */
.prompt-generated-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-generated-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border-radius: var(--radius-full);
}

.prompt-generated-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: liveDotPulse 2s ease-in-out infinite;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================================================
   UX: Skill detail layout + TOC
   ============================================================ */
.skill-detail-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}

.skill-detail-layout .detail-main {
  min-width: 0;
}

.skill-detail-layout .detail-toc {
  position: sticky;
  top: 96px;
}

/* SKILL.md viewer inside section */
.skill-file-viewer {
  margin-top: 16px;
}

.skill-file-lang-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  margin-left: 8px;
}

/* ============================================================
   UX: Code block line numbers (agent detail Code section)
   ============================================================ */
.code-block-with-lines {
  display: flex;
  margin: 0;
  overflow: auto;
  max-height: 480px;
}

.code-block-lines {
  flex-shrink: 0;
  padding: 16px 12px 16px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-tertiary);
  text-align: right;
  user-select: none;
  background: rgba(0, 0, 0, 0.03);
  border-right: 1px solid var(--border);
}

[data-theme="dark"] .code-block-lines {
  background: rgba(255, 255, 255, 0.02);
}

.code-block-content {
  padding: 16px;
  flex: 1;
  min-width: 0;
}

.code-block-content code {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre;
  color: var(--code-text);
}

/* Raw view line numbers already exist via .raw-line-num, enhance */
.raw-line-num {
  display: inline-block;
  width: 40px;
  text-align: right;
  padding-right: 12px;
  margin-right: 16px;
  color: var(--text-tertiary);
  user-select: none;
  border-right: 1px solid var(--border);
}

.raw-line-code {
  display: inline;
}

/* ============================================================
   FINAL ROUND — Mobile touch-ups + A11y + Cross-page consistency
   ============================================================ */

/* ---- Mobile: filter tabs become horizontally scrollable ---- */
@media (max-width: 640px) {
  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px 20px;
    padding: 4px 16px 12px;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }

  .filter-tabs .filter-tab {
    flex-shrink: 0;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }

  .filter-count {
    margin-left: auto;
    flex-shrink: 0;
  }
}

/* ---- Form inputs: min-height for touch ---- */
.form-input,
.form-textarea,
.form-select {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
}

.form-textarea {
  min-height: 88px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

/* Input focus ring for keyboard users */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---- Tag pills: touch size ---- */
.tag-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

/* ---- Modal: proper dialog base a11y ---- */
.review-modal,
.modal {
  /* Ensure dialog is clickable and tab-reachable */
}

/* ---- Reduce motion for users who prefer it ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Back to top button: touch size + visible focus ---- */
.back-to-top {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

/* ---- Search modal input: bigger for touch ---- */
.search-modal-input {
  height: 52px;
  font-size: 16px;
}

/* ---- Mobile: prevent horizontal overflow on all pages ---- */
img, video, iframe, canvas, svg {
  max-width: 100%;
}

/* ---- A11y: Decorative icons should be aria-hidden when decorative ---- */
/* (applied via role="presentation" in markup; this is a safety net) */

/* ---- Disabled state visual reinforcement ---- */
button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- Link focus style ---- */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Mobile menu drawer: touch targets ---- */
.mobile-menu-link {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mobile-lang-btn {
  min-height: 44px;
}

.mobile-menu-footer-btn {
  min-height: 44px;
}

/* ---- Hero title: clamp for very small screens ---- */
@media (max-width: 420px) {
  .hero h1 {
    font-size: 32px !important;
  }
  .hero-subtitle {
    font-size: 15px !important;
  }
  .page-title-lg {
    font-size: 28px !important;
  }
}

/* ---- Cards grid: single column on very small screens ---- */
@media (max-width: 480px) {
  .cards-grid-3,
  .cards-grid-4,
  .cards-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* ---- TOC in detail page: toggle on mobile ---- */
@media (max-width: 1024px) {
  .detail-toc-wrap {
    position: relative;
  }
}

/* ---- Tool detail: Input/Output area stacks vertically on mobile ---- */
@media (max-width: 768px) {
  .tool-io-section {
    flex-direction: column;
  }
  .tool-io-pane {
    min-height: 200px;
  }
}

/* ---- Toast: bottom position on mobile for thumb reach ---- */
@media (max-width: 640px) {
  .toast-container {
    bottom: 80px !important;
    left: 12px !important;
    right: 12px !important;
    max-width: none !important;
  }
  .toast {
    max-width: 100% !important;
    min-height: 48px;
  }
}

/* ---- Account sidebar: scrolls horizontally on mobile ---- */
@media (max-width: 768px) {
  .account-sidebar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   Ad placeholders (shown when AdSense not enabled)
   ============================================================ */
.ad-placeholder {
  width: 100%;
  min-height: 90px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.ad-placeholder-label {
  opacity: 0.7;
}

@media (max-width: 640px) {
  .ad-placeholder {
    min-height: 70px;
    font-size: 11px;
  }
}

/* Admin alert banner (default password warning etc.) */
.admin-alert-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
}

.admin-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

[data-theme="dark"] .admin-alert-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.admin-alert-banner .btn {
  flex-shrink: 0;
}

/* Settings badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  line-height: 1;
  margin-bottom: 4px;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-muted   { background: var(--bg-tertiary); color: var(--text-tertiary); }
[data-theme="dark"] .badge-success { background: rgba(16, 185, 129, 0.15); color: #86efac; }
[data-theme="dark"] .badge-warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
[data-theme="dark"] .badge-info    { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }

/* Demo payment mode indicator on checkout */
.demo-payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Global error overlay (window.onerror fallback) */
.global-error-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.global-error-card {
  max-width: 480px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
}
.global-error-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}
.global-error-card p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.global-error-details {
  background: var(--bg-tertiary);
  padding: 12px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: left;
  margin-bottom: 20px;
  color: var(--text-tertiary);
  word-break: break-all;
  max-height: 200px;
  overflow: auto;
}

/* ============================================================
   Unified Price Badge & Filter-row (Resource Pricing Refactor)
   ============================================================ */

/* Price badge — compact pill for cards, lists, search results */
.price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
  font-family: var(--font-sans);
  user-select: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.price-badge-sm {
  padding: 2px 8px;
  font-size: 11px;
}
.price-badge-lg {
  padding: 4px 14px;
  font-size: 13px;
}
.price-badge-free {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.3);
}
.dark .price-badge-free {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.35);
}
.price-badge-paid {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
  border-color: var(--accent-dim);
}
.dark .price-badge-paid {
  background: rgba(6, 182, 212, 0.18);
}

/* In-card corner placement */
.price-badge-corner {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

/* Detail page price badge */
.detail-price-badge {
  font-size: 15px;
  padding: 6px 16px;
}
.owned-badge {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  font-weight: 600;
}
.dark .owned-badge {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

/* ===== Paywall / Locked Content Card ===== */
.paywall-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-secondary);
  border: 1.5px dashed var(--border-primary);
  border-radius: 16px;
  margin: 8px 0;
}
.paywall-card-sm {
  padding: 36px 24px;
}
.paywall-card-prompt {
  padding: 64px 32px;
  min-height: 220px;
  justify-content: center;
}
.paywall-lock-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.dark .paywall-lock-icon {
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
}
.paywall-lock-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.75;
}
.paywall-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.1;
}
.paywall-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 4px 0 8px;
}
.paywall-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 20px;
  max-width: 420px;
  line-height: 1.6;
}
.paywall-buy-btn {
  min-width: 200px;
  margin-bottom: 12px;
}
.paywall-btn-price {
  opacity: 0.9;
  font-weight: 600;
}
.paywall-secure-note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.paywall-secure-note::before {
  content: '';
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.7;
}

/* Prompt card locked copy button */
.copy-prompt-btn-locked {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.3);
}
.dark .copy-prompt-btn-locked {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}
.card-btn-locked {
  background: rgba(249, 115, 22, 0.1) !important;
  color: #f97316 !important;
  border-color: rgba(249, 115, 22, 0.3) !important;
}
.dark .card-btn-locked {
  background: rgba(249, 115, 22, 0.15) !important;
  color: #fb923c !important;
}

/* Filter row — category tabs + price tabs + count in one row */
.filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-row .filter-tabs {
  margin-bottom: 0;
}
.filter-tabs-price .filter-tab {
  padding: 6px 12px;
  font-size: 12px;
}

/* Store resource cards */
.store-resource-card {
  position: relative;
  cursor: pointer;
}
.store-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}
.store-card-head .card-icon {
  margin-bottom: 0;
}
.card-tag-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-owned-tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  font-size: 11px;
  font-weight: 600;
}
.dark .card-owned-tag {
  color: #4ade80;
}

/* Search result price badge */
.search-item-price {
  margin-left: 8px;
  vertical-align: middle;
  font-size: 11px;
  padding: 1px 7px;
}

/* Prompts price filter row */
.prompts-price-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.prompts-price-filters .tag-pill {
  cursor: pointer;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .filter-row .filter-tabs {
    width: 100%;
  }
  .filter-row .filter-count {
    margin-left: 0;
  }
}

/* ============================================================
   Tool Workspace — Unified Modern Code Editor Styling
   Replaces legacy black/white with theme-aware code editor look
   ============================================================ */

/* -- Override global dark-only vars so they work in both themes -- */
.tool-workspace {
  --tw-bg-toolbar: var(--bg-tertiary);
  --tw-bg-panel: var(--bg-secondary);
  --tw-bg-input: var(--bg-card);
  --tw-bg-output: var(--bg-secondary);
  --tw-text: var(--text);
  --tw-text-secondary: var(--text-secondary);
  --tw-text-muted: var(--text-muted);
  --tw-border: var(--border);
  --tw-border-strong: var(--border-strong);
  --tw-btn-bg: var(--bg-card);
  --tw-btn-hover: var(--bg-hover);
  --tw-code-text: var(--text);
  --tw-code-muted: var(--text-tertiary);
}

[data-theme="dark"] .tool-workspace {
  --tw-bg-toolbar: #1a1d24;
  --tw-bg-panel: #16181d;
  --tw-bg-input: #1e2128;
  --tw-bg-output: #16181d;
  --tw-text: #e2e8f0;
  --tw-text-secondary: #94a3b8;
  --tw-text-muted: #64748b;
  --tw-border: #1e2430;
  --tw-border-strong: #2d3340;
  --tw-btn-bg: #1a1d24;
  --tw-btn-hover: #23272f;
  --tw-code-text: #cbd5e1;
  --tw-code-muted: #64748b;
}

/* ---- Workspace container ---- */
.tool-workspace {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 20px !important;
  box-shadow: var(--shadow-sm);
}

/* ---- Toolbar ---- */
.tool-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px !important;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  background: var(--tw-bg-toolbar);
  border: 1px solid var(--tw-border);
  border-radius: var(--radius-md);
}

.tool-toolbar-left, .toolbar-right {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---- Toolbar buttons ---- */
.tool-toolbar-btn {
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  background: var(--tw-btn-bg) !important;
  color: var(--tw-text) !important;
  border: 1px solid var(--tw-border-strong) !important;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease) !important;
  font-family: var(--font-ui) !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.tool-toolbar-btn:hover {
  background: var(--tw-btn-hover) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: none !important;
  box-shadow: none !important;
}

.tool-toolbar-btn:active {
  transform: scale(0.97) !important;
}

.tool-toolbar-btn.primary {
  background: var(--accent) !important;
  color: var(--text-inverse) !important;
  border-color: var(--accent) !important;
  font-weight: 600 !important;
}

.tool-toolbar-btn.primary:hover {
  background: var(--accent-strong) !important;
  border-color: var(--accent-strong) !important;
  color: var(--text-inverse) !important;
}

/* ---- File upload button (match toolbar btn) ---- */
.file-upload-btn {
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  background: var(--tw-btn-bg) !important;
  color: var(--tw-text) !important;
  border: 1px solid var(--tw-border-strong) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease) !important;
  font-family: var(--font-ui) !important;
  text-transform: none !important;
}

.file-upload-btn:hover {
  background: var(--tw-btn-hover) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ---- Select / dropdown in toolbar ---- */
.tool-toolbar select {
  padding: 5px 10px !important;
  background: var(--tw-btn-bg) !important;
  border: 1px solid var(--tw-border-strong) !important;
  border-radius: 6px !important;
  color: var(--tw-text) !important;
  font-family: var(--font-ui) !important;
  font-size: 12.5px !important;
  height: 32px !important;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s var(--ease);
}

.tool-toolbar select:hover,
.tool-toolbar select:focus {
  border-color: var(--accent) !important;
}

/* ---- Switch toggle in toolbar ---- */
.switch-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 12px !important;
  color: var(--tw-text-secondary) !important;
  cursor: pointer !important;
  user-select: none;
}

.switch-track {
  width: 32px !important;
  height: 18px !important;
  border-radius: 9px !important;
  background: var(--tw-border-strong) !important;
  border: 1px solid var(--tw-border-strong) !important;
  position: relative !important;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease), backdrop-filter 0.2s var(--ease) !important;
  flex-shrink: 0;
}

.switch-track::before {
  content: '';
  position: absolute !important;
  top: 1px !important;
  left: 1px !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: var(--bg-card, #ffffff) !important;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), opacity 0.2s var(--ease), backdrop-filter 0.2s var(--ease) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

.switch-track.on {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

.switch-track.on::before {
  left: 15px !important;
  background: var(--bg-card, #ffffff) !important;
}

/* ---- Tool panels (two-column layout) ---- */
.tool-panels {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  background: transparent !important;
}

.tool-panel {
  background: var(--tw-bg-panel) !important;
  border: 1px solid var(--tw-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 16px !important;
  min-height: 320px;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

/* Input panel slightly lighter than output to distinguish */
.tool-panel:first-child {
  background: var(--tw-bg-input) !important;
}

.tool-panel:focus-within {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.tool-panel-label {
  font-family: var(--font-ui) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--tw-text-muted) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
  flex-shrink: 0;
}

/* ---- Textarea / code editor area ---- */
.tool-textarea {
  flex: 1 !important;
  width: 100% !important;
  resize: none !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: var(--tw-code-text) !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  padding: 0 !important;
}

.tool-textarea::placeholder {
  color: var(--tw-code-muted) !important;
  font-style: italic;
}

/* ---- JSON output wrapper ---- */
.json-output-wrapper.tool-textarea {
  padding: 0 !important;
  overflow: auto !important;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: var(--tw-code-text) !important;
}

/* Syntax highlighting — keep colors, they work in both themes */
.json-output-wrapper .json-key { color: #06b6d4; }
.json-output-wrapper .json-string { color: #10b981; }
.json-output-wrapper .json-number { color: #f59e0b; }
.json-output-wrapper .json-boolean { color: #f43f5e; }
.json-output-wrapper .json-null { color: #64748b; }

[data-theme="dark"] .json-output-wrapper .json-key { color: #22d3ee; }
[data-theme="dark"] .json-output-wrapper .json-string { color: #34d399; }
[data-theme="dark"] .json-output-wrapper .json-number { color: #fbbf24; }
[data-theme="dark"] .json-output-wrapper .json-boolean { color: #fb7185; }
[data-theme="dark"] .json-output-wrapper .json-null { color: #94a3b8; }

/* Empty state */
.json-empty-state {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  min-height: 200px !important;
  color: var(--tw-code-muted) !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  font-style: italic !important;
}

/* Error state */
.json-error {
  background: rgba(248, 113, 113, 0.08) !important;
  border: 1px solid rgba(248, 113, 113, 0.25) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  color: #ef4444 !important;
  font-family: var(--font-mono) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

.json-error strong { color: #ef4444 !important; }

/* ---- Tool tabs (encode/decode etc.) ---- */
.tool-tabs {
  display: flex !important;
  gap: 3px !important;
  background: var(--tw-bg-panel) !important;
  padding: 3px !important;
  border-radius: 6px !important;
  border: 1px solid var(--tw-border) !important;
}

.tool-tab {
  padding: 5px 14px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border: none !important;
  background: transparent !important;
  color: var(--tw-text-secondary) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease) !important;
  font-family: var(--font-ui) !important;
}

.tool-tab:hover { color: var(--tw-text) !important; }

.tool-tab.active {
  background: var(--accent) !important;
  color: var(--text-inverse) !important;
  font-weight: 600 !important;
}

/* ---- Workspace panel variant (older class name) ---- */
.workspace-panel {
  background: var(--tw-bg-panel) !important;
  border: 1px solid var(--tw-border) !important;
  border-radius: var(--radius-md) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.panel-header {
  background: var(--tw-bg-toolbar) !important;
  border-bottom: 1px solid var(--tw-border) !important;
}

.panel-title {
  color: var(--tw-text-secondary) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.code-output, .output-area, textarea.tool-input {
  background: transparent !important;
  color: var(--tw-code-text) !important;
  border: none !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  padding: 14px 16px !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .tool-panels {
    grid-template-columns: 1fr !important;
  }
  .tool-workspace {
    padding: 16px !important;
  }
  .tool-toolbar {
    padding: 10px;
  }
}

/* ============================================================
   Prompt Generator Tool — Theme-aware modern styling
   ============================================================ */

/* Reset the inline hardcoded bg-deep wrapper */
.tool-workspace > div[style*="--bg-deep"] {
  background: transparent !important;
}

.prompt-form {
  background: var(--tw-bg-panel) !important;
  border: 1px solid var(--tw-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 18px 20px !important;
  display: grid !important;
  gap: 14px !important;
}

.prompt-form-row {
  display: grid !important;
  gap: 6px !important;
}

.prompt-form-row label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--tw-text-secondary) !important;
  font-family: var(--font-ui) !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

.prompt-form-row label .form-required {
  color: #ef4444 !important;
  margin-left: 2px;
  font-weight: 700;
}

.prompt-form-row input,
.prompt-form-row textarea,
.prompt-form-row select {
  padding: 9px 12px !important;
  background: var(--tw-bg-input) !important;
  border: 1px solid var(--tw-border) !important;
  border-radius: 6px !important;
  color: var(--tw-text) !important;
  font-family: var(--font-ui) !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  outline: none !important;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease) !important;
  resize: vertical !important;
}

.prompt-form-row input::placeholder,
.prompt-form-row textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.7;
}

.prompt-form-row input:focus,
.prompt-form-row textarea:focus,
.prompt-form-row select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

.prompt-template-row {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  margin-bottom: -2px;
}

.prompt-template-btn {
  padding: 5px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: var(--radius-full) !important;
  border: 1px solid var(--tw-border-strong) !important;
  background: var(--tw-btn-bg) !important;
  color: var(--tw-text-secondary) !important;
  cursor: pointer !important;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease) !important;
  font-family: var(--font-ui) !important;
}

.prompt-template-btn:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

.prompt-template-btn.active {
  background: var(--accent) !important;
  color: var(--text-inverse) !important;
  border-color: var(--accent) !important;
}

.prompt-result-block {
  background: var(--tw-bg-output) !important;
  border: 1px solid var(--tw-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 18px 20px !important;
  position: relative !important;
  min-height: 200px !important;
  white-space: pre-wrap !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: var(--tw-code-text) !important;
}

.prompt-result-block .prompt-section-title {
  color: var(--accent) !important;
  font-weight: 700 !important;
  display: block !important;
  margin-top: 16px !important;
  margin-bottom: 8px !important;
  font-family: var(--font-ui) !important;
}

.prompt-result-block .prompt-section-title:first-child { margin-top: 0 !important; }
.prompt-result-block strong { color: var(--tw-text) !important; }

.prompt-history {
  margin-top: 14px !important;
  background: var(--tw-bg-panel) !important;
  border: 1px solid var(--tw-border) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 16px !important;
}

.prompt-history h4 {
  font-family: var(--font-ui) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 0 0 10px !important;
  color: var(--tw-text) !important;
  letter-spacing: -0.01em !important;
}

.prompt-history-item {
  padding: 8px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 12.5px !important;
  color: var(--tw-text-secondary) !important;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  border: 1px solid transparent !important;
  margin-bottom: 4px !important;
  font-family: var(--font-ui) !important;
}

.prompt-history-item:hover {
  background: var(--tw-btn-bg) !important;
  color: var(--tw-text) !important;
  border-color: var(--tw-border) !important;
}

.prompt-history-empty {
  font-size: 12.5px !important;
  color: var(--tw-text-muted) !important;
  text-align: center !important;
  padding: 16px 0 !important;
  font-family: var(--font-ui) !important;
}

.prompt-copy-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  border: 1px solid var(--tw-border-strong) !important;
  background: var(--tw-btn-bg) !important;
  color: var(--tw-text-secondary) !important;
  cursor: pointer !important;
  font-family: var(--font-ui) !important;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: auto !important;
  z-index: 2;
}

.prompt-copy-btn:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

.prompt-copy-btn.copied {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--text-inverse) !important;
}

/* ============================================================
   Feedback Modal
   ============================================================ */
.feedback-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}
.feedback-modal-overlay.active.enter {
  opacity: 1;
  visibility: visible;
}
.feedback-modal-overlay.leave {
  opacity: 0;
  visibility: hidden;
}

.feedback-modal {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.35),
              0 8px 24px -8px rgba(0, 0, 0, 0.25);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s var(--ease-out);
}
.feedback-modal-overlay.active.enter .feedback-modal {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
}
.modal-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.feedback-modal .modal-header {
  padding: 32px 32px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-secondary);
}
.feedback-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.dark .feedback-modal-icon {
  background: rgba(99, 102, 241, 0.2);
}
.feedback-modal-icon svg {
  width: 28px;
  height: 28px;
}
.feedback-modal .modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-primary);
  line-height: 1.35;
}
.feedback-modal .modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}
.feedback-source {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 12px 0 0;
}
.feedback-source strong {
  color: var(--text-secondary);
  font-weight: 600;
}
.feedback-source-type {
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  margin-left: 4px;
}

.feedback-modal .modal-body {
  padding: 24px 32px 28px;
}

.feedback-form .form-group {
  margin-bottom: 18px;
}
.feedback-form .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-required {
  color: #ef4444;
  margin-left: 2px;
}

.feedback-form .form-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid var(--border-primary);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  box-sizing: border-box;
}
.feedback-form textarea.form-input {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
}
.feedback-form .form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--bg-primary);
}
.feedback-form .form-input::placeholder {
  color: var(--text-tertiary);
}

.feedback-usage-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.usage-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--border-primary);
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease), backdrop-filter 0.15s var(--ease);
  color: var(--text-secondary);
  background: var(--bg-secondary);
}
.usage-option:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.usage-option input[type="radio"] {
  margin: 0;
  accent-color: var(--accent);
}
.usage-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.feedback-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.feedback-form-actions .btn {
  min-width: 120px;
}

.feedback-footnote {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  margin: 14px 0 0;
}

@media (max-width: 480px) {
  .feedback-modal .modal-header {
    padding: 24px 20px 16px;
  }
  .feedback-modal .modal-body {
    padding: 20px 20px 24px;
  }
  .feedback-modal .modal-title {
    font-size: 18px;
  }
  .feedback-form-actions {
    flex-direction: column-reverse;
  }
  .feedback-form-actions .btn {
    width: 100%;
  }
  .feedback-usage-options {
    flex-direction: column;
  }
  .usage-option {
    justify-content: flex-start;
  }
}

/* ============================================================
   Display font for major headings — DM Sans for personality
   ============================================================ */
.hero-title,
.section-title,
.splash-title,
.detail-title-lg,
.detail-section-title,
.valueprop-title,
.category-card-title,
.how-step-title,
.stats-card-number,
.cta-title {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
