/* ============================================================
   CSSPlayground.com — Master Web Stylesheet
   Modern, Responsive, SEO & AdSense-Optimized Design System
   ============================================================ */

/* 1. Core Engine Stylesheet Imports */
@import url("./engine/theme-tokens.css");
@import url("./engine/app.css");
@import url("./engine/controls.css");
@import url("./engine/panels.css");
@import url("./engine/toolbar-modals.css");

/* 2. Web Application Body & Root Resets */
:root {
  --bg: #090909;
  --surface: #111111;
  --surface2: #181818;
  --surface3: #212121;
  --border: #262626;
  --border-subtle: #1c1c1c;
  --accent: #d4d4d0;
  --accent-hover: #e5e5e0;
  --accent2: #a8a8a3;
  --accent-gradient: #e5e5e0;
  --accent-fg: #090909;
  --success: #34d399;
  --error: #f87171;
  --warning: #fbbf24;
  --info: #60a5fa;
  --text: #ecece9;
  --text-secondary: #9c9c96;
  --muted: #666662;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.55);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -2px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.65), 0 4px 6px -4px rgba(0, 0, 0, 0.65);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.7);
  --mono: 'Cascadia Mono', 'Cascadia Code', Consolas, 'SFMono-Regular', Menlo, monospace;
  --header-top-height: 50px;
  --header-nav-height: 38px;
  --header-height: 88px;
  --content-max-width: 1380px;
}

/* Light Theme Overrides */
html[data-theme="light"],
html.light-theme {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface2: #ede9e0;
  --surface3: #e2ddd2;
  --border: #d6d0c4;
  --border-subtle: #e7e2d7;
  --accent: #b84b24;
  --accent-hover: #9a3b19;
  --accent2: #1f5f4b;
  --accent-gradient: #b84b24;
  --accent-fg: #ffffff;
  --success: #0f7a53;
  --error: #c53030;
  --warning: #9a6700;
  --info: #2b6cb0;
  --text: #1c1917;
  --text-secondary: #57534e;
  --muted: #78716c;
  --shadow-sm: 0 1px 2px 0 rgba(28, 25, 23, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(28, 25, 23, 0.07), 0 2px 4px -2px rgba(28, 25, 23, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(28, 25, 23, 0.08), 0 4px 6px -4px rgba(28, 25, 23, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(28, 25, 23, 0.08), 0 8px 10px -6px rgba(28, 25, 23, 0.04);
}

/* Essential Web MPA Fix: Allow Scrolling (Override desktop app overflow:hidden) */
html, body {
  min-height: 100%;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   3. Global Header & Navigation Mega-Menu
   ============================================================ */
#site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: rgba(17, 17, 17, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

html[data-theme="light"] #site-header {
  background: rgba(255, 255, 255, 0.94);
}

/* Two-Tier Desktop Navbar */
.site-navbar {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Tier 1: Top Bar (Brand + Search + Theme Switcher + Mobile Drawer Trigger) */
.header-top-bar {
  width: 100%;
  height: var(--header-top-height, 50px);
  border-bottom: 1px solid var(--border-subtle);
  transition: margin-top 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.header-top-inner {
  max-width: var(--content-max-width, 1380px);
  width: 100%;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

/* Tier 2: Nav Menu Bar (Centered Compact Strip) */
.header-nav-bar {
  width: 100%;
  height: var(--header-nav-height, 38px);
  background: rgba(17, 17, 17, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="light"] .header-nav-bar,
html.light-theme .header-nav-bar {
  background: rgba(246, 244, 239, 0.72);
}

.header-nav-inner {
  max-width: var(--content-max-width, 1380px);
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: none;
}

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

html[data-theme="light"] .brand-text-accent,
html.light-theme .brand-text-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  height: 28px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease, background 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border: none;
  white-space: nowrap;
}

.nav-link-btn:hover,
.nav-link-btn.active,
.nav-link-btn[aria-expanded="true"] {
  color: var(--text);
  background: var(--surface2);
}

.nav-link-btn svg {
  width: 13px;
  height: 13px;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.nav-link-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}



/* Tools Dropdown & Mega Menu */
.mega-dropdown-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.mega-dropdown-wrapper.has-fullwidth {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
}

.mega-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 820px;
  max-width: 92vw;
  max-height: 82vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 22px;
  z-index: 1050;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* 5-Column Single Row Design Tools Mega Menu (Full Width of Screen) */
.mega-dropdown-panel.design-tools-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
  padding: 28px 0 32px 0;
  max-height: calc(85vh - var(--header-height));
  overflow-y: auto;
  box-sizing: border-box;
  display: none;
  z-index: 1050;
}

.mega-dropdown-panel.design-tools-panel::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

.mega-dropdown-wrapper.has-fullwidth:hover .mega-dropdown-panel.design-tools-panel,
.mega-dropdown-wrapper.has-fullwidth:focus-within .mega-dropdown-panel.design-tools-panel,
.mega-dropdown-panel.design-tools-panel.open {
  display: block !important;
}

.mega-design-inner {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  box-sizing: border-box;
}

@media (max-width: 1280px) {
  .mega-dropdown-panel.design-tools-panel {
    padding: 22px 0 26px 0;
  }
  .mega-design-inner {
    padding: 0 18px;
    gap: 16px;
  }
  .mega-tool-item a {
    font-size: 12px;
    padding: 5px 6px;
  }
}

@media (max-width: 1040px) {
  .mega-design-inner {
    padding: 0 14px;
    gap: 12px;
  }
  .mega-tool-item a {
    font-size: 11.5px;
    padding: 4px 5px;
  }
  .mega-cat-header {
    font-size: 10.5px;
  }
}

/* 5-Column Media Studio Mega Menu */
.mega-dropdown-panel.media-tools-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  padding: 28px 0 24px 0;
  z-index: 1050;
  display: none;
}

.mega-dropdown-panel.media-tools-panel::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

.mega-dropdown-wrapper.has-fullwidth:hover .mega-dropdown-panel.media-tools-panel,
.mega-dropdown-wrapper.has-fullwidth:focus-within .mega-dropdown-panel.media-tools-panel,
.mega-dropdown-panel.media-tools-panel.open {
  display: block !important;
}

.mega-media-inner {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  box-sizing: border-box;
}

.mega-media-footer {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 20px auto 0 auto;
  padding: 14px 24px 0 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}

@media (max-width: 1280px) {
  .mega-dropdown-panel.media-tools-panel {
    padding: 22px 0 26px 0;
  }
  .mega-media-inner {
    padding: 0 18px;
    gap: 16px;
  }
}

@media (max-width: 1040px) {
  .mega-media-inner {
    padding: 0 14px;
    gap: 12px;
  }
}

.mega-tool-item.upcoming {
  opacity: 0.65;
  cursor: default;
}

.upcoming-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  font-size: 12px;
  color: var(--muted);
}

.upcoming-badge {
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface2, rgba(255, 255, 255, 0.08));
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Developer Tools & Testing Mega Menus (Full Width, Similar to Design Tools) */
.mega-dropdown-panel.dev-tools-panel,
.mega-dropdown-panel.testing-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  padding: 28px 0 24px 0;
  z-index: 1050;
  display: none;
}

.mega-dropdown-panel.dev-tools-panel::before,
.mega-dropdown-panel.testing-panel::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

.mega-dropdown-wrapper.has-fullwidth:hover .mega-dropdown-panel.dev-tools-panel,
.mega-dropdown-wrapper.has-fullwidth:focus-within .mega-dropdown-panel.dev-tools-panel,
.mega-dropdown-panel.dev-tools-panel.open,
.mega-dropdown-wrapper.has-fullwidth:hover .mega-dropdown-panel.testing-panel,
.mega-dropdown-wrapper.has-fullwidth:focus-within .mega-dropdown-panel.testing-panel,
.mega-dropdown-panel.testing-panel.open {
  display: block !important;
}

.mega-dev-inner,
.mega-testing-inner {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  box-sizing: border-box;
}

.mega-dev-footer,
.mega-testing-footer {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 20px auto 0 auto;
  padding: 14px 24px 0 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}

.dev-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.15s ease;
}

.dev-hub-link:hover {
  color: var(--accent-hover);
  transform: translateX(3px);
}

@media (max-width: 1280px) {
  .mega-dropdown-panel.dev-tools-panel {
    padding: 22px 0 20px 0;
  }
  .mega-dev-inner {
    padding: 0 18px;
    gap: 16px;
  }
}

@media (max-width: 1040px) {
  .mega-dev-inner {
    padding: 0 14px;
    gap: 12px;
  }
}

/* 5-Column Hardware Tools Mega Menu (Full Width) */
.mega-dropdown-panel.hardware-tools-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  padding: 28px 0 24px 0;
  z-index: 1050;
  display: none;
}

.mega-dropdown-panel.hardware-tools-panel::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

.mega-dropdown-wrapper.has-fullwidth:hover .mega-dropdown-panel.hardware-tools-panel,
.mega-dropdown-wrapper.has-fullwidth:focus-within .mega-dropdown-panel.hardware-tools-panel,
.mega-dropdown-panel.hardware-tools-panel.open {
  display: block !important;
}

.mega-hardware-inner {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  box-sizing: border-box;
}

.mega-hardware-footer {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 20px auto 0 auto;
  padding: 14px 24px 0 24px;
  border-top: 1px solid var(--border-subtle, var(--border));
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}

@media (max-width: 1280px) {
  .mega-dropdown-panel.hardware-tools-panel {
    padding: 22px 0 20px 0;
  }
  .mega-hardware-inner {
    padding: 0 18px;
    gap: 16px;
  }
}

@media (max-width: 1040px) {
  .mega-hardware-inner {
    padding: 0 14px;
    gap: 12px;
  }
}

/* 5-Column Integrations Mega Menu (Full Width) */
.mega-dropdown-panel.integrations-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  padding: 28px 0 24px 0;
  z-index: 1050;
  display: none;
}

.mega-dropdown-panel.integrations-panel::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

.mega-dropdown-wrapper.has-fullwidth:hover .mega-dropdown-panel.integrations-panel,
.mega-dropdown-wrapper.has-fullwidth:focus-within .mega-dropdown-panel.integrations-panel,
.mega-dropdown-panel.integrations-panel.open {
  display: block !important;
}

.mega-integrations-inner {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  box-sizing: border-box;
}

.mega-integrations-footer {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 20px auto 0 auto;
  padding: 14px 24px 0 24px;
  border-top: 1px solid var(--border-subtle, var(--border));
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}

@media (max-width: 1280px) {
  .mega-dropdown-panel.integrations-panel {
    padding: 22px 0 20px 0;
  }
  .mega-integrations-inner {
    padding: 0 18px;
    gap: 16px;
  }
}

@media (max-width: 1040px) {
  .mega-integrations-inner {
    padding: 0 14px;
    gap: 12px;
  }
}

/* 5-Column Interaction Studio Mega Menu (Full Width) */
.mega-dropdown-panel.interactions-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  padding: 28px 0 24px 0;
  z-index: 1050;
  display: none;
}

.mega-dropdown-panel.interactions-panel::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

.mega-dropdown-wrapper.has-fullwidth:hover .mega-dropdown-panel.interactions-panel,
.mega-dropdown-wrapper.has-fullwidth:focus-within .mega-dropdown-panel.interactions-panel,
.mega-dropdown-panel.interactions-panel.open {
  display: block !important;
}

.mega-interactions-inner {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  box-sizing: border-box;
}

.mega-interactions-footer {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 20px auto 0 auto;
  padding: 14px 24px 0 24px;
  border-top: 1px solid var(--border-subtle, var(--border));
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}

@media (max-width: 1280px) {
  .mega-dropdown-panel.interactions-panel {
    padding: 22px 0 20px 0;
  }
  .mega-interactions-inner {
    padding: 0 18px;
    gap: 16px;
  }
}

@media (max-width: 1040px) {
  .mega-interactions-inner {
    padding: 0 14px;
    gap: 12px;
  }
}

/* 5-Column Widgets Studio Mega Menu (Full Width) */
.mega-dropdown-panel.widgets-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: none;
  border-right: none;
  border-radius: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  padding: 28px 0 24px 0;
  z-index: 1050;
  display: none;
}

.mega-dropdown-panel.widgets-panel::before {
  content: '';
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
  pointer-events: auto;
}

.mega-dropdown-wrapper.has-fullwidth:hover .mega-dropdown-panel.widgets-panel,
.mega-dropdown-wrapper.has-fullwidth:focus-within .mega-dropdown-panel.widgets-panel,
.mega-dropdown-panel.widgets-panel.open {
  display: block !important;
}

.mega-widgets-inner {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  box-sizing: border-box;
}

.mega-widgets-footer {
  width: 100%;
  max-width: var(--content-max-width, 1380px);
  margin: 20px auto 0 auto;
  padding: 14px 24px 0 24px;
  border-top: 1px solid var(--border-subtle, var(--border));
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}

@media (max-width: 1280px) {
  .mega-dropdown-panel.widgets-panel {
    padding: 22px 0 20px 0;
  }
  .mega-widgets-inner {
    padding: 0 18px;
    gap: 16px;
  }
}

@media (max-width: 1040px) {
  .mega-widgets-inner {
    padding: 0 14px;
    gap: 12px;
  }
}

