/*
 * Media Toolz - Core Stylesheet
 * Location: assets/css/style.css
 * Features: Ambient glows, premium card hover animations, and dark responsive styling.
 */

/* ==========================================
   1. Imports & Fonts
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* ==========================================
   2. Design System Tokens & Custom Properties
   ========================================== */
:root {
  /* Color Palette */
  --bg-color: #0f0f0f;
  --surface-color: #1a1a1a;
  --surface-hover: #222222;
  --border-color: #2a2a2a;
  --border-focus: #444444;
  
  --primary-accent: #ff0000;      /* YouTube Red (Used sparingly) */
  --primary-accent-hover: #cc0000;
  --secondary-accent: #00d4ff;    /* Cyan Blue */
  --secondary-accent-glow: rgba(0, 212, 255, 0.2);
  
  --text-primary: #ffffff;
  --text-muted: #888888;
  
  /* Platform Colors for Badges & Accents */
  --color-youtube: #ff0000;
  --color-instagram: #e1306c;
  --color-instagram-end: #c13584;
  --color-tiktok: #00f2fe;
  --color-twitter: #1da1f2;
  --color-facebook: #1877f2;
  
  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Font Sizes */
  --font-size-hero: 3rem;
  --font-size-section: 1.8rem;
  --font-size-card: 1.1rem;
  --font-size-body: 1rem;
  --font-size-small: 0.8rem;
  
  /* Layout & Spacing */
  --max-width: 1200px;
  --section-padding: 80px 0;
  --card-radius: 12px;
  --btn-radius: 8px;
  --input-radius: 8px;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  
  /* Header Height */
  --header-height: 72px;
}

/* ==========================================
   3. CSS Reset
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.7;
  position: relative;
  background-color: var(--bg-color);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

/* ==========================================
   4. Layout & Global Utilities
   ========================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section Headings */
.section-title {
  font-size: var(--font-size-section);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--font-size-body);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px auto;
}

/* Background Ambient Glows */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07) 0%, rgba(255, 0, 0, 0.02) 50%, rgba(0, 0, 0, 0) 100%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glow-top-right {
  top: -150px;
  right: -100px;
}

.glow-bottom-left {
  bottom: 20%;
  left: -200px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.05) 0%, rgba(0, 212, 255, 0.02) 60%, rgba(0, 0, 0, 0) 100%);
}

/* ==========================================
   5. Navbar & Navigation
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  height: 60px;
  background-color: rgba(15, 15, 15, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.navbar-brand span.logo-text {
  background: linear-gradient(135deg, #ffffff 50%, var(--secondary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  padding: 8px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Hamburger & Mobile Menu Toggle */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ==========================================
   6. Hero Section
   ========================================== */
.hero {
  position: relative;
  padding: 160px 0 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 0, 0, 0.07);
  color: var(--primary-accent);
  border: 1px solid rgba(255, 0, 0, 0.15);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: var(--font-size-small);
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.05);
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 40%, #c0c0c0 70%, var(--secondary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* Stats Row Component */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  max-width: 600px;
  margin: 0 auto;
}

.stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(135deg, #ffffff 40%, var(--secondary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats-label {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-top: 4px;
}

/* ==========================================
   7. Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-accent);
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary:hover {
  border-color: var(--secondary-accent);
  color: var(--secondary-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.15);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-outline-cyan {
  background-color: transparent;
  color: var(--secondary-accent);
  border: 2px solid var(--secondary-accent);
}

.btn-outline-cyan:hover {
  background-color: var(--secondary-accent);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}

/* ==========================================
   8. Search Bar Component
   ========================================== */
.search-section {
  padding: 40px 0;
  position: relative;
  z-index: 10;
}

.search-box-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.search-input {
  width: 100%;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 16px 24px 16px 52px;
  color: var(--text-primary);
  font-size: 1.05rem;
  transition: var(--transition-smooth);
}

.search-input:hover {
  border-color: var(--border-focus);
}

.search-input:focus {
  border-color: var(--secondary-accent);
  background-color: rgba(26, 26, 26, 0.8);
  box-shadow: 0 0 20px var(--secondary-accent-glow);
}

