/* TubeCreatorKit Unified Production CSS Bundle (v2026.5) */
/* ============================================
   CREATOR TOOLS — MODERN DESIGN SYSTEM 2026
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17.6px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

:root {
  /* Brand Palette */
  --bg:              #090A0F;
  --bg-subtle:       #0F111A;
  --surface:         #141724;
  --surface-hover:   #1C2033;
  --surface-active:  #242942;
  --surface-glass:   rgba(20, 23, 36, 0.75);
  
  --border:          rgba(255, 255, 255, 0.08);
  --border-hover:    rgba(255, 255, 255, 0.18);
  --border-focus:    rgba(239, 68, 68, 0.5);

  /* Typography */
  --text-primary:    #FFFFFF;
  --text-secondary:  #94A3B8;
  --text-muted:      #64748B;
  --text-dim:        #475569;

  /* Accents */
  --yt-red:          #FF0033;
  --yt-red-hover:    #E6002E;
  --yt-red-glow:     rgba(255, 0, 51, 0.25);
  --yt-red-soft:     rgba(255, 0, 51, 0.1);

  --indigo:          #6366F1;
  --indigo-soft:     rgba(99, 102, 241, 0.12);
  --emerald:         #10B981;
  --emerald-soft:    rgba(16, 185, 129, 0.12);
  --amber:           #F59E0B;
  --amber-soft:      rgba(245, 158, 11, 0.12);

  --font-sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* Radii */
  --radius-sm:       6px;
  --radius-md:       10px;
  --radius-lg:       16px;
  --radius-xl:       24px;
  --radius-full:     9999px;

  /* Shadows */
  --shadow-sm:       0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md:       0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg:       0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow:     0 0 30px var(--yt-red-glow);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Atmospheric Background Mesh */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  max-width: 100vw;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 0, 51, 0.12) 0%, rgba(99, 102, 241, 0.08) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.container--sm { max-width: 840px; }
.container--md { max-width: 990px; }

/* Headings */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  word-break: break-word;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  word-break: break-word;
}

/* Selection */
::selection {
  background-color: var(--yt-red);
  color: #FFFFFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-hover);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 14px; }
}


/* ============================================
   CREATOR TOOLS — LAYOUT & NAVIGATION (VIDSSAVE STYLE)
   ============================================ */

/* --- Modern Clean Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0A0E17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 24px;
  width: 100%;
  gap: 16px;
}

/* --- Brand Logo (Vidssave-Style Large Two-Tone Typography) --- */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.header__logo:hover {
  transform: translateY(-1px);
}
.header__logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 9px;
  box-shadow: 0 0 16px rgba(255, 23, 79, 0.4);
}

.header__logo-text {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1;
}

.header__logo-text .logo-accent {
  color: #FF174F;
}

/* --- 2-Row Desktop Tools Layout in Center --- */
.header__desktop-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.header__tools-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: nowrap;
}

.header__tool-link {
  font-size: 0.79rem;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: #0D1220;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.header__tool-link:hover {
  transform: translateY(-1px);
}

/* Category Glow Styles */
/* Thumbnail Downloader - Electric Orange Glow */
.header__tool-link[href*="thumbnail-downloader"] {
  color: #FB923C;
  border-color: rgba(249, 115, 22, 0.45);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.03));
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.header__tool-link[href*="thumbnail-downloader"]:hover,
.header__tool-link[href*="thumbnail-downloader"].active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
  border-color: #FB923C;
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Keyword Generator - Red Glow */
.header__tool-link[href*="keyword-generator"] {
  color: #FF6B8B;
  border-color: rgba(255, 23, 79, 0.45);
  background: linear-gradient(180deg, rgba(255, 23, 79, 0.12), rgba(255, 23, 79, 0.03));
  box-shadow: 0 0 12px rgba(255, 23, 79, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.header__tool-link[href*="keyword-generator"]:hover,
.header__tool-link[href*="keyword-generator"].active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #FF174F 0%, #D80F3E 100%);
  border-color: #FF4D79;
  box-shadow: 0 0 18px rgba(255, 23, 79, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Description Extractor - Cyan Glow */
.header__tool-link[href*="description-extractor"] {
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0.03));
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.header__tool-link[href*="description-extractor"]:hover,
.header__tool-link[href*="description-extractor"].active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  border-color: #38BDF8;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Transcript Extractor - Blue/Indigo Glow */
.header__tool-link[href*="transcript-extractor"] {
  color: #60A5FA;
  border-color: rgba(59, 130, 246, 0.45);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.03));
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.header__tool-link[href*="transcript-extractor"]:hover,
.header__tool-link[href*="transcript-extractor"].active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border-color: #60A5FA;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Channel Name Generator - Purple Glow */
.header__tool-link[href*="channel-name-generator"] {
  color: #C084FC;
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.12), rgba(168, 85, 247, 0.03));
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.header__tool-link[href*="channel-name-generator"]:hover,
.header__tool-link[href*="channel-name-generator"].active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #9333EA 0%, #7E22CE 100%);
  border-color: #C084FC;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Earnings Calculator - Emerald Green Glow */
