/**
 * Multi Tube Views (MTV) — Responsive Design & Mobile Optimization System
 * 
 * Mobile-First Responsive Overrides for <=768px (Mobile & Small Tablets),
 * <=480px (Standard Mobile Screens), and <=360px (Extra Small Phones).
 * 
 * STRICT ARCHITECTURAL RULE:
 * Desktop (>=993px) and Tablet (769px-992px) styles remain 100% UNTOUCHED.
 * Non-homepage pages maintain their original basic responsive design.
 * Ambient background glows and pattern are preserved across all pages.
 */

/* ==========================================================================
   Mobile Menu Button & Drawer Navigation (Default: Desktop Hidden)
   ========================================================================== */
.btn-mobile-menu {
  display: none;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--transition-speed) ease;
  flex-shrink: 0;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
}

.btn-mobile-menu:hover,
.btn-mobile-menu:focus-visible {
  background-color: var(--bg-subtle);
  border-color: var(--text-primary);
}

.btn-mobile-menu:active {
  transform: scale(0.94);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100dvh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  background-color: rgba(253, 253, 253, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.5rem 1.25rem 0.5rem;
  gap: 0.2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  border-top: 1px solid var(--border-subtle);
}

[data-theme="dark"] .mobile-drawer {
  background-color: rgba(10, 10, 12, 0.98);
}

.mobile-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  touch-action: manipulation;
  min-height: 34px;
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.mobile-nav-link.active {
  color: var(--accent-blue);
  background-color: var(--accent-subtle);
  border-color: var(--accent-border);
}

/* ==========================================================================
   Mobile Platforms Collapsible Sub-menu Custom Styles
   ========================================================================== */
.mobile-nav-dropdown-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobile-nav-dropdown-trigger-container {
  display: flex;
  align-items: stretch;
  gap: 0.2rem;
  width: 100%;
}

.mobile-nav-dropdown-trigger-container .mobile-nav-link {
  flex-grow: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.mobile-nav-dropdown-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  color: var(--text-primary);
  cursor: pointer;
  touch-action: manipulation;
}

[data-theme="dark"] .mobile-nav-dropdown-toggle-btn {
  background-color: var(--bg-surface);
  border-color: var(--border-subtle);
}

.mobile-nav-dropdown-toggle-btn:hover,
.mobile-nav-dropdown-toggle-btn:active,
.mobile-nav-dropdown-toggle-btn:focus-visible {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.mobile-nav-dropdown-toggle-btn .chevron-icon {
  transition: transform var(--transition-speed) ease;
}

.mobile-nav-dropdown-toggle-btn[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.mobile-nav-dropdown-content {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  margin-top: 0.2rem;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.mobile-nav-dropdown-content.open {
  display: flex !important;
}

.mobile-submenu-category {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-submenu-category-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding-left: 0.25rem;
  margin-bottom: 0.15rem;
}

.mobile-submenu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

.mobile-submenu-link {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 550;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-decoration: none;
  min-height: 28px;
}

[data-theme="dark"] .mobile-submenu-link {
  background-color: var(--bg-surface);
  border-color: var(--border-subtle);
}

.mobile-submenu-link:hover,
.mobile-submenu-link:active {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--accent-blue);
}

.mobile-submenu-link.active {
  color: var(--accent-blue);
  background-color: var(--accent-subtle);
  border-color: var(--accent-border);
}

/* ==========================================================================
   Breakpoints: Tablets & Small Laptops (781px to 992px)
   ========================================================================== */
@media (max-width: 992px) and (min-width: 781px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Breakpoints: Mobile Devices & Phablets (<= 780px)
   ========================================================================== */
@media (max-width: 780px) {
  /* Disable Scroll-Reveal & Hero Entrance Animations Completely (Mobile Only — fully visible immediately) */
  .reveal,
  .reveal.in,
  .scroll-reveal,
  .scroll-reveal.is-revealed,
  .hero-section .hero-pill,
  .prompt-header-section .hero-pill,
  .hero-title,
  .prompt-header-section h1,
  .creator-tools-header h1,
  .platform-page-header h1,
  .hero-description,
  .prompt-header-section p,
  .creator-tools-header p,
  .platform-page-header p,
  .prompt-search-wrap,
  .hero-search-wrap,
  #category-filters-wrap,
  .category-pills-wrap,
  .category-filters-wrap,
  .prompt-controls-bar {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
  }

  :root {
    --header-height: 60px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 16px;
  }

  /* Global Mobile Viewport Containment */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-text-size-adjust: 100%;
  }

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

  img, video, iframe, embed, object {
    max-width: 100%;
  }

  /* Ambient Canvas Glows & Grid (Preserved on ALL Pages) */
  .page-glow {
    position: fixed !important;
    top: -200px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 1000px !important;
    height: 600px !important;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.065) 0%, rgba(139, 92, 246, 0.04) 40%, transparent 70%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    filter: blur(40px) !important;
    opacity: 0.75 !important;
    display: block !important;
  }

  .page-glow-2 {
    position: fixed !important;
    top: 35% !important;
    right: -200px !important;
    width: 700px !important;
    height: 700px !important;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.045) 0%, rgba(59, 130, 246, 0.02) 45%, transparent 70%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    filter: blur(50px) !important;
    opacity: 0.75 !important;
    display: block !important;
  }

  .page-glow-3 {
    position: fixed !important;
    top: 65% !important;
    left: -200px !important;
    width: 700px !important;
    height: 700px !important;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.045) 0%, rgba(236, 72, 153, 0.02) 45%, transparent 70%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    filter: blur(50px) !important;
    opacity: 0.75 !important;
    display: block !important;
  }

  .grid-overlay {
    position: fixed !important;
    inset: 0 !important;
    background-image: 
      linear-gradient(to right, var(--ref-line, rgba(20, 25, 35, 0.085)) 1px, transparent 1px),
      linear-gradient(to bottom, var(--ref-line, rgba(20, 25, 35, 0.085)) 1px, transparent 1px) !important;
    background-size: 52px 52px !important;
    mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 80%) !important;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 80%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    opacity: 0.36 !important;
    display: block !important;
  }

  /* ==========================================================================
     Non-Homepage Mobile Layout & Side Margin Reduction (Excludes Homepage)
     ========================================================================== */
  body:not(.desktop-ref-body) .container {
    width: calc(100% - 16px) !important;
    padding-left: 0.35rem !important;
    padding-right: 0.35rem !important;
    box-sizing: border-box !important;
  }

  /* AI Prompt Page Mobile Optimizations (Scoped to Non-Homepage) */
  body:not(.desktop-ref-body) .prompt-header-section {
    padding: 1.5rem 0 1rem 0 !important;
  }

  body:not(.desktop-ref-body) .prompt-controls-bar {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
  }

  body:not(.desktop-ref-body) .prompt-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1rem 0 !important;
  }

  body:not(.desktop-ref-body) .category-pills-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.25rem 0 0.5rem 0 !important;
  }

  body:not(.desktop-ref-body) .prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 2rem !important;
  }

  body:not(.desktop-ref-body) .prompt-card {
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Robust Hidden State for Prompt Filtering */
  body:not(.desktop-ref-body) .prompt-card.is-hidden,
  body:not(.desktop-ref-body) .prompt-card[data-hidden="true"],
  body:not(.desktop-ref-body) .prompt-card[hidden] {
    display: none !important;
  }

  /* Issue 2 Fix Part 1: Reduced preview image height / balanced aspect ratio */
  body:not(.desktop-ref-body) .prompt-card-media {
    width: 100% !important;
    aspect-ratio: 4 / 3.2 !important;
    max-height: 180px !important;
    background-color: var(--bg-subtle) !important;
    overflow: hidden !important;
  }

  body:not(.desktop-ref-body) .prompt-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  body:not(.desktop-ref-body) .prompt-card-badge {
    top: 0.45rem !important;
    left: 0.45rem !important;
    padding: 0.18rem 0.45rem !important;
    font-size: 0.62rem !important;
  }

  body:not(.desktop-ref-body) .prompt-card-body {
    padding: 0.65rem 0.55rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body:not(.desktop-ref-body) .prompt-card-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 0.25rem !important;
    color: var(--text-primary) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
  }

  body:not(.desktop-ref-body) .prompt-card-preview {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.55rem !important;
    color: var(--text-secondary) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    flex-grow: 1 !important;
  }

  /* Issue 2 Fix Part 2: Copy and View buttons fit side-by-side with no cut-off or overflow */
  body:not(.desktop-ref-body) .prompt-card-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.35rem !important;
    padding-top: 0.45rem !important;
    border-top: 1px solid var(--border-subtle) !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin-top: auto !important;
  }

  body:not(.desktop-ref-body) .prompt-card-actions .btn {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    padding: 0.35rem 0.2rem !important;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.2rem !important;
    border-radius: var(--radius-full) !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  body:not(.desktop-ref-body) .prompt-card-actions .btn svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
  }

  body:not(.desktop-ref-body) .prompt-card-actions .btn span {
    font-size: 0.74rem !important;
    white-space: nowrap !important;
  }

  /* 1. Header & Mobile Navigation */
  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .header-inner {
    padding: 0 !important;
    height: 100% !important;
    min-height: 60px !important;
    max-height: 60px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .brand {
    gap: 0.45rem !important;
    font-size: 0.88rem !important;
  }

  .brand-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 0.76rem !important;
    border-radius: 6px !important;
  }

  .brand-text span:first-child {
    font-size: 0.85rem !important;
    white-space: nowrap !important;
  }

  .brand-badge {
    font-size: 0.52rem !important;
    padding: 0.05rem 0.25rem !important;
    border-radius: 3px !important;
  }

  .nav-desktop {
    display: none !important;
  }

  #nav-info-dropdown {
    display: none !important;
  }

  .btn-mobile-menu {
    display: flex !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 6px !important;
    padding: 0 !important;
  }

  .btn-mobile-menu svg {
    width: 17px !important;
    height: 17px !important;
  }

  .btn-icon-only {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 6px !important;
    padding: 0 !important;
  }

  .btn-icon-only svg {
    width: 16px !important;
    height: 16px !important;
  }

  .header-actions {
    gap: 0.35rem !important;
  }

  /* ==========================================================================
     HOMEPAGE SPECIFIC MOBILE STYLES (Strictly Scoped / Preserved)
     ========================================================================== */

  /* Homepage Marquee / Ticker Strip */
  .marquee-shell,
  .category-window,
  .features-strip,
  .platform-ticker-wrap,
  .ticker-shell,
  .ticker-wrap,
  .marquee,
  .category-track-wrap,
  .features {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden !important;
    overflow-x: hidden !important;
    padding: 0.5rem 0 !important;
    box-sizing: border-box !important;
    margin-top: 0.35rem !important;
    margin-bottom: 0 !important;
    display: block !important;
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  }

  [data-theme="dark"] .marquee-shell,
  [data-theme="dark"] .category-window,
  [data-theme="dark"] .features-strip,
  [data-theme="dark"] .platform-ticker-wrap,
  [data-theme="dark"] .ticker-shell,
  [data-theme="dark"] .ticker-wrap,
  [data-theme="dark"] .marquee,
  [data-theme="dark"] .category-track-wrap,
  [data-theme="dark"] .features {
    background: rgba(20, 22, 28, 0.65) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  }

  .marquee-track,
  .category-track,
  .features-track,
  .platform-ticker-track,
  .ticker-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    align-items: center !important;
    will-change: transform !important;
  }

  .marquee-set,
  .category-set,
  .features-set,
  .platform-ticker-set,
  .ticker-set {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 1.25rem !important;
    padding-right: 1.25rem !important;
    flex-shrink: 0 !important;
  }

  .marquee-item,
  .platform-ticker-chip,
  .feature-strip-item,
  .ticker-item {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-size: 0.7rem !important;
    padding: 0.25rem 0.6rem !important;
    line-height: 1 !important;
  }

  .marquee-item .dot,
  .feature-strip-item .dot {
    width: 5px !important;
    height: 5px !important;
    flex-shrink: 0 !important;
  }

  /* Homepage Hero Section */
  .hero-section {
    padding: 2.25rem 0 2.5rem 0 !important;
  }

  .hero-pill {
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    padding: 0.2rem 0.65rem !important;
    margin-bottom: 1.15rem !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
  }

  .hero-title {
    font-size: 1.42rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 1rem !important;
    max-width: 100% !important;
  }

  main:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > h1:nth-of-type(1),
  main:nth-of-type(1) > div:nth-of-type(1) > section#hero:nth-of-type(1) > h1:nth-of-type(1) {
    font-size: 28px !important;
  }

  main:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > h1:nth-of-type(1) > span:nth-of-type(1),
  main:nth-of-type(1) > div:nth-of-type(1) > section#hero:nth-of-type(1) > h1:nth-of-type(1) > span:nth-of-type(1) {
    font-size: 25.32px !important;
  }

  .desktop-ref-body .hero-description,
  main:nth-of-type(1) > section:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1) {
    font-size: 11.72px !important;
    line-height: 21.552px !important;
    letter-spacing: -0.01em !important;
    margin-top: -4px !important;
    margin-bottom: 1.35rem !important;
    max-width: 100% !important;
    padding: 0 0.25rem !important;
    color: var(--text-secondary) !important;
  }

  main:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > p:nth-of-type(1),
  main:nth-of-type(1) > div:nth-of-type(1) > section#hero:nth-of-type(1) > p:nth-of-type(1) {
    margin-bottom: 1.35rem !important;
    line-height: 20.75px !important;
    font-weight: normal !important;
    font-size: 14.8px !important;
  }

  .hero-search-wrapper,
  #hero-search-container {
    width: 98% !important;
    margin: 0 auto 1.35rem auto !important;
  }

  /* Homepage Hero Action Buttons (Mobile: compact pill buttons side-by-side) */
  .hero-buttons-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 0.25rem !important;
    box-sizing: border-box !important;
  }

  .btn-ref-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    padding: 0.5rem 1.15rem !important;
    border-radius: 9999px !important;
    background: linear-gradient(135deg, var(--ref-blue, #2563eb), var(--ref-violet, #7c3aed)) !important;
    color: #ffffff !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
    border: none !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    line-height: 1.2 !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  [data-theme="dark"] .btn-ref-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.32) !important;
  }

  .btn-ref-primary svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
  }

  .btn-ref-primary:active {
    transform: scale(0.96) !important;
  }

  .btn-ref-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    padding: 0.5rem 1.15rem !important;
    border-radius: 9999px !important;
    background: var(--ref-surface, rgba(255, 255, 255, 0.85)) !important;
    color: var(--ref-text, #0f172a) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    border: 1px solid var(--ref-line-strong, rgba(15, 23, 42, 0.16)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    line-height: 1.2 !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  [data-theme="dark"] .btn-ref-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #f0f3fa !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
  }

  .btn-ref-secondary svg {
    width: 13px !important;
    height: 13px !important;
    flex-shrink: 0 !important;
  }

  .btn-ref-secondary:active {
    transform: scale(0.96) !important;
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
  }

  [data-theme="dark"] .btn-ref-secondary:active {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
  }

  .btn-ref-secondary:active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
  }

  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.55rem !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    justify-content: center !important;
    font-size: 0.84rem !important;
    padding: 0.35rem 1rem !important;
    border-radius: var(--radius-full) !important;
  }

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

  .hero-trust-badges {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 0.5rem 0.6rem !important;
    margin-top: 1rem !important;
    margin-bottom: 0.35rem !important;
  }

  .hero-trust-badges .trust-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    padding: 0.26rem 0.5rem !important;
    font-size: 0.67rem !important;
    font-weight: 600 !important;
    gap: 0.3rem !important;
    border-radius: var(--radius-full) !important;
    line-height: 1.2 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    will-change: transform !important;
    animation: trustBadgeBob 2.2s ease-in-out infinite !important;
  }

  .hero-trust-badges .trust-badge svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0 !important;
  }

  .hero-trust-badges .trust-badge:nth-child(1) { animation-delay: 0s !important; }
  .hero-trust-badges .trust-badge:nth-child(2) { animation-delay: 0.35s !important; }
  .hero-trust-badges .trust-badge:nth-child(3) { animation-delay: 0.7s !important; }
  .hero-trust-badges .trust-badge:nth-child(4) { animation-delay: 1.05s !important; }

  /* Homepage Directory & Preview Grids */
  #directory {
    padding-top: 1.25rem !important;
    margin-bottom: 2rem !important;
  }

  #directory .directory-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    margin-bottom: 1.15rem !important;
  }

  #directory .directory-header h2 {
    font-size: 1.28rem !important;
    margin-bottom: 0.25rem !important;
  }

  #directory .directory-header p {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
  }

  #directory .search-input-wrap {
    max-width: 100% !important;
    width: 100% !important;
  }

  #directory .search-input {
    font-size: 0.85rem !important;
    padding: 0.35rem 0.75rem 0.35rem 2.2rem !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: var(--radius-full) !important;
  }

  #directory .search-icon {
    left: 0.75rem !important;
    width: 15px !important;
    height: 15px !important;
  }

  .platform-preview-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.55rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .media-converter-preview-grid .platform-preview-item:nth-child(n+5) {
    display: none !important;
  }

  #creator-tools-preview-grid .platform-preview-item:nth-child(n+9),
  .creator-tools-preview-grid:not(.media-converter-preview-grid) .platform-preview-item:nth-child(n+9) {
    display: none !important;
  }

  #platform-workspaces-preview-grid .platform-preview-item:nth-child(n+11),
  .platform-preview-grid:not(.creator-tools-preview-grid) .platform-preview-item:nth-child(n+11) {
    display: none !important;
  }

  .platform-preview-item {
    display: flex !important;
    align-items: center !important;
    padding: 0.48rem 0.55rem !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    gap: 0.42rem !important;
    border-radius: var(--radius-sm) !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .platform-preview-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    font-size: 0.82rem !important;
    line-height: 1 !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .platform-preview-name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.76rem !important;
    line-height: 1.2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  /* Platforms Page Category Filter Pills (Smooth Horizontally Scrollable) */
  #platform-category-pills,
  .category-pills-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    gap: 0.4rem !important;
    padding: 0.25rem 0.2rem 0.6rem 0.2rem !important;
    scrollbar-width: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
  }

  #platform-category-pills::-webkit-scrollbar,
  .category-pills-wrap::-webkit-scrollbar {
    display: none !important;
  }

  #platform-category-pills .category-filter-btn,
  .category-pills-wrap .category-filter-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.75rem !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: var(--radius-full) !important;
    box-sizing: border-box !important;
  }

  /* Homepage AI Prompt Entry Card */
  .ai-prompt-entry-card {
    padding: 1rem 0.85rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    border-radius: var(--radius-lg) !important;
    box-sizing: border-box !important;
  }

  .ai-prompt-entry-info {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    min-width: 0 !important;
  }

  .ai-prompt-entry-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }

  .ai-prompt-entry-icon svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
  }

  .ai-prompt-entry-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  .ai-prompt-entry-text h3 {
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 0.2rem !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.35rem 0.5rem !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .ai-prompt-entry-text h3 span:first-child {
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
    white-space: normal !important;
  }

  .ai-prompt-entry-text h3 .hero-pill,
  .ai-prompt-entry-card .hero-pill {
    font-size: 0.58rem !important;
    font-weight: 700 !important;
    padding: 0.1rem 0.42rem !important;
    line-height: 1.2 !important;
    border-radius: var(--radius-full) !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    letter-spacing: 0.04em !important;
    margin: 0 !important;
    text-transform: uppercase !important;
  }

  .ai-prompt-entry-text p {
    font-size: 0.76rem !important;
    line-height: 1.42 !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
  }

  .ai-prompt-entry-card .btn {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 0.78rem !important;
    padding: 0 0.85rem !important;
    border-radius: var(--radius-full) !important;
  }

  /* Homepage Section Margins */
  #ai-prompt-section,
  #platforms,
  #feature-showcase-section,
  #live-stats-section,
  #faq-section,
  #cta-section {
    margin-bottom: 2rem !important;
  }

  /* Feature Showcase Grid on Homepage */
  .feature-showcase-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .feature-showcase-card {
    padding: 0.85rem 0.75rem !important;
    border-radius: var(--radius-md) !important;
  }

  .feature-showcase-card .card-header-row {
    margin-bottom: 0.55rem !important;
  }

  .glass-icon-tile {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .glass-icon-tile svg {
    width: 16px !important;
    height: 16px !important;
  }

  .feature-showcase-arrow {
    width: 14px !important;
    height: 14px !important;
  }

  .feature-showcase-title {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.2rem !important;
  }

  .feature-showcase-tagline {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }

  /* Live Stats Grid on Homepage */
  .live-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }

  .live-stat-card {
    padding: 1.25rem 0.75rem !important;
    border-radius: var(--radius-md) !important;
  }

  .live-stat-number {
    font-size: 1.5rem !important;
    margin-bottom: 0.2rem !important;
  }

  .live-stat-label {
    font-size: 0.76rem !important;
    margin-bottom: 0.15rem !important;
  }

  .live-stat-desc {
    font-size: 0.68rem !important;
    line-height: 1.3 !important;
  }

  /* Glass Section Titles & FAQ on Homepage */
  .glass-section-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem !important;
  }

  .glass-section-subtitle {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  .glass-faq-trigger {
    padding: 0.75rem 0.85rem !important;
    font-size: 0.88rem !important;
    gap: 0.55rem !important;
  }

  .glass-faq-inner {
    padding: 0 0.85rem 0.75rem 0.85rem !important;
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  /* Glass CTA on Homepage */
  .glass-cta-card {
    padding: 1.5rem 1rem !important;
  }

  .glass-cta-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.45rem !important;
  }

  .glass-cta-desc {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1rem !important;
  }

  .glass-cta-btn {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 0.82rem !important;
    padding: 0 1.25rem !important;
  }

  /* ==========================================================================
     CREATOR TOOLS & AI TOOLS PAGES (creator-tools.html & ai-tools.html) — Mobile Grid & Compact Styling
     ========================================================================== */
  .creator-tools-header,
  #tools-list-view .prompt-header-section {
    padding: 1.25rem 0 0.85rem 0 !important;
    margin-bottom: 0.35rem !important;
  }

  .creator-tools-header h1,
  #tools-list-view .prompt-header-section h1 {
    font-size: 1.3rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.3rem !important;
    letter-spacing: -0.02em !important;
  }

  main:nth-of-type(1) > div:nth-of-type(1) > div#tools-list-view:nth-of-type(2) > section:nth-of-type(1) > h1:nth-of-type(1) {
    font-size: 21.8px !important;
    line-height: 42px !important;
  }

  .creator-tools-header p,
  #tools-list-view .prompt-header-section p {
    font-size: 0.76rem !important;
    line-height: 1.42 !important;
    margin-bottom: 0 !important;
    max-width: 100% !important;
  }

  main:nth-of-type(1) > div:nth-of-type(1) > div#tools-list-view:nth-of-type(2) > section:nth-of-type(1) > p:nth-of-type(1) {
    font-size: 14.16px !important;
    line-height: 18.2672px !important;
  }

  #tools-list-view .prompt-header-section .hero-pill {
    font-size: 0.7rem !important;
    padding: 0.18rem 0.5rem !important;
    margin-bottom: 0.4rem !important;
  }

  .creator-tools-input-card {
    padding: 0.85rem 0.8rem !important;
    margin-bottom: 1.25rem !important;
    border-radius: var(--radius-md) !important;
    box-sizing: border-box !important;
  }

  .creator-tools-input-label {
    font-size: 0.78rem !important;
    margin-bottom: 0.35rem !important;
  }

  .creator-tools-input {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.84rem !important;
    min-height: 38px !important;
    border-radius: var(--radius-sm) !important;
    box-sizing: border-box !important;
  }

  /* Search Bar (Mobile Compact) */
  #tools-list-view .prompt-search-wrap,
  .creator-tools-section .prompt-search-wrap {
    margin-bottom: 0.75rem !important;
    width: 100% !important;
  }

  #tools-list-view .prompt-search-input,
  #ai-tools-search-input {
    font-size: 0.8rem !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0.35rem 2rem 0.35rem 2.15rem !important;
    border-radius: var(--radius-full) !important;
  }

  #tools-list-view .prompt-search-icon {
    left: 0.75rem !important;
    width: 14px !important;
    height: 14px !important;
  }

  #tools-list-view .prompt-search-clear {
    right: 0.45rem !important;
    width: 22px !important;
    height: 22px !important;
  }

  /* Category Filter Pills (Mobile Horizontal Scrollable Row) */
  #category-filters-wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    gap: 0.35rem !important;
    padding: 0.2rem 0.1rem 0.55rem 0.1rem !important;
    margin-bottom: 1rem !important;
    scrollbar-width: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
  }

  #category-filters-wrap::-webkit-scrollbar {
    display: none !important;
  }

  #category-filters-wrap .filter-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    padding: 0.2rem 0.65rem !important;
    height: 30px !important;
    min-height: 30px !important;
    border-radius: var(--radius-full) !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }

  #category-filters-wrap .filter-chip .filter-count {
    font-size: 0.66rem !important;
    padding: 0.05rem 0.3rem !important;
    line-height: 1 !important;
  }

  /* Empty State */
  #ai-tools-empty-state {
    padding: 1.5rem 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  #ai-tools-empty-state h3 {
    font-size: 0.95rem !important;
  }

  #ai-tools-empty-state p {
    font-size: 0.76rem !important;
  }

  /* Tool Cards 2-Column Grid */
  .creator-tools-grid,
  #ai-tools-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 1.75rem !important;
  }

  .creator-tool-card {
    background-color: var(--bg-surface-elevated, var(--bg-surface)) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.65rem 0.55rem !important;
    box-shadow: var(--shadow-sm) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  /* Robust Hidden State for Filtering */
  .creator-tool-card.is-hidden,
  .creator-tool-card[data-hidden="true"],
  .creator-tool-card[hidden] {
    display: none !important;
  }

  .creator-tool-header {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    margin-bottom: 0.25rem !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .creator-tool-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .creator-tool-title {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    word-break: break-word !important;
    color: var(--text-primary) !important;
  }

  .creator-tool-desc {
    font-size: 0.68rem !important;
    line-height: 1.32 !important;
    margin-bottom: 0.45rem !important;
    color: var(--text-secondary) !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
    word-break: break-word !important;
  }

  .creator-tool-actions {
    display: flex !important;
    padding-top: 0.35rem !important;
    border-top: 1px solid var(--border-subtle) !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: auto !important;
  }

  .btn-open-tool,
  .creator-tool-actions .btn {
    width: 100% !important;
    padding: 0.35rem 0.6rem !important;
    min-height: 32px !important;
    height: 32px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    gap: 0.25rem !important;
    border-radius: 9999px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .btn-open-tool span {
    font-size: 0.72rem !important;
    letter-spacing: inherit !important;
    text-transform: uppercase !important;
  }

  .btn-open-tool svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0 !important;
  }

  /* Dedicated Tool Workspace (Mobile Refined Sizing) */
  #dedicated-tool-workspace .page-header {
    padding: 1rem 0 0.65rem 0 !important;
    margin-bottom: 0.75rem !important;
  }

  #dedicated-tool-title {
    font-size: 1.2rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.25rem !important;
  }

  #dedicated-tool-desc {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }

  #dedicated-tool-workspace .card {
    padding: 0.95rem 0.8rem !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 1rem !important;
  }

  #dedicated-input-label {
    font-size: 0.76rem !important;
    margin-bottom: 0.3rem !important;
  }

  #dedicated-tool-input {
    font-size: 0.82rem !important;
    padding: 0.55rem 0.65rem !important;
    min-height: 80px !important;
    border-radius: var(--radius-md) !important;
  }

  #dedicated-platform-wrap,
  #dedicated-tone-wrap {
    margin-bottom: 0.5rem !important;
  }

  #dedicated-platform-wrap label,
  #dedicated-tone-wrap label {
    font-size: 0.74rem !important;
    margin-bottom: 0.2rem !important;
  }

  #dedicated-platform-select,
  #dedicated-tone-select {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.6rem !important;
    min-height: 34px !important;
    border-radius: var(--radius-md) !important;
  }

  #btn-generate-dedicated {
    font-size: 0.85rem !important;
    padding: 0.55rem 0.75rem !important;
    min-height: 38px !important;
    border-radius: var(--radius-md) !important;
  }

  #dedicated-tool-output-wrap {
    margin-top: 1rem !important;
    padding-top: 0.85rem !important;
  }

  #btn-dedicated-copy-all,
  #btn-dedicated-copy,
  #btn-dedicated-clear {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.45rem !important;
    min-height: 26px !important;
  }

  #dedicated-tool-output {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    padding: 0.75rem 0.65rem !important;
    border-radius: var(--radius-md) !important;
  }

  /* ==========================================================================
     MEDIA CONVERTER TOOLS PAGE (media-converter-tools.html) — Mobile Grid & Card Styling
     ========================================================================== */
  main:nth-of-type(1) > div:nth-of-type(1) > div#media-tools-list-view:nth-of-type(2) > section:nth-of-type(1) > h1:nth-of-type(1) {
    font-size: 26px !important;
  }
  main:nth-of-type(1) > div:nth-of-type(1) > div#media-tools-list-view:nth-of-type(2) > section:nth-of-type(1) > p:nth-of-type(1) {
    font-size: 14px !important;
  }

  /* Category Filter Pills (Mobile Horizontal Scrollable Row) */
  #media-category-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
    gap: 0.35rem !important;
    padding: 0.2rem 0.1rem 0.55rem 0.1rem !important;
    margin-bottom: 1.25rem !important;
    scrollbar-width: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
  }

  #media-category-pills::-webkit-scrollbar {
    display: none !important;
  }

  #media-category-pills .filter-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.75rem !important;
    height: 32px !important;
    min-height: 32px !important;
    border-radius: var(--radius-full) !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }

  #media-category-pills .filter-chip .filter-count {
    font-size: 0.66rem !important;
    padding: 0.05rem 0.3rem !important;
    line-height: 1 !important;
  }

  .media-tool-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
  }

  .media-tool-card {
    background-color: var(--bg-surface-elevated, var(--bg-surface)) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 0.65rem !important;
    box-shadow: var(--shadow-sm) !important;
    display: flex;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  /* Robust Hidden State for Media Converter Tools Filtering */
  .media-tool-card.is-hidden,
  .media-tool-card[data-hidden="true"],
  .media-tool-card[hidden] {
    display: none !important;
  }

  .media-tool-icon {
    font-size: 1.35rem !important;
    margin-bottom: 0.35rem !important;
    line-height: 1 !important;
    display: inline-block !important;
  }

  .media-tool-card h3 {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 0.25rem !important;
    color: var(--text-primary) !important;
    word-break: break-word !important;
  }

  .media-tool-card p {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.65rem !important;
    color: var(--text-secondary) !important;
    flex-grow: 1 !important;
    word-break: break-word !important;
  }

  .media-tool-card > div:last-child {
    margin-top: auto !important;
    padding-top: 0.45rem !important;
    border-top: 1px solid var(--border-subtle) !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .btn-open-media-tool,
  .media-tool-card .btn {
    width: 100% !important;
    padding: 0.35rem 0.6rem !important;
    min-height: 32px !important;
    height: 32px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    gap: 0.25rem !important;
    border-radius: 9999px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .btn-open-media-tool span {
    font-size: 0.72rem !important;
    letter-spacing: inherit !important;
    text-transform: uppercase !important;
  }

  .btn-open-media-tool svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0 !important;
  }

  /* ==========================================================================
     BROWSER UTILITIES PAGES — Mobile Grid, Hero & Category Responsive Styling
     ========================================================================== */
  .bu-hero {
    margin: 1rem auto 1.5rem auto !important;
  }

  main:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > h1:nth-of-type(1) {
    font-size: 18.6px !important;
  }

  main:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1) {
    font-size: 12.8px !important;
  }

  main:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > span:nth-of-type(1) {
    font-size: 9.2px !important;
    line-height: 15.36px !important;
    padding-left: 8.8px !important;
    padding-top: 2.2px !important;
    padding-bottom: 0px !important;
    margin-right: -4px !important;
    margin-top: -7px !important;
    margin-left: 0px !important;
  }

  .bu-hero .bu-badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.55rem !important;
  }

  .bu-hero h1.bu-title {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    margin: 0.35rem 0 0.5rem 0 !important;
  }

  .bu-hero p.bu-subtitle {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1rem !important;
  }

  main:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > input#bu-search-input:nth-of-type(1) {
    font-size: 11.12px !important;
  }

  #bu-search-input {
    padding: 0.55rem 3.5rem 0.55rem 0.85rem !important;
    font-size: 0.82rem !important;
    min-height: 38px !important;
    height: 38px !important;
    box-sizing: border-box !important;
  }

  #bu-search-count {
    font-size: 0.72rem !important;
    right: 12px !important;
  }

  /* Quick Category Nav Buttons — Mobile 2-Column Compact Grid */
  .bu-category-nav-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .bu-category-nav-grid .bu-btn {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.35rem 0.4rem !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-full) !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    min-height: 32px !important;
    height: 32px !important;
  }

  .bu-category-nav-grid .bu-btn span {
    font-size: 0.74rem !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .bu-grid-3col,
  .bu-tools-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
  }

  .bu-card,
  .bu-tool-card {
    background-color: var(--bg-surface-elevated, var(--bg-surface)) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 0.65rem !important;
    box-shadow: var(--shadow-sm) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  /* Robust Hidden State for Browser Utilities Filtering on Mobile */
  .bu-card.is-hidden,
  .bu-card[data-hidden="true"],
  .bu-card[hidden],
  .bu-tool-card.is-hidden,
  .bu-tool-card[data-hidden="true"],
  .bu-tool-card[hidden],
  .bu-category-block.is-hidden,
  .bu-category-block[data-hidden="true"],
  .bu-category-block[hidden] {
    display: none !important;
  }

  .bu-card-icon,
  .bu-tool-card-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 1rem !important;
    border-radius: 6px !important;
  }

  .bu-card-title,
  .bu-tool-card-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }

  .bu-card-desc,
  .bu-tool-card-desc {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.65rem !important;
  }

  .bu-card-action,
  .bu-tool-card-action {
    font-size: 0.74rem !important;
    padding-top: 0.45rem !important;
  }

  .bu-card-actions {
    margin-top: auto !important;
    padding-top: 0.45rem !important;
    border-top: 1px solid var(--border-subtle) !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .btn-open-utility,
  .bu-card-actions .btn {
    width: 100% !important;
    padding: 0.35rem 0.6rem !important;
    min-height: 32px !important;
    height: 32px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    gap: 0.25rem !important;
    border-radius: 9999px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .btn-open-utility span {
    font-size: 0.72rem !important;
    letter-spacing: inherit !important;
    text-transform: uppercase !important;
  }

  .btn-open-utility svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0 !important;
  }

  .bu-explore-btn {
    font-size: 0.76rem !important;
    padding: 0.35rem 0.75rem !important;
    height: 32px !important;
    min-height: 32px !important;
    gap: 0.3rem !important;
    width: auto !important;
  }

  .bu-explore-btn svg {
    width: 11px !important;
    height: 11px !important;
  }

  /* ==========================================================================
     BREADCRUMB TRAILS & WORKSPACES — Mobile Left-Aligned Precision
     ========================================================================== */
  .breadcrumb-nav,
  .bu-breadcrumbs,
  .contact-breadcrumb {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .bu-breadcrumbs {
    margin-bottom: 0.75rem !important;
    font-size: 0.74rem !important;
    gap: 0.3rem !important;
  }

  .bu-header {
    margin: 1rem 0 1.25rem 0 !important;
  }

  .bu-header .bu-title,
  .bu-header h1 {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.25rem !important;
  }

  .bu-header .bu-subtitle,
  .bu-header p {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }

  .bu-workspace {
    padding: 0.85rem 0.8rem !important;
    border-radius: var(--radius-md) !important;
    margin-top: 1rem !important;
    margin-bottom: 1.25rem !important;
    box-sizing: border-box !important;
  }

  .bu-workspace-header {
    padding-bottom: 0.65rem !important;
    margin-bottom: 0.85rem !important;
    gap: 0.5rem !important;
  }

  .bu-workspace-title {
    font-size: 1.1rem !important;
  }

  .bu-workspace-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 1.1rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .bu-form-group {
    margin-bottom: 0.75rem !important;
  }

  .bu-form-label {
    font-size: 0.78rem !important;
    margin-bottom: 0.35rem !important;
  }

  .bu-form-label-hint {
    font-size: 0.7rem !important;
  }

  .bu-textarea {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.82rem !important;
    border-radius: var(--radius-sm) !important;
    min-height: 90px !important;
    box-sizing: border-box !important;
  }

  .bu-textarea-mono {
    font-size: 0.78rem !important;
  }

  .bu-input {
    padding: 0.45rem 0.65rem !important;
    font-size: 0.82rem !important;
    min-height: 36px !important;
    height: 36px !important;
    border-radius: var(--radius-sm) !important;
    box-sizing: border-box !important;
  }

  .bu-select {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.82rem !important;
    min-height: 36px !important;
    height: 36px !important;
    border-radius: var(--radius-sm) !important;
    box-sizing: border-box !important;
  }

  .bu-actions-bar {
    gap: 0.35rem !important;
    margin-top: 0.65rem !important;
    margin-bottom: 0.65rem !important;
  }

  .bu-actions-bar .bu-btn,
  .bu-workspace .bu-btn {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    min-height: 32px !important;
    height: 32px !important;
    border-radius: var(--radius-full) !important;
    box-sizing: border-box !important;
  }

  .bu-dropzone {
    padding: 1.1rem 0.75rem !important;
    border-radius: var(--radius-md) !important;
  }

  .bu-options-wrap {
    gap: 0.35rem !important;
    margin-top: 0.45rem !important;
    margin-bottom: 0.65rem !important;
  }

  .bu-checkbox-label {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.72rem !important;
    border-radius: var(--radius-sm) !important;
  }

  .bu-output-box {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.78rem !important;
    min-height: 80px !important;
    border-radius: var(--radius-sm) !important;
  }

  .bu-stats-strip {
    padding: 0.5rem 0.65rem !important;
    gap: 0.45rem !important;
    font-size: 0.72rem !important;
    border-radius: var(--radius-sm) !important;
    margin-top: 0.55rem !important;
  }

  .bu-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
  }

  .bu-grid-2col > div {
    padding: 1rem 0.85rem !important;
    border-radius: var(--radius-md) !important;
  }

  .bu-grid-2col > div h2 {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }

  .bu-grid-2col > div p {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
  }

  .bu-grid-2col > div strong {
    font-size: 0.82rem !important;
  }

  /* ==========================================================================
     PLATFORMS DIRECTORY PAGE (platforms.html) — Mobile Grid & Card Styling
     ========================================================================== */
  main:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > h1:nth-of-type(1) {
    font-size: 29px !important;
  }
  main:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > p:nth-of-type(1) {
    font-size: 16.8px !important;
  }
  main:nth-of-type(1) > div:nth-of-type(1) > section:nth-of-type(1) > span:nth-of-type(1) {
    font-size: 12.28px !important;
  }

  .platform-page-header {
    padding: 1.5rem 0 1rem 0 !important;
    margin-bottom: 0.5rem !important;
  }

  .platform-page-header h1 {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.35rem !important;
  }

  .platform-page-header p {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
  }

  .platform-grid,
  #platform-cards-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 1.5rem !important;
  }

  .platform-card {
    background-color: var(--bg-surface-elevated, var(--bg-surface)) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius-md) !important;
    padding: 0.75rem 0.65rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: 100% !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-sm) !important;
  }

  /* Robust Hidden State for Platform Filtering on Mobile */
  .platform-card.is-hidden,
  .platform-card[data-hidden="true"],
  .platform-card[hidden] {
    display: none !important;
  }

  .platform-card-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .platform-avatar-wrap {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0.35rem !important;
  }

  .platform-avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .platform-card-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin: 0 0 0.25rem 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    width: 100% !important;
    min-width: 0 !important;
    word-break: break-word !important;
  }

  .platform-verified-badge {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    flex-shrink: 0 !important;
  }

  .platform-card-desc {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    margin: 0 0 0.65rem 0 !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
    word-break: break-word !important;
    color: var(--text-secondary) !important;
  }

  .platform-card-actions {
    display: flex !important;
    margin-top: auto !important;
    padding-top: 0.45rem !important;
    border-top: 1px solid var(--border-subtle) !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .btn-open-platform,
  .platform-card-actions .btn {
    width: 100% !important;
    padding: 0.35rem 0.6rem !important;
    min-height: 32px !important;
    height: 32px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    gap: 0.25rem !important;
    border-radius: 9999px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  .btn-open-platform span {
    font-size: 0.72rem !important;
    letter-spacing: inherit !important;
    text-transform: uppercase !important;
  }

  .btn-open-platform svg {
    width: 11px !important;
    height: 11px !important;
    flex-shrink: 0 !important;
  }

  /* Reduce empty spacing before footer on all tool/directory pages */
  .site-main {
    padding-bottom: 2rem !important;
  }

  .prompt-controls-bar {
    margin-bottom: 1.25rem !important;
  }

  /* ==========================================================================
     GLOBAL FOOTER & TOAST
     ========================================================================== */
  .site-footer {
    padding: 2.25rem 0 1.5rem 0 !important;
  }

  .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .footer-brand {
    grid-column: 1 / -1 !important;
    margin-bottom: 0.65rem !important;
  }

  .footer-brand h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.35rem !important;
  }

  .footer-brand p {
    font-size: 0.82rem !important;
    line-height: 1.48 !important;
    max-width: 100% !important;
  }

  .footer-col {
    min-width: 0 !important;
  }

  .footer-col h4 {
    margin-bottom: 0.65rem !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    color: var(--text-muted) !important;
  }

  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .footer-links a {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    padding: 0.2rem 0 !important;
    margin: 0 !important;
    color: var(--text-secondary) !important;
    display: inline-flex !important;
    word-break: break-word !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 0.75rem !important;
    text-align: center !important;
    padding-top: 1.25rem !important;
  }

  .footer-bottom-info {
    align-items: center !important;
    gap: 0.35rem !important;
    font-size: 0.74rem !important;
  }

  .creator-credit {
    justify-content: center !important;
    font-size: 0.75rem !important;
    flex-wrap: wrap !important;
  }

  .footer-social-row {
    justify-content: center !important;
    margin-top: 0.5rem !important;
    gap: 0.65rem !important;
  }

  .footer-social-link,
  .site-footer .footer-social-link {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
  }

  .footer-social-link svg {
    width: 16px !important;
    height: 16px !important;
  }

  .footer-bottom-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.85rem !important;
    width: 100% !important;
  }

  .footer-bottom-links a {
    font-size: 0.76rem !important;
    white-space: nowrap !important;
  }

  /* Toast Notification */
  .toast-container {
    bottom: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    max-width: calc(100% - 2rem) !important;
  }

  .toast {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.82rem !important;
    border-radius: var(--radius-md) !important;
  }

  /* ==========================================================================
     MOBILE WORKSPACE & TOOL PAGES CUSTOM OPTIMIZATIONS
     ========================================================================== */

  /* ISSUE 1 — Tool Header: Icon Misaligned with Title/Description */
  .tool-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 0.5rem 0 1rem 0 !important;
    margin-bottom: 1.25rem !important;
  }
  .tool-identity {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
    text-align: left !important;
  }
  .tool-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 1.25rem !important;
    margin-top: 0.2rem !important;
    border-radius: var(--radius-md) !important;
    flex-shrink: 0 !important;
  }
  .tool-title-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.45rem !important;
    margin-bottom: 0.25rem !important;
    flex-direction: row !important;
  }
  .tool-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }
  
  /* Media Converter Header card fix */
  #media-tool-workspace .card:first-of-type > div {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
  }
  #media-tool-icon {
    font-size: 2.25rem !important;
    margin-top: 0.2rem !important;
    flex-shrink: 0 !important;
  }
  #media-tool-title {
    font-size: 1.35rem !important;
    margin-bottom: 0.25rem !important;
    font-weight: 700 !important;
  }
  #media-tool-desc {
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
  }

  /* ISSUE 2 — Input Label + Badge Overlapping/Wrapping Awkwardly */
  .input-group-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
    margin-bottom: 0.45rem !important;
  }
  .input-group-label label,
  .input-group-label span {
    display: block !important;
    text-align: left !important;
  }
  .input-hint {
    font-size: 0.72rem !important;
    margin-top: 0.15rem !important;
  }

  /* ISSUE 3 — Input Field Action Buttons Row Overflowing Off-Screen */
  .single-input-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    align-items: center !important;
    width: 100% !important;
  }
  .single-input-row .url-input-field {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    box-sizing: border-box !important;
  }
  .single-input-row .btn,
  .single-input-row button {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: nowrap !important;
    padding: 0.45rem 0.25rem !important;
    font-size: 0.74rem !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  /* ISSUE 4 — Oversized Empty "Output Placeholder" State */
  .stage-empty-card,
  .media-dropzone,
  .prompt-empty-state {
    padding: 1.5rem 1rem !important;
    margin: 1rem 0 !important;
  }
  .stage-empty-icon,
  .media-dropzone-icon,
  .prompt-empty-icon {
    font-size: 1.75rem !important;
    margin-bottom: 0.5rem !important;
  }
  .stage-empty-card h3,
  .prompt-empty-state h3 {
    font-size: 1.05rem !important;
    margin-bottom: 0.35rem !important;
  }
  .stage-empty-card p,
  .prompt-empty-state p,
  .media-dropzone p {
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
    margin-bottom: 0.75rem !important;
  }
  .media-dropzone p:last-of-type {
    margin-bottom: 0.75rem !important;
  }
  .media-dropzone .btn {
    padding: 0.45rem 1rem !important;
    font-size: 0.8rem !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  /* Multi-Platform Player Grid Mobile Containment */
  .player-grid,
  .player-grid[data-cols="1"],
  .player-grid[data-cols="2"],
  .player-grid[data-cols="3"],
  .player-grid[data-cols="4"],
  .player-grid[data-cols="5"],
  .player-grid[data-cols="auto"] {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 0.85rem !important;
    box-sizing: border-box !important;
  }

  .player-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Media Tabs Navigation Mobile Safety */
  .media-tabs-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-width: 100% !important;
    width: 100% !important;
    gap: 0.4rem !important;
    padding-bottom: 0.35rem !important;
  }
  .media-tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  main:nth-of-type(1) > div:nth-of-type(1) > section#ai-tools:nth-of-type(4) > div:nth-of-type(2) > div:nth-of-type(1) > span:nth-of-type(2) {
    font-size: 12.5px !important;
  }
}

