:root {
  --bg: #f7fafc;
  --card: #ffffff;
  --muted: #6b7280;
}

/* Force light theme - override system preference */
html,
body {
  background: #f7fafc !important;
  color: #1f2937 !important;
  color-scheme: light !important;
}

body {
  padding-top: 4rem;
  /* 64px for header h-16 on all devices */
}

/* Center search box placeholder */
#search-input::placeholder {
  text-align: center;
}

/* Standardized typography for tool pages */
.prose {
  max-width: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.prose p,
.prose li,
.text-gray-700,
.text-gray-600 {
  color: #374151 !important;
  font-size: 0.875rem;
  /* 14px - smaller for better readability */
  line-height: 1.6;
}

.prose p {
  margin-bottom: 1rem;
  /* 16px spacing between paragraphs */
}

.prose h2,
h2 {
  color: #111827 !important;
  font-size: 1.5rem;
  /* 24px */
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  /* 32px top spacing */
  margin-bottom: 1rem;
  /* 16px bottom spacing */
}

.prose h3,
h3 {
  color: #111827 !important;
  font-size: 1.125rem;
  /* 18px */
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  /* 24px top spacing */
  margin-bottom: 0.75rem;
  /* 12px bottom spacing */
}

.prose h4,
h4 {
  color: #111827 !important;
  font-size: 1rem;
  /* 16px */
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.25rem;
  /* 20px top spacing */
  margin-bottom: 0.5rem;
  /* 8px bottom spacing */
}

.prose ul,
.prose ol {
  color: #374151 !important;
  font-size: 0.875rem;
  /* 14px */
  margin-bottom: 1rem;
  /* 16px spacing after lists */
  padding-left: 1.5rem;
  /* 24px indent for list items */
}

.prose ul li,
.prose ol li {
  font-size: 0.875rem;
  /* 14px */
  line-height: 1.6;
  margin-bottom: 0.5rem;
  /* 8px spacing between list items */
}

.prose strong {
  color: #111827 !important;
  font-weight: 600;
}

/* Additional spacing for sections */
.prose>*:first-child {
  margin-top: 0;
  /* Remove top margin from first element */
}

.prose>*:last-child {
  margin-bottom: 0;
  /* Remove bottom margin from last element */
}

/* Prevent dark mode from system preference */
@media (prefers-color-scheme: dark) {

  html,
  body {
    background: #f7fafc !important;
    color: #1f2937 !important;
    color-scheme: light !important;
  }

  :root {
    --bg: #f7fafc !important;
    --card: #ffffff !important;
    --muted: #6b7280 !important;
  }
}

[data-theme="dark"] {
  --bg: #0b1220;
  --card: #1a2332;
  --muted: #d1d5db;
  color-scheme: dark;
}

[data-theme="dark"] html,
[data-theme="dark"] body {
  background: #0b1220;
  color: #f3f4f6;
}

/* Dark mode text improvements */
[data-theme="dark"] .text-gray-600,
[data-theme="dark"] .text-gray-700 {
  color: #d1d5db !important;
}

[data-theme="dark"] .text-gray-500 {
  color: #9ca3af !important;
}

[data-theme="dark"] .text-gray-800,
[data-theme="dark"] .text-gray-900 {
  color: #f3f4f6 !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #f9fafb !important;
}

[data-theme="dark"] p {
  color: #e5e7eb !important;
}

[data-theme="dark"] .bg-white {
  background-color: #1a2332 !important;
}

[data-theme="dark"] .border-gray-200 {
  border-color: #374151 !important;
}

[data-theme="dark"] .border-gray-100 {
  border-color: #374151 !important;
}

/* Dark mode - All text elements */
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] label,
[data-theme="dark"] li,
[data-theme="dark"] a {
  color: inherit;
}

[data-theme="dark"] .text-xs,
[data-theme="dark"] .text-sm,
[data-theme="dark"] .text-base {
  color: #d1d5db !important;
}

[data-theme="dark"] .font-semibold,
[data-theme="dark"] .font-bold {
  color: #f3f4f6 !important;
}

/* Dark mode - Specific elements */
[data-theme="dark"] .prose {
  color: #e5e7eb !important;
}

[data-theme="dark"] .prose p,
[data-theme="dark"] .prose li,
[data-theme="dark"] .prose ol,
[data-theme="dark"] .prose ul {
  color: #d1d5db !important;
}

[data-theme="dark"] .dark\:text-gray-300,
[data-theme="dark"] .dark\:text-gray-400 {
  color: #d1d5db !important;
}

/* Dark mode - Tool cards */
[data-theme="dark"] .tool-card {
  background-color: #1a2332 !important;
  border-color: #374151 !important;
}