.header__tool-link[href*="earnings-calculator"] {
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.03));
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.header__tool-link[href*="earnings-calculator"]:hover,
.header__tool-link[href*="earnings-calculator"].active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: #34D399;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Title Extractor - Pink Glow */
.header__tool-link[href*="title-extractor"] {
  color: #F472B6;
  border-color: rgba(236, 72, 153, 0.45);
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.12), rgba(236, 72, 153, 0.03));
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.header__tool-link[href*="title-extractor"]:hover,
.header__tool-link[href*="title-extractor"].active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #DB2777 0%, #BE185D 100%);
  border-color: #F472B6;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Tag Extractor - Warm Amber Glow */
.header__tool-link[href*="tag-extractor"] {
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.03));
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.header__tool-link[href*="tag-extractor"]:hover,
.header__tool-link[href*="tag-extractor"].active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  border-color: #FBBF24;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Banner Resizer - Purple Glow */
.header__tool-link[href*="banner-resizer"] {
  color: #A78BFA;
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0.03));
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.header__tool-link[href*="banner-resizer"]:hover,
.header__tool-link[href*="banner-resizer"].active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  border-color: #A78BFA;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* Data Viewer - Cyan/Teal Glow */
.header__tool-link[href*="data-viewer"] {
  color: #2DD4BF;
  border-color: rgba(20, 184, 166, 0.45);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.12), rgba(20, 184, 166, 0.03));
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.header__tool-link[href*="data-viewer"]:hover,
.header__tool-link[href*="data-viewer"].active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
  border-color: #2DD4BF;
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

/* --- Desktop Navigation (Right Aligned: Home, Guides, About, Sign Up) --- */
.header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #CBD5E1;
  text-decoration: none;
  padding: 6px 2px;
  transition: color 0.15s ease;
  white-space: nowrap;
  background: transparent;
  border: none;
}

.header__nav-link:hover {
  color: #FF174F;
}

.header__nav-link.active {
  color: #FF174F;
  font-weight: 700;
}

.header__nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  padding: 6px 4px;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.header__nav-link:hover {
  color: #FF174F;
}

.header__nav-link.active {
  color: #FF174F;
  font-weight: 700;
}

/* --- Dropdown Container --- */
.header__dropdown {
  position: relative;
}

.header__dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
  font-weight: 500;
  color: #FFFFFF;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  transition: color 0.15s ease;
  font-family: inherit;
}

.header__dropdown-btn:hover,
.header__dropdown.open .header__dropdown-btn {
  color: #FF174F;
}

.header__dropdown-btn.active {
  color: #FF174F;
  font-weight: 700;
}

.header__dropdown-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.header__dropdown.open .header__dropdown-icon {
  transform: rotate(180deg);
}

/* --- Dropdown Floating Menu --- */
.header__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 250px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  padding: 8px;
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.header__dropdown.open .header__dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.header__dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__dropdown-list li {
  margin: 0;
  padding: 0;
}

.header__dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #E2E8F0;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header__dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FF174F;
  transform: translateX(3px);
}

.header__dropdown-item.active {
  background: rgba(255, 23, 79, 0.15);
  color: #FF174F;
  font-weight: 600;
}

/* --- Mobile Sub-Bar (Ultra-Sleek Rounded Capsule Pills) --- */
.header__mobile-tools {
  display: none;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 12px 10px;
  background: #080B13;
}

.header__mobile-tools-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.header__mobile-tools-scroll::-webkit-scrollbar {
  display: none;
}

.header__mobile-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #CBD5E1;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.header__mobile-tool-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.header__mobile-tool-pill.active {
  background: linear-gradient(135deg, #FF174F 0%, #D90065 100%);
  border-color: rgba(255, 23, 79, 0.4);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(255, 23, 79, 0.35);
}

