/* ==========================================================================
   Raha Tools — YouTube Thumbnail Downloader (Page Styles v2.0)
   Full Video + YouTube Shorts 9:16 + 4K Ultra HD + Batch Downloader
   ========================================================================== */
:root {
  --tool: #dc2626;
  --tool-dark: #b91c1c;
  --tool-light: #fef2f2;
  --tool-border: #fecaca;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --purple: #8b5cf6;
  --purple-light: #f3e8ff;
}

.tool-hero {
  background: var(--gray-50);
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--tool-light);
  color: var(--tool-dark);
  border: 1px solid var(--tool-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.tool-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500, #22c55e);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.tool-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--gray-900);
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.text-gradient {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tool-hero p.subtitle {
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--gray-600);
  max-width: 740px;
  margin: 0 auto 24px;
  line-height: 1.65;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill, 999px);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.trust-pill svg { color: var(--tool); flex-shrink: 0; }

/* ── App Shell ─────────────────────────────────────────────── */
.yt-app {
  max-width: 1080px;
  margin: 0 auto 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(220, 38, 38, 0.08);
  overflow: hidden;
  text-align: left;
}

/* Mode Switcher (Single Video / Shorts vs Batch) */
.yt-mode-bar {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 6px 14px;
  gap: 8px;
}
.yt-mode-btn {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
  font-family: inherit;
}
.yt-mode-btn:hover {
  color: var(--gray-900);
  background: rgba(0, 0, 0, 0.03);
}
.yt-mode-btn.is-active {
  background: #fff;
  color: var(--tool-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
}

.yt-app__head {
  padding: 26px 26px 0;
}
.yt-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.yt-search {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.yt-input-wrap {
  position: relative;
  flex: 1 1 320px;
  display: flex;
  align-items: center;
}
.yt-input__icon {
  position: absolute;
  left: 15px;
  color: var(--gray-400);
  pointer-events: none;
}
.yt-input {
  width: 100%;
  padding: 16px 44px 16px 44px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-900);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.yt-input:focus {
  outline: none;
  border-color: var(--tool);
  box-shadow: 0 0 0 4px var(--tool-light);
}
.yt-input::placeholder { color: var(--gray-400); }
.yt-clear {
  position: absolute;
  right: 12px;
  width: 26px;
  height: 26px;
  border: none;
  background: var(--gray-100, #f1f5f9);
  color: var(--gray-600);
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.yt-clear.is-visible { display: flex; }

.yt-btn {
  padding: 14px 24px;
  border-radius: 13px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.yt-btn--sm {
  padding: 9px 15px;
  font-size: 13px;
  border-radius: 10px;
}
.yt-btn--primary {
  background: linear-gradient(135deg, var(--tool), var(--tool-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}
.yt-btn--primary:hover {
  opacity: .92;
  transform: translateY(-1px);
}
.yt-btn--ghost {
  background: #fff;
  color: var(--tool-dark);
  border: 1px solid var(--tool-border);
}
.yt-btn--ghost:hover {
  background: var(--tool-light);
  border-color: var(--tool);
}
.yt-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.yt-hint {
  font-size: 13px;
  color: var(--gray-500);
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.yt-hint code {
  background: var(--gray-100, #f1f5f9);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12.5px;
}
.yt-mini {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: .15s ease;
}
.yt-mini:hover {
  background: var(--tool-light);
  color: var(--tool-dark);
  border-color: var(--tool-border);
}

/* ── States ────────────────────────────────────────────────── */
.yt-state {
  padding: 44px 26px 48px;
  text-align: center;
}
.yt-state__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--tool-light);
  color: var(--tool);
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-state h2, .yt-state h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 8px;
}
.yt-state p {
  font-size: 14.5px;
  color: var(--gray-500);
  margin: 0 auto;
  max-width: 540px;
  line-height: 1.6;
}
.yt-state--error .yt-state__icon {
  background: #fff7ed;
  color: #ea580c;
}
.yt-hidden { display: none !important; }

/* ── Filter Tabs ───────────────────────────────────────────── */
.yt-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}
.yt-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
}
.yt-tab:hover {
  border-color: var(--tool-border);
  color: var(--tool-dark);
}
.yt-tab.is-active {
  background: var(--tool);
  border-color: var(--tool);
  color: #fff;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.28);
}

/* ── Results Container ─────────────────────────────────────── */
.yt-results {
  padding: 24px 26px 32px;
}
.yt-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 22px;
}
.yt-meta__thumb {
  width: 96px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: #e2e8f0;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.yt-meta__text { min-width: 0; flex: 1 1 200px; }
.yt-meta__title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yt-meta__sub {
  font-size: 12.5px;
  color: var(--gray-500);
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.yt-meta__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Card Grid ─────────────────────────────────────────────── */
.yt-group { margin-bottom: 30px; }
.yt-group:last-child { margin-bottom: 0; }
.yt-group__title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.yt-grid--shorts {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── Card Elements ─────────────────────────────────────────── */
.yt-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.yt-card:hover {
  border-color: var(--tool-border);
  box-shadow: 0 12px 30px -10px rgba(220, 38, 38, 0.25);
  transform: translateY(-3px);
}
.yt-card--best {
  border-color: #86efac;
  box-shadow: 0 0 0 3px #f0fdf4 inset;
}
.yt-card--4k {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 25%);
  box-shadow: 0 6px 20px -8px rgba(245, 158, 11, 0.35);
}
.yt-card--4k:hover {
  border-color: #f59e0b;
  box-shadow: 0 14px 34px -10px rgba(245, 158, 11, 0.4);
}
.yt-card--shorts {
  border-color: #ddd6fe;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 25%);
}

.yt-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.yt-thumb--vertical {
  aspect-ratio: 9 / 16;
  max-height: 380px;
}
.yt-thumb img, .yt-thumb canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.yt-thumb__zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .15s ease;
}
.yt-thumb:hover .yt-thumb__zoom { opacity: 1; }

.yt-thumb__badge-4k {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.yt-thumb__badge-shorts {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.yt-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.yt-card__name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.3;
}
.yt-card__dims {
  font-size: 12.5px;
  color: var(--gray-500);
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.yt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.yt-chip {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--gray-100, #f1f5f9);
  color: var(--gray-600);
}
.yt-chip--best { background: #dcfce7; color: #15803d; }
.yt-chip--4k { background: #fef3c7; color: #b45309; }
.yt-chip--shorts { background: #ede9fe; color: #6d28d9; }
.yt-chip--ratio { background: #eef2ff; color: #4338ca; }
.yt-chip--warn { background: #fff7ed; color: #c2410c; }
.yt-chip--webp { background: #ecfeff; color: #0e7490; }

.yt-note {
  font-size: 11.5px;
  color: var(--gray-500);
  line-height: 1.45;
  margin: 0;
}
/* ── Card Action Layout ────────────────────────────────────── */
.yt-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.yt-card__btn-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 11px;
  box-sizing: border-box;
  text-align: center;
  min-height: 44px;
  white-space: nowrap;
}
.yt-card__formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  width: 100%;
}
.yt-card__formats .yt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 8px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 9px;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
  min-height: 38px;
  white-space: nowrap;
}
.yt-card__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  width: 100%;
}
.yt-card__foot .yt-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 8px;
  text-align: center;
  min-height: 36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fallback for legacy btns */
.yt-card__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  width: 100%;
}
.yt-card__btns .yt-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 8px;
  font-size: 12.5px;
  border-radius: 10px;
}

/* ── Batch Mode Box ────────────────────────────────────────── */
.yt-batch-wrap {
  padding: 24px 26px 34px;
}
.yt-batch-textarea {
  width: 100%;
  min-height: 140px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--gray-900);
  line-height: 1.6;
  resize: vertical;
}
.yt-batch-textarea:focus {
  outline: none;
  border-color: var(--tool);
  box-shadow: 0 0 0 4px var(--tool-light);
}
.yt-batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.yt-batch-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ── Skeleton Loading ──────────────────────────────────────── */
.yt-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 26px;
}
.yt-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3.5px solid var(--tool-light);
  border-top-color: var(--tool);
  animation: yt-spin .8s linear infinite;
}
@keyframes yt-spin { to { transform: rotate(360deg); } }
.yt-skel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: 10px;
}
.yt-skel {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.yt-skel__img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: yt-shimmer 1.3s ease infinite;
}
.yt-skel__bar {
  height: 11px;
  margin: 12px 14px;
  border-radius: 6px;
  background: #f1f5f9;
}
.yt-skel__bar--short { width: 55%; }
@keyframes yt-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ── Lightbox Modal ────────────────────────────────────────── */
.yt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.yt-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.yt-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
}
.yt-lightbox__content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: min(940px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  z-index: 1;
}
.yt-lightbox__header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.yt-lightbox__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-900);
}
.yt-lightbox__close {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--gray-400);
  cursor: pointer;
}
.yt-lightbox__close:hover { color: var(--gray-900); }
.yt-lightbox__imgwrap {
  padding: 16px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.yt-lightbox__img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 6px;
}
.yt-lightbox__footer {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.yt-lightbox__dims {
  font-size: 13px;
  color: var(--gray-500);
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.yt-lightbox__actions {
  display: flex;
  gap: 8px;
}

/* ── Toast ─────────────────────────────────────────────────── */
.yt-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 18px);
  background: #0f172a;
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: .25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10001;
  max-width: min(580px, 92vw);
  text-align: center;
  line-height: 1.4;
}
.yt-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.yt-toast__inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.yt-toast__inner svg {
  flex-shrink: 0;
}