.mega-dropdown-wrapper:hover .mega-dropdown-panel:not(.design-tools-panel):not(.media-tools-panel):not(.dev-tools-panel):not(.hardware-tools-panel):not(.integrations-panel):not(.interactions-panel):not(.widgets-panel),
.mega-dropdown-wrapper:focus-within .mega-dropdown-panel:not(.design-tools-panel):not(.dev-tools-panel):not(.media-tools-panel):not(.hardware-tools-panel):not(.integrations-panel):not(.interactions-panel):not(.widgets-panel),
.mega-dropdown-panel.open:not(.design-tools-panel):not(.dev-tools-panel):not(.media-tools-panel):not(.hardware-tools-panel):not(.integrations-panel):not(.interactions-panel):not(.widgets-panel) {
  display: grid;
}

.mega-category {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-cat-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #e2e8f0;
  transition: border-color 0.15s ease;
}

.mega-cat-header .cat-count-badge {
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--mono);
  padding: 1.5px 7px;
  border-radius: 9999px;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0;
  text-transform: none;
  background: var(--surface2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: none;
  transition: all 0.15s ease;
}

.mega-cat-header a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.mega-cat-header a:hover {
  color: var(--accent);
}

.mega-category:hover .mega-cat-header {
  border-bottom-color: var(--muted);
}

.mega-category:hover .mega-cat-header .cat-count-badge {
  background: var(--surface3);
  border-color: var(--muted);
  color: var(--text);
  box-shadow: none;
}

/* Light Theme Overrides for Mega Menu Columns */
html[data-theme="light"] .mega-cat-header,
html[data-theme="light"] .mega-cat-header a,
html.light-theme .mega-cat-header,
html.light-theme .mega-cat-header a {
  color: var(--text);
}

html[data-theme="light"] .mega-cat-header a:hover,
html.light-theme .mega-cat-header a:hover {
  color: var(--accent);
}

html[data-theme="light"] .mega-cat-header,
html.light-theme .mega-cat-header {
  border-bottom-color: var(--border);
}

html[data-theme="light"] .mega-cat-header .cat-count-badge,
html.light-theme .mega-cat-header .cat-count-badge {
  background: rgba(184, 75, 36, 0.08);
  color: var(--accent);
  border-color: rgba(184, 75, 36, 0.24);
  box-shadow: none;
}

html[data-theme="light"] .mega-category:hover .mega-cat-header,
html.light-theme .mega-category:hover .mega-cat-header {
  border-bottom-color: rgba(184, 75, 36, 0.35);
}

html[data-theme="light"] .mega-category:hover .mega-cat-header .cat-count-badge,
html.light-theme .mega-category:hover .mega-cat-header .cat-count-badge {
  background: rgba(184, 75, 36, 0.15);
  border-color: rgba(184, 75, 36, 0.45);
  color: var(--accent-hover);
  box-shadow: none;
}

.mega-tool-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-tool-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.mega-tool-item a:hover {
  background: var(--surface2);
  color: var(--text);
  transform: translateX(2px);
}

/* Active State in Dark Theme (Matches Mobile Menu) */
.mega-tool-item.active a {
  background: var(--surface2);
  color: var(--text);
  font-weight: 600;
  border-left: 3px solid var(--accent);
}

.mega-active-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
  flex-shrink: 0;
}

/* Category column header active state when containing active tool */
.mega-category.has-active > .mega-cat-header {
  border-bottom-color: var(--muted);
}

.mega-category.has-active > .mega-cat-header a {
  color: var(--text);
}

.mega-category.has-active .cat-count-badge {
  background: var(--surface3);
  border-color: var(--muted);
  color: var(--text);
  box-shadow: none;
}

/* Active State in Light Theme (Matches Mobile Menu) */
html[data-theme="light"] .mega-tool-item.active a,
html.light-theme .mega-tool-item.active a {
  background: rgba(184, 75, 36, 0.09);
  color: var(--accent);
  font-weight: 600;
  border-left: 3px solid var(--accent);
}

html[data-theme="light"] .mega-active-dot,
html.light-theme .mega-active-dot {
  background: var(--accent);
  box-shadow: none;
}

html[data-theme="light"] .mega-category.has-active > .mega-cat-header,
html.light-theme .mega-category.has-active > .mega-cat-header {
  border-bottom-color: rgba(184, 75, 36, 0.45);
}

html[data-theme="light"] .mega-category.has-active > .mega-cat-header a,
html.light-theme .mega-category.has-active > .mega-cat-header a {
  color: var(--accent);
}

html[data-theme="light"] .mega-category.has-active .cat-count-badge,
html.light-theme .mega-category.has-active .cat-count-badge {
  background: rgba(184, 75, 36, 0.14);
  border-color: rgba(184, 75, 36, 0.42);
  color: var(--accent-hover);
  box-shadow: none;
}

/* Quick Search Pill (Ctrl + K) */
.nav-search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-search-pill:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface3);
}

.search-pill-kbd {
  font-size: 10px;
  font-family: var(--mono);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--muted);
}

/* Theme Switcher Button */
.theme-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--surface2);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}
.theme-toggle-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Language Switcher Button & Dropdown */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
}
.lang-switcher-btn {
  height: 34px;
  padding: 0 10px;
  gap: 6px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
}
.lang-switcher-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}
.lang-switcher-btn .lang-icon {
  opacity: 0.85;
}
.lang-switcher-btn .lang-chevron {
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.lang-switcher-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 155px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1050;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.lang-dropdown-menu.open {
  display: flex;
}
.lang-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-menu-item:hover {
  background: var(--surface2);
  color: var(--text);
}
.lang-menu-item.active {
  background: var(--surface2);
  color: var(--accent);
  font-weight: 600;
}
.lang-menu-item .lang-code {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-left: auto;
  margin-right: 8px;
}
.lang-menu-item.active .lang-code {
  color: var(--accent);
}
.lang-menu-item .lang-check {
  font-weight: 700;
  color: var(--accent);
}

/* Drawer Language Buttons */
.drawer-lang-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.drawer-lang-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}
.drawer-lang-btn.active {
  background: var(--surface3);
  color: var(--accent);
  border-color: var(--accent);
}

/* CTA Button */
.btn-cta-desktop {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-gradient);
  color: var(--accent-fg, #ffffff) !important;
  font-weight: 600;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  box-shadow: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn-cta-desktop:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Mobile Hamburger Toggle */
.mobile-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  backdrop-filter: blur(4px);
}
.mobile-drawer-overlay.open {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.25s ease-out;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px;
  gap: 16px;
}
.mobile-drawer.open {
  transform: translateX(0);
}

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

.drawer-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #e2e8f0;
  margin-top: 14px;
  margin-bottom: 6px;
}
html[data-theme="light"] .drawer-group-title,
html.light-theme .drawer-group-title {
  color: #0f172a;
}

.drawer-cat-accordion {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}
.drawer-cat-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #e2e8f0;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: color 0.15s ease;
}

html[data-theme="light"] .drawer-cat-title,
html.light-theme .drawer-cat-title {
  color: #0f172a;
}

.drawer-cat-title:hover {
  color: var(--accent);
}

/* Mobile Drawer Tool Links & Active Highlighting */
.drawer-tool-list {
  list-style: none;
  padding: 4px 0 6px 8px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drawer-tool-item {
  list-style: none;
  margin: 0;
}

.drawer-tool-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.drawer-tool-link:hover {
  background: var(--surface2);
  color: var(--text);
  transform: translateX(2px);
}

/* Active State in Dark Theme */
.drawer-tool-link.active,
.drawer-tool-item.active .drawer-tool-link {
  background: var(--surface2);
  color: var(--text);
  font-weight: 600;
  border-left: 3px solid var(--accent);
}

.drawer-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
  flex-shrink: 0;
}

.drawer-accordion-icon {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.drawer-cat-accordion.has-active > .drawer-cat-title {
  color: var(--text);
}

.drawer-cat-accordion.has-active .cat-count-badge {
  background: var(--surface3);
  border-color: var(--muted);
  color: var(--text);
}

/* Active State in Light Theme */
html[data-theme="light"] .drawer-tool-link,
html.light-theme .drawer-tool-link {
  color: var(--text-secondary);
}

html[data-theme="light"] .drawer-tool-link:hover,
html.light-theme .drawer-tool-link:hover {
  background: var(--surface2);
  color: var(--text);
}

html[data-theme="light"] .drawer-tool-link.active,
html[data-theme="light"] .drawer-tool-item.active .drawer-tool-link,
html.light-theme .drawer-tool-link.active,
html.light-theme .drawer-tool-item.active .drawer-tool-link {
  background: rgba(184, 75, 36, 0.09);
  color: var(--accent);
  font-weight: 600;
  border-left: 3px solid var(--accent);
}

html[data-theme="light"] .drawer-active-dot,
html.light-theme .drawer-active-dot {
  background: var(--accent);
  box-shadow: none;
}

html[data-theme="light"] .drawer-cat-accordion.has-active > .drawer-cat-title,
html.light-theme .drawer-cat-accordion.has-active > .drawer-cat-title {
  color: var(--accent);
}

html[data-theme="light"] .drawer-cat-accordion.has-active .cat-count-badge,
html.light-theme .drawer-cat-accordion.has-active .cat-count-badge {
  background: rgba(184, 75, 36, 0.14);
  border-color: rgba(184, 75, 36, 0.42);
  color: var(--accent-hover);
}

/* ============================================================
   4. Spotlight Search Modal (Ctrl + K)
   ============================================================ */
.spotlight-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  z-index: 3000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.spotlight-modal-overlay.open {
  display: flex;
}

.spotlight-box {
  width: 640px;
  max-width: 92vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: spotlightIn 0.18s ease-out;
}

@keyframes spotlightIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.spotlight-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.spotlight-input-wrap svg {
  color: var(--muted);
  flex-shrink: 0;
}
.spotlight-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
}
.spotlight-input::placeholder {
  color: var(--muted);
}

.spotlight-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
  list-style: none;
}

.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.1s ease;
}
.spotlight-item:hover,
.spotlight-item.selected {
  background: var(--surface2);
}

.spotlight-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spotlight-item-name {
  font-weight: 600;
  font-size: 13.5px;
}
.spotlight-item-cat {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface3);
  padding: 2px 7px;
  border-radius: 4px;
}

.spotlight-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

/* ============================================================
   5. Page Layout & Breadcrumbs
   ============================================================ */
.page-container {
  flex: 1;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 16px 20px 60px;
}

.site-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.site-breadcrumbs a {
  color: var(--text-secondary);
}
.site-breadcrumbs a:hover {
  color: var(--accent);
}

.bc-sep {
  opacity: 0.5;
}

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

/* ============================================================
   6. Tool Stage & Focus Mode (Zen Mode)
   ============================================================ */
.tool-stage-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 36px;
  position: relative;
}

/* Top toolbar with generator title & Focus Mode toggle */
.tool-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  min-height: 46px;
}

.tool-top-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.tool-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Report a Bug Button on Tool Pages */
.btn-report-bug {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  text-decoration: none;
  line-height: 1;
}
.btn-report-bug:hover {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
}
.btn-report-bug svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Focus Mode Button */
.btn-focus-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.btn-focus-mode:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface3);
}

.btn-focus-mode svg {
  width: 14px;
  height: 14px;
}

.esc-badge {
  font-size: 10px;
  font-family: var(--mono);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 4px;
  color: var(--muted);
}

/* Workspace Interactive Stage */
#tool-app:not(.bua-tool-card) {
  width: 100%;
  min-height: 720px;
  height: calc(100vh - 170px);
  max-height: 960px;
  display: flex;
  flex-direction: column;
}

#tool-app:not(.bua-tool-card) .workspace {
  height: 100%;
  flex: 1;
}

/* FOCUS MODE ACTIVE STATE */
body.focus-mode-active {
  overflow: hidden !important;
  height: 100vh !important;
  width: 100vw !important;
  }

body.focus-mode-active #site-header,
body.focus-mode-active #site-footer,
body.focus-mode-active .site-breadcrumbs,
body.focus-mode-active .tool-seo-section {
  display: none !important;
}

body.focus-mode-active .page-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
}

body.focus-mode-active .tool-stage-wrapper {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}

body.focus-mode-active #tool-app {
  flex: 1;
  height: calc(100vh - 46px) !important;
  max-height: none !important;
  min-height: 0 !important;
}

body.focus-mode-active .ws-controls {
  display: block !important;
}

body.focus-mode-active .code-panel {
  display: flex !important;
}

body.focus-mode-active .toasts {
  z-index: 10000001 !important;
}

.btn-focus-mode.active {
  background: var(--accent) !important;
  color: var(--accent-fg, #ffffff) !important;
  border-color: var(--accent) !important;
}

.btn-focus-mode.active .esc-badge {
  background: rgba(128, 128, 128, 0.25) !important;
  border-color: rgba(128, 128, 128, 0.4) !important;
  color: var(--accent-fg, #ffffff) !important;
}

/* ============================================================
   7. Below-the-Fold SEO & Educational Guides (AdSense Ready)
   ============================================================ */
.tool-seo-section,
.category-info-section {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1080px;
  margin: 48px auto 0;
  padding-top: 12px;
}

.tool-hero-content {
  text-align: left;
}

.tool-hero-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--text);
}

.tool-hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 3-Step "How to Use" Visual Guide & Feature Card Sections */
.guide-section {
  margin-top: 40px;
}