.header__mobile-tool-pill svg {
  width: 13px;
  height: 13px;
  opacity: 0.8;
  flex-shrink: 0;
}

.header__mobile-tool-pill.active svg {
  opacity: 1;
}

/* --- Hamburger Toggle Button (Mobile Only) --- */
.header__menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #FFFFFF;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.header__menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --- Mobile Drawer (Full Navigation) --- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}

.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 340px;
  background: #0A0E17;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.mobile-drawer.open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer__header .header__logo-text {
  font-size: 1.4rem;
}

.mobile-drawer__close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-drawer__close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.mobile-drawer__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer__nav-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  min-height: 46px;
  font-size: 1rem;
  font-weight: 600;
  color: #CBD5E1;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.mobile-drawer__nav-link:hover,
.mobile-drawer__nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FF174F;
}

.mobile-drawer__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer__group-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-top: 10px;
  margin-bottom: 4px;
  padding-left: 8px;
}

.mobile-drawer__tool-link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  min-height: 46px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #E2E8F0;
  text-decoration: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.15s ease;
}

.mobile-drawer__tool-link:hover,
.mobile-drawer__tool-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FF174F;
}

/* --- Responsive Breakpoint (< 1024px) --- */
@media (max-width: 1024px) {
  .header {
    height: auto;
  }
  .header__inner {
    min-height: 58px;
    height: 58px;
    padding: 0 16px;
    position: relative;
    justify-content: center;
  }
  .header__logo {
    margin: 0 auto;
  }
  .header__logo-text {
    font-size: 1.45rem;
  }
  .header__desktop-tools {
    display: none;
  }
  .header__nav {
    display: none;
  }
  .header__menu-btn {
    display: flex;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }
  .header__mobile-tools {
    display: block;
  }
}

/* --- Hero Section --- */
.hero {
  padding: 48px 0 36px;
  text-align: center;
  width: 100%;
}

.hero__badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--yt-red-soft);
  border: 1px solid rgba(255, 0, 51, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #FF4D6D;
  letter-spacing: 0.02em;
  max-width: 95%;
  word-break: break-word;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--yt-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--yt-red);
  animation: pulseGlow 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.hero__title {
  max-width: 924px;
  margin: 0 auto 16px;
  background: linear-gradient(180deg, #FFFFFF 30%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-word;
}

.hero__subtitle {
  max-width: 682px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  word-break: break-word;
}

/* --- Sections --- */
.section {
  padding: 56px 0;
  width: 100%;
}

.section__header {
  text-align: center;
  margin-bottom: 36px;
}

.section__title {
  margin-bottom: 12px;
  word-break: break-word;
}

.section__subtitle {
  max-width: 550px;
  margin: 0 auto;
  font-size: 1rem;
  word-break: break-word;
}

/* --- Tool Cards Grid (Homepage) --- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 100%;
}

@media (max-width: 920px) {
  .tool-grid { grid-template-columns: 1fr; }
}

.tool-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(12px);
  width: 100%;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all var(--transition-base);
}

.tool-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.tool-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--yt-red), transparent);
}

.tool-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tool-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.tool-card:hover .tool-card__icon {
  transform: scale(1.06);
}

.tool-card__icon--red {
  background: var(--yt-red-soft);
  color: var(--yt-red);
  border: 1px solid rgba(255, 0, 51, 0.2);
}

.tool-card__icon--indigo {
  background: var(--indigo-soft);
  color: var(--indigo);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.tool-card__icon--emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.tool-card__pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.tool-card__title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tool-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tool-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-card__action-arrow {
  color: var(--yt-red);
  transition: transform var(--transition-fast);
}

.tool-card:hover .tool-card__action-arrow {
  transform: translateX(4px);
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
}

.feature-card__title { font-size: 1.1rem; }
.feature-card__text { font-size: 0.9rem; }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 42px 0 32px;
  background: rgba(9, 10, 15, 0.98);
  margin-top: 60px;
  width: 100%;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: #FFFFFF;
}

/* ============================================
   MOBILE RESPONSIVENESS OVERRIDES & TAP TARGETS
   ============================================ */
@media (max-width: 640px) {
  .hero {
    padding: 18px 0 8px;
  }

  .hero__title {
    font-size: 1.55rem;
    line-height: 1.22;
    padding: 0 4px;
    margin-bottom: 6px;
  }

  .hero__subtitle {
    font-size: 0.88rem;
    margin-bottom: 14px;
    padding: 0 4px;
    line-height: 1.45;
  }

  .hero-input-card {
    padding: 12px;
    border-radius: var(--radius-lg);
    width: 100%;
    margin-bottom: 14px;
  }

  .hero-input-wrapper {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .hero-input-wrapper .input-main {
    width: 100%;
    font-size: 0.9rem;
    padding: 12px 14px;
    min-height: 46px;
  }

  .hero-input-wrapper .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.95rem;
    min-height: 46px;
  }

  .quick-samples {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    width: 100%;
  }

  .quick-samples__pill {
    min-height: 44px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
  }

  .section {
    padding: 14px 0 28px;
  }

  .section__header {
    margin-bottom: 14px;
  }

  .section__title {
    font-size: 1.45rem;
    margin-bottom: 4px;
  }

  .section__subtitle {
    font-size: 0.85rem;
  }

  .tool-card {
    padding: 18px 16px;
  }

  /* Google Accessible Tap Targets (Minimum 44x44px for interactive elements) */
  .btn, .header__tool-link, .header__mobile-tool-pill, .header__nav-link, .btn-copy, .btn-download-thumb, .niche-preset-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .header__menu-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer {
    padding: 28px 0 20px;
    margin-top: 32px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .footer__links {
    justify-content: center;
    gap: 8px 14px;
  }

  .footer__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
  }
}


/* Tap Target Enhancements (Mobile >= 44x44px for Google guidelines) */
@media (max-width: 640px) {
  .header__logo {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
  }
  .header__menu-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .quick-samples__pill {
    min-height: 44px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
  }
  .view-all-link, a.btn-link, a[href="/guides/"] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}


/* ============================================
   CREATOR TOOLS — COMPONENTS & MICRO-INTERACTIONS
   ============================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--yt-red) 0%, #D6002A 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--yt-red-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #FF1A47 0%, var(--yt-red) 100%);
  box-shadow: 0 6px 24px rgba(255, 0, 51, 0.4);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn--icon {
  width: 42px;
  height: 42px;
  padding: 0;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Hero Search / Tool Input Wrapper --- */
.hero-input-card {
  max-width: 792px;
  margin: 0 auto 36px;
  background: var(--surface-glass);
  padding: 14px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
}

.hero-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.input-icon-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 14px;
  color: var(--text-muted);
}