/* ==========================================================================
   HOW TO SECTION (CRITICAL FIX FOR 3-STEP GRID)
   ========================================================================== */
.how-section {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}
.how-section .section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tool-dark);
  margin-bottom: 12px;
}
.how-section .section-title {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.how-section .section-desc {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Explicit 3-column grid override (prevents 40px squishing bug) */
.how-section .steps-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  max-width: 1100px;
  margin: 48px auto 0 !important;
  align-items: stretch !important;
}
.how-section .step-card {
  background: var(--gray-50);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.how-section .step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  background: #fff;
  border-color: var(--tool);
}
.step-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tool-dark);
  background: var(--tool-light);
  border: 1px solid var(--tool-border);
  padding: 4px 12px;
  border-radius: 999px;
}
.step-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tool);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.how-section .step-card:hover .step-card__icon {
  transform: scale(1.08);
  background: var(--tool);
  color: #fff;
}
.how-section .step-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
  letter-spacing: -0.01em;
}
.how-section .step-card p {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   LONG-FORM GUIDE & PROSE STYLING (.yt-prose)
   ========================================================================== */
.yt-prose {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}
.yt-prose__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-700);
}
.yt-prose h2 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin: 48px 0 18px;
  line-height: 1.3;
}
.yt-prose h2:first-of-type { margin-top: 0; }
.yt-prose p { margin: 0 0 20px; }
.yt-prose ul, .yt-prose ol {
  margin: 0 0 24px 24px;
  padding: 0;
}
.yt-prose li {
  margin-bottom: 10px;
  line-height: 1.7;
}
.yt-callout {
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
  border: 1.5px solid var(--tool-border);
  border-left: 4px solid var(--tool);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 32px 0;
}
.yt-callout p { margin: 0; color: var(--gray-800); }
.yt-toc {
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 48px;
}
.yt-toc__title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  margin: 0 0 14px;
}
.yt-toc ol {
  margin: 0;
  padding-left: 20px;
}
.yt-toc li {
  margin-bottom: 8px;
  font-size: 14.5px;
  color: var(--gray-700);
}
.yt-toc a {
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.15s ease;
}
.yt-toc a:hover {
  color: var(--tool);
  text-decoration: underline;
}