.features-section {
  margin-top: 40px;
}

.faq-section,
.category-faq-wrap {
  margin-top: 48px;
}

.guide-section h2,
.features-section h2,
.faq-section h2,
.category-faq-wrap h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.steps-grid,
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

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

.step-number,
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--accent-fg, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-title,
.step-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.step-desc,
.step-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.step-card code,
.feature-card code,
.elementor-lead code,
.pro-tip-content code {
  font-family: var(--font-mono, monospace);
  font-size: 0.88em;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--accent);
}

/* Elementor & WordPress Integration Guide Styling */
.elementor-integration-guide {
  margin-top: 40px;
}

.elementor-guide-banner {
  margin-bottom: 24px;
}

.elementor-badge-wrap {
  margin-bottom: 12px;
}

.elementor-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.elementor-badge svg {
  color: var(--accent);
}

.elementor-lead {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 780px;
  margin: 0;
}

.elementor-pro-tip {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pro-tip-icon {
  font-size: 20px;
  line-height: 1.2;
  flex-shrink: 0;
}

.pro-tip-content {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pro-tip-content strong {
  color: var(--text);
}

/* 4-Card Grid: Key Features & CSS Best Practices */
.features-grid,
.category-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

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

.feature-icon-box,
.feature-icon,
.info-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  font-size: 18px;
}

.feature-icon-box svg,
.feature-icon svg,
.info-card-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.feature-card-content {
  flex: 1;
}

.feature-card-content h3,
.feature-title,
.info-card h3 {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.feature-card-content p,
.feature-desc,
.info-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Interactive FAQ Accordion */
.faq-accordion,
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-summary {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  content: '−';
  color: var(--accent);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Desktop App Callout Banner */
.desktop-app-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.banner-content {
  max-width: 650px;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.banner-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

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

.banner-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-gradient);
  color: var(--accent-fg, #ffffff) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.banner-cta-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
  color: var(--accent-fg, #ffffff) !important;
}

/* ============================================================
   8. Homepage Styles (`index.html`)
   ============================================================ */
.home-page .page-container {
  max-width: 1440px;
}

.home-hero {
  padding: 44px 24px 32px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.home-hero-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 52px;
  align-items: center;
  text-align: left;
  width: 100%;
}

.home-hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.home-hero-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.home-hero-title span {
  color: var(--accent2);
}

html[data-theme="light"] .home-hero-title span,
html.light-theme .home-hero-title span {
  color: var(--accent);
}

.home-hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.home-search-bar {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
}

.home-search-input {
  width: 100%;
  padding: 13px 20px 13px 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 14.5px;
  color: var(--text);
  box-shadow: var(--shadow-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-search-input:focus {
  border-color: var(--muted);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .home-search-input:focus,
html.light-theme .home-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 75, 36, 0.16);
}

.home-quick-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.quick-pill {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.quick-pill:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--muted);
  transform: translateY(-1px);
}

.quick-pill.active {
  background: var(--accent-gradient) !important;
  border-color: var(--accent-gradient) !important;
  color: var(--accent-fg, #090909) !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  transform: translateY(-1px);
}

html[data-theme="light"] .quick-pill.active,
html.light-theme .quick-pill.active {
  background: #1c1917 !important;
  border-color: #1c1917 !important;
  color: #f6f4ef !important;
  box-shadow: 0 2px 6px rgba(28, 25, 23, 0.18) !important;
}

/* Teacher's Desk Note */
.home-hero-aside {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.teacher-note-card {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  box-shadow: none;
  position: relative;
}

html[data-theme="light"] .teacher-note-card,
html.light-theme .teacher-note-card {
  background: #ffffff;
  border-color: var(--border);
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.06);
}

.teacher-note-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teacher-note-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
}

.teacher-note-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent2);
}

.teacher-note-text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

.teacher-note-sign {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  font-style: italic;
  align-self: flex-end;
}

@media (max-width: 960px) {
  .home-hero-split {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .home-hero-main {
    align-items: center;
  }
  .home-hero-title {
    font-size: 28px;
  }
  .home-search-bar {
    max-width: 580px;
    margin: 0 auto;
  }
  .teacher-note-card {
    max-width: 600px;
    margin: 0 auto;
  }
}


/* ============================================================
   Learning Curriculum Pillars Section (Phase 2)
   ============================================================ */
.learning-curriculum-section {
  max-width: 1440px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

.curriculum-header {
  text-align: center;
  margin-bottom: 32px;
}

.curriculum-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.curriculum-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 8px;
}

.curriculum-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Balanced 6-pillar curriculum layout: exactly 3 cards per row */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.curriculum-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  cursor: pointer;
  box-shadow: none;
}

.curriculum-card:hover {
  transform: translateY(-3px);
  border-color: var(--muted);
  box-shadow: var(--shadow-md);
}

.curriculum-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Row 1 & Row 2: all 6 cards span 2 of 6 columns (clean 3x2 grid) */
.curriculum-card:nth-child(1),
.curriculum-card:nth-child(2),
.curriculum-card:nth-child(3),
.curriculum-card:nth-child(4),
.curriculum-card:nth-child(5),
.curriculum-card:nth-child(6) {
  grid-column: span 2;
}

.curriculum-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.curriculum-level-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 6px;
}

.curriculum-level-badge.level-1,
.curriculum-level-badge.level-2,
.curriculum-level-badge.level-3 {
  background: var(--surface2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* Light mode high-contrast overrides for level badges and indicators */
html[data-theme="light"] .curriculum-level-badge.level-1 {
  background: rgba(31, 95, 75, 0.1);
  color: #1f5f4b;
  border-color: rgba(31, 95, 75, 0.3);
}

html[data-theme="light"] .curriculum-level-badge.level-2 {
  background: rgba(2, 132, 199, 0.1);
  color: #0369a1;
  border-color: rgba(2, 132, 199, 0.3);
}

html[data-theme="light"] .curriculum-level-badge.level-3 {
  background: rgba(184, 75, 36, 0.1);
  color: #b84b24;
  border-color: rgba(184, 75, 36, 0.3);
}

html[data-theme="light"] .curriculum-badge {
  background: rgba(184, 75, 36, 0.1);
  color: var(--accent);
  border-color: rgba(184, 75, 36, 0.28);
}

html[data-theme="light"] .teacher-note-label {
  color: var(--accent);
}

html[data-theme="light"] .curriculum-count-badge {
  background: var(--surface2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

html[data-theme="light"] .curriculum-tag {
  background: var(--bg);
  color: var(--text-secondary);
  border-color: var(--border);
}

html[data-theme="light"] .curriculum-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .curriculum-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.curriculum-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface2);
  padding: 3px 9px;
  border-radius: 10px;
}

.curriculum-card-icon {
  font-size: 30px;
  margin-bottom: 12px;
}

.curriculum-card-title {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
}

.curriculum-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.curriculum-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.curriculum-tag {
  font-size: 11.5px;
  padding: 4px 9px;
  background: var(--surface2);
  color: var(--text-secondary);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.curriculum-card-btn {
  appearance: none;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  width: 100%;
}

.curriculum-card:hover .curriculum-card-btn {
  background: var(--accent);
  color: var(--accent-fg, #ffffff);
  border-color: var(--accent);
}

.curriculum-card-btn .btn-arrow {
  transition: transform 0.15s ease;
}

.curriculum-card:hover .curriculum-card-btn .btn-arrow {
  transform: translateX(4px);
}

/* Tablet: 2 columns */
@media (max-width: 980px) {
  .curriculum-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .curriculum-card:nth-child(1),
  .curriculum-card:nth-child(2),
  .curriculum-card:nth-child(3),
  .curriculum-card:nth-child(4),
  .curriculum-card:nth-child(5),
  .curriculum-card:nth-child(6) {
    grid-column: span 1;
    max-width: 100%;
    margin: 0;
  }
}

/* Mobile: single full-width column */
@media (max-width: 640px) {
  .curriculum-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .curriculum-card:nth-child(1),
  .curriculum-card:nth-child(2),
  .curriculum-card:nth-child(3),
  .curriculum-card:nth-child(4),
  .curriculum-card:nth-child(5),
  .curriculum-card:nth-child(6) {
    grid-column: span 1;
    max-width: 100%;
    margin: 0;
  }
}


.home-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

/* Category Directory Grid on Homepage */
.category-directory {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 20px;
}

.cat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.cat-count-badge {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  background: var(--surface2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  transition: all 0.15s ease;
}

html[data-theme="light"] .cat-count-badge,
html.light-theme .cat-count-badge {
  background: rgba(184, 75, 36, 0.08);
  color: var(--accent);
  border: 1px solid rgba(184, 75, 36, 0.22);
}

.cat-explore-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

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

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
}

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

.tool-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.tool-card-head > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tool-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.tool-card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 2px 0;
}

.tool-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 14px 0;
  flex: 1;
}

.tool-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.tool-card-action {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   9. Category Hub Pages (`/<category>/index.html`)
   ============================================================ */
/* Centered Breadcrumbs on Category Pages */
.category-page .site-breadcrumbs,
.page-container:has(.category-hub-hero) .site-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 18px;
}

/* Centered Hero Header */
.category-hub-hero {
  padding: 40px 20px 34px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 38px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category-hub-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 4px 14px;
  border-radius: 20px;
}

.category-hub-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.6px;
  text-align: center;
  max-width: 68%;
  margin-left: auto;
  margin-right: auto;
}

.category-hub-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  max-width: 740px;
  line-height: 1.65;
  text-align: center;
  margin: 0 auto;
}

/* Category Hub Centered Section Headers & Card Grids */
.category-page .cat-section-header,
.page-container:has(.category-hub-hero) .cat-section-header,
.cat-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 44px auto 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  max-width: 1140px;
  scroll-margin-top: calc(var(--header-height, 62px) + 24px);
}

.category-page .cat-title-wrap,
.page-container:has(.category-hub-hero) .cat-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.category-page .cat-section-title,
.page-container:has(.category-hub-hero) .cat-section-title {
  text-align: center;
}

.category-page .tools-card-grid,
.page-container:has(.category-hub-hero) .tools-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto 56px;
  justify-content: center;
}

.category-page .tool-seo-section,
.page-container:has(.category-hub-hero) .tool-seo-section {
  max-width: 1140px;
  margin: 0 auto;
}

/* Category Hub Cross-Navigation Section */
.cat-cross-nav {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.cat-cross-nav-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.cat-cross-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto;
}

.cat-cross-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cat-cross-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cat-cross-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.cat-cross-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cat-cross-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Related Tools Section & Cards */
.related-tools-section {
  margin-top: 36px;
}

.related-tools-section h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.related-tool-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.related-tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-tool-icon {
  font-size: 20px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.related-tool-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-tool-name,
.related-tool-info h3,
.related-tool-card h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.related-tool-desc,
.related-tool-info p,
.related-tool-card p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}


/* ============================================================
   10. Global Footer
   ============================================================ */
#site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tagline {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 320px;
  line-height: 1.6;
}

.footer-project-by {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.footer-project-by a {
  color: var(--text);
  font-weight: 600;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 14px;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--text);
}

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

/* ============================================================
   11. Desktop Showcase Page (`/desktop/`)
   ============================================================ */
.desktop-hero {
  text-align: center;
  padding: 40px 20px 30px;
  max-width: 780px;
  margin: 0 auto;
}

.windows-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 16px;
}

.desktop-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 40px auto;
  max-width: 960px;
}

.desktop-feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desktop-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.comparison-table-wrap {
  max-width: 860px;
  margin: 40px auto;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
}

.comparison-table th {
  background: var(--surface2);
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   12. Content / Legal Pages (`/privacy/`, `/terms/`, `/about/`)
   ============================================================ */
.content-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 0 48px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.content-page h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.content-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}

.content-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  letter-spacing: -0.3px;
}

.content-page p {
  margin-bottom: 16px;
}

.content-page ul, .content-page ol {
  margin: 0 0 16px 24px;
}

.content-page li {
  margin-bottom: 6px;
}

.content-page h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #f8fafc);
  margin: 24px 0 10px;
  letter-spacing: -0.2px;
}

/* Responsive Content Tables for Policy & Legal Pages */
.content-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 24px;
  border-radius: var(--radius, 10px);
  border: 1px solid var(--border, #282c3f);
  background: var(--surface2, #1c1f2e);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.content-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  line-height: 1.5;
}

.content-table th {
  background: var(--surface3, #262a3d);
  color: var(--text, #f8fafc);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #282c3f);
  white-space: nowrap;
}

.content-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle, #1e2233);
  color: var(--text-secondary, #94a3b8);
  vertical-align: top;
}

.content-table tr:last-child td {
  border-bottom: none;
}

.content-table tr:hover td {
  background: var(--surface2);
}

.content-table code {
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Light Theme Content Table Overrides */
html[data-theme="light"] .content-table-wrapper,
html.light-theme .content-table-wrapper {
  background: var(--surface);
  border-color: var(--border);
}

html[data-theme="light"] .content-table th,
html.light-theme .content-table th {
  background: var(--surface2);
  color: var(--text);
  border-bottom-color: var(--border);
}

html[data-theme="light"] .content-table td,
html.light-theme .content-table td {
  color: var(--text-secondary);
  border-bottom-color: var(--border-subtle);
}

html[data-theme="light"] .content-table code,
html.light-theme .content-table code {
  background: rgba(184, 75, 36, 0.08);
  color: var(--accent);
  border-color: rgba(184, 75, 36, 0.22);
}

/* ============================================================
   13. Contact Page Styles (`/contact/`)
   ============================================================ */
.contact-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 12px;
}

.bua-affiliation-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin: 20px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.bua-affiliation-content {
  max-width: 760px;
}

.bua-affiliation-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bua-affiliation-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 !important;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  margin-bottom: 48px;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.contact-form-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
}

.contact-form-card p.subtitle {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

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

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.contact-form-label .required {
  color: var(--error);
  margin-left: 2px;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.18);
}

.contact-form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

/* Contact Form Consent & Acceptance Checkboxes */
.contact-consent-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.contact-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}

.contact-checkbox-label:hover {
  color: var(--text);
}

.contact-checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1.5px;
  display: grid;
  place-content: center;
  transition: all 0.15s ease;
}