.input-main {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1rem;
  padding: 14px 8px;
  outline: none;
  font-family: var(--font-sans);
}

.input-main::placeholder {
  color: var(--text-dim);
}

@media (max-width: 640px) {
  .hero-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .input-icon-prefix { display: none; }
  .input-main { padding: 12px 14px; background: rgba(255,255,255,0.03); border-radius: var(--radius-md); }
  .hero-input-wrapper .btn { width: 100%; }
}

/* Sample pills under input */
.quick-samples {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.quick-samples__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quick-samples__pill {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-samples__pill:hover {
  background: var(--surface-hover);
  color: #FFFFFF;
  border-color: var(--border-hover);
}

/* --- FAQ Accordion --- */
.faq-container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item__question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-item__question:hover {
  color: var(--yt-red);
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-item__icon {
  transform: rotate(180deg);
  color: var(--yt-red);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out;
}

.faq-item.active .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Toast Feedback --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #181B29;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 9999;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast--success {
  border-color: var(--emerald);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, #141824 100%);
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast.hide {
  animation: toastOut 0.25s forwards;
}

@keyframes toastOut {
  to { transform: translateY(20px); opacity: 0; }
}

@media (max-width: 640px) {
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
    padding: 12px 16px;
  }

  .faq-item__question {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .faq-item__answer-inner {
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }
}


/* Reserved Space for Google AdSense In-Article Unit (CLS Protection) */
.ad-slot-container {
  width: 100%;
  max-width: 860px;
  margin: 32px auto;
  min-height: 280px;
  background: rgba(14, 19, 34, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.ad-slot-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  margin-bottom: 8px;
  text-align: center;
}


/* ============================================
   CREATOR TOOLS — TOOL PAGES WORKSPACE
   ============================================ */

/* --- Tool Header & Inputs --- */
.tool-workspace {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.tool-input-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.tool-input-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Search Style / Language Selector Controls --- */
.search-style-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

/* --- Popular Niches Header & Modern Glowing Shuffle Button --- */
.niches-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.refresh-niches-btn {
  background: linear-gradient(135deg, rgba(255, 23, 79, 0.15) 0%, rgba(139, 92, 246, 0.18) 100%);
  border: 1px solid rgba(255, 23, 79, 0.4);
  box-shadow: 0 2px 10px rgba(255, 23, 79, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.02em;
}

.refresh-niches-btn:hover {
  background: linear-gradient(135deg, rgba(255, 23, 79, 0.28) 0%, rgba(139, 92, 246, 0.32) 100%);
  border-color: rgba(255, 23, 79, 0.7);
  box-shadow: 0 4px 16px rgba(255, 23, 79, 0.35);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.refresh-niches-btn:active {
  transform: scale(0.95);
}

.refresh-niches-btn .refresh-badge {
  background: rgba(255, 23, 79, 0.3);
  border: 1px solid rgba(255, 23, 79, 0.4);
  color: #FFA3B8;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  margin-left: 2px;
}

.refresh-icon-spin {
  animation: refreshSpin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes refreshSpin {
  0% { transform: rotate(0deg) scale(0.85); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.search-style-control {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.search-style-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.custom-select-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #0E131F;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 32px 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select:hover {
  border-color: rgba(255, 23, 79, 0.4);
}

.custom-select:focus {
  outline: none;
  border-color: #FF174F;
  box-shadow: 0 0 0 3px rgba(255, 23, 79, 0.2);
}

.custom-select-box::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #CBD5E1;
  pointer-events: none;
}

.tool-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tool-input-wrapper .input-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.tool-input-wrapper .input-main:focus {
  border-color: var(--yt-red);
  box-shadow: 0 0 0 3px var(--yt-red-soft);
}

/* Inline 1-Click Paste Button */
.input-with-paste {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.input-with-paste .input-main {
  width: 100%;
  padding-right: 88px !important;
}

.btn-paste {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
  z-index: 2;
  user-select: none;
}

.btn-paste:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-paste:active {
  transform: translateY(-50%) scale(0.95);
}

.btn-paste.pasted {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #34D399;
}

.btn-paste svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  flex-shrink: 0;
}

.btn-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 2;
  padding: 0;
  line-height: 1;
}

.btn-clear:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #EF4444;
}

.btn-clear svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .search-style-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .search-style-control {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .custom-select-box {
    width: 100%;
  }
  .custom-select {
    width: 100%;
    padding: 10px 32px 10px 12px;
    font-size: 0.88rem;
  }
  .tool-input-wrapper { flex-direction: column; }
  .tool-input-wrapper .btn { width: 100%; }
  .tool-input-wrapper .input-with-paste { width: 100%; }
  .hero-input-wrapper .input-with-paste { width: 100%; }
}

.tool-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Error Notice --- */
.tool-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: #F87171;
  font-size: 0.9rem;
  margin-top: 16px;
}

/* --- Loading Spinner --- */
.tool-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 0;
}

.tool-loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--yt-red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.tool-loading__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Video Meta Preview Card --- */
.video-preview {
  display: flex;
  gap: 20px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease-out;
}

.video-preview__thumb-box {
  width: 200px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1px solid var(--border);
}

.video-preview__thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-preview__details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  flex: 1;
}

.video-preview__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-preview__channel {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.video-preview__meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .video-preview { flex-direction: column; }
  .video-preview__thumb-box { width: 100%; }
}

/* --- Result Card --- */
.result-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.result-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.result-card__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
}

.result-card__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-card__counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--yt-red);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: var(--yt-red-hover);
  transform: translateY(-1px);
}

.btn-copy.copied {
  background: var(--emerald);
}

.result-card__content {
  padding: 20px;
  max-height: 480px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-sans);
  background: rgba(0, 0, 0, 0.2);
}