/* ── Pro Responsive Tables ─────────────────────────────────── */
.yt-table-wrap {
  overflow-x: auto;
  margin: 28px 0 40px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  -webkit-overflow-scrolling: touch;
}
.yt-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.yt-table-wrap th {
  background: var(--gray-50);
  padding: 14px 18px;
  font-weight: 800;
  color: var(--gray-900);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.yt-table-wrap td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--gray-700);
  vertical-align: middle;
}
.yt-table-wrap tr:last-child td { border-bottom: none; }
.yt-table-wrap tr:hover td { background: #f8fafc; }

.table-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.table-badge--yes {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.table-badge--no {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   FULL RESPONSIVE SYSTEM (DESKTOP, TABLETS, PHONES)
   ========================================================================== */
@media (max-width: 900px) {
  .how-section .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

@media (max-width: 768px) {
  .tool-hero {
    padding: 70px 0 40px;
  }
  .tool-hero h1 {
    font-size: 26px;
    letter-spacing: -0.8px;
  }
  .yt-app {
    border-radius: 18px;
    margin-bottom: 32px;
  }
  .yt-app__head, .yt-results, .yt-state, .yt-batch-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .yt-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }
  .yt-meta__thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }
  .yt-meta__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .yt-meta__actions .yt-btn,
  .yt-meta__actions .yt-mini {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    font-size: 12.5px;
  }
  .yt-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
  }
  .yt-tabs {
    padding-bottom: 8px;
    margin-bottom: 18px;
  }
}

@media (max-width: 520px) {
  .yt-mode-bar {
    padding: 6px;
    gap: 4px;
  }
  .yt-mode-btn {
    flex: 1;
    justify-content: center;
    padding: 9px 10px;
    font-size: 12.5px;
  }
  .yt-search {
    flex-direction: column;
  }
  .yt-search .yt-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 15px;
  }
  .yt-hint {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .yt-hint button {
    justify-content: center;
  }
  .yt-meta__actions {
    grid-template-columns: 1fr;
  }
  .yt-grid {
    grid-template-columns: 1fr;
  }
  .yt-grid--shorts {
    grid-template-columns: 1fr;
  }
  .yt-card__btn-main {
    min-height: 46px;
    font-size: 14px;
  }
  .yt-card__formats .yt-btn {
    min-height: 40px;
    font-size: 13px;
  }
  .yt-card__foot .yt-mini {
    min-height: 38px;
    font-size: 12.5px;
  }
}

/* ── FAQ Modern Accordion ─────────────────────────────────────────── */
.faq-modern {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.faq-item[open] {
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 8px 24px -8px rgba(220, 38, 38, 0.15);
}
.faq-question {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--gray-900);
  font-size: 16px;
  user-select: none;
  list-style: none;
  gap: 16px;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::marker {
  display: none;
}
.faq-chevron {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  color: var(--gray-400);
  flex-shrink: 0;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--tool);
}
.faq-item[open] .faq-question {
  color: var(--tool);
}
.faq-answer {
  padding: 0 22px 20px 22px;
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.68;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}
.faq-answer p {
  margin: 0;
}
.faq-answer code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--tool);
}
@media (max-width: 640px) {
  .faq-question {
    padding: 15px 16px;
    font-size: 15px;
  }
  .faq-answer {
    padding: 0 16px 16px 16px;
    padding-top: 12px;
    font-size: 14px;
  }
}