.contact-checkbox-input:hover {
  border-color: var(--accent);
}

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

.contact-checkbox-input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-checkbox-input:checked::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent-fg, #ffffff);
  border-bottom: 2px solid var(--accent-fg, #ffffff);
  transform: rotate(-45deg) translate(0.5px, -1px);
}

.contact-checkbox-text {
  flex: 1;
}

.contact-checkbox-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-checkbox-text a:hover {
  color: var(--accent-hover);
}

.contact-checkbox-text .required {
  color: var(--error);
  margin-left: 2px;
  font-weight: 700;
}

.btn-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--accent-gradient);
  color: var(--accent-fg, #ffffff);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-contact-submit:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.contact-status-box {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.55;
}

.contact-status-box.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.contact-status-box.info {
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
}

.contact-status-box.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.recaptcha-wrapper {
  margin: 18px 0 20px 0;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 480px) {
  .recaptcha-wrapper {
    overflow-x: auto;
    max-width: 100%;
  }
}

.btn-contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.spinner-icon {
  animation: contact-spin 0.8s linear infinite;
}

@keyframes contact-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.contact-side-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.contact-info-card-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 !important;
}

.contact-info-card a.highlight-email {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  word-break: break-all;
}

/* ============================================================
   14. Educational & Technical Documentation Styles (AdSense Ready)
   ============================================================ */
.technical-guide-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.technical-guide-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.technical-guide-section p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.code-preview-block {
  background: var(--code-bg, #0b0b0b);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: auto;
  margin: 16px 0 20px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .code-preview-block {
  background: var(--code-bg, #f3efe7);
  border-color: var(--border);
  color: var(--text);
  box-shadow: inset 0 1px 3px rgba(28, 25, 23, 0.05);
}

.code-preview-block code {
  font-family: inherit;
}

.code-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.compat-table-wrap {
  margin: 20px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.compat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.compat-table th,
.compat-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.compat-table th {
  background: var(--surface2);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compat-table tr:last-child td {
  border-bottom: none;
}

.compat-pill-yes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  font-weight: 600;
  font-size: 11.5px;
}

.pro-tips-card {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.pro-tips-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pro-tips-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 !important;
}

/* ============================================================
   15. Responsive Media Queries
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-brand-col {
    grid-column: span 3;
  }
  .mega-dropdown-panel {
    width: 660px;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) and (min-width: 769px) {
  .nav-links {
    gap: 3px;
  }
  .nav-link-btn {
    padding: 3px 8px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 50px;
  }
  .header-nav-bar {
    display: none !important;
  }
  .header-top-bar {
    border-bottom: none;
    height: 50px;
  }
  .header-top-inner {
    padding: 0 16px;
  }
  .nav-links, .nav-search-pill, .btn-cta-desktop {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .steps-grid,
  .guide-steps {
    grid-template-columns: 1fr;
  }
  .features-grid,
  .category-info-grid {
    grid-template-columns: 1fr;
  }
  .category-hub-title {
    max-width: 100%;
  }
  .desktop-app-banner {
    flex-direction: column;
    text-align: center;
  }
  .desktop-features-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bua-affiliation-banner {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
  .home-hero-title {
    font-size: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-brand-col {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  #tool-app {
    min-height: 600px;
  }
}


/* ============================================================
   Cookie Consent Banner, Preference Centre & Floating Trigger
   ============================================================ */

/* 1. Persistent Floating Trigger (Bottom-Left) */
.cookie-floating-trigger {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface2, #1c1f2e);
  border: 1px solid var(--border, #282c3f);
  color: var(--text, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9980;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.22s ease;
}
.cookie-floating-trigger:hover {
  transform: scale(1.08);
  background: var(--surface3);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

/* Light Theme Floating Trigger Overrides (ensures icon never disappears on hover) */
html[data-theme="light"] .cookie-floating-trigger,
html.light-theme .cookie-floating-trigger {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.1);
}
html[data-theme="light"] .cookie-floating-trigger:hover,
html.light-theme .cookie-floating-trigger:hover {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.14);
}
html[data-theme="light"] .cookie-floating-trigger .cookie-trigger-tooltip,
html.light-theme .cookie-floating-trigger .cookie-trigger-tooltip {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.12);
}
.cookie-floating-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.cookie-floating-trigger svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  flex-shrink: 0;
}
.cookie-floating-trigger .cookie-trigger-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  background: var(--surface, #14161f);
  border: 1px solid var(--border, #282c3f);
  color: var(--text, #f8fafc);
  padding: 6px 12px;
  border-radius: var(--radius-sm, 6px);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.4));
}
.cookie-floating-trigger:hover .cookie-trigger-tooltip,
.cookie-floating-trigger:focus-visible .cookie-trigger-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* 2. Floating Cookie Consent Banner with Background Overlay */
.cookie-banner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9988;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  animation: cookieFadeIn 0.25s ease;
}

.cookie-banner-wrapper {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg, 14px);
  padding: 22px 26px;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
  animation: cookieBannerSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Light Theme Banner Differentiation */
html[data-theme="light"] .cookie-banner-wrapper,
html.light-theme .cookie-banner-wrapper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: 0 20px 45px -10px rgba(28, 25, 23, 0.18);
}

.cookie-banner-wrapper .cookie-banner-text {
  color: var(--text-secondary);
}

html[data-theme="light"] .cookie-banner-wrapper .cookie-banner-text,
html.light-theme .cookie-banner-wrapper .cookie-banner-text {
  color: #475569;
}

.cookie-banner-wrapper .btn-cookie-secondary {
  background: #252b40;
  border-color: #3b4463;
  color: #f8fafc;
}

.cookie-banner-wrapper .btn-cookie-secondary:hover {
  background: #2f3752;
  border-color: var(--accent, #6366f1);
}

html[data-theme="light"] .cookie-banner-wrapper .btn-cookie-secondary,
html.light-theme .cookie-banner-wrapper .btn-cookie-secondary {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}
@keyframes cookieBannerSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-banner-header svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent, #6366f1);
  flex-shrink: 0;
}
.cookie-banner-header h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text, #f8fafc);
  margin: 0;
  letter-spacing: -0.01em;
}
.cookie-banner-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 18px 0;
}
.cookie-banner-text a {
  color: var(--accent, #6366f1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-text a:hover {
  color: var(--text, #f8fafc);
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* 3. Button Styles for Banner & Modal */
.btn-cookie {
  padding: 8px 16px;
  border-radius: var(--radius-sm, 6px);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  font-family: inherit;
}
.btn-cookie-primary {
  background: var(--accent-gradient);
  color: var(--accent-fg, #ffffff);
  border: none;
}
.btn-cookie-primary:hover {
  opacity: 0.92;
  box-shadow: var(--shadow-sm);
}
.btn-cookie-secondary {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}
.btn-cookie-secondary:hover {
  background: var(--surface3);
  border-color: var(--accent);
  color: var(--text);
}
.btn-cookie-ghost {
  background: transparent;
  color: var(--text-secondary, #94a3b8);
  border-color: transparent;
}
.btn-cookie-ghost:hover {
  color: var(--text, #f8fafc);
  text-decoration: underline;
}

/* 4. Granular Preference Centre Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: cookieFadeIn 0.2s ease;
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes cookieFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg, 14px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
}

html[data-theme="light"] .cookie-modal-card,
html.light-theme .cookie-modal-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: 0 25px 50px -12px rgba(28, 25, 23, 0.22);
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border, #282c3f);
}
.cookie-modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #f8fafc);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal-header h2 svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent, #6366f1);
}
.cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm, 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.cookie-modal-close:hover {
  color: var(--text, #f8fafc);
  background: var(--surface2, #1c1f2e);
}
.cookie-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-modal-intro {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary, #94a3b8);
  margin: 0 0 6px 0;
}
.cookie-category-item {
  background: var(--surface2, #1c1f2e);
  border: 1px solid var(--border, #282c3f);
  border-radius: var(--radius, 10px);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease;
}
.cookie-category-item:hover {
  border-color: var(--border-subtle, #33384f);
}
.cookie-cat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-cat-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #f8fafc);
}
.cookie-badge-locked {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success, #10b981);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.cookie-cat-desc {
  font-size: 12.8px;
  line-height: 1.5;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
}
.cookie-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border, #282c3f);
  background: var(--surface, #14161f);
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-footer-left {
  display: flex;
  gap: 8px;
}
.cookie-footer-right {
  display: flex;
  gap: 8px;
}

/* 5. Custom Accessible Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--surface3, #262a3d);
  border: 1px solid var(--border, #282c3f);
  transition: all 0.25s ease;
  border-radius: 24px;
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary, #94a3b8);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--accent-gradient);
  border-color: var(--accent);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
  background-color: var(--accent-fg, #ffffff);
}
.cookie-switch input:disabled + .cookie-slider {
  opacity: 0.65;
  cursor: not-allowed;
}
.cookie-switch input:focus-visible + .cookie-slider {
  outline: 2px solid var(--accent, #6366f1);
  outline-offset: 2px;
}

/* 6. Mobile Responsiveness */
@media (max-width: 640px) {
  .cookie-banner-overlay {
    padding: 12px;
  }
  .cookie-banner-wrapper {
    padding: 18px 16px;
  }
  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions .btn-cookie {
    width: 100%;
    justify-content: center;
  }
  .cookie-floating-trigger {
    bottom: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
  }
  .cookie-floating-trigger svg {
    width: 19px;
    height: 19px;
  }
  .cookie-modal-card {
    max-height: 94vh;
  }
  .cookie-modal-header {
    padding: 14px 18px;
  }
  .cookie-modal-body {
    padding: 16px 18px;
  }
  .cookie-modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 14px 18px;
  }
  .cookie-footer-left,
  .cookie-footer-right {
    flex-direction: column;
    width: 100%;
  }
  .cookie-modal-footer .btn-cookie {
    width: 100%;
  }
}


/* ============================================================
   Homepage Centered Layout, Grids & Below-the-Fold Styling
   ============================================================ */
.home-page .page-container {
  max-width: 1440px;
  margin: 0 auto;
}

.home-page .home-hero {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto 36px;
  display: block;
  text-align: left;
}

.home-page .featured-section {
  max-width: 1440px;
  margin: 0 auto 52px;
}

.home-page .category-directory {
  display: flex;
  flex-direction: column;
  gap: 52px;
  max-width: 1440px;
  margin: 0 auto;
}

.home-page .cat-block {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.home-page .cat-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.home-page .cat-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.home-page .cat-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  text-align: center;
}

.home-page .cat-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent2);
  padding: 5px 15px;
  border-radius: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  text-decoration: none;
}

.home-page .cat-explore-link:hover {
  background: var(--surface3);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.home-page .tools-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
  justify-content: center;
}

/* ============================================================
   Homepage Popular & Featured Tools Cards with Animated Thumbs
   ============================================================ */
.popular-tool-card,
.tool-card.popular-tool-card {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: calc(var(--radius) + 2px);
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.popular-tool-card:hover,
.tool-card.popular-tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.tool-card-thumb {
  height: 165px;
  min-height: 165px;
  position: relative;
  overflow: hidden;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

html.light-theme .tool-card-thumb {
  background: #f1f5f9;
}

.popular-badge-demo {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 15, 19, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  color: var(--accent2);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
  pointer-events: none;
}

.popular-tool-card .popular-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

/* Popular Card Thumbnail Animations */
@keyframes thumbGradShift {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(110deg); }
  100% { filter: hue-rotate(0deg); }
}

@keyframes thumbOrbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -16px) scale(1.18); }
}

@keyframes thumbOrbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 14px) scale(0.9); }
}

@keyframes thumbOrbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(0.92); }
  50% { transform: translate(14px, 20px) scale(1.22); }
}

@keyframes thumbGlassTilt {
  0%, 100% { transform: perspective(600px) rotateX(10deg) rotateY(-12deg) translateY(0); }
  50% { transform: perspective(600px) rotateX(-8deg) rotateY(14deg) translateY(-5px); }
}

@keyframes thumbCurveMorph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(0deg); }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: rotate(180deg); }
}

@keyframes thumbElevationLiftDark {
  0%, 100% { transform: translateY(0); box-shadow: 0 2px 5px rgba(0,0,0,0.3), 0 8px 16px rgba(0,0,0,0.25); }
  50% { transform: translateY(-8px); box-shadow: 0 8px 16px rgba(0,0,0,0.35), 0 22px 40px -4px rgba(99,102,241,0.25), 0 16px 36px rgba(0,0,0,0.45); }
}

