
/* ══ MODERN TYPOGRAPHY AND SLEEK SMALL CURSOR FIX ══ */
body, p, span, li, td, th, div, label, input, select, textarea, button {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

#shift-cursor {
  margin-left: -4.5px;
  margin-top: -3px;

  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 20px !important;
  height: 20px !important;
  left: -50px;
  top: -50px;
  transform-origin: 2px 2px;
  transition: transform 0.1s ease;
}

#shift-cursor svg {
  width: 100% !important;
  height: 100% !important;
  filter: drop-shadow(0 0 4px rgba(37,99,235,0.45)) !important;
}

#shift-trail {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  width: 10px !important;
  height: 10px !important;
  opacity: 0.25 !important;
  left: -50px;
  top: -50px;
  transition: left 0.15s ease-out, top 0.15s ease-out;
}

#shift-trail svg {
  width: 100% !important;
  height: 100% !important;
}

.seo-article-section p {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
  font-size: 0.975rem !important;
  line-height: 1.75 !important;
  color: #475569 !important;
  margin-bottom: 16px !important;
}


/* Hide Default Cursor on ALL Video Control Elements & Shadow DOM */
video,
video *,
video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-time-control,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-toggle-closed-captions-button,
video::-webkit-media-controls-fullscreen-button,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-overlay-play-button,
video::-moz-media-controls,
video::-moz-media-controls-pause-button,
video::-moz-media-controls-play-button {
  cursor: none !important;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; }
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e4e4e7;
  --text: #18181b;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  --font: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
body { background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100vh; display: flex; flex-direction: column; }

#shift-cursor {
  margin-left: -4.5px;
  margin-top: -3px;
 position: fixed; pointer-events: none; z-index: 99999; width: 20px; height: 20px; left: -50px; top: -50px; transform-origin: 4px 4px; transition: transform 0.1s ease; }
#shift-cursor svg { width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(37,99,235,0.4)); }
#shift-trail { position: fixed; pointer-events: none; z-index: 99998; width: 14px; height: 14px; opacity: 0.3; left: -50px; top: -50px; transition: left 0.15s ease, top 0.15s ease; }
#shift-trail svg { width: 100%; height: 100%; }

@media (hover: none), (pointer: coarse) {
  *, *::before, *::after, input, textarea, button, select, a, label {
    cursor: auto !important;
  }
  #shift-cursor, #shift-trail {
    display: none !important;
  }
}

.header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.brand-badge { background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.nav-links { display: flex; gap: 20px; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.nav-link:hover { color: #000; }

.main-container { max-width: 1200px; margin: 32px auto; padding: 0 24px; width: 100%; flex: 1; }
.hero-title { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; text-align: center; margin-bottom: 8px; letter-spacing: -0.02em; }
.hero-sub { text-align: center; color: var(--text-muted); font-size: 1rem; margin-bottom: 32px; }

/* ══ INITIAL ENTRY VIEW (DRAG & DROP OR ENTER TEXT) ══ */
.entry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  max-width: 720px;
  margin: 0 auto 36px auto;
  text-align: center;
  transition: all 0.3s ease;
}

.dropzone-box {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 16px;
  padding: 42px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.dropzone-box:hover,
.dropzone-box.drag-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.dropzone-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.dropzone-box:hover .dropzone-icon,
.dropzone-box.drag-active .dropzone-icon {
  transform: scale(1.08);
  background: #dbeafe;
}

.dropzone-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.dropzone-sub {
  font-size: 0.88rem;
  color: #64748b;
  max-width: 440px;
  line-height: 1.5;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 6px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.entry-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.entry-divider::before,
.entry-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.entry-divider span {
  padding: 0 16px;
}

.text-entry-action {
  display: flex;
  justify-content: center;
}

.btn-enter-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.btn-enter-text:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.studio-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.toolbar-primary-row,
.toolbar-secondary-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  background: #cbd5e1;
  margin: 0 4px;
}

.mobile-pane-switcher {
  display: none;
}

/* ══ MODERN CUSTOM INDENT DROPDOWN ══ */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.btn-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  height: 36px;
  box-sizing: border-box;
  user-select: none;
}

.btn-dropdown:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f8fafc;
}

.dropdown-wrapper.open .btn-dropdown {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dropdown-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.82rem;
}

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

.btn-dropdown:hover .dropdown-current,
.dropdown-wrapper.open .dropdown-current {
  color: #2563eb;
}

.dropdown-chevron {
  color: #64748b;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  margin-left: 2px;
}

.dropdown-wrapper.open .dropdown-chevron {
  transform: rotate(180deg);
  color: #2563eb;
}

.dropdown-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 140px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  z-index: 10000;
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-wrapper.open .dropdown-popover {
  display: flex;
}

.dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
}