.search-box-wrapper:focus-within .search-input-icon {
  color: var(--secondary-accent);
}

/* ==========================================
   9. Category Sections & Badges
   ========================================== */
.category-section {
  position: relative;
  margin-bottom: 64px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.category-badge {
  font-size: var(--font-size-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Platform Badges */
.badge-youtube {
  background-color: rgba(255, 0, 0, 0.15);
  color: var(--color-youtube);
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.badge-instagram {
  background: linear-gradient(45deg, rgba(240, 148, 51, 0.15) 0%, rgba(225, 48, 108, 0.2) 50%, rgba(193, 53, 132, 0.15) 100%);
  color: var(--color-instagram);
  border: 1px solid rgba(225, 48, 108, 0.35);
}

.badge-twitter {
  background-color: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-facebook {
  background-color: rgba(24, 119, 242, 0.15);
  color: var(--color-facebook);
  border: 1px solid rgba(24, 119, 242, 0.3);
}

.category-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Tool Card Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ==========================================
   10. Tool Cards
   ========================================== */
.tool-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.tool-card:hover {
  transform: translateY(-6px);
  background-color: var(--surface-hover);
  border-color: var(--secondary-accent);
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.08), 0 0 1px rgba(0, 212, 255, 0.3);
}

.tool-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--secondary-accent);
  transition: var(--transition-smooth);
}

/* SVG icon configurations */
.tool-icon-wrapper svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: var(--transition-smooth);
}

.tool-card:hover .tool-icon-wrapper {
  background-color: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
  transform: scale(1.05);
}

.tool-title {
  font-size: var(--font-size-card);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.tool-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary-accent);
  margin-top: auto;
}

.tool-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: var(--transition-fast);
}

.tool-card:hover .tool-link svg {
  transform: translateX(4px);
}

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

/* ==========================================
   11. Why Use Us Section
   ========================================== */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.feature-box {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition-smooth);
}