@keyframes thumbBeforeAfterSlide {
  0%, 100% { width: 30%; }
  50% { width: 70%; }
}

@keyframes thumbFlexPulse {
  0%, 100% { width: 45%; }
  50% { width: 85%; }
}

@keyframes thumbKenBurnsZoom {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.18) translate(-6px, -4px); }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card-thumb * {
    animation: none !important;
  }
}

/* Homepage High-Impact Architecture & Stats Banner */
.home-stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
  max-width: 1140px;
  margin: 56px auto 36px;
  padding: 32px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.home-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
}

.home-stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 2px;
}

html[data-theme="light"] .home-stat-value,
html.light-theme .home-stat-value {
  color: var(--accent);
}

.home-stat-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.home-stat-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 768px) {
  .home-stats-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
    padding: 24px 16px;
  }
}
@media (max-width: 480px) {
  .home-stats-banner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 14px;
  }
}

/* Studio Section Dividers (Homepage Directory) */
.studio-section-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  margin: 48px 0 24px 0;
  background: var(--surface2, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.studio-section-divider:first-of-type {
  margin-top: 16px;
}

.studio-divider-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-fg, #ffffff);
}

.studio-divider-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Universal Tool Workspace & Focus Mode Scaffolding (Invoice Generator Theme)
   ========================================================================== */

/* Extended Color & Panel Tokens */
:root {
  --panel: #111111;
  --panel-alt: #181818;
  --panel-card: #151515;
  --border-strong: #363634;
  --border-focus: #a8a8a3;
  --accent-light: rgba(212, 212, 208, 0.1);
  --accent-border: rgba(212, 212, 208, 0.25);
  --accent-fg: #090909;
  --danger-light: rgba(239, 68, 68, 0.08);
  --success-light: rgba(16, 185, 129, 0.08);
  --warning-light: rgba(245, 158, 11, 0.08);
}

html[data-theme="light"],
html.light-theme {
  --panel: #ffffff;
  --panel-alt: #ede9e0;
  --panel-card: #ffffff;
  --border-strong: #b8b0a0;
  --border-focus: #b84b24;
  --accent-light: rgba(184, 75, 36, 0.09);
  --accent-border: rgba(184, 75, 36, 0.25);
  --accent-fg: #ffffff;
}

[data-theme="dark"],
html[data-theme="dark"] {
  --panel: #111111;
  --panel-alt: #181818;
  --panel-card: #151515;
  --border: #262626;
  --border-strong: #363634;
  --border-focus: #a8a8a3;
  --accent: #d4d4d0;
  --accent-hover: #e5e5e0;
  --accent-light: rgba(212, 212, 208, 0.1);
  --accent-border: rgba(212, 212, 208, 0.25);
  --accent-fg: #090909;
  --text: #ecece9;
  --text-secondary: #9c9c96;
  --text-muted: #666662;
}

/* Centered Tool Workspace Card */
.page-container:has(.bua-tool-card) {
  max-width: min(1480px, 98vw);
}

/* ============================================================
   Narrow Reading Width (820px) — About, Changelog, Contact, Legal
   Matches .content-page (820px) style across all language versions
   ============================================================ */
.page-container.narrow-page,
.page-container:has(.content-page),
.page-container:has(.contact-layout-grid),
.page-container:has(#contactForm),
.page-container:has(.changelog-workspace-inner),
.page-container:has(.changelog-timeline) {
  max-width: 820px !important;
  margin: 0 auto;
}

.page-container.narrow-page .bua-tool-card,
.page-container:has(.changelog-workspace-inner) .bua-tool-card,
.page-container:has(.changelog-timeline) .bua-tool-card {
  max-width: 100% !important;
}

.page-container.narrow-page .changelog-workspace-inner,
.page-container:has(.changelog-workspace-inner) .changelog-workspace-inner {
  max-width: 100% !important;
  padding: 24px 20px 32px;
}

.bua-tool-card#tool-app,
.bua-tool-card {
  max-width: min(1440px, 100%);
  width: 100%;
  margin: 0 auto 56px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  display: block;
}

/* Universal Workspace Header Bar (Outer Frame Header) */
.tool-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--panel-alt);
  border-bottom: 1px solid var(--border);
  min-height: 48px;
}

.workspace-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

.workspace-header-icon {
  font-size: 14px;
  line-height: 1;
}

.workspace-header-title {
  line-height: 1;
  color: var(--text);
  font-weight: 700;
}

.workspace-header-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.btn-focus-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--panel);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-focus-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-border);
}

.btn-focus-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.focus-esc-badge {
  font-size: 10px;
  font-family: var(--mono);
  background: var(--border-strong);
  color: var(--text);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
  line-height: 1.2;
}

/* Focus Mode Active State */
body.bua-focus-mode {
  overflow: hidden !important;
  }

body.bua-focus-mode #site-header,
body.bua-focus-mode #site-footer,
body.bua-focus-mode .site-breadcrumbs,
body.bua-focus-mode .tool-seo-section,
body.bua-focus-mode .category-info-section,
body.bua-focus-mode .category-hub-hero,
body.bua-focus-mode .bua-hero {
  display: none !important;
}

body.bua-focus-mode .page-container {
  max-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.bua-focus-mode .bua-tool-card,
body.bua-focus-mode .bua-tool-card#tool-app {
  position: fixed !important;
  inset: 0 !important;
  max-width: 100vw !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 999999 !important;
}

body.bua-focus-mode .tool-workspace-header,
body.bua-focus-mode .tool-quickbar {
  flex-shrink: 0 !important;
}

body.bua-focus-mode .tool-workspace {
  flex: 1 !important;
  height: calc(100vh - 96px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: 440px minmax(0, 1fr) !important;
}

@media (max-width: 900px) {
  body.bua-focus-mode .tool-workspace {
    grid-template-columns: 1fr !important;
    height: auto !important;
    overflow-y: auto !important;
  }
}

body.bua-focus-mode .tool-controls {
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border-right: 1px solid var(--border) !important;
}

body.bua-focus-mode .tool-controls-scroll {
  flex: 1 !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 20px !important;
  overflow-y: auto !important;
}

body.bua-focus-mode .tool-preview-area {
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
}

body.bua-focus-mode .tool-workspace .preview-stage,
body.bua-focus-mode .preview-stage-container {
  flex: 1 0 auto !important;
  min-height: 320px !important;
}

body.bua-focus-mode .code-export-panel,
body.bua-focus-mode .preview-code-panel {
  flex-shrink: 0 !important;
}

body.bua-focus-mode .btn-focus-toggle {
  background: var(--accent);
  color: var(--accent-fg, #ffffff);
  border-color: var(--accent);
}

body.bua-focus-mode .btn-focus-toggle:hover {
  background: var(--accent-hover);
}

body.bua-focus-mode .focus-esc-badge {
  background: rgba(128, 128, 128, 0.25);
  color: var(--accent-fg, #ffffff);
}

/* Tool Quickbar */
.tool-quickbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 18px;
  background: var(--panel-alt);
  border-bottom: 1px solid var(--border);
}

.quickbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.qb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.qb-btn:hover,
.qb-btn.active {
  background: var(--panel-alt);
  border-color: var(--accent);
  color: var(--text);
}

.qb-btn.active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-border);
}

.qb-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

/* Tool Workspace 2-Column Grid */
.tool-workspace {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  min-height: 750px;
}

@media (max-width: 1080px) {
  .tool-workspace {
    grid-template-columns: 350px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .tool-workspace {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
  }
}

/* Controls Panel */
.tool-controls {
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 0;
  min-height: 100%;
  overflow: hidden;
}

@media (max-width: 900px) {
  .tool-controls {
    border-right: none;
    border-bottom: 1px solid var(--border);
    height: auto;
    min-height: 0;
    overflow: visible;
  }
}

.tool-controls-scroll {
  padding: 18px 20px 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

@media (max-width: 900px) {
  .tool-controls-scroll {
    overflow-y: visible;
    max-height: none;
  }
}

/* Form Cards */
.form-card {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

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

.card-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.form-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label .val-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

.field-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Inputs & Form Elements */
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

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

.form-select {
  cursor: pointer;
}

.form-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 6px 0 2px 0;
}

/* Checkbox and Toggle Row */
.check-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  font-size: 12.5px;
  color: var(--text);
  padding: 4px 0;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Preview Area */
.tool-preview-area {
  background: var(--panel-alt);
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  min-height: 100%;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.viewport-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--panel-alt);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.viewport-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: transparent;
  border: none;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.viewport-btn.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.preview-tip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--panel-alt);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Stage Canvas */
.tool-workspace .preview-stage,
.preview-stage-container {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  overflow-x: auto;
  overflow-y: visible;
  min-height: 380px;
  background: radial-gradient(circle at center, var(--surface) 0%, var(--bg) 100%);
}

.preview-viewport-shell {
  width: 100%;
  max-width: 100%;
  transition: max-width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: center;
}

/* Code Output Section */
.code-export-panel,
.preview-code-panel {
  background: var(--panel);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.code-export-header,
.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--panel-alt);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.code-tab-btn,
.code-tab {
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-tab-btn:hover,
.code-tab:hover {
  color: var(--text);
}

.code-tab-btn.active,
.code-tab.active {
  background: var(--panel);
  color: var(--accent);
  border-color: var(--border);
}

.btn-copy-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--accent-fg, #ffffff);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  background: var(--accent-hover);
}

.code-pre-box,
.code-block-wrapper {
  margin: 0;
  padding: 16px 20px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
  overflow-x: auto;
  max-height: 240px;
}

/* ============================================================
   Changelog & Version Timeline Styles
   ============================================================ */
.changelog-workspace-inner {
  padding: 28px 32px 36px;
  max-width: 1200px;
  margin: 0 auto;
}

.bua-tool-card .changelog-card {
  background: var(--surface2);
}

@media (max-width: 768px) {
  .changelog-workspace-inner {
    padding: 18px 16px 24px;
  }
}

.changelog-timeline {
  position: relative;
  margin: 28px 0 16px;
  padding-left: 28px;
}

.changelog-timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
  border-radius: 2px;
}

.changelog-entry {
  position: relative;
  margin-bottom: 40px;
}

.changelog-entry:last-child {
  margin-bottom: 0;
}

.changelog-entry::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: none;
  z-index: 1;
}

.changelog-entry.minor::before {
  border-color: var(--accent2);
  box-shadow: none;
}

.changelog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.changelog-card:hover {
  border-color: var(--muted);
}

.changelog-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.changelog-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.changelog-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: var(--accent-gradient);
  color: var(--accent-fg, #ffffff);
}

.changelog-badge.latest {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.changelog-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.changelog-date {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

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

.changelog-group:last-child {
  margin-bottom: 0;
}

.changelog-group-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.changelog-group-title.added {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.changelog-group-title.fixed {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.changelog-group-title.improved {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.changelog-list {
  list-style: disc;
  margin: 0 0 14px 20px !important;
  padding: 0;
}

.changelog-list li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.changelog-list li strong {
  color: var(--text);
}

.changelog-list li a {
  color: var(--accent);
  text-decoration: none;
}

.changelog-list li a:hover {
  text-decoration: underline;
}

.footer-version-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.footer-version-tag:hover {
  background: var(--surface3);
  color: var(--text);
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .changelog-timeline {
    padding-left: 20px;
  }
  .changelog-timeline::before {
    left: 4px;
  }
  .changelog-entry::before {
    left: -22px;
    width: 14px;
    height: 14px;
  }
  .changelog-card {
    padding: 18px 18px;
  }
  .changelog-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === Additional Card Thumbnail Keyframes === */
@keyframes thumbElevationLift {
      0%, 100% { transform: translateY(0); box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.1); }
      50% { transform: translateY(-9px); box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 22px 36px -4px rgba(0,0,0,0.24); }
    }

@keyframes thumbClipMorph {
      0% { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); transform: scale(1) rotate(0deg); }
      33% { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); transform: scale(1.1) rotate(6deg); }
      66% { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); transform: scale(0.92) rotate(-6deg); }
      100% { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); transform: scale(1) rotate(0deg); }
    }

@keyframes thumbJellyBounce {
      0%, 100% { transform: scale(1, 1) translateY(0); }
      30% { transform: scale(1.22, 0.78) translateY(5px); }
      60% { transform: scale(0.85, 1.18) translateY(-12px); }
      80% { transform: scale(1.06, 0.94) translateY(2px); }
    }

@keyframes thumbViewMorph {
      0%, 100% { width: 36px; height: 36px; border-radius: 8px; transform: translateX(-35px); background: #10b981; }
      50% { width: 145px; height: 46px; border-radius: 10px; transform: translateX(20px); background: #6366f1; }
    }

@keyframes thumbScrollScrub {
      0% { transform: scaleX(0.08); }
      100% { transform: scaleX(1); }
    }

@keyframes thumbAnchorFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-7px); }
    }