/* --- Data Grid & Tags --- */
.data-grid {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.data-grid--2 { grid-template-columns: repeat(2, 1fr); }
.data-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .data-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .data-grid--2, .data-grid--4 { grid-template-columns: 1fr; }
}

.data-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.data-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.data-item__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  word-break: break-all;
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px;
}

.tag-badge {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tag-badge:hover {
  background: var(--surface-hover);
  border-color: var(--yt-red);
  color: #FFFFFF;
}

/* --- Thumbnails Gallery --- */
.thumb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px;
}

.thumb-gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.thumb-gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.thumb-gallery__footer {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.thumb-gallery__footer a {
  color: var(--yt-red);
  text-decoration: none;
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   MOBILE RESPONSIVENESS (SMARTPHONES & TABLETS)
   ============================================ */
@media (max-width: 768px) {
  .bookmark-pill {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .tool-workspace {
    padding: 10px 0 36px;
  }

  .section__header {
    margin-bottom: 14px;
  }

  .section__header h1 {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .section__subtitle {
    font-size: 0.86rem;
    line-height: 1.45;
    margin-bottom: 12px;
  }

  .tool-input-card {
    padding: 14px 12px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }

  .tool-input-card__title {
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: #94A3B8;
  }

  .tool-input-wrapper {
    flex-direction: column;
    gap: 8px;
  }

  .tool-input-wrapper .input-main {
    width: 100%;
    font-size: 16px !important;
    padding: 12px 14px;
    min-height: 48px;
    border-radius: 10px;
  }

  .tool-input-wrapper .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 1rem;
    min-height: 48px;
    border-radius: 10px;
  }

  /* Result Cards Mobile */
  .result-card__top {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }

  .result-card__controls {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .result-card__controls .btn-copy {
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }

  .result-card__content {
    padding: 16px;
  }

  /* Transcript Mobile */
  .transcript-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }

  .transcript-tabs {
    width: 100%;
    display: flex;
  }

  .transcript-tab-btn {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .transcript-search-input {
    width: 100%;
  }

  .transcript-item {
    padding: 10px 14px;
    gap: 12px;
  }

  .transcript-time {
    font-size: 0.75rem;
    padding: 2px 6px;
  }

  .transcript-text {
    font-size: 0.85rem;
  }

  /* Tags & Keyword Pills Mobile */
  .keyword-pill-tag {
    padding: 7px 12px;
    font-size: 0.8rem;
    min-height: 36px;
  }

  .quick-samples__pill {
    padding: 6px 12px;
    font-size: 0.78rem;
    min-height: 34px;
  }

  /* Banner Canvas Mobile */
  .canvas-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .control-group {
    justify-content: space-between;
    width: 100%;
  }

  .control-group .btn {
    flex: 1;
    justify-content: center;
  }

  /* Data Table Mobile Scroll */
  .data-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================
   ADVANCED MOBILE & WORKSPACE COMPONENTS (NOTEGPT STANDARD)
   ============================================ */

/* --- 1-Click Example Video Demo Chips --- */
.example-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.example-chips__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.example-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  user-select: none;
}

.example-chip:hover {
  background: rgba(255, 0, 51, 0.15);
  border-color: rgba(255, 0, 51, 0.4);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.example-chip:active {
  transform: scale(0.96);
}

/* --- Floating Mobile Bottom Action Dock --- */
.mobile-action-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-action-bar {
    display: flex;
    position: fixed;
    bottom: 14px;
    left: 12px;
    right: 12px;
    z-index: 1500;
    background: rgba(10, 14, 23, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    padding: 6px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 24px rgba(255, 0, 51, 0.18);
    align-items: center;
    justify-content: space-around;
    gap: 4px;
    animation: dockSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes dockSlideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  .mobile-dock-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-height: 44px;
    text-decoration: none;
  }

  .mobile-dock-btn svg {
    width: 17px;
    height: 17px;
  }

  .mobile-dock-btn:active {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transform: scale(0.95);
  }

  .mobile-dock-btn--primary {
    background: linear-gradient(135deg, var(--yt-red) 0%, #D6002A 100%);
    color: #FFFFFF !important;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(255, 0, 51, 0.4);
    padding: 6px 12px;
  }
}

/* --- NoteGPT-Standard 3-Step Process Cards --- */
.step-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.step-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px;
  position: relative;
  transition: all 0.25s ease;
}

.step-card:hover {
  border-color: rgba(255, 0, 51, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.step-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FF4D6D;
  background: rgba(255, 0, 51, 0.1);
  border: 1px solid rgba(255, 0, 51, 0.2);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.step-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.step-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- Persona Use-Cases Matrix --- */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}

.persona-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.persona-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.persona-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
  width: fit-content;
}

.persona-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.35;
}

.persona-card__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Benefits & Comparison Grid --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0 36px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 18px 16px;
  transition: all 0.2s ease;
}

.benefit-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.benefit-card__icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.benefit-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.benefit-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- Dual Tab Switcher & AI Takeaways Box --- */
.transcript-modern-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.transcript-modern-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #94A3B8;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.transcript-modern-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.12);
}

.ai-summary-box {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.ai-summary-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 0.92rem;
  color: #E2E8F0;
}

.ai-summary-point:last-child {
  margin-bottom: 0;
}

.ai-summary-bullet {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}