.dropdown-option:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dropdown-option.selected {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.dropdown-option .check-icon {
  opacity: 0;
  color: #2563eb;
  transition: opacity 0.1s ease;
}

.dropdown-option.selected .check-icon {
  opacity: 1;
}

/* ══ MODERN INLINE ERROR BANNER (NO BROWSER ALERT) ══ */
.error-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  animation: bannerSlideDown 0.22s ease-out;
}

@keyframes bannerSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.error-banner-icon {
  color: #ef4444;
  flex-shrink: 0;
  display: flex;
}

.error-banner-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.error-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #991b1b;
}

.error-msg {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #b91c1c;
  word-break: break-word;
}

.error-close-btn {
  background: none;
  border: none;
  color: #991b1b;
  opacity: 0.6;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.error-close-btn:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.1);
}

/* ══ FLOATING TOAST NOTIFICATIONS ══ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 440px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast.toast-fade-out {
  opacity: 0;
  transform: translateX(20px) scale(0.95);
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-success {
  border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-info {
  border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
  color: #3b82f6;
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
}

.toast-msg {
  flex: 1;
  line-height: 1.4;
}

.btn { background: #ffffff; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.btn-primary:hover { background: #1d4ed8; }

.split-pane { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-height: 480px; }
@media (max-width: 768px) { .split-pane { grid-template-columns: 1fr; } }

.editor-box { width: 100%; height: 100%; min-height: 480px; border: 1px solid var(--border); border-radius: 10px; padding: 16px; font-family: var(--font-mono); font-size: 0.85rem; background: #f8fafc; color: var(--text); resize: vertical; outline: none; }
.tree-view { border: 1px solid var(--border); border-radius: 10px; padding: 16px; font-family: var(--font-mono); font-size: 0.85rem; background: #ffffff; overflow-y: auto; max-height: 520px; }

/* ════════════════════════════════════════════════════════════════
   MODERN SEO ARTICLE & TECHNICAL SPECIFICATION SECTION
   ════════════════════════════════════════════════════════════════ */
.seo-article-section {
  max-width: 980px;
  margin: 56px auto 0 auto;
  color: #1e293b;
  font-family: var(--font, 'Plus Jakarta Sans', sans-serif);
}

.article-hero-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 36px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
  position: relative;
}

.article-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.article-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-main-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.article-lead {
  font-size: 1.025rem !important;
  line-height: 1.85 !important;
  color: #475569 !important;
  margin-bottom: 0 !important;
}

/* 4-Column Feature Highlight Grid */
.seo-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.seo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.seo-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.08);
}

.seo-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.seo-card-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.seo-card-desc {
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
  color: #64748b !important;
  margin-bottom: 0 !important;
}

/* Content Blocks */
.article-content-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 34px 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.article-section-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seo-article-section p {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
  color: #475569 !important;
  margin-bottom: 16px !important;
}

.seo-article-section p:last-child {
  margin-bottom: 0 !important;
}

.article-feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 20px 0;
}

.article-feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: #334155;
}

.article-feature-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
}

.article-steps-list {
  padding-left: 20px;
  margin: 18px 0 20px 0;
}

.article-steps-list li {
  margin-bottom: 14px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: #334155;
}