/* ==========================================================================
   Breakpoints: Standard Small Mobile (<= 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .hero-buttons-row {
    gap: 0.5rem !important;
  }

  .btn-ref-primary,
  .btn-ref-secondary {
    padding: 0.44rem 1rem !important;
    font-size: 0.74rem !important;
    min-height: 36px !important;
  }

  .btn-ref-primary svg,
  .btn-ref-secondary svg {
    width: 12px !important;
    height: 12px !important;
  }

  .hero-pill {
    font-size: 0.58rem !important;
    padding: 0.18rem 0.55rem !important;
  }

  .desktop-ref-body .hero-description {
    font-size: 0.73rem !important;
    line-height: 1.42 !important;
    margin-bottom: 1.25rem !important;
    padding: 0 0.25rem !important;
    max-width: 400px !important;
  }

  .hero-trust-badges {
    max-width: 280px !important;
    gap: 0.45rem 0.55rem !important;
    margin-top: 0.85rem !important;
  }

  .hero-trust-badges .trust-badge {
    padding: 0.25rem 0.45rem !important;
    font-size: 0.65rem !important;
    gap: 0.25rem !important;
  }

  .hero-trust-badges .trust-badge svg {
    width: 10px !important;
    height: 10px !important;
  }
}

/* ==========================================================================
   Breakpoints: Extra Small Phones (<= 360px: iPhone SE 1st Gen, Galaxy Fold)
   ========================================================================== */