.feature-box:hover {
  border-color: var(--border-focus);
  transform: translateY(-4px);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--secondary-accent);
  font-size: 1.5rem;
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   12. Toast Notification Container
   ========================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background-color: var(--surface-color);
  border-left: 4px solid var(--secondary-accent);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  min-width: 300px;
  max-width: 400px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success { border-left-color: #10b981; }
.toast-success .toast-icon { color: #10b981; }
.toast-error { border-left-color: var(--primary-accent); }
.toast-error .toast-icon { color: var(--primary-accent); }
.toast-info { border-left-color: var(--secondary-accent); }
.toast-info .toast-icon { color: var(--secondary-accent); }

.toast-icon {
  font-size: 1.15rem;
}

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

.toast-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.toast-message {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.toast-close {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

/* ==========================================
   13. Footer
   ========================================== */
.footer {
  background-color: #080808;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px 0;
  position: relative;
  z-index: 2;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.footer-logo span.logo-text {
  color: var(--text-primary);
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--secondary-accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background-color: rgba(0, 212, 255, 0.1);
  border-color: var(--secondary-accent);
  color: var(--secondary-accent);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================
   14. Responsive Styles (Breakpoint 992px & 768px)
   ========================================== */
@media (max-width: 992px) {
  .nav-menu {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  /* Disable absolute background glows to prevent horizontal page scrolling & lag */
  .ambient-glow {
    display: none;
  }

  /* Navigation collapse */
  .hamburger {
    display: flex;
  }

  /* Prevent header height shrink on mobile scroll to avoid nav-menu alignment gap */
  .navbar.scrolled {
    height: var(--header-height) !important;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 32px;
    gap: 24px;
    z-index: 1005;
    transition: var(--transition-smooth);
    overflow-y: auto;
    visibility: hidden; /* Prevent horizontal scroll wiggling when menu is closed */
  }
  
  .nav-menu.active, .nav-menu.open {
    right: 0;
    visibility: visible;
  }
  
  .nav-link {
    font-size: 1.2rem;
    width: 100%;
    display: block;
    padding: 12px 0;
  }

  .navbar .btn-primary {
    width: 100%;
    margin-top: 16px;
    text-align: center;
  }
  
  .hamburger.active span:nth-child(1), .hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(2), .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3), .hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Hero adjustments */
  .hero {
    padding: 130px 0 60px 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .hero-cta .btn {
    width: 100%;
  }

  .stats-row {
    gap: 24px;
    flex-wrap: wrap;
  }

  /* Why Use Us */
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Layout and grids */
  .section {
    padding: 60px 0;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   16. Reusable Tool-Page Layout Elements
   ========================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 100px;
  margin-bottom: 16px;
}

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

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

.breadcrumb-separator {
  color: var(--border-color);
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

.tool-hero {
  padding: 40px 0;
  text-align: center;
}

.tool-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 40%, var(--secondary-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tool-hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Preview Image styles */
.thumbnail-preview-wrapper {
  margin-top: 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  overflow: hidden;
  background-color: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16/9;
}

.thumbnail-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Download Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.download-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
}

.download-card:hover {
  border-color: var(--secondary-accent);
  background-color: rgba(0, 212, 255, 0.02);
  transform: translateY(-2px);
}

.download-quality-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.download-resolution {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* FAQ Accordion List */
.faq-container {
  margin-top: 64px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.faq-item {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--border-focus);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question i {
  color: var(--secondary-accent);
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Numbered Steps layout */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.step-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  transition: var(--transition-smooth);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  background-color: var(--primary-accent);
  color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.25);
}

.step-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 8px;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================
   17. Tags Extractor Specific Styles
   ========================================== */
.tag-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tag-pill:hover {
  border-color: var(--secondary-accent);
  background-color: rgba(0, 212, 255, 0.05);
  color: var(--secondary-accent);
}

.tag-pill i {
  margin-left: 6px;
  font-size: 0.75rem;
  opacity: 0;
  transition: var(--transition-fast);
}

.tag-pill:hover i {
  opacity: 1;
}

.tags-textarea {
  width: 100%;
  height: 120px;
  background-color: #0b0b0b;
  border: 1px solid var(--border-color);
  border-radius: var(--input-radius);
  padding: 16px;
  color: #dcdcdc;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  resize: vertical;
  margin-top: 16px;
  outline: none;
  transition: var(--transition-smooth);
}

.tags-textarea:focus {
  border-color: var(--secondary-accent);
  box-shadow: 0 0 10px var(--secondary-accent-glow);
}

.tags-count-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(0, 212, 255, 0.1);
  color: var(--secondary-accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ==========================================
   18. Description Extractor Page Elements
   ========================================== */
.video-info-card {
  display: flex;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  align-items: center;
}

.video-info-thumb {
  width: 140px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.video-info-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-info-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.video-info-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.desc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.desc-badge-cyan {
  background-color: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.15);
  color: var(--secondary-accent);
}

@media (max-width: 576px) {
  .video-info-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .video-info-thumb {
    width: 100%;
  }
}

/* ==========================================
   19. Channel Assets Downloader Elements
   ========================================== */
.avatar-preview-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--border-color);
  overflow: hidden;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  background-color: #0b0b0b;
}

.avatar-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-preview-container {
  width: 100%;
  aspect-ratio: 16/6;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 16px;
  background-color: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-results-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .asset-results-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================
   20. Size Button Grids (Logo & Banner Downloader)
   ========================================== */
.logo-sizes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}

.banner-sizes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.btn-size {
  padding: 8px 12px;
  font-size: 0.85rem !important;
  font-weight: 500;
  text-align: center;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-size:hover {
  background-color: var(--secondary-accent-glow);
  border-color: var(--secondary-accent);
  color: var(--secondary-accent);
  box-shadow: 0 0 10px var(--secondary-accent-glow);
  transform: translateY(-1px);
}

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

@media (max-width: 576px) {
  .banner-sizes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .banner-sizes-grid {
    grid-template-columns: 1fr;
  }
  .logo-sizes-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   21. Region Restriction Checker Elements
   ========================================== */
.status-badge {
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-worldwide {
  background-color: rgba(16, 185, 129, 0.08);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-restricted {
  background-color: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-limited {
  background-color: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.progress-bar-container {
  width: 100%;
  background-color: #2a2a2a;
  height: 8px;
  border-radius: 100px;
  overflow: hidden;
  margin-top: 8px;
  margin-bottom: 24px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-worldwide {
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.fill-restricted {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.fill-limited {
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.region-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.region-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

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

.region-tab-btn.active {
  color: var(--secondary-accent);
}

.region-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-accent);
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
  margin-bottom: 16px;
}

/* Custom scrollbar for country grid */
.country-grid::-webkit-scrollbar {
  width: 6px;
}

.country-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 100px;
}

.country-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}

.country-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.country-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pill-allowed {
  background-color: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.12);
  color: #34d399;
}

.pill-blocked {
  background-color: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.flag-emoji {
  font-size: 1.15rem;
  line-height: 1;
}

/* ==========================================
   22. Redesigned YouTube Tools Styles
   ========================================== */

/* URL Input Paste Wrapper */
.url-input-wrapper {
  display: flex;
  align-items: center;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--input-radius);
  padding: 4px 16px;
  transition: var(--transition-smooth);
  width: 100%;
  margin-bottom: 24px;
}
.url-input-wrapper:hover {
  border-color: var(--border-focus);
}
.url-input-wrapper:focus-within {
  border-color: var(--secondary-accent);
  box-shadow: 0 0 12px var(--secondary-accent-glow);
  background-color: rgba(26, 26, 26, 0.8);
}
.url-input-wrapper .input-icon-left {
  color: var(--text-muted);
  margin-right: 8px;
  font-size: 1.15rem;
}
.url-input-wrapper:focus-within .input-icon-left {
  color: var(--secondary-accent);
}
.url-input-wrapper input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  padding: 14px 8px;
  font-size: 1.05rem;
}
.url-input-wrapper input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
.url-input-wrapper .input-actions-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.url-input-wrapper .input-action-btn {
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 1.15rem;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}
.url-input-wrapper .input-action-btn:hover {
  color: var(--text-primary);
}
.url-input-wrapper .btn-clear-input {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.url-input-wrapper .btn-clear-input.show {
  visibility: visible;
  opacity: 1;
}

/* Premium Video Stats Card */
.video-stats-card {
  display: flex;
  gap: 24px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
  margin-bottom: 32px;
  align-items: center;
  transition: var(--transition-smooth);
}
.video-stats-card:hover {
  border-color: var(--border-focus);
}
.video-stats-thumb-wrapper {
  width: 200px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  position: relative;
  flex-shrink: 0;
}
.video-stats-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.video-stats-card:hover .video-stats-thumb {
  transform: scale(1.05);
}
.video-stats-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.video-stats-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-stats-author {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-stats-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.video-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}
.video-metric-badge i {
  font-size: 1rem;
}
.video-metric-badge.metric-views i { color: var(--secondary-accent); }
.video-metric-badge.metric-likes i { color: #f59e0b; }
.video-metric-badge.metric-comments i { color: #10b981; }

@media (max-width: 768px) {
  .video-stats-card {
    flex-direction: column;
    align-items: stretch;
  }
  .video-stats-thumb-wrapper {
    width: 100%;
  }
}

/* Tags Checkbox Pill and Manager */
.tags-manager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  padding: 12px 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.select-all-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}
.select-all-wrapper input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
  background-color: #0b0b0b;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.select-all-wrapper input[type="checkbox"]:checked {
  background-color: var(--secondary-accent);
  border-color: var(--secondary-accent);
}
.select-all-wrapper input[type="checkbox"]:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: #000000;
  display: block;
}

.tag-checkbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: var(--transition-smooth);
}
.tag-checkbox-pill:hover {
  border-color: var(--border-focus);
  background-color: rgba(255, 255, 255, 0.04);
}
.tag-checkbox-pill input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
  background-color: #0b0b0b;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tag-checkbox-pill input[type="checkbox"]:checked {
  background-color: var(--secondary-accent);
  border-color: var(--secondary-accent);
}
.tag-checkbox-pill input[type="checkbox"]:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
  color: #000000;
  display: block;
}
.tag-checkbox-pill.checked {
  border-color: var(--secondary-accent);
  background-color: rgba(0, 212, 255, 0.05);
  color: var(--text-primary);
}

/* Thumbnail Downloader Split Layout */
.thumbnail-split-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.thumbnail-left-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.thumbnail-right-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.thumbnail-hint-bar {
  background-color: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--btn-radius);
  color: #f59e0b;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.download-options-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 8px;
}
.resolution-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.resolution-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  transition: var(--transition-smooth);
  gap: 16px;
}
.resolution-item:hover {
  border-color: rgba(245, 158, 11, 0.3);
  background-color: rgba(255, 255, 255, 0.03);
}
.resolution-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.resolution-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.resolution-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.resolution-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-orange {
  background-color: #f97316;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-orange:hover {
  background-color: #ea580c;
  box-shadow: 0 6px 15px rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}
.btn-eye-preview {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--btn-radius);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-eye-preview:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-focus);
}
.btn-eye-preview.active {
  background-color: rgba(0, 212, 255, 0.08);
  color: var(--secondary-accent);
  border-color: rgba(0, 212, 255, 0.3);
}

@media (max-width: 992px) {
  .thumbnail-split-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Description Extractor Panels */
.info-display-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  margin-bottom: 24px;
  overflow: hidden;
}
.info-display-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 20px;
}
.info-display-label {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-accent);
}
.info-display-body {
  padding: 20px;
}
.info-display-title-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}
.info-display-desc-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #dcdcdc;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  max-height: 400px;
  overflow-y: auto;
  padding: 20px;
}
/* Custom scrollbar for description text */
.info-display-desc-text::-webkit-scrollbar {
  width: 6px;
}
.info-display-desc-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
.info-display-desc-text::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}


/* ==========================================
   23. Global Widget Box (Tool Card Container)
   ========================================== */
.widget-box {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 32px;
  transition: var(--transition-smooth);
}

.widget-box:hover {
  border-color: var(--border-focus);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.widget-title i {
  font-size: 1.1rem;
}

/* Form Group */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* Utility: hide on mobile, show on desktop */
.d-none-mobile {
  display: inline-flex;
}

/* Nav CTA mobile — hidden by default, shown in mobile menu */
.nav-cta-mobile {
  display: none !important;
}

/* ==========================================
   24. Comprehensive Responsive Breakpoints
   ========================================== */

/* ── Large tablets / small desktops (≤ 1024px) ── */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

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

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

  .hero-title {
    font-size: 2.6rem;
  }
}

/* ── Tablets (≤ 768px) ── */
@media (max-width: 768px) {
  /* Utility */
  .d-none-mobile {
    display: none !important;
  }

  /* Container tighter padding */
  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    padding: 110px 0 50px 0;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
  }

  .stats-row {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Section titles */
  .section-title {
    font-size: 1.5rem;
  }

  /* Tool hero page title */
  .tool-hero {
    padding: 24px 0 12px 0;
  }

  .tool-hero-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .tool-hero-subtitle {
    font-size: 0.9rem;
  }

  /* Widget box tighter padding */
  .widget-box {
    padding: 20px 16px;
  }

  /* URL input font size reduce on small screens */
  .url-input-wrapper input {
    font-size: 0.9rem;
    padding: 12px 8px;
  }

  /* Form label */
  .form-label {
    font-size: 0.82rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    margin-top: 80px;
    font-size: 0.78rem;
  }

  /* Why us grid */
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px 0;
  }

  /* Tool cards full width */
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Download grid */
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Video stats card */
  .video-stats-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }

  .video-stats-thumb-wrapper {
    width: 100%;
  }

  .video-stats-title {
    font-size: 1rem;
  }

  .video-stats-metrics {
    gap: 10px;
  }

  .video-metric-badge {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  /* Tags manager bar stacks on mobile */
  .tags-manager-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 10px;
  }

  /* Resolution items stack on narrow screens */
  .resolution-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .resolution-actions {
    width: 100%;
    justify-content: flex-end;
  }

  /* Region tabs scroll horizontally */
  .region-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .region-tabs::-webkit-scrollbar {
    display: none;
  }

  /* Country grid */
  .country-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  /* Toast — full width on mobile */
  .toast-container {
    bottom: 12px;
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }

  /* Steps grid already handled */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Asset results grid */
  .asset-results-grid {
    grid-template-columns: 1fr;
  }

  /* Thumbnail split grid */
  .thumbnail-split-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Banner sizes */
  .banner-sizes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Nav mobile CTA visible in menu */
  .nav-cta-mobile {
    display: flex !important;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }
}