@keyframes thumbWaveMove1 {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

@keyframes thumbWaveMove2 {
      0% { transform: translateX(0); }
      100% { transform: translateX(50%); }
    }

@keyframes thumbTextShimmer {
      0% { background-position: 0% 50%; }
      100% { background-position: 200% 50%; }
    }

@keyframes thumbPatternDrift {
      0% { background-position: 0 0; }
      100% { background-position: 48px 48px; }
    }

@keyframes thumbBtnGleam {
      0% { transform: translateX(-140%) rotate(25deg); opacity: 0; }
      20%, 80% { opacity: 0.75; }
      100% { transform: translateX(240%) rotate(25deg); opacity: 0; }
    }

@keyframes thumbSpinFast {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

@keyframes thumbDotHop {
      0%, 100% { transform: translateY(0) scale(0.85); }
      50% { transform: translateY(-9px) scale(1.2); }
    }

@keyframes thumbGrainFlicker {
      0% { background-position: 0px 0px; }
      20% { background-position: -5px 6px; }
      40% { background-position: 6px -4px; }
      60% { background-position: -8px -6px; }
      80% { background-position: 4px 5px; }
      100% { background-position: -3px 2px; }
    }

@keyframes thumb3DTumble {
      0%, 100% { transform: perspective(500px) rotateX(18deg) rotateY(-22deg); }
      50% { transform: perspective(500px) rotateX(-14deg) rotateY(20deg); }
    }

@keyframes thumbFilterSweep {
      0%, 100% { filter: hue-rotate(0deg) contrast(110%); }
      50% { filter: hue-rotate(180deg) contrast(145%) saturate(160%); }
    }

@keyframes thumbBorderSweep {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

@keyframes thumbAuroraShift1 {
      0%, 100% { transform: translate(-22px, 0) scale(1, 1); opacity: 0.65; }
      50% { transform: translate(32px, -18px) scale(1.25, 0.82); opacity: 0.95; }
    }

@keyframes thumbAuroraShift2 {
      0%, 100% { transform: translate(26px, -12px) scale(0.88, 1.25); opacity: 0.7; }
      50% { transform: translate(-28px, 16px) scale(1.2, 0.88); opacity: 1; }
    }

@keyframes thumbCardBreathe {
      0%, 100% { width: 165px; transform: scale(1); }
      50% { width: 142px; transform: scale(0.97); }
    }

@keyframes thumbTooltipBob {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-7px); }
    }

@keyframes thumbLinkSlide {
      0%, 15% { width: 0%; left: 50%; opacity: 0.3; }
      50%, 75% { width: 100%; left: 0%; opacity: 1; }
      90%, 100% { width: 0%; left: 50%; opacity: 0.3; }
    }

@keyframes thumbToggleTrack {
      0%, 40% { background: #1e293b; border-color: #334155; }
      50%, 90% { background: rgba(16, 185, 129, 0.25); border-color: #10b981; }
      100% { background: #1e293b; border-color: #334155; }
    }

@keyframes thumbToggleKnob {
      0%, 40% { transform: translateX(0); background: #94a3b8; }
      50%, 90% { transform: translateX(26px); background: #10b981; }
      100% { transform: translateX(0); background: #94a3b8; }
    }

@keyframes thumbBadgeRadar {
      0% { transform: scale(1); opacity: 0.9; }
      100% { transform: scale(2.8); opacity: 0; }
    }

@keyframes thumbSpaceDrift {
      0% { transform: translateY(0) scale(1); opacity: 0.7; }
      50% { transform: translateY(-30px) scale(1.08); opacity: 1; }
      100% { transform: translateY(-60px) scale(1); opacity: 0.7; }
    }

@keyframes thumbBlendOrb1 {
      0% { transform: translateX(-16px) scale(0.9); }
      100% { transform: translateX(18px) scale(1.15); }
    }

@keyframes thumbBlendOrb2 {
      0% { transform: translateX(16px) scale(1.15); }
      100% { transform: translateX(-18px) scale(0.9); }
    }

@keyframes thumbClampBar {
      0% { width: 35%; }
      100% { width: 90%; }
    }

@keyframes thumbClampScale {
      0% { font-size: 11px; color: #a5b4fc; }
      100% { font-size: 15px; color: #ffffff; }
    }

@keyframes thumbTabGlider {
      0%, 25% { transform: translateX(0); }
      35%, 60% { transform: translateX(54px); }
      70%, 95% { transform: translateX(108px); }
      100% { transform: translateX(0); }
    }

@keyframes thumbHeroOrbPulse {
      0%, 100% { transform: translate(-12px, -8px) scale(0.9); opacity: 0.6; }
      50% { transform: translate(14px, 10px) scale(1.25); opacity: 0.95; }
    }

@keyframes thumbSpaceGrow {
      0%, 100% { transform: scaleX(0.7); }
      50% { transform: scaleX(1.1); }
    }

@keyframes thumbPaletteWave {
      0%, 100% { filter: hue-rotate(0deg); }
      50% { filter: hue-rotate(85deg); }
    }

@keyframes thumbElevateCard {
      0%, 100% { transform: translateY(0); box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 6px 14px rgba(0,0,0,0.25); }
      50% { transform: translateY(-7px); box-shadow: 0 6px 12px rgba(0,0,0,0.3), 0 20px 38px -4px rgba(0,0,0,0.55); }
    }

@keyframes thumbRadiusMorph {
      0%, 100% { border-radius: 4px; }
      50% { border-radius: 20px; }
    }

@keyframes thumbSpecWar {
      0%, 100% { transform: scaleX(0.75); }
      50% { transform: scaleX(1.15); }
    }

@keyframes thumbBoxModelPulse {
      0%, 100% { transform: scale(1); border-color: rgba(99,102,241,0.5); }
      50% { transform: scale(1.05); border-color: #6366f1; }
    }

@keyframes thumbContrastShift {
      0%, 100% { filter: contrast(100%); }
      50% { filter: contrast(180%); }
    }

@keyframes thumbSvgMaskPulse {
      0%, 100% { transform: scale(1) rotate(0deg); background-color: #6366f1; }
      50% { transform: scale(1.15) rotate(10deg); background-color: #ec4899; }
    }

@keyframes thumb60FpsMeter {
      0%, 100% { transform: rotate(-25deg); }
      50% { transform: rotate(35deg); }
    }

@keyframes thumbCursorTrail {
      0%, 100% { transform: translate(-8px, -6px) scale(1); }
      50% { transform: translate(12px, 8px) scale(1.2); }
    }

@keyframes thumbTailwindFlip {
      0%, 40% { opacity: 1; transform: translateY(0); }
      45%, 55% { opacity: 0; transform: translateY(-8px); }
      60%, 100% { opacity: 1; transform: translateY(0); }
    }

@keyframes thumbSchemaCodeGlow {
      0%, 100% { border-color: rgba(99,102,241,0.3); box-shadow: 0 0 10px rgba(99,102,241,0.2); }
      50% { border-color: #38bdf8; box-shadow: 0 0 18px rgba(56,189,248,0.4); }
    }

@keyframes thumbSemanticTree {
      0%, 100% { color: #a5b4fc; }
      50% { color: #34d399; }
    }

@keyframes thumbTextHighlightWash {
      0%, 20% { width: 0%; opacity: 0.4; }
      60%, 80% { width: 100%; opacity: 1; }
      100% { width: 0%; opacity: 0.4; }
    }

@keyframes thumbBaselineSpin {
      0%, 100% { transform: scale(1); border-color: #10b981; }
      50% { transform: scale(1.08); border-color: #34d399; }
    }

@keyframes thumbContextMenuPop {
      0%, 100% { transform: scale(1); opacity: 0.9; }
      50% { transform: scale(1.04); opacity: 1; }
    }

@keyframes thumbEmailTablePulse {
      0%, 100% { transform: scale(1); border-color: rgba(99,102,241,0.4); }
      50% { transform: scale(1.04); border-color: #6366f1; }
    }

@keyframes thumbSuiteThemeShift {
      0%, 100% { border-radius: 4px; }
      50% { border-radius: 12px; }
    }

@keyframes thumbRippleWave {
      0% { transform: scale(0); opacity: 0.8; }
      100% { transform: scale(4.5); opacity: 0; }
    }

@keyframes thumbTrailSwarm {
      0%, 100% { transform: translateX(-14px) scale(0.9); }
      50% { transform: translateX(14px) scale(1.1); }
    }

@keyframes thumbMarkerWobble {
      0%, 100% { transform: rotate(-1.5deg) scale(1); }
      50% { transform: rotate(1deg) scale(1.05); }
    }

@keyframes thumbMagnifierZoom {
      0%, 100% { transform: translate(-10px, -6px); }
      50% { transform: translate(12px, 8px); }
    }

@keyframes thumbTiltWarp {
      0%, 100% { transform: perspective(500px) rotateX(12deg) rotateY(-14deg); }
      50% { transform: perspective(500px) rotateX(-10deg) rotateY(12deg); }
    }

@keyframes thumbHotspotPing {
      0% { transform: scale(0.9); opacity: 1; }
      100% { transform: scale(2.6); opacity: 0; }
    }

@keyframes thumbHoldRingProgress {
      0%, 20% { width: 0%; opacity: 0.6; }
      70%, 90% { width: 100%; opacity: 1; }
      100% { width: 0%; opacity: 0.6; }
    }

@keyframes thumbUnitConvertShift {
      0%, 45% { opacity: 1; transform: translateY(0); }
      50%, 55% { opacity: 0; transform: translateY(-6px); }
      60%, 100% { opacity: 1; transform: translateY(0); }
    }

@keyframes thumbReadingRulerGlide {
      0%, 100% { transform: translateY(-8px); }
      50% { transform: translateY(8px); }
    }

@keyframes thumbMinifyPulse {
      0%, 100% { transform: scaleX(0.95); opacity: 0.8; }
      50% { transform: scaleX(1.05); opacity: 1; }
    }

@keyframes thumbContentShield {
      0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4)); }
      50% { transform: scale(1.06); filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.8)); }
    }

@keyframes thumbAnnotationPulse {
      0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
      50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
    }

@keyframes thumbJsErrorBlink {
      0%, 100% { border-color: rgba(239, 68, 68, 0.6); background: rgba(239, 68, 68, 0.12); }
      50% { border-color: rgba(239, 68, 68, 1); background: rgba(239, 68, 68, 0.28); }
    }

@keyframes thumbUniversalCompress {
      0%, 100% { width: 85%; }
      50% { width: 35%; }
    }

@keyframes thumbPhpSyntaxCheck {
      0%, 100% { opacity: 0.85; transform: translateY(0); }
      50% { opacity: 1; transform: translateY(-2px); }
    }

@keyframes thumbMousePollingSweep {
      0% { transform: rotate(0deg); }
      50% { transform: rotate(180deg); }
      100% { transform: rotate(360deg); }
    }

@keyframes thumbScratchFoil {
      0%, 100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 75% 100%, 60% 45%, 35% 85%, 0 40%); }
      50% { clip-path: polygon(0 0, 100% 0, 100% 100%, 90% 100%, 80% 25%, 55% 65%, 0 20%); }
    }

@keyframes thumbKineticGlide {
      0%, 100% { transform: translateX(0); }
      50% { transform: translateX(18px); }
    }

@keyframes thumbDialogScale {
      0%, 100% { transform: scale(0.96); opacity: 0.85; }
      50% { transform: scale(1.02); opacity: 1; }
    }

@keyframes thumbColorMixRamp {
      0%, 100% { filter: hue-rotate(0deg); }
      50% { filter: hue-rotate(45deg); }
    }

@keyframes thumbGlitchTear {
      0%, 100% { transform: translate(0); text-shadow: -2px 0 #ef4444, 2px 0 #06b6d4; }
      20% { transform: translate(-2px, 1px); text-shadow: -3px 0 #ef4444, 3px 0 #06b6d4; }
      40% { transform: translate(2px, -1px); text-shadow: 2px 0 #ef4444, -2px 0 #06b6d4; }
      60% { transform: translate(-1px, 2px); text-shadow: -1px 0 #ef4444, 1px 0 #06b6d4; }
      80% { transform: translate(1px, -2px); text-shadow: 3px 0 #ef4444, -3px 0 #06b6d4; }
    }

@keyframes thumbScrollProgressFill {
      0%, 100% { width: 25%; }
      50% { width: 85%; }
    }

@keyframes thumbScrollSnapShift {
      0%, 25% { transform: translateX(0); }
      35%, 60% { transform: translateX(-45px); }
      70%, 100% { transform: translateX(-90px); }
    }

@keyframes thumbScrollbarGlow {
      0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 2px #6366f1); }
      50% { transform: translateY(14px); filter: drop-shadow(0 0 8px #a855f7); }
    }

@keyframes thumbDuotoneWave {
      0%, 100% { filter: contrast(1.3) hue-rotate(0deg); }
      50% { filter: contrast(1.6) hue-rotate(90deg); }
    }

@keyframes thumbHalftonePattern {
      0%, 100% { background-size: 10px 10px; }
      50% { background-size: 16px 16px; }
    }

@keyframes thumbMaskAlphaFade {
      0%, 100% { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; opacity: 0.9; }
      50% { -webkit-mask-size: 80% 80%; mask-size: 80% 80%; opacity: 0.6; }
    }

@keyframes thumbReflectionFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

@keyframes thumbRibbonRotate {
      0%, 100% { transform: rotate(45deg) scale(1); }
      50% { transform: rotate(45deg) scale(1.05); }
    }

@keyframes thumbResponsiveFormat {
      0%, 30% { opacity: 1; transform: scale(1); }
      35%, 65% { opacity: 0.8; transform: scale(0.96); }
      70%, 100% { opacity: 1; transform: scale(1); }
    }

@keyframes thumbSonarRadar {
      0% { box-shadow: 0 0 0 0 rgba(99,102,241,0.8); }
      70% { box-shadow: 0 0 0 12px rgba(99,102,241,0); }
      100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
    }

@keyframes thumbRefreshRateBlip {
      0% { transform: scale(0.98); opacity: 0.85; }
      50% { transform: scale(1.02); opacity: 1; }
      100% { transform: scale(0.98); opacity: 0.85; }
    }

@keyframes thumbParallaxDepthPlanes {
      0%, 100% { transform: translateY(-4px); }
      50% { transform: translateY(6px); }
    }

@keyframes thumbDoubleClickChatter {
      0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #ef4444); }
      20% { transform: scale(0.95); filter: drop-shadow(0 0 8px #ef4444); }
      35% { transform: scale(0.95); filter: drop-shadow(0 0 12px #ef4444); }
      50% { transform: scale(1); filter: drop-shadow(0 0 2px #ef4444); }
    }

@keyframes thumbKeyboardActuation {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(3px); background: #3b82f6; }
    }

@keyframes thumbAimTargetFitts {
      0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16,185,129,0.7); }
      50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    }

@keyframes thumbGamepadStickRumble {
      0%, 100% { transform: translate(0, 0); }
      25% { transform: translate(-2px, 1px); }
      50% { transform: translate(2px, -2px); }
      75% { transform: translate(-1px, -1px); }
    }

@keyframes thumbDeadPixelCycle {
      0%, 20% { background: #ff0000; }
      25%, 45% { background: #00ff00; }
      50%, 70% { background: #0000ff; }
      75%, 95% { background: #ffffff; }
      100% { background: #000000; }
    }

@keyframes thumbGamutP3Pulse {
      0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255, 30, 80, 0.4)); }
      50% { transform: scale(1.05); filter: drop-shadow(0 0 16px rgba(255, 30, 80, 0.9)); }
    }

@keyframes thumbMatrixNkroScan {
      0%, 100% { border-color: #3b82f6; box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
      50% { border-color: #10b981; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    }

@keyframes thumbSwitchTravelActuation {
      0%, 100% { transform: translateY(0); background: #1e1b4b; }
      40% { transform: translateY(4px); background: #10b981; }
      60% { transform: translateY(4px); background: #10b981; }
    }

@keyframes thumbMouseButtonsAuxLight {
      0%, 100% { background: #3b82f6; }
      33% { background: #a855f7; }
      66% { background: #ec4899; }
    }

@keyframes thumbScrollWheelNotchClick {
      0% { transform: rotate(0deg); }
      20% { transform: rotate(30deg); }
      40% { transform: rotate(60deg); }
      60% { transform: rotate(90deg); }
      80% { transform: rotate(120deg); }
      100% { transform: rotate(150deg); }
    }

@keyframes thumbTrackpadInertiaDecay {
      0% { transform: translateY(0); opacity: 1; }
      30% { transform: translateY(-8px); opacity: 0.9; }
      70% { transform: translateY(-14px); opacity: 0.5; }
      100% { transform: translateY(-16px); opacity: 0.2; }
    }

@keyframes thumbCalibGridScan {
      0% { transform: translateY(0); opacity: 0.3; }
      50% { transform: translateY(18px); opacity: 0.9; }
      100% { transform: translateY(0); opacity: 0.3; }
    }

@keyframes thumbGammaDitherSweep {
      0%, 100% { filter: contrast(100%); }
      50% { filter: contrast(180%); }
    }

@keyframes thumbTouchPointsMulti {
      0%, 100% { transform: scale(1); opacity: 0.8; }
      50% { transform: scale(1.2); opacity: 1; filter: drop-shadow(0 0 6px #10b981); }
    }

@keyframes thumbTrackpadPinchScale {
      0%, 100% { transform: scale(0.9); }
      50% { transform: scale(1.15); }
    }

@keyframes thumbMicEqualizerDance {
      0%, 100% { height: 6px; }
      50% { height: 22px; }
    }

@keyframes thumbStereoPhaseOscillate {
      0%, 100% { transform: translateX(-4px); }
      50% { transform: translateX(4px); }
    }

@keyframes thumbWebcamSensorStream {
      0%, 100% { top: 15%; opacity: 0.9; }
      50% { top: 75%; opacity: 0.4; }
    }

@keyframes thumbRecBlink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.2; }
    }

@keyframes thumbSwitchChatterScope {
      0%, 100% { transform: translateY(0); }
      20% { transform: translateY(-3px); }
      25% { transform: translateY(2px); }
      30% { transform: translateY(-2px); }
      35% { transform: translateY(1px); }
      40% { transform: translateY(-8px); }
      75% { transform: translateY(-8px); }
    }

@keyframes thumbTiltCardSpecular3D {
      0%, 100% { transform: perspective(400px) rotateX(10deg) rotateY(-12deg); }
      50% { transform: perspective(400px) rotateX(-8deg) rotateY(14deg); }
    }

@keyframes thumbGlareSweep {
      0%, 100% { transform: translate(-25%, -25%) rotate(25deg); opacity: 0.3; }
      50% { transform: translate(25%, 25%) rotate(25deg); opacity: 0.75; }
    }

@keyframes thumbObjectFitAspectLock {
      0%, 100% { transform: scale(1); filter: brightness(1); }
      50% { transform: scale(1.15); filter: brightness(1.2); }
    }

@keyframes thumbFocalPointReticle {
      0%, 100% { transform: translate(0, 0); }
      25% { transform: translate(10px, -8px); }
      50% { transform: translate(-10px, 8px); }
      75% { transform: translate(8px, 10px); }
    }

@keyframes thumbVideoFacadePlayPulse {
      0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
      50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    }

@keyframes thumbWaveformCanvasBounce {
      0%, 100% { height: 6px; }
      50% { height: 28px; }
    }

@keyframes thumbVideoHeroCoverPan {
      0%, 100% { transform: scale(1); filter: brightness(1); }
      50% { transform: scale(1.1); filter: brightness(1.2); }
    }

@keyframes thumbVideoTextMaskFlow {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

@keyframes thumbAudioCardVinylSpin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

@keyframes thumbMotionCompareWipe {
      0% { left: 20%; clip-path: inset(0 80% 0 0); }
      50% { left: 75%; clip-path: inset(0 25% 0 0); }
      100% { left: 20%; clip-path: inset(0 80% 0 0); }
    }

@keyframes thumbSubtitleCueKaraoke {
      0%, 33% { color: #facc15; text-shadow: 0 0 6px #facc15; }
      34%, 66% { color: #38bdf8; text-shadow: 0 0 6px #38bdf8; }
      67%, 100% { color: #ec4899; text-shadow: 0 0 6px #ec4899; }
    }

@keyframes thumbSoundFxOscWave {
      0%, 100% { transform: scaleY(0.4); opacity: 0.6; }
      50% { transform: scaleY(1.4); opacity: 1; filter: drop-shadow(0 0 8px #f59e0b); }
    }

@keyframes thumbVideoPlayerChromePlay {
      0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(139,92,246,0.5); }
      50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(236,72,153,0.8); }
    }

@keyframes thumbVoiceMemoWaveTick {
      0%, 100% { background: #206d5e; }
      50% { background: #25d366; box-shadow: 0 0 6px #25d366; }
    }

@keyframes thumbPhotoColorDuotoneSplit {
      0%, 100% { filter: hue-rotate(0deg) contrast(140%); }
      50% { filter: hue-rotate(90deg) contrast(180%); }
    }

@keyframes thumbFramingPodiumReflect {
      0%, 100% { transform: translateY(-3px); }
      50% { transform: translateY(4px); }
    }

@keyframes thumbDeliveryCodecPill {
      0%, 100% { opacity: 0.8; }
      50% { opacity: 1; filter: drop-shadow(0 0 6px #10b981); }
    }

@keyframes thumbYouTubePlayPulse {
      0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(239,68,68,0.5); }
      50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(239,68,68,0.85); }
    }

@keyframes thumbVimeoGlassSweep {
      0%, 100% { transform: rotate(0deg); opacity: 0.8; }
      50% { transform: rotate(180deg); opacity: 1; }
    }

@keyframes thumbSpotifyDiscEqualizer {
      0%, 100% { height: 6px; }
      50% { height: 22px; }
    }

@keyframes thumbAppleMusicSpatial {
      0%, 100% { filter: hue-rotate(0deg); }
      50% { filter: hue-rotate(45deg); }
    }

@keyframes thumbSoundCloudWaveOrange {
      0%, 100% { height: 8px; }
      50% { height: 26px; }
    }

@keyframes thumbBandcampTurntable {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

@keyframes ghDotPulse {
      0%, 100% { transform: scale(1); opacity: 0.8; }
      50% { transform: scale(1.3); opacity: 1; }
    }

@keyframes ghPulseBar { 0% { opacity: 0.6; } 100% { opacity: 1; } }

@keyframes cpPulseThumb {
      0%, 100% { border-color: #2c2d33; }
      50% { border-color: #47cf73; }
    }

@keyframes figHoverThumb {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-3px); }
    }

@keyframes figCursorMoveThumb {
      0% { top: 6px; left: 8px; }
      100% { top: 26px; left: 38px; }
    }

@keyframes loomAudioWaveThumb {
      0% { box-shadow: 0 0 0 0 rgba(98, 93, 245, 0.7); }
      100% { box-shadow: 0 0 0 6px rgba(98, 93, 245, 0); }
    }

@keyframes audioSineThumb {
      0% { transform: scaleY(1); }
      50% { transform: scaleY(3); }
      100% { transform: scaleY(1); }
    }

@keyframes videoGlowPulseThumb {
      0% { opacity: 0.3; }
      100% { opacity: 0.8; }
    }

@keyframes dcThumbDotPulse {
      0%, 100% { transform: scale(1); opacity: 0.8; }
      50% { transform: scale(1.3); opacity: 1; }
    }

@keyframes tgThumbPlanePulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.2); }
    }

@keyframes twThumbHeart {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.3); }
    }

@keyframes rlThumbArrow {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-2px); }
    }

@keyframes tbThumbFlutter {
      0%, 100% { transform: rotate(0deg); }
      50% { transform: rotate(8deg) scale(1.1); }
    }

@keyframes tsThumbGlow {
      0% { border-color: #2f2a4a #2f2a4a #2f2a4a #a855f7; }
      100% { border-color: #a855f7; }
    }

@keyframes ttThumbSpinRecord {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

@keyframes igThumbStory {
      0% { filter: hue-rotate(0deg); }
      100% { filter: hue-rotate(360deg); }
    }

@keyframes twchThumbLive {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

@keyframes podThumbWave {
      0%, 100% { transform: scaleY(0.5); }
      50% { transform: scaleY(1.3); }
    }

@keyframes gmThumbPin {
      0%, 100% { transform: rotate(-45deg) translate(0, 0); }
      50% { transform: rotate(-45deg) translate(2px, -2px); }
    }

@keyframes calThumbDot {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.4); }
    }

@keyframes naThumbCard {
      0% { transform: translateY(0); }
      100% { transform: translateY(-2px); }
    }

@keyframes fmThumbFill {
      0% { width: 35%; }
      100% { width: 75%; }
    }

@keyframes cwThumbDot {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.4); }
    }

@keyframes ctThumbSteam {
      0% { opacity: 0; transform: translateY(0); }
      50% { opacity: 0.8; }
      100% { opacity: 0; transform: translateY(-4px); }
    }

@keyframes thumbGhStarGleam {
      0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(227,179,65,0)); }
      50% { transform: scale(1.15); filter: drop-shadow(0 0 6px rgba(227,179,65,0.8)); }
    }

@keyframes thumbGhCommitPulse {
      0% { transform: scaleY(0.7); opacity: 0.7; }
      100% { transform: scaleY(1.15); opacity: 1; }
    }

@keyframes thumbCpCursorBlink {
      0%, 49% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }

@keyframes thumbFigmaCursor {
      0% { transform: translate(0, 0); }
      35% { transform: translate(25px, -8px); }
      45% { transform: translate(25px, -8px) scale(0.85); }
      55% { transform: translate(25px, -8px) scale(1); }
      80% { transform: translate(-8px, 12px); }
      100% { transform: translate(0, 0); }
    }

@keyframes thumbLoomRecPulse {
      0% { opacity: 0.3; transform: scale(0.85); }
      100% { opacity: 1; transform: scale(1.15); }
    }

@keyframes thumbLoomPlayPulse {
      0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(98,93,245,0.6); }
      50% { transform: scale(1.12); box-shadow: 0 0 22px rgba(98,93,245,0.9); }
    }

@keyframes thumbLoomWaveRing {
      0% { transform: scale(1); opacity: 0.9; }
      100% { transform: scale(1.8); opacity: 0; }
    }

@keyframes thumbAudioFftBar1 {
      0% { height: 25%; }
      100% { height: 85%; }
    }

@keyframes thumbAudioFftBar2 {
      0% { height: 40%; }
      100% { height: 95%; }
    }

@keyframes thumbAudioFftBar3 {
      0% { height: 15%; }
      100% { height: 70%; }
    }

@keyframes thumbAudioFftBar4 {
      0% { height: 50%; }
      100% { height: 90%; }
    }

@keyframes thumbVideoScrubber {
      0% { width: 25%; }
      100% { width: 85%; }
    }

@keyframes thumbVideoScrubberDot {
      0% { left: 23%; }
      100% { left: 83%; }
    }

@keyframes thumbDiscordPulse {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.3); opacity: 0.6; }
    }

@keyframes thumbDiscordBtnGleam {
      0% { box-shadow: 0 0 0 rgba(88,101,242,0); }
      50% { box-shadow: 0 0 14px rgba(88,101,242,0.8); }
      100% { box-shadow: 0 0 0 rgba(88,101,242,0); }
    }

@keyframes thumbTelegramFly {
      0% { transform: translateY(0) rotate(0deg); }
      100% { transform: translateY(-4px) rotate(-8deg); }
    }

@keyframes thumbXHeartBeat {
      0%, 100% { transform: scale(1); }
      25% { transform: scale(1.25); }
      40% { transform: scale(0.95); }
      60% { transform: scale(1.15); }
    }

@keyframes thumbRedditUpvote {
      0% { transform: translateY(0); filter: drop-shadow(0 0 0 #ff4500); }
      100% { transform: translateY(-3px); filter: drop-shadow(0 0 4px #ff4500); }
    }

@keyframes thumbBlueskyFlutter {
      0% { transform: scaleX(1) translateY(0); }
      50% { transform: scaleX(0.7) translateY(-3px); }
      100% { transform: scaleX(1) translateY(0); }
    }

@keyframes thumbThreadsRotate {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

@keyframes thumbSocialFeedScroll {
      0% { transform: translateY(0); }
      100% { transform: translateY(-6px); }
    }

@keyframes thumbTikTokGlitchGlow {
      0%, 100% { box-shadow: -2px 0 12px rgba(37,244,238,0.5), 2px 0 12px rgba(254,44,85,0.5); }
      50% { box-shadow: 2px 0 16px rgba(37,244,238,0.7), -2px 0 16px rgba(254,44,85,0.7); }
    }

@keyframes thumbTikTokRecord {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

@keyframes thumbIgRingSpin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

@keyframes thumbIgHeartBurst {
      0% { transform: scale(0.5); opacity: 0; }
      40% { transform: scale(1.2); opacity: 1; }
      70% { transform: scale(1); opacity: 0.9; }
      100% { transform: scale(1.4); opacity: 0; }
    }

@keyframes thumbTwitchLive {
      0% { opacity: 0.6; }
      100% { opacity: 1; }
    }

@keyframes thumbTwitchChat {
      0% { transform: translateY(8px); opacity: 0; }
      20% { transform: translateY(0); opacity: 1; }
      80% { transform: translateY(0); opacity: 1; }
      100% { transform: translateY(-8px); opacity: 0; }
    }

@keyframes thumbPodcastRipples {
      0% { transform: scale(0.9); opacity: 1; }
      100% { transform: scale(1.4); opacity: 0; }
    }

@keyframes thumbPodcastProgress {
      0% { width: 30%; }
      100% { width: 75%; }
    }

@keyframes thumbMapRadarPing {
      0% { transform: scale(0.4); opacity: 1; }
      100% { transform: scale(1.8); opacity: 0; }
    }

@keyframes thumbMapPinBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }

@keyframes thumbCalendlySlot {
      0% { transform: scale(1); }
      100% { transform: scale(1.04); box-shadow: 0 0 10px rgba(0,107,255,0.6); }
    }

@keyframes thumbNotionCardSlide {
      0% { transform: translateX(0); }
      100% { transform: translateX(4px); }
    }

@keyframes thumbFormRadioPulse {
      0% { border-color: #14b8a6; }
      100% { border-color: #5eead4; box-shadow: 0 0 8px rgba(20,184,166,0.5); }
    }

@keyframes thumbFormEnterBlink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

@keyframes thumbChatBtnFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-4px); }
    }

@keyframes thumbTypingDotHop {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-4px); }
    }

@keyframes thumbCoffeeSteamRise {
      0% { transform: translateY(0) scale(0.8); opacity: 0.2; }
      50% { opacity: 0.9; }
      100% { transform: translateY(-7px) scale(1.2); opacity: 0; }
    }

@keyframes thumbTipCoinDrop {
      0% { transform: translateY(-8px) rotate(0deg); }
      50% { transform: translateY(0) rotate(180deg); }
      100% { transform: translateY(-8px) rotate(360deg); }
    }

@keyframes thumbFluidSwirl1 {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.2) translate(18px, -14px); }
  100% { transform: scale(0.9) translate(-12px, 16px); }
}

@keyframes thumbFluidSwirl2 {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.15) translate(-20px, 12px); }
  100% { transform: scale(1.05) translate(14px, -18px); }
}

@keyframes thumbFluidSwirl3 {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 0.9; }
  100% { transform: scale(0.95); opacity: 0.6; }
}

@keyframes thumbSmokeRise {
  0% { transform: translateY(12px) scale(0.7); opacity: 0.8; }
  50% { opacity: 0.5; }
  100% { transform: translateY(-24px) scale(1.4); opacity: 0; }
}

@keyframes thumbFboProgress {
  0% { width: 25%; }
  50% { width: 95%; }
  100% { width: 25%; }
}

@keyframes thumbMatrixDrop {
  0% { transform: translateY(-16px); opacity: 0.3; }
  50% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0.3; }
}

@keyframes thumbMatrixRadar {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes thumbCurlSpin1 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes thumbCurlSpin2 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes thumbMouseWell {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0.95; }
}

@keyframes thumbVoronoiPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.08); filter: brightness(1.3); }
}

@keyframes thumbSeedInsert {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

@keyframes thumbPolyRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes thumbSynthBeat {
  0% { height: 10px; }
  100% { height: 28px; }
}

@keyframes thumbTriGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes thumbTouchRing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes thumbRaysRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes thumbLightFollow {
  0% { transform: translate(-30px, 0); }
  50% { transform: translate(30px, 10px); }
  100% { transform: translate(-30px, 0); }
}

@keyframes thumbContourPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.18); opacity: 0.95; }
}

@keyframes thumbContourWave {
  0% { transform: scaleX(0.8); }
  100% { transform: scaleX(1.15); }
}

@keyframes thumbProbeRadar {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes thumbOceanSwell {
  0% { transform: translateY(6px); }
  100% { transform: translateY(-6px); }
}

@keyframes thumbOceanSparkle {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes thumbWakeExpand {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes thumbConfettiFlip {
  0% { transform: translateY(-10px) rotate(0deg) scaleX(1); }
  50% { transform: translateY(10px) rotate(180deg) scaleX(-1); }
  100% { transform: translateY(-10px) rotate(360deg) scaleX(1); }
}

@keyframes thumbPoolFill {
  0% { width: 40%; }
  100% { width: 95%; }
}

@keyframes thumbCannonBurst {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes thumbBokehBreathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.22); filter: brightness(1.35); }
}

@keyframes thumbFocusShift {
  0%, 100% { transform: scale(0.8); filter: blur(2px); }
  50% { transform: scale(1.25); filter: blur(0px); }
}

@keyframes thumbChromaFringe {
  0% { transform: translateX(-3px); }
  100% { transform: translateX(3px); }
}

@keyframes thumbHexGlow {
  0% { border-color: rgba(0, 255, 204, 0.4); }
  100% { border-color: rgba(0, 255, 204, 1); box-shadow: 0 0 16px rgba(0, 255, 204, 0.6); }
}

@keyframes thumbPacketDart {
  0% { transform: translate(-25px, -15px); }
  50% { transform: translate(25px, -15px); }
  100% { transform: translate(0, 25px); }
}

@keyframes thumbHexShockwave {
  0% { transform: scale(0.6) rotate(30deg); opacity: 1; }
  100% { transform: scale(1.8) rotate(30deg); opacity: 0; }
}

@keyframes thumbAudioBar {
  0% { height: 15px; }
  100% { height: 75px; }
}

@keyframes thumbRibbonFloat {
  0% { transform: scaleY(0.7); }
  100% { transform: scaleY(1.3); }
}

@keyframes thumbAudioGradient {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes thumbRadarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes thumbBlipFade {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes thumbFabPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes thumbFabBloom {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  100% { transform: translate(-10px, -10px) scale(1); opacity: 1; }
}

@keyframes thumbSpringSlide {
  0% { left: 0; }
  100% { left: calc(100% - 16px); }
}

@keyframes thumbBadgeGlow {
  0%, 100% { box-shadow: 0 0 4px rgba(99,102,241,0.3); }
  50% { box-shadow: 0 0 14px rgba(99,102,241,0.8); }
}

@keyframes thumbPollGrow {
  0% { width: 25%; }
  100% { width: 85%; }
}

@keyframes thumbFlipClock {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(180deg); }
}

@keyframes thumbRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes thumbScratchFade {
  0% { opacity: 1; }
  100% { opacity: 0.2; }
}

@keyframes thumbShimmerSlide {
  0% { background-position: -80px 0; }
  100% { background-position: 80px 0; }
}

@keyframes thumbPricePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes thumbSnapSwipe {
  0% { transform: translateX(-15px); }
  100% { transform: translateX(15px); }
}

@keyframes thumbGridGrow {
  0% { width: 20%; }
  100% { width: 90%; }
}

@keyframes thumbCookieWiggle {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

@keyframes thumbVinylSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes thumbEqBar {
  0% { height: 20px; }
  100% { height: 80px; }
}

@keyframes thumbEqPulse {
  0% { height: 15px; }
  100% { height: 70px; }
}

@keyframes thumbPeakDrop {
  0% { transform: translateY(-30px); opacity: 1; }
  80% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}

@keyframes thumbEmojiBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes thumbBeaconPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes thumbFlyoutSlide {
  0% { transform: translateX(20px); opacity: 0.3; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes thumbProgressSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes thumbScrollTimeline {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

@keyframes thumbViewTransitionMorph {
  0%, 100% { transform: scale(1) rotate(0deg); border-radius: 10px; background: #6366f1; }
  50% { transform: scale(1.18) rotate(6deg); border-radius: 28px; background: #ec4899; }
}

@keyframes thumbAnchorTooltip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Code Editor with Line Numbers Gutter */
.code-editor-with-lines {
  display: flex !important;
  flex-direction: row !important;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  min-height: 180px;
  height: 260px;
  resize: vertical;
  overflow: hidden;
  box-sizing: border-box;
}
.code-editor-with-lines:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.code-editor-gutter {
  user-select: none;
  pointer-events: none;
  background: var(--surface2, #181b26);
  border-right: 1px solid var(--border);
  color: var(--muted, #64748b);
  padding: 8px 6px 8px 8px;
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  line-height: 18px;
  text-align: right;
  min-width: 36px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: pre !important;
  display: block !important;
  height: 100%;
  flex-shrink: 0;
}
.code-editor-with-lines .code-area {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 8px 10px !important;
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace !important;
  font-size: 12px !important;
  line-height: 18px !important;
  flex: 1 1 auto;
  height: 100% !important;
  min-height: 100% !important;
  resize: none !important;
  box-shadow: none !important;
  outline: none !important;
  white-space: pre !important;
  overflow: auto !important;
  box-sizing: border-box;
  margin: 0 !important;
}

/* ==========================================================================
   Report a Bug Modal Styles (Global Overlay)
   ========================================================================== */

.report-bug-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(5, 8, 16, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
  box-sizing: border-box !important;
}

.report-bug-modal-overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.report-bug-modal-card {
  background: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
  width: 100% !important;
  max-width: 480px !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.75) !important;
  padding: 26px 28px !important;
  position: relative !important;
  transform: translateY(12px) scale(0.97) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  color: #f8fafc !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.report-bug-modal-overlay.open .report-bug-modal-card {
  transform: translateY(0) scale(1) !important;
}

.report-bug-modal-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
}

.report-bug-modal-close:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.report-bug-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
}

.report-bug-icon {
  font-size: 22px !important;
  line-height: 1 !important;
}

.report-bug-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  margin: 0 !important;
}

.report-bug-desc {
  font-size: 13.5px !important;
  color: #94a3b8 !important;
  margin: 0 0 16px 0 !important;
  line-height: 1.5 !important;
}

.report-bug-url-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--surface2) !important;
  border: 1px solid var(--border) !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  margin-bottom: 16px !important;
  color: var(--text-secondary) !important;
}

.report-bug-url-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 11.5px !important;
  color: var(--accent) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 250px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.report-bug-field {
  margin-bottom: 14px !important;
  text-align: left !important;
}

.report-bug-field label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-bottom: 6px !important;
}

.report-bug-input,
.report-bug-textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

.report-bug-input:focus,
.report-bug-textarea:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.2) !important;
}

.report-bug-btn-submit {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: var(--accent) !important;
  color: var(--accent-fg, #ffffff) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 11px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.15s ease, transform 0.1s ease !important;
  margin-top: 4px !important;
}

.report-bug-btn-submit:hover:not(:disabled) {
  background: var(--accent-hover) !important;
  transform: translateY(-1px) !important;
}

.report-bug-btn-submit:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

.report-bug-status {
  margin-top: 14px !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  display: none !important;
}

.report-bug-status.success {
  display: block !important;
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #34d399 !important;
}

.report-bug-status.error {
  display: block !important;
  background: rgba(239, 68, 68, 0.14) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #f87171 !important;
}