[data-theme="dark"] .tool-card .text-xs {
  color: #9ca3af !important;
}

[data-theme="dark"] .tool-card .font-semibold {
  color: #f3f4f6 !important;
}

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tool-card {
  transition: transform .14s ease, box-shadow .14s ease;
}

.tool-card:focus-within,
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.category-title {
  border-left: 4px solid rgba(99, 102, 241, 0.14);
  padding-left: .75rem;
}

.search-icon {
  margin-left: -2.5rem;
  pointer-events: none;
  opacity: .6;
}

@media (max-width: 767px) {
  .hero-illustration {
    height: 220px;
    border-radius: 16px;
  }

  /* Increase brand name size on mobile */
  header .text-lg {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
  }

  /* Increase logo icon size on mobile */
  header .w-10 {
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 0.875rem !important;
  }

  .mobile-search-trigger {
    justify-content: center;
    padding-right: 0;
  }

  .mobile-search-text {
    flex: 1 1 auto;
    text-align: center;
  }

  .mobile-search-icon {
    margin-left: auto;
  }
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.site-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.site-logo-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

/* Tool page specific styles */
.tool-container {
  max-width: 900px;
  margin: 0 auto;
}

.tool-input,
.tool-textarea,
.tool-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.tool-input:focus,
.tool-textarea:focus,
.tool-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.tool-textarea {
  min-height: 150px;
  font-family: 'Courier New', monospace;
  resize: vertical;
}

.tool-button {
  padding: 0.75rem 1.5rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.tool-button:hover {
  background: #4f46e5;
}

.tool-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.tool-button-secondary {
  background: #f3f4f6;
  color: #374151;
}

.tool-button-secondary:hover {
  background: #e5e7eb;
}

.result-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
}

[data-theme="dark"] .tool-input,
[data-theme="dark"] .tool-textarea,
[data-theme="dark"] .tool-select {
  background: #071022;
  border-color: #374151;
  color: #f3f4f6;
}

[data-theme="dark"] .result-box {
  background: #0b1220;
  border-color: #374151;
}

.faq-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

[data-theme="dark"] .faq-item {
  background: #1a2332;
  border-color: #374151;
}

[data-theme="dark"] .faq-item:hover {
  background: #1f2937;
  border-color: #4b5563;
}

.faq-question {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1f2937;
  user-select: none;
}

[data-theme="dark"] .faq-question {
  color: #f3f4f6 !important;
}

.faq-answer {
  margin-top: 0.75rem;
  color: #9ca3af;
  display: none;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .faq-answer {
  color: #d1d5db !important;
  border-top-color: #374151;
}

[data-theme="dark"] .faq-answer p {
  color: #d1d5db !important;
}

.faq-answer.active {
  display: block;
}

.similar-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* --- Similar Tools mobile/tablet behavior --- */
@media (max-width: 1024px) {

  /* turn off sticky on small screens */
  main .lg\:col-span-1 .sticky {
    position: static !important;
    top: auto !important;
  }

  /* small spacing when we insert the card under the tool */
  .ato-similar-moved {
    margin-top: 1.5rem;
  }
}

/* ===== SEO Tools - Thin, Clean Borders ===== */
/* Global border styles for all SEO tool pages */
/* Input and result cards */
.input-card,
.result-card {
  border-width: 0.5px !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Textareas and input fields in SEO tools */
.tool-textarea,
.tool-input {
  border-width: 0.5px !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Status boxes, directive items, URL items, keyword items */
.status-box,
.directive-item,
.url-item,
.keyword-item,
.title-option,
.meta-item,
.meta-output,
.slug-output,
.comparison-box,
.preview-box {
  border-width: 0.5px !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Border-left for stat boxes and similar - reduce from 3-4px to 1px */
.status-box,
.stat-box,
.directive-item,
.url-item,
.keyword-item,
.title-option,
.meta-item {
  border-left-width: 1px !important;
}

/* Stat boxes with color indicators - keep colors but make thinner */
.stat-box.good,
.stat-box.warning,
.stat-box.bad,
.status-box.allowed,
.status-box.blocked {
  border-left-width: 1px !important;
}

/* FAQ items - removed conflicting rules, using main FAQ styles from common.css */

.border-gray-200,
.border-gray-100 {
  border-width: 0.5px !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

@media (min-resolution: 2dppx) {

  .input-card,
  .result-card,
  .tool-textarea,
  .tool-input,
  .status-box,
  .directive-item,
  .url-item,
  .keyword-item,
  .title-option,
  .meta-item,
  .meta-output,
  .slug-output,
  .comparison-box,
  .preview-box {
    border-width: 0.5px !important;
  }
}

body.seo-tool-ui {
  --seo-accent: #1f2937;
  --seo-accent-strong: #0f172a;
  --seo-accent-soft: rgba(15, 23, 42, 0.12);
  --seo-surface: #ffffff;
  --seo-surface-muted: #f8fafc;
  --seo-text-muted: #475569;
}

@keyframes seo-surface-fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes seo-accent-glow {
  0% {
    opacity: 0.35;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 0.35;
  }
}

body.seo-tool-ui .density-container,
body.seo-tool-ui .meta-container,
body.seo-tool-ui .extractor-container,
body.seo-tool-ui .robots-container,
body.seo-tool-ui .counter-container,
body.seo-tool-ui .simplifier-container,
body.seo-tool-ui .readability-container,
body.seo-tool-ui .sitemap-container,
body.seo-tool-ui .slug-container,
body.seo-tool-ui .meta-generator-container,
body.seo-tool-ui .title-container,
body.seo-tool-ui .title-generator-container,
body.seo-tool-ui .outline-container {
  background: linear-gradient(150deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.92)) !important;
  background-size: 100% 100% !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 28px !important;
  padding: clamp(1.5rem, 2vw + 1rem, 2.5rem) !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08) !important;
  animation: seo-surface-fade 0.6s ease-out !important;
}

body.seo-tool-ui .density-container::before,
body.seo-tool-ui .meta-container::before,
body.seo-tool-ui .extractor-container::before,
body.seo-tool-ui .robots-container::before,
body.seo-tool-ui .counter-container::before,
body.seo-tool-ui .simplifier-container::before,
body.seo-tool-ui .readability-container::before,
body.seo-tool-ui .sitemap-container::before,
body.seo-tool-ui .slug-container::before,
body.seo-tool-ui .meta-generator-container::before,
body.seo-tool-ui .title-container::before,
body.seo-tool-ui .title-generator-container::before,
body.seo-tool-ui .outline-container::before {
  content: "" !important;
  position: absolute !important;
  top: 0.85rem !important;
  left: 10% !important;
  right: 10% !important;
  height: 3px !important;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.05)) !important;
  border-radius: 999px !important;
  animation: seo-accent-glow 7s ease-in-out infinite !important;
  pointer-events: none !important;
}

body.seo-tool-ui .input-card,
body.seo-tool-ui .result-card,
body.seo-tool-ui .outline-result,
body.seo-tool-ui .preview-box,
body.seo-tool-ui .comparison-box,
body.seo-tool-ui .score-display {
  background: var(--seo-surface) !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-radius: 22px !important;
  padding: clamp(1.1rem, 2vw + 0.75rem, 1.9rem) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: none !important;
  animation: seo-surface-fade 0.5s ease-out !important;
}

body.seo-tool-ui .score-display {
  text-align: center !important;
  color: var(--seo-accent) !important;
}

body.seo-tool-ui .score-value {
  font-size: clamp(2.5rem, 4vw, 3.75rem) !important;
  font-weight: 700 !important;
  margin-bottom: 0.35rem !important;
  color: var(--seo-accent-strong) !important;
}

body.seo-tool-ui .score-label {
  font-size: 1.15rem !important;
  color: var(--seo-text-muted) !important;
}

body.seo-tool-ui .score-description {
  margin-top: 0.75rem !important;
  font-size: 0.95rem !important;
  color: var(--seo-text-muted) !important;
  opacity: 0.9 !important;
}

body.seo-tool-ui .result-card {
  display: none !important;
}

body.seo-tool-ui .result-card.show,
body.seo-tool-ui .outline-result.show {
  display: block !important;
}

body.seo-tool-ui .tool-textarea,
body.seo-tool-ui .tool-input,
body.seo-tool-ui .tool-select {
  background: var(--seo-surface) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: 14px !important;
  padding: 1rem 1.25rem !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
  color: var(--seo-accent-strong) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

body.seo-tool-ui .tool-textarea:focus,
body.seo-tool-ui .tool-input:focus,
body.seo-tool-ui .tool-select:focus {
  border-color: var(--seo-accent) !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12) !important;
}

body.seo-tool-ui .btn-primary {
  background: var(--seo-accent) !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  padding: 0.85rem 1.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.22) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

body.seo-tool-ui .btn-primary:hover,
body.seo-tool-ui .btn-primary:focus-visible {
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.26) !important;
}

body.seo-tool-ui .btn-secondary {
  background: transparent !important;
  color: var(--seo-accent) !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 12px !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

body.seo-tool-ui .btn-secondary:hover,
body.seo-tool-ui .btn-secondary:focus-visible {
  background: rgba(15, 23, 42, 0.05) !important;
  transform: translateY(-1px) !important;
}

body.seo-tool-ui .keyword-item,
body.seo-tool-ui .url-item,
body.seo-tool-ui .link-item,
body.seo-tool-ui .directive-item,
body.seo-tool-ui .title-option,
body.seo-tool-ui .meta-item,
body.seo-tool-ui .meta-output,
body.seo-tool-ui .slug-output,
body.seo-tool-ui .text-preview,
body.seo-tool-ui .comparison-box,
body.seo-tool-ui .outline-item,
body.seo-tool-ui .status-box,
body.seo-tool-ui .stat-box,
body.seo-tool-ui .stat-card {
  background: var(--seo-surface-muted) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-left: 3px solid rgba(15, 23, 42, 0.16) !important;
  border-radius: 15px !important;
  padding: clamp(0.9rem, 2vw + 0.5rem, 1.35rem) !important;
  box-shadow: none !important;
  transition: transform 0.25s ease, background 0.25s ease !important;
}

body.seo-tool-ui .keyword-item:hover,
body.seo-tool-ui .url-item:hover,
body.seo-tool-ui .link-item:hover,
body.seo-tool-ui .directive-item:hover,
body.seo-tool-ui .title-option:hover,
body.seo-tool-ui .outline-item:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  transform: translateX(4px) !important;
}

body.seo-tool-ui .meta-output,
body.seo-tool-ui .slug-output,
body.seo-tool-ui .text-preview {
  font-family: "Inter", "Courier New", monospace !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  word-break: break-word !important;
}

body.seo-tool-ui .stat-value {
  font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  font-weight: 700 !important;
  color: var(--seo-accent-strong) !important;
}

body.seo-tool-ui .stat-label,
body.seo-tool-ui .comparison-label,
body.seo-tool-ui .meta-label,
body.seo-tool-ui .title-stats,
body.seo-tool-ui .keyword-count,
body.seo-tool-ui .keyword-stats span,
body.seo-tool-ui .stat-card .stat-label,
body.seo-tool-ui .stat-box .stat-label {
  color: var(--seo-text-muted) !important;
}

body.seo-tool-ui .keyword-name,
body.seo-tool-ui .title-text,
body.seo-tool-ui .comparison-text,
body.seo-tool-ui .meta-value,
body.seo-tool-ui .outline-h1,
body.seo-tool-ui .outline-h2,
body.seo-tool-ui .outline-h3 {
  color: var(--seo-accent-strong) !important;
}

body.seo-tool-ui .outline-h2 {
  margin-left: 0.75rem !important;
  font-weight: 600 !important;
}

body.seo-tool-ui .outline-h3 {
  margin-left: 1.5rem !important;
  font-weight: 500 !important;
}

body.seo-tool-ui .keyword-density {
  font-weight: 600 !important;
  color: var(--seo-accent) !important;
}

body.seo-tool-ui .density-bar,
body.seo-tool-ui .progress-bar {
  width: 100% !important;
  background: rgba(15, 23, 42, 0.08) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

body.seo-tool-ui .density-fill,
body.seo-tool-ui .progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, var(--seo-accent), rgba(15, 23, 42, 0.75)) !important;
  border-radius: 999px !important;
  transition: width 0.3s ease !important;
}