/* Modern Data Table */
.seo-table-container {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.seo-modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  text-align: left;
}

.seo-modern-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.seo-modern-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  line-height: 1.55;
}

.seo-modern-table tbody tr:last-child td {
  border-bottom: none;
}

.seo-modern-table tbody tr:hover {
  background: #f8fafc;
}

/* Status Badges in Tables */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Comparison Sub-Card */
.seo-comparison-card {
  margin: 24px 0 20px 0;
}

.comparison-card-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

/* Syntax Comparison Grids */
.seo-syntax-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
}

.syntax-card {
  border-radius: 12px;
  padding: 18px;
  font-size: 0.85rem;
  border: 1px solid;
}

.syntax-invalid {
  background: #fffafa;
  border-color: #fed7d7;
}

.syntax-valid {
  background: #f7fafc;
  border-color: #bbf7d0;
}

.syntax-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.syntax-badge {
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.error-badge {
  background: #fee2e2;
  color: #b91c1c;
}

.valid-badge {
  background: #dcfce7;
  color: #15803d;
}

.syntax-rule {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.syntax-code {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 14px;
  border-radius: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  overflow-x: auto;
  margin-bottom: 12px;
  line-height: 1.5;
}

.syntax-explanation {
  font-size: 0.82rem !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

/* ════════════════════════════════════════════════════════════════
   MODERN FAQ SECTION
   ════════════════════════════════════════════════════════════════ */
.faq-section {
  max-width: 980px;
  margin: 48px auto 60px auto;
  padding: 0;
}

.faq-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: -0.02em;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.faq-button {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.02rem;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.faq-button:hover {
  color: #2563eb;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #64748b;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #2563eb;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.active .faq-content {
  max-height: 400px;
  padding: 0 24px 22px 24px;
}

.faq-text {
  font-size: 0.95rem !important;
  line-height: 1.75 !important;
  color: #475569 !important;
  margin-bottom: 0 !important;
}

/* Minimal White CTA Card */
.cta-box-minimal {
  transition: all 0.25s ease;
}
.cta-box-minimal:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.05) !important;
}
.cta-btn-white {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.cta-btn-white:hover {
  background: #f8fafc !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.15) !important;
}

.footer { text-align: center; padding: 32px; color: var(--text-muted); font-size: 0.875rem; margin-top: 60px; border-top: 1px solid var(--border); }


/* Modern Select Dropdown Styling */
select, .select, .select-input {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  border: 1px solid var(--border, #e2e8f0) !important;
  border-radius: 12px !important;
  padding: 10px 40px 10px 14px !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--text, #0f172a) !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  cursor: pointer !important;
}

select:hover, .select-input:hover {
  border-color: #cbd5e1 !important;
  background-color: #f8fafc !important;
}

select:focus, .select-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
  padding: 10px !important;
  font-weight: 500 !important;
}

/* Video Cursor Hide */
video, video::-webkit-media-controls, video::-webkit-media-controls-enclosure {
  cursor: none !important;
}

/* Button & Preset Hover High Contrast Blend */
.btn-primary:hover, .action-btn:hover, button.btn-primary:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.preset-btn:hover, .tab-btn:hover, .btn-secondary:hover {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

.preset-btn.active, .tab-btn.active, button.preset-btn.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

/* Modern Non-boxy Input Controls */
input[type="text"], input[type="number"], input[type="email"], textarea {
  border-radius: 12px !important;
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  font-family: inherit;
}

input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
  outline: none !important;
}

/* ══ MOBILE VIEWPORT OPTIMIZATIONS (<= 768px) ══ */
@media (max-width: 768px) {
  .main-container {
    padding: 0 12px !important;
    margin: 14px auto 32px auto !important;
  }

  .hero-header {
    margin-bottom: 16px;
  }

  .hero-title {
    font-size: 1.55rem !important;
    margin-bottom: 4px !important;
  }

  .hero-sub {
    font-size: 0.85rem !important;
    margin-bottom: 16px !important;
  }

  .entry-card {
    padding: 24px 16px !important;
    margin-bottom: 20px !important;
    border-radius: 16px !important;
  }

  .dropzone-box {
    padding: 30px 16px !important;
    border-radius: 14px !important;
  }

  .dropzone-title {
    font-size: 1.1rem !important;
  }

  .dropzone-sub {
    font-size: 0.8rem !important;
  }

  .btn-enter-text {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem !important;
    padding: 10px 16px !important;
  }

  .studio-card {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  /* ══ NEAT 2-ROW MOBILE TOOLBAR (NO JUMBLED SCATTERED WRAPPING) ══ */
  .toolbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    padding-bottom: 10px !important;
  }

  /* Row 1: Primary Row (Upload + Format JSON + Indent) */
  .toolbar-primary-row {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  #newFileBtn {
    flex-shrink: 0;
    padding: 7px 10px !important;
    font-size: 0.8rem !important;
    height: 36px !important;
  }

  #formatBtn {
    flex: 1 !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    height: 36px !important;
    padding: 7px 12px !important;
    white-space: nowrap !important;
  }

  #indentDropdownWrap {
    flex-shrink: 0;
  }

  #indentDropdownWrap .btn-dropdown {
    height: 36px !important;
    padding: 7px 10px !important;
    font-size: 0.8rem !important;
  }

  /* Row 2: Secondary Row (Smooth swipeable horizontal strip) */
  .toolbar-secondary-row {
    display: flex !important;
    width: 100% !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 2px 0 4px 0 !important;
  }

  .toolbar-secondary-row::-webkit-scrollbar {
    display: none !important;
  }

  .toolbar-secondary-row .btn,
  .toolbar-secondary-row .btn-dropdown {
    flex-shrink: 0 !important;
    height: 33px !important;
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
  }

  .toolbar-secondary-row .toolbar-divider {
    height: 18px !important;
    margin: 0 2px !important;
    flex-shrink: 0 !important;
  }

  /* ══ MOBILE SEGMENTED VIEW SWITCHER ══ */
  .mobile-pane-switcher {
    display: flex !important;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    gap: 4px;
    margin-bottom: 10px;
  }

  .mobile-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .mobile-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  /* Split Pane Mobile Rules */
  .split-pane {
    display: block !important;
    min-height: auto !important;
  }

  .split-pane.view-editor #jsonInput {
    display: block !important;
    width: 100% !important;
    height: 380px !important;
    min-height: 380px !important;
  }

  .split-pane.view-editor #treeView {
    display: none !important;
  }

  .split-pane.view-tree #jsonInput {
    display: none !important;
  }

  .split-pane.view-tree #treeView {
    display: block !important;
    width: 100% !important;
    height: 380px !important;
    max-height: 380px !important;
  }

  .editor-box {
    padding: 12px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
  }

  .tree-view {
    padding: 12px !important;
    font-size: 0.8rem !important;
    border-radius: 10px !important;
  }

  /* ══ MOBILE STYLING FOR SEO ARTICLE & FAQ ══ */
  .seo-article-section {
    margin-top: 36px !important;
  }

  .article-hero-header {
    padding: 24px 18px !important;
    border-radius: 16px !important;
  }

  .article-main-title {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }

  .article-lead {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
  }

  .seo-grid-cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .seo-card {
    padding: 18px 16px !important;
  }

  .article-content-block {
    padding: 22px 16px !important;
    border-radius: 14px !important;
    margin-bottom: 18px !important;
  }

  .article-section-title {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
  }

  .seo-syntax-grid {
    grid-template-columns: 1fr !important;
  }

  .faq-button {
    padding: 16px 16px !important;
    font-size: 0.95rem !important;
  }

  .faq-item.active .faq-content {
    padding: 0 16px 16px 16px !important;
  }

  .cta-box-minimal {
    flex-direction: column !important;
    text-align: left !important;
    align-items: stretch !important;
    padding: 24px 20px !important;
    gap: 16px !important;
  }

  .cta-btn-white {
    width: 100% !important;
    justify-content: center !important;
  }
}