@media (max-width: 360px) {
  :root {
    --header-height: 60px;
  }

  .hero-buttons-row {
    gap: 0.35rem !important;
    padding: 0 0.15rem !important;
  }

  .btn-ref-primary,
  .btn-ref-secondary {
    padding: 0.36rem 0.75rem !important;
    font-size: 0.68rem !important;
    min-height: 33px !important;
    gap: 0.3rem !important;
  }

  .btn-ref-primary svg,
  .btn-ref-secondary svg {
    width: 11px !important;
    height: 11px !important;
  }

  .brand-text span:first-child {
    font-size: 0.85rem !important;
  }

  .brand-badge {
    display: none !important;
  }

  .brand-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
  }

  .btn-mobile-menu,
  .btn-icon-only {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }

  .btn-mobile-menu svg,
  .btn-icon-only svg {
    width: 16px !important;
    height: 16px !important;
  }

  .hero-pill {
    font-size: 0.54rem !important;
    padding: 0.15rem 0.5rem !important;
  }

  .desktop-ref-body .hero-description {
    font-size: 0.69rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.15rem !important;
    max-width: 310px !important;
  }

  .hero-trust-badges {
    max-width: 300px !important;
    gap: 0.55rem 0.55rem !important;
    margin-top: 0.75rem !important;
  }

  .hero-trust-badges .trust-badge {
    padding: 0.25rem 0.45rem !important;
    font-size: 0.66rem !important;
    gap: 0.25rem !important;
  }

  .hero-trust-badges .trust-badge svg {
    width: 10px !important;
    height: 10px !important;
  }

  .footer-bottom-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.65rem !important;
  }

  .footer-bottom-links a {
    font-size: 0.72rem !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   Reduced Motion Accessibility Support
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body[data-motion="reduced"] *,
body[data-motion="reduced"] *::before,
body[data-motion="reduced"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Performance Enhancements: Offscreen Rendering & Mobile Blur Reduction */
.card,
.platform-card,
.creator-tool-card,
.media-tool-card,
.ai-tool-card,
.bu-card,
.bu-tool-card,
.explore-section-card,
.explore-tool-card,
.explore-category-card,
.explore-stat-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

@media (max-width: 768px), (hover: none), (prefers-reduced-motion: reduce) {
  .card, .platform-card, .creator-tool-card, .media-tool-card, .ai-tool-card, .bu-card, .bu-tool-card, .explore-section-card, .explore-tool-card, .explore-category-card, .explore-stat-card,
  header, nav, .navbar, .mobile-drawer, .modal, .dropdown-menu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