/* ── CTA Band ──────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  padding: 80px 24px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 900;
  color: #ffffff !important;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cta-band p {
  font-size: clamp(16px, 2.2vw, 18px);
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 auto 34px;
  max-width: 620px;
  line-height: 1.6;
}
.cta-band .btn--white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff !important;
  color: #dc2626 !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  padding: 16px 36px !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22) !important;
  border: none !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.cta-band .btn--white svg {
  color: #dc2626 !important;
  stroke: #dc2626 !important;
  flex-shrink: 0;
}
.cta-band .btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3) !important;
  background: #fef2f2 !important;
}

/* ── Related Tools Section ─────────────────────────────────── */
.yt-related-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 64px 0 76px;
}
.yt-related-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  text-align: center;
  letter-spacing: -0.02em;
}
.yt-related-desc {
  text-align: center;
  color: #64748b;
  margin: 0 auto 36px;
  font-size: 15.5px;
  max-width: 540px;
}
.yt-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.yt-related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.yt-related-card:hover {
  transform: translateY(-2px);
  border-color: #dc2626;
  box-shadow: 0 8px 24px -6px rgba(220, 38, 38, 0.18);
}
.yt-related-card__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.yt-related-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  transition: color 0.15s ease;
}
.yt-related-card:hover .yt-related-card__name {
  color: #dc2626;
}
.yt-related-card__sub {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}
.yt-related-card svg {
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.yt-related-card:hover svg {
  transform: translateX(3px);
  color: #dc2626;
}
.yt-related-card--highlight {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
  border-color: #fecaca;
}
.yt-related-card--highlight .yt-related-card__name {
  color: #dc2626;
}

@media (max-width: 860px) {
  .yt-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 540px) {
  .yt-related-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cta-band {
    padding: 60px 20px;
  }
  .cta-band .btn--white {
    width: 100%;
  }
}


