/* ============================================================
   Tools — Analito (tools-styles.css)
   Styles for /tools/ hub page and /tools/generator-meta-tags/
   ============================================================ */

/* ── Shared: Breadcrumbs ─────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
  padding: 0;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb__item {
  color: #888;
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb__item:hover { color: #4EA0D2; }
.breadcrumb__item--current { color: #333; font-weight: 500; }
.breadcrumb__sep { color: #ccc; }

/* ── Active nav link ─────────────────────────────────────── */
.header__link--active {
  color: #4EA0D2 !important;
  font-weight: 600;
}

/* ── Hub page ─────────────────────────────────────────────── */
.tools-hub { padding-bottom: 80px; }

.tools-hub__hero {
  padding-top: 100px;
  padding-bottom: 32px;
  text-align: center;
}
.tools-hub__h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
}
.tools-hub__desc {
  font-size: 17px;
  color: #555;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.tools-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 48px;
  /* padding-top/bottom only — не перебиваем padding 0 24px из .container */
}

/* Tool card */
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, border-color .2s, transform .15s;
  cursor: pointer;
}
.tool-card:not(.tool-card--soon):hover {
  box-shadow: 0 8px 32px rgba(78,160,210,.13);
  border-color: #4EA0D2;
  transform: translateY(-2px);
}
.tool-card--soon { opacity: .55; cursor: default; }
.tool-card--audit { border-color: #d1fae5; }
.tool-card--audit:hover { border-color: #16a34a; box-shadow: 0 8px 32px rgba(22,163,74,.1); }

.tool-card__icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: #EFF6FF;
  color: #4EA0D2;
  display: flex; align-items: center; justify-content: center;
}
.tool-card__icon--green { background: #f0fdf4; color: #16a34a; }
.tool-card__icon--gray  { background: #f3f4f6; color: #9ca3af; }

.tool-card__body { flex: 1; }
.tool-card__title { font-size: 16px; font-weight: 600; color: #1a1a2e; margin-bottom: 6px; }
.tool-card__desc { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 10px; }
.tool-card__arrow { flex-shrink: 0; color: #4EA0D2; align-self: center; }

.tool-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.tool-card__badge--free { background: #dcfce7; color: #16a34a; }
.tool-card__badge--soon { background: #f3f4f6; color: #9ca3af; }
.tool-card__badge--ai   { background: #ede9fe; color: #7c3aed; }
.tool-card__badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* Hub SEO text */
.tools-hub__seo {
  padding-top: 32px;
  padding-bottom: 40px;
  border-top: 1px solid #f0f0f0;
  color: #555;
  line-height: 1.7;
}
.tools-hub__seo h2 { font-size: 20px; font-weight: 600; color: #1a1a2e; margin-bottom: 12px; }
.tools-hub__seo p  { margin-bottom: 10px; }

/* ── Generator page wrapper ──────────────────────────────── */
.mt-page {
  padding-top: 0;
  padding-bottom: 80px;
}

/* ── Hero ────────────────────────────────────────────────── */
.mt-hero {
  padding-top: 100px;
  padding-bottom: 28px;
}
.mt-hero__h1 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  max-width: 640px;
}
.mt-hero__desc {
  font-size: 17px;
  color: #555;
  max-width: 600px;
  margin-bottom: 18px;
  line-height: 1.6;
}
.mt-hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.mt-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #16a34a;
  font-weight: 500;
}
.mt-feature svg { flex-shrink: 0; }

/* ── Form ────────────────────────────────────────────────── */
.mt-form-section { padding-bottom: 32px; }
.mt-form-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 20px;
  padding: 32px;
  max-width: 680px;
}
.mt-form { display: flex; flex-direction: column; gap: 20px; }
.mt-form__label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 8px; }
.mt-form__input-wrap { width: 100%; }
.mt-form__input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a2e;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.mt-form__input:focus { border-color: #4EA0D2; }
.mt-captcha-wrap { /* just space */ }
.mt-form__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  padding: 14px 28px;
}
.mt-form__limit-info { font-size: 13px; color: #888; margin: 0; }

.mt-error {
  color: #dc2626;
  font-size: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 4px;
}

/* ── Progress ────────────────────────────────────────────── */
.mt-progress-section { padding-bottom: 32px; }
.mt-progress-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 680px;
}
.mt-progress-bar-wrap {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 14px;
}
.mt-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4EA0D2, #5bc8a0);
  border-radius: 4px;
  transition: width .5s ease;
}
.mt-progress-step { font-size: 14px; color: #666; margin: 0; }

/* ── Result section ──────────────────────────────────────── */
.mt-result-section { padding-bottom: 48px; }

/* Analysis meta badges */
.mt-analysis-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.mt-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: .3px;
}
.mt-badge--type       { background: #eff6ff; color: #1d4ed8; }
.mt-badge--intent-com  { background: #fef9c3; color: #854d0e; }
.mt-badge--intent-info { background: #f0fdf4; color: #166534; }
.mt-badge--intent-tool { background: #f5f3ff; color: #6d28d9; }
.mt-badge--comps      { background: #fff7ed; color: #c2410c; }

/* Current meta tags block */
.mt-current-meta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mt-cur-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.mt-cur-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #6b7280;
  width: 80px;
}
.mt-cur-value {
  flex: 1;
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
  word-break: break-word;
}
.mt-cur-value em { color: #9ca3af; font-style: normal; }
.mt-cur-status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 8px;
}
.mt-cur-status--ok   { background: #dcfce7; color: #166534; }
.mt-cur-status--warn { background: #fef9c3; color: #854d0e; }
.mt-cur-status--bad  { background: #fee2e2; color: #991b1b; }

/* Assessment */
.mt-current-assessment {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #78350f;
  max-width: 900px;
}

/* ── Variant cards ───────────────────────────────────────── */
.mt-variants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 900px) {
  .mt-variants { grid-template-columns: 1fr; }
}

.mt-variant-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
}
.mt-variant-card__header {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mt-variant-card__header--seo     { background: #eff6ff; border-bottom: 1.5px solid #bfdbfe; }
.mt-variant-card__header--ctr     { background: #fff7ed; border-bottom: 1.5px solid #fed7aa; }
.mt-variant-card__header--balance { background: #f0fdf4; border-bottom: 1.5px solid #bbf7d0; }

.mt-variant-label {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}
.mt-variant-hint { font-size: 12px; color: #666; }

.mt-variant-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; }

/* Field within variant card */
.mt-field { border: 1px solid #f0f0f0; border-radius: 10px; padding: 12px 14px; background: #fafafa; }
.mt-field__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.mt-field__label { font-size: 12px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: .5px; }
.mt-len-badge {
  margin-left: auto;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.mt-len--ok      { background: #dcfce7; color: #166534; }
.mt-len--short   { background: #fef9c3; color: #854d0e; }
.mt-len--long    { background: #fee2e2; color: #991b1b; }
.mt-len--neutral { background: #f3f4f6; color: #6b7280; }

.mt-copy-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #9ca3af;
  border-radius: 4px;
  transition: color .15s, background .15s;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mt-copy-btn:hover { color: #4EA0D2; background: #eff6ff; }
.mt-copy-btn.copied { color: #16a34a; }

.mt-field__text {
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a2e;
  margin: 0;
  word-break: break-word;
}
.mt-field-tip {
  font-size: 12px;
  color: #6b7280;
  margin: 6px 0 0;
  font-style: italic;
}

/* ── Regen ───────────────────────────────────────────────── */
.mt-regen-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.mt-regen-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
}
.mt-regen-counter { font-size: 13px; color: #888; }
.mt-regen-counter--warn { color: #ea580c; }

/* ── Rating ──────────────────────────────────────────────── */
.mt-rating-wrap {
  padding: 24px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 28px;
  max-width: 480px;
}
.mt-rating-label { font-size: 15px; font-weight: 600; color: #374151; margin-bottom: 14px; }
.mt-stars { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.mt-star {
  width: 36px; height: 36px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  font-family: inherit;
}
.mt-star:hover, .mt-star.active {
  background: #4EA0D2;
  border-color: #4EA0D2;
  color: #fff;
}
.mt-rating-thanks { color: #16a34a; font-weight: 600; font-size: 15px; }

/* ── Audit CTA ───────────────────────────────────────────── */
.mt-audit-cta {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.mt-audit-cta__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}
.mt-audit-cta__inner .btn {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}
.mt-audit-cta__text { flex: 1; min-width: 0; }
.mt-audit-cta__text strong { display: block; font-size: 16px; color: #1a1a2e; margin-bottom: 4px; }
.mt-audit-cta__text p { font-size: 14px; color: #555; margin: 0; }


/* ── SEO text + Steps ────────────────────────────────────── */
.mt-seo-block {
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid #f0f0f0;
}
.mt-seo-block h2 { font-size: 22px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.mt-seo-block p  { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 14px; }

.mt-seo-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 32px;
}
.mt-seo-step {
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}
.mt-seo-step__num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: #4EA0D2;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.mt-faq-section { padding-top: 40px; padding-bottom: 60px; }
.mt-faq-title { font-size: 26px; font-weight: 700; color: #1a1a2e; margin-bottom: 24px; text-align: center; }

.mt-faq-section .faq-list { max-width: 780px; }
.mt-faq-section .faq-item {
  border: none;
  border-bottom: 1px solid #E2E8F0;
  border-radius: 0;
  margin-bottom: 0;
  overflow: visible;
}
.mt-faq-section .faq-item:first-child { border-top: 1px solid #E2E8F0; }
.mt-faq-section .faq-item__question {
  padding: 20px 36px 20px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  display: block;
  color: #1a1a2e;
}
.mt-faq-section .faq-item__question::-webkit-details-marker { display: none; }
.mt-faq-section .faq-item__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #4EA0D2;
  transition: transform 0.3s;
  line-height: 1;
}
.mt-faq-section .faq-item[open] .faq-item__question::after {
  transform: translateY(-50%) rotate(45deg);
}
.mt-faq-section .faq-item__answer {
  padding: 0 0 20px;
  font-size: 15px;
  color: #555;
  line-height: 1.65;
}

/* ── Spinner ─────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; }

/* v=5 — fix padding conflict: use padding-top/bottom only on container sections */
/* ── Hub grid responsive ─────────────────────────────────── */
@media (max-width: 780px) {
  .tools-hub__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .tools-hub__grid { grid-template-columns: 1fr; }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .mt-form-card { padding: 20px 16px; border-radius: 14px; }
.mt-hero__h1 { font-size: 22px; }
  .mt-variant-card__header { padding: 12px 14px; }
  .mt-variant-body { padding: 14px; }
  .mt-audit-cta { padding: 18px 16px; }
  .mt-regen-wrap { flex-direction: column; align-items: flex-start; }
}

/* ── Keywords checkbox ────────────────────────────────────────── */
.mt-keywords-wrap {
  margin-top: 12px;
}
.mt-keywords-area {
  margin-top: 12px;
}
.mt-keywords-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a2e;
  resize: vertical;
  outline: none;
  transition: border-color .2s;
  line-height: 1.5;
}
.mt-keywords-textarea:focus {
  border-color: var(--primary, #2563eb);
}
.mt-keywords-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.4;
}


/* ============================================================
   Robots.txt Generator (rt-) — v1
   ============================================================ */

/* ── Page ────────────────────────────────────────────────── */
.rt-page { padding-bottom: 80px; }

/* ── Hero ────────────────────────────────────────────────── */
.rt-hero { padding-top: 100px; padding-bottom: 28px; }
.rt-hero__h1 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700; color: #1a1a2e; margin-bottom: 12px; max-width: 700px;
}
.rt-hero__desc { font-size: 17px; color: #555; max-width: 640px; margin-bottom: 18px; line-height: 1.6; }

/* ── Builder layout ──────────────────────────────────────── */
.rt-builder { padding-bottom: 0; }
.rt-builder__layout { display: flex; gap: 28px; align-items: flex-start; }
.rt-builder__form { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rt-builder__preview { width: 390px; flex-shrink: 0; }

/* ── Cards ───────────────────────────────────────────────── */
.rt-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 16px; overflow: hidden; }
.rt-card--ai { border-color: #e9d5ff; }
.rt-card__header {
  padding: 14px 22px; border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; gap: 8px;
}
.rt-card--ai .rt-card__header { background: linear-gradient(135deg,#faf5ff,#ede9fe); border-bottom-color: #e9d5ff; }
.rt-card__title { font-size: 14px; font-weight: 700; color: #1a1a2e; margin: 0; }
.rt-card__body { padding: 16px 22px; display: flex; flex-direction: column; gap: 14px; }

/* ── New badge ───────────────────────────────────────────── */
.rt-new-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  background: #7c3aed; color: #fff; padding: 2px 7px;
  border-radius: 8px; text-transform: uppercase; letter-spacing: .4px;
}

/* ── Fields ──────────────────────────────────────────────── */
.rt-field { display: flex; flex-direction: column; gap: 5px; }
.rt-label { font-size: 13px; font-weight: 600; color: #374151; }
.rt-hint { font-size: 12px; color: #9ca3af; margin: 0; line-height: 1.4; }
.rt-input {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid #d1d5db; border-radius: 10px;
  font-size: 14px; font-family: inherit; color: #1a1a2e;
  outline: none; transition: border-color .2s; box-sizing: border-box;
}
.rt-input:focus { border-color: #4EA0D2; }
.rt-textarea {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid #d1d5db; border-radius: 10px;
  font-size: 13px; font-family: 'Courier New', monospace; color: #1a1a2e;
  outline: none; transition: border-color .2s; box-sizing: border-box;
  resize: vertical; line-height: 1.7;
}
.rt-textarea:focus { border-color: #4EA0D2; }
.rt-select {
  width: 100%; padding: 11px 34px 11px 13px;
  border: 1.5px solid #d1d5db; border-radius: 10px;
  font-size: 14px; font-family: inherit; color: #1a1a2e; background: #fff;
  outline: none; cursor: pointer; transition: border-color .2s; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.rt-select:focus { border-color: #4EA0D2; }

/* CMS preview */
.rt-cms-preview { display: none; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; }
.rt-cms-preview.visible { display: block; }
.rt-cms-preview__title { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.rt-cms-path {
  font-size: 12px; font-family: 'Courier New', monospace; color: #374151;
  padding: 2px 0; display: flex; align-items: center; gap: 8px;
}
.rt-cms-path::before { flex-shrink: 0; font-family: inherit; }
.rt-cms-path--disallow::before { content: '✕'; color: #dc2626; }
.rt-cms-path--allow::before   { content: '✓'; color: #16a34a; }

/* ── Bot grid ────────────────────────────────────────────── */
.rt-bots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rt-bot-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  cursor: pointer; transition: border-color .15s, background .15s; user-select: none;
}
.rt-bot-item:hover { border-color: #93c5fd; background: #f0f8ff; }
.rt-bot-item.is-allowed { border-color: #bbf7d0; }
.rt-bot-item.is-blocked { border-color: #fecaca; background: #fef2f2; }
.rt-bot-item.is-blocked:hover { border-color: #f87171; }
.rt-bot-item__chk {
  flex-shrink: 0; width: 18px; height: 18px;
  border: 2px solid #d1d5db; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; margin-top: 1px;
}
.rt-bot-item.is-allowed .rt-bot-item__chk { background: #16a34a; border-color: #16a34a; }
.rt-bot-item.is-allowed .rt-bot-item__chk::after,
.rt-bot-item.is-blocked .rt-bot-item__chk::after {
  content: ''; width: 10px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px); display: block;
}
.rt-bot-item.is-blocked .rt-bot-item__chk { background: #dc2626; border-color: #dc2626; }
.rt-bot-item__info { flex: 1; min-width: 0; }
.rt-bot-item__name { font-size: 13px; font-weight: 600; color: #1a1a2e; line-height: 1.3; }
.rt-bot-item__desc { font-size: 11px; color: #9ca3af; line-height: 1.3; margin-top: 2px; }
.rt-bot-item__badge {
  flex-shrink: 0; font-size: 10px; font-weight: 700;
  padding: 2px 5px; border-radius: 5px; text-transform: uppercase; align-self: center;
}
.rt-bot-item.is-allowed .rt-bot-item__badge { background: #dcfce7; color: #166534; }
.rt-bot-item.is-blocked .rt-bot-item__badge { background: #fee2e2; color: #991b1b; }

.rt-bots-actions { display: flex; gap: 12px; }
.rt-link-btn {
  background: none; border: none; color: #4EA0D2;
  font-size: 12px; cursor: pointer; text-decoration: underline;
  padding: 0; font-family: inherit;
}
.rt-link-btn:hover { color: #2b7db4; }
.rt-ai-notice {
  background: #faf5ff; border: 1px solid #e9d5ff;
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; color: #5b21b6; line-height: 1.5;
}

/* ── Toggle rows (single checkbox) ──────────────────────── */
.rt-toggle-row {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; user-select: none;
}
.rt-toggle-box {
  flex-shrink: 0; width: 18px; height: 18px;
  border: 2px solid #d1d5db; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; margin-top: 2px;
}
.rt-toggle-row.is-checked .rt-toggle-box { background: #4EA0D2; border-color: #4EA0D2; }
.rt-toggle-row.is-checked .rt-toggle-box::after {
  content: ''; width: 10px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px); display: block;
}
.rt-toggle-text { font-size: 13px; color: #374151; line-height: 1.5; }
.rt-toggle-text strong { display: block; font-weight: 600; color: #1a1a2e; margin-bottom: 1px; }
.rt-toggle-text span { font-size: 12px; color: #9ca3af; }

/* ── Preview panel ───────────────────────────────────────── */
.rt-preview { background: #1e1e2e; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.15); }
.rt-preview__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #2a2a42;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.rt-preview__title-wrap { display: flex; align-items: center; gap: 10px; }
.rt-preview__dots { display: flex; gap: 5px; }
.rt-preview__dot { width: 10px; height: 10px; border-radius: 50%; }
.rt-preview__dot--red { background: #fc5c5c; }
.rt-preview__dot--yellow { background: #fdbc40; }
.rt-preview__dot--green { background: #33c748; }
.rt-preview__filename { font-size: 13px; font-weight: 600; color: #a0aec0; }
.rt-preview__actions { display: flex; gap: 8px; }
.rt-preview__btn {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #e2e8f0; padding: 5px 11px; border-radius: 7px;
  font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit;
  transition: background .15s; display: flex; align-items: center; gap: 5px;
}
.rt-preview__btn:hover { background: rgba(255,255,255,.18); }
.rt-preview__btn.copied { background: rgba(22,163,74,.3); border-color: rgba(22,163,74,.5); color: #86efac; }
.rt-preview__wrap { padding: 18px 20px; overflow: auto; max-height: 500px; }
.rt-preview__code {
  font-family: 'Courier New', monospace; font-size: 12px;
  line-height: 1.8; color: #cdd6f4; white-space: pre; margin: 0;
}
.rt-preview__meta {
  padding: 8px 16px; background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; justify-content: space-between;
  font-size: 11px; color: #6272a4;
}
.rt-preview__warnings { background: #fffbeb; border-top: 1px solid #fde68a; padding: 12px 16px; }
.rt-warning {
  font-size: 13px; color: #78350f;
  padding: 3px 0; display: flex; align-items: flex-start; gap: 6px;
}
.rt-warning::before { content: '⚠'; flex-shrink: 0; }

/* ── SEO / FAQ ───────────────────────────────────────────── */
.rt-seo-block { margin-top: 60px; padding-top: 48px; padding-bottom: 32px; border-top: 1px solid #f0f0f0; }
.rt-seo-block h2 { font-size: 20px; font-weight: 700; color: #1a1a2e; margin: 28px 0 12px; }
.rt-seo-block h2:first-child { margin-top: 0; }
.rt-seo-block p { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 12px; }

.rt-faq-section { padding-top: 48px; padding-bottom: 60px; }
.rt-faq-title { font-size: 24px; font-weight: 700; color: #1a1a2e; margin-bottom: 24px; text-align: center; }
.rt-faq-section .faq-list { max-width: 780px; }
.rt-faq-section .faq-item { border: none; border-bottom: 1px solid #e2e8f0; border-radius: 0; margin-bottom: 0; overflow: visible; }
.rt-faq-section .faq-item:first-child { border-top: 1px solid #e2e8f0; }
.rt-faq-section .faq-item__question {
  padding: 18px 36px 18px 0; font-size: 15px; font-weight: 500;
  cursor: pointer; list-style: none; position: relative; display: block; color: #1a1a2e;
}
.rt-faq-section .faq-item__question::-webkit-details-marker { display: none; }
.rt-faq-section .faq-item__question::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: #4EA0D2; transition: transform .3s; line-height: 1;
}
.rt-faq-section .faq-item[open] .faq-item__question::after { transform: translateY(-50%) rotate(45deg); }
.rt-faq-section .faq-item__answer { padding: 0 0 18px; font-size: 14px; color: #555; line-height: 1.65; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .rt-builder__layout { flex-direction: column; }
  .rt-builder__preview { width: 100%; position: static; }
  .rt-preview__wrap { max-height: 300px; }
}
@media (max-width: 640px) {
  .rt-hero__h1 { font-size: 22px; }
  .rt-card__body { padding: 14px 16px; }
  .rt-card__header { padding: 12px 16px; }
  .rt-bots-grid { grid-template-columns: 1fr; }
}