body.seo-tool-ui .progress-fill.good {
  background: linear-gradient(90deg, #047857, #0f766e) !important;
}

body.seo-tool-ui .progress-fill.warning {
  background: linear-gradient(90deg, #92400e, #f59e0b) !important;
}

body.seo-tool-ui .progress-fill.bad {
  background: linear-gradient(90deg, #b91c1c, #ef4444) !important;
}

body.seo-tool-ui .stat-box.good,
body.seo-tool-ui .stat-card.internal,
body.seo-tool-ui .status-box.allowed {
  background: #ecfdf5 !important;
  border-left-color: #0f766e !important;
}

body.seo-tool-ui .stat-box.warning,
body.seo-tool-ui .stat-card.external {
  background: #fefce8 !important;
  border-left-color: #d97706 !important;
}

body.seo-tool-ui .stat-box.bad,
body.seo-tool-ui .stat-card.relative,
body.seo-tool-ui .status-box.blocked {
  background: #fef2f2 !important;
  border-left-color: #b91c1c !important;
}

body.seo-tool-ui .stat-box.good .stat-value,
body.seo-tool-ui .stat-card.internal .stat-value {
  color: #0f766e !important;
}

body.seo-tool-ui .stat-box.warning .stat-value,
body.seo-tool-ui .stat-card.external .stat-value {
  color: #b45309 !important;
}

body.seo-tool-ui .stat-box.bad .stat-value,
body.seo-tool-ui .stat-card.relative .stat-value,
body.seo-tool-ui .status-box.blocked strong {
  color: #b91c1c !important;
}

body.seo-tool-ui .link-url {
  font-family: "Inter", "Courier New", monospace !important;
  font-size: 0.92rem !important;
  color: var(--seo-accent-strong) !important;
  word-break: break-all !important;
}

body.seo-tool-ui .link-badge {
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 999px !important;
  padding: 0.25rem 0.75rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
}

body.seo-tool-ui .badge-internal {
  background: #ecfdf5 !important;
  color: #0f766e !important;
  border-color: rgba(15, 118, 110, 0.1) !important;
}

body.seo-tool-ui .badge-external {
  background: #fefce8 !important;
  color: #b45309 !important;
  border-color: rgba(180, 83, 9, 0.1) !important;
}

body.seo-tool-ui .badge-relative {
  background: #ede9fe !important;
  color: #5b21b6 !important;
  border-color: rgba(91, 33, 182, 0.12) !important;
}

body.seo-tool-ui .link-item.internal {
  border-left-color: #0f766e !important;
}

body.seo-tool-ui .link-item.external {
  border-left-color: #b45309 !important;
}

body.seo-tool-ui .link-item.relative {
  border-left-color: #5b21b6 !important;
}

body.seo-tool-ui .comparison-text,
body.seo-tool-ui .meta-value {
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

body.seo-tool-ui .stats-grid,
body.seo-tool-ui .stats-summary,
body.seo-tool-ui .stats-row {
  gap: 1rem !important;
}

body.seo-tool-ui .meta-label {
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-size: 0.75rem !important;
}

body.seo-tool-ui .preview-title {
  color: var(--seo-accent-strong) !important;
}

body.seo-tool-ui .preview-url {
  color: #2563eb !important;
}

body.seo-tool-ui .preview-description {
  color: var(--seo-text-muted) !important;
}

body.seo-tool-ui .keyword-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  align-items: center !important;
}

@supports not (border-width: 0.5px) {

  .input-card,
  .result-card,
  .tool-textarea,
  .tool-input,
  .status-box,
  .directive-item,
  .url-item,
  .keyword-item,
  .title-option,
  .meta-item,
  .meta-output,
  .slug-output,
  .comparison-box,
  .preview-box {
    border-width: 1px !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
  }
}

body.utility-tool-ui {
  --utility-accent: #2563eb;
  --utility-accent-strong: #1d4ed8;
  --utility-accent-soft: rgba(37, 99, 235, 0.14);
  --utility-surface: #ffffff;
  --utility-surface-muted: #f1f5f9;
  --utility-muted: #64748b;
  --utility-border: rgba(15, 23, 42, 0.08);
  --utility-shadow: rgba(15, 23, 42, 0.08);
}

@keyframes utility-panel-fade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes utility-soft-glow {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.65;
  }

  100% {
    opacity: 0.3;
  }
}

@keyframes utility-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.18);
  }

  100% {
    box-shadow: 0 0 0 18px rgba(37, 99, 235, 0);
  }
}