/* ── Small phones (≤ 576px) ── */
@media (max-width: 576px) {
  /* Hero */
  .hero {
    padding: 100px 0 40px 0;
  }

  .hero-title {
    font-size: 1.75rem;
    letter-spacing: -0.03em;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Tool hero */
  .tool-hero-title {
    font-size: 1.4rem;
  }

  /* Widget box */
  .widget-box {
    padding: 16px 14px;
  }

  /* URL input placeholder text */
  .url-input-wrapper input::placeholder {
    font-size: 0.8rem;
  }

  /* Download grid single col */
  .download-grid {
    grid-template-columns: 1fr;
  }

  /* Video info card thumbnail */
  .video-info-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-info-thumb {
    width: 100%;
    max-width: 100%;
  }

  /* Tags textarea height reduce */
  .tags-textarea {
    height: 100px;
  }

  /* DP preview — smaller circles on mobile */
  .dp-image {
    width: 180px !important;
    height: 180px !important;
  }

  /* DP actions — stack buttons */
  .dp-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dp-actions button,
  .dp-actions a {
    min-width: unset;
    width: 100%;
    justify-content: center;
  }

  /* Logo sizes grid */
  .logo-sizes-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  /* Section */
  .section {
    padding: 48px 0;
  }

  /* Stats row wrap */
  .stats-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  /* FAQ padding */
  .faq-item {
    padding: 16px;
  }

  .faq-question {
    font-size: 0.95rem;
  }

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

  /* Toast */
  .toast {
    padding: 12px 16px;
  }

  .toast-title {
    font-size: 0.85rem;
  }

  /* Metric badges wrap */
  .video-stats-metrics {
    gap: 8px;
  }

  .video-metric-badge {
    font-size: 0.78rem;
    padding: 5px 10px;
    gap: 6px;
  }
}

/* ── Very small phones (≤ 400px) ── */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.55rem;
  }

  .tool-hero-title {
    font-size: 1.25rem;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .widget-box {
    padding: 14px 12px;
    border-radius: 8px;
  }

  .url-input-wrapper {
    padding: 4px 10px;
  }

  .url-input-wrapper input {
    font-size: 0.82rem;
    padding: 10px 6px;
  }

  .dp-image {
    width: 150px !important;
    height: 150px !important;
  }

  .category-title {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .banner-sizes-grid {
    grid-template-columns: 1fr;
  }

  .logo-sizes-grid {
    grid-template-columns: 1fr;
  }

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

  .btn {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
}

/* ── Global Shared Layout Classes ── */

/* Tips Grid - shared across multiple tool pages for responsive grid cards */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* Action Buttons Row - handles flex button columns on desktop and wraps them on mobile screens */
.action-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 576px) {
  .action-buttons-row button,
  .action-buttons-row a,
  .action-buttons-row .btn {
    flex: 1 1 100% !important;
    min-width: unset !important;
    width: 100% !important;
    text-align: center;
    justify-content: center;
  }
}

/* ── Touch-friendly tap targets ── */
@media (hover: none) and (pointer: coarse) {
  .tool-card:hover {
    transform: none;
  }

  .feature-box:hover {
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-outline-cyan:hover {
    transform: none;
  }

  .tool-link svg {
    transform: none !important;
  }

  /* Larger tap targets for action buttons */
  .input-action-btn {
    min-width: 40px;
    min-height: 40px;
  }

  .region-tab-btn {
    padding: 12px 16px;
  }
}