body.utility-tool-ui main .utility-shell {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  border: 1px solid var(--utility-border);
  padding: clamp(1.5rem, 2vw + 1rem, 2.5rem);
  box-shadow: 0 24px 48px var(--utility-shadow);
  overflow: hidden;
  animation: utility-panel-fade 0.6s ease both;
}

body.utility-tool-ui main .utility-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% -15%, rgba(37, 99, 235, 0.16), transparent 55%), radial-gradient(circle at 85% -10%, rgba(99, 102, 241, 0.12), transparent 45%);
  opacity: 0.7;
  pointer-events: none;
}

body.utility-tool-ui main .utility-shell::after {
  content: "";
  position: absolute;
  inset: 12% 12% auto 12%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0));
  animation: utility-soft-glow 9s ease-in-out infinite;
  pointer-events: none;
}

body.utility-tool-ui .utility-panel {
  position: relative;
  background: var(--utility-surface);
  border: 1px solid var(--utility-border);
  border-radius: 22px;
  padding: clamp(1.25rem, 2vw + 1rem, 2.1rem);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
  animation: utility-panel-fade 0.45s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.utility-tool-ui .utility-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.14);
}

body.utility-tool-ui .utility-panel.break-mode {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.12), var(--utility-surface));
  border-color: rgba(16, 185, 129, 0.26);
  box-shadow: 0 22px 44px rgba(16, 185, 129, 0.18);
}

body.utility-tool-ui .utility-display {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
  color: var(--utility-accent-strong);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.14);
  text-align: center;
  animation: utility-panel-fade 0.6s ease both, utility-pulse-ring 9s ease-out infinite;
}

body.utility-tool-ui .utility-display small {
  display: block;
  margin-top: 0.75rem;
  color: var(--utility-muted);
  font-weight: 500;
}

body.utility-tool-ui .utility-card {
  background: var(--utility-surface);
  border: 1px solid var(--utility-border);
  border-radius: 20px;
  padding: clamp(1.1rem, 2vw + 0.85rem, 1.9rem);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.utility-tool-ui .utility-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.09);
  border-color: rgba(37, 99, 235, 0.16);
}

body.utility-tool-ui .utility-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--utility-surface-muted);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.utility-tool-ui .utility-list-item:hover {
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateY(-2px);
}

body.utility-tool-ui .utility-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--utility-accent-strong);
  font-weight: 600;
  font-size: 0.85rem;
}

body.utility-tool-ui input[type="text"]:not(header input):not(#search-overlay input),
body.utility-tool-ui input[type="number"]:not(header input):not(#search-overlay input),
body.utility-tool-ui input[type="email"]:not(header input):not(#search-overlay input),
body.utility-tool-ui input[type="url"]:not(header input):not(#search-overlay input),
body.utility-tool-ui input[type="password"]:not(header input):not(#search-overlay input),
body.utility-tool-ui input[type="search"]:not(header input):not(#search-overlay input),
body.utility-tool-ui input[type="tel"]:not(header input):not(#search-overlay input),
body.utility-tool-ui input[type="date"]:not(header input):not(#search-overlay input),
body.utility-tool-ui input[type="time"]:not(header input):not(#search-overlay input),
body.utility-tool-ui input[type="color"]:not(header input):not(#search-overlay input),
body.utility-tool-ui select:not(header select):not(#search-overlay select),
body.utility-tool-ui textarea:not(header textarea):not(#search-overlay textarea) {
  background: var(--utility-surface) !important;
  border: 1px solid var(--utility-border) !important;
  border-radius: 14px !important;
  padding: 0.85rem 1rem !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
  box-shadow: none !important;
}

body.utility-tool-ui input[type="text"]:focus,
body.utility-tool-ui input[type="number"]:focus,
body.utility-tool-ui input[type="email"]:focus,
body.utility-tool-ui input[type="url"]:focus,
body.utility-tool-ui input[type="password"]:focus,
body.utility-tool-ui input[type="search"]:focus,
body.utility-tool-ui input[type="tel"]:focus,
body.utility-tool-ui input[type="date"]:focus,
body.utility-tool-ui input[type="time"]:focus,
body.utility-tool-ui input[type="color"]:focus,
body.utility-tool-ui select:focus,
body.utility-tool-ui textarea:focus {
  outline: none !important;
  border-color: var(--utility-accent) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14) !important;
  transform: translateY(-1px) !important;
}

body.utility-tool-ui input::placeholder,
body.utility-tool-ui textarea::placeholder {
  color: var(--utility-muted) !important;
  opacity: 0.75 !important;
}

body.utility-tool-ui input[type="checkbox"],
body.utility-tool-ui input[type="radio"] {
  width: 1.1rem !important;
  height: 1.1rem !important;
  accent-color: var(--utility-accent) !important;
  border-radius: 0.375rem !important;
  transition: transform 0.2s ease !important;
}

body.utility-tool-ui input[type="checkbox"]:hover,
body.utility-tool-ui input[type="radio"]:hover {
  transform: scale(1.05) !important;
}

body.utility-tool-ui button:not(header button):not(#search-overlay button) {
  border-radius: 14px !important;
  border: 1px solid transparent !important;
  background: linear-gradient(135deg, var(--utility-accent-strong), var(--utility-accent)) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  padding: 0.9rem 1.6rem !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease !important;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.18) !important;
}

body.utility-tool-ui button:hover,
body.utility-tool-ui button:focus-visible {
  transform: translateY(-2px) !important;
  box-shadow: 0 22px 40px rgba(37, 99, 235, 0.22) !important;
}

body.utility-tool-ui button:disabled {
  background: rgba(148, 163, 184, 0.4) !important;
  color: rgba(15, 23, 42, 0.5) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

body.utility-tool-ui .utility-secondary {
  background: rgba(37, 99, 235, 0.08) !important;
  color: var(--utility-accent-strong) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  box-shadow: none !important;
}

body.utility-tool-ui .utility-secondary:hover,
body.utility-tool-ui .utility-secondary:focus-visible {
  background: rgba(37, 99, 235, 0.12) !important;
}

body.utility-tool-ui .utility-ghost {
  background: transparent !important;
  color: var(--utility-accent) !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
  box-shadow: none !important;
}

body.utility-tool-ui .utility-ghost:hover,
body.utility-tool-ui .utility-ghost:focus-visible {
  background: rgba(37, 99, 235, 0.08) !important;
}

body.utility-tool-ui .utility-accent-text {
  color: var(--utility-accent-strong);
  font-weight: 600;
}

body.utility-tool-ui .utility-muted-text {
  color: var(--utility-muted);
}

body.utility-tool-ui .utility-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0));
  margin: 1.75rem 0;
}

body.utility-tool-ui .utility-grid {
  display: grid;
  gap: 1rem;
}

body.utility-tool-ui .utility-floating {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
  border: 1px solid rgba(37, 99, 235, 0.14);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.utility-tool-ui .utility-floating::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  pointer-events: none;
}

body.utility-tool-ui .utility-floating strong {
  color: var(--utility-accent-strong);
}

body.utility-tool-ui .tool-interface-container,
body.utility-tool-ui .todo-container,
body.utility-tool-ui .timer-container,
body.utility-tool-ui .stopwatch-container,
body.utility-tool-ui .journal-container,
body.utility-tool-ui .quote-container,
body.utility-tool-ui .qr-container,
body.utility-tool-ui .video-container,
body.utility-tool-ui .password-container,
body.utility-tool-ui .notepad-container,
body.utility-tool-ui .click-container,
body.utility-tool-ui .markdown-container,
body.utility-tool-ui .editor-container,
body.utility-tool-ui .file-container,
body.utility-tool-ui .expense-container,
body.utility-tool-ui .dice-container,
body.utility-tool-ui .countdown-container,
body.utility-tool-ui .coin-container,
body.utility-tool-ui .flip-container,
body.utility-tool-ui .clipboard-container,
body.utility-tool-ui .calendar-container,
body.utility-tool-ui .birthday-container,
body.utility-tool-ui .barcode-container,
body.utility-tool-ui .clock-container {
  background: var(--utility-surface) !important;
  border: 1px solid var(--utility-border) !important;
  border-radius: 24px !important;
  padding: clamp(1.35rem, 2vw + 1rem, 2.4rem) !important;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08) !important;
  animation: utility-panel-fade 0.55s ease both !important;
  position: relative !important;
  overflow: hidden !important;
}

body.utility-tool-ui .tool-interface-container::before,
body.utility-tool-ui .tool-interface-container::after,
body.utility-tool-ui .todo-container::before,
body.utility-tool-ui .todo-container::after,
body.utility-tool-ui .timer-container::before,
body.utility-tool-ui .timer-container::after,
body.utility-tool-ui .stopwatch-container::before,
body.utility-tool-ui .stopwatch-container::after,
body.utility-tool-ui .journal-container::before,
body.utility-tool-ui .journal-container::after,
body.utility-tool-ui .quote-container::before,
body.utility-tool-ui .quote-container::after,
body.utility-tool-ui .qr-container::before,
body.utility-tool-ui .qr-container::after,
body.utility-tool-ui .video-container::before,
body.utility-tool-ui .video-container::after,
body.utility-tool-ui .password-container::before,
body.utility-tool-ui .password-container::after,
body.utility-tool-ui .notepad-container::before,
body.utility-tool-ui .notepad-container::after,
body.utility-tool-ui .click-container::before,
body.utility-tool-ui .click-container::after,
body.utility-tool-ui .markdown-container::before,
body.utility-tool-ui .markdown-container::after,
body.utility-tool-ui .editor-container::before,
body.utility-tool-ui .editor-container::after,
body.utility-tool-ui .file-container::before,
body.utility-tool-ui .file-container::after,
body.utility-tool-ui .expense-container::before,
body.utility-tool-ui .expense-container::after,
body.utility-tool-ui .dice-container::before,
body.utility-tool-ui .dice-container::after,
body.utility-tool-ui .countdown-container::before,
body.utility-tool-ui .countdown-container::after,
body.utility-tool-ui .coin-container::before,
body.utility-tool-ui .coin-container::after,
body.utility-tool-ui .flip-container::before,
body.utility-tool-ui .flip-container::after,
body.utility-tool-ui .clipboard-container::before,
body.utility-tool-ui .clipboard-container::after,
body.utility-tool-ui .calendar-container::before,
body.utility-tool-ui .calendar-container::after,
body.utility-tool-ui .birthday-container::before,
body.utility-tool-ui .birthday-container::after,
body.utility-tool-ui .barcode-container::before,
body.utility-tool-ui .barcode-container::after,
body.utility-tool-ui .clock-container::before,
body.utility-tool-ui .clock-container::after {
  display: none !important;
}

body.utility-tool-ui .timer-container.break-mode {
  background: linear-gradient(155deg, rgba(16, 185, 129, 0.12), var(--utility-surface)) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 24px 48px rgba(16, 185, 129, 0.2) !important;
}

body.utility-tool-ui .countdown-container.warning,
body.utility-tool-ui .timer-container.warning {
  background: linear-gradient(150deg, rgba(234, 179, 8, 0.14), var(--utility-surface)) !important;
  border-color: rgba(234, 179, 8, 0.32) !important;
  box-shadow: 0 24px 48px rgba(234, 179, 8, 0.22) !important;
}

body.utility-tool-ui .countdown-container.critical {
  background: linear-gradient(150deg, rgba(239, 68, 68, 0.16), var(--utility-surface)) !important;
  border-color: rgba(239, 68, 68, 0.34) !important;
  box-shadow: 0 24px 50px rgba(239, 68, 68, 0.24) !important;
}

body.utility-tool-ui .timer-display,
body.utility-tool-ui .stopwatch-display,
body.utility-tool-ui .countdown-display,
body.utility-tool-ui .click-display,
body.utility-tool-ui .clock-display {
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0.04em !important;
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02)) !important;
  color: var(--utility-accent-strong) !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  border-radius: 24px !important;
  padding: clamp(1.25rem, 3vw, 2.75rem) !important;
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.14) !important;
  text-shadow: none !important;
  animation: utility-panel-fade 0.6s ease both, utility-pulse-ring 9s ease-in-out infinite !important;
}

body.utility-tool-ui .timer-display.warning,
body.utility-tool-ui .countdown-display.warning {
  background: linear-gradient(145deg, rgba(234, 179, 8, 0.16), rgba(234, 179, 8, 0.06)) !important;
  border-color: rgba(234, 179, 8, 0.34) !important;
  color: #b45309 !important;
  box-shadow: 0 22px 48px rgba(234, 179, 8, 0.26) !important;
}

body.utility-tool-ui .timer-display.break,
body.utility-tool-ui .countdown-display.critical {
  background: linear-gradient(150deg, rgba(239, 68, 68, 0.16), rgba(239, 68, 68, 0.06)) !important;
  border-color: rgba(239, 68, 68, 0.34) !important;
  color: #b91c1c !important;
  box-shadow: 0 22px 50px rgba(239, 68, 68, 0.26) !important;
}

body.utility-tool-ui label,
body.utility-tool-ui span,
body.utility-tool-ui p,
body.utility-tool-ui h1,
body.utility-tool-ui h2,
body.utility-tool-ui h3,
body.utility-tool-ui h4,
body.utility-tool-ui h5,
body.utility-tool-ui h6 {
  color: #0f172a !important;
  text-shadow: none !important;
}

body.utility-tool-ui .text-white {
  color: #0f172a !important;
}

body.utility-tool-ui .text-indigo-600,
body.utility-tool-ui .text-indigo-700 {
  color: var(--utility-accent-strong) !important;
}

body.utility-tool-ui .text-gray-600,
body.utility-tool-ui .text-gray-700,
body.utility-tool-ui .text-gray-500 {
  color: var(--utility-muted) !important;
}

body.utility-tool-ui .bg-indigo-600,
body.utility-tool-ui .bg-indigo-700,
body.utility-tool-ui .bg-blue-600,
body.utility-tool-ui .bg-purple-600 {
  background: linear-gradient(135deg, var(--utility-accent-strong), var(--utility-accent)) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.2) !important;
  border: 1px solid transparent !important;
}

body.utility-tool-ui .bg-red-500,
body.utility-tool-ui .bg-red-600 {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #b91c1c !important;
  border: 1px solid rgba(239, 68, 68, 0.28) !important;
  box-shadow: none !important;
}

body.utility-tool-ui div[class*="-item"],
body.utility-tool-ui div[class*="card"],
body.utility-tool-ui div[class*="-panel"],
body.utility-tool-ui div[class*="-box"],
body.utility-tool-ui section[class*="card"],
body.utility-tool-ui section[class*="-panel"],
body.utility-tool-ui article[class*="card"] {
  background: var(--utility-surface) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

body.utility-tool-ui div[class*="-item"]:hover,
body.utility-tool-ui div[class*="card"]:hover,
body.utility-tool-ui div[class*="-panel"]:hover,
body.utility-tool-ui div[class*="-box"]:hover,
body.utility-tool-ui section[class*="card"]:hover,
body.utility-tool-ui section[class*="-panel"]:hover,
body.utility-tool-ui article[class*="card"]:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(37, 99, 235, 0.18) !important;
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08) !important;
}


/* --- Website Protection Styles --- */
* {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

body {
  -webkit-touch-callout: none !important;
}

/* Exception: Allow user interaction with form elements */
input,
textarea,
[contenteditable='true'] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}