:root {
  --bg: #e8f4fd;
  --card: #ffffff;
  --text: #212121;
  --muted: #607d8b;
  --primary: #5b5ce2;
  --primary-dark: #4b4dbe;
  --primary-ghost: #ebe9ff;
  --border: #d9d9d9;
  --footer-bg: #5146c5;
  --nav-bg: #5b52d6;
  --hero: #212121;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  --focus: #a5b4fc;
  --infolinks-mobile-infold-height: 90px;
  --mobile-tool-tabbar-height: 56px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

header {
  background: var(--nav-bg);
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem 0.8rem;
}

.topbar .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.topbar h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.topbar .links {
  display: none;
  align-items: center;
  gap: 0.35rem 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

.topbar a {
  text-decoration: none;
  color: #eaf4ff;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.topbar a:hover,
.topbar a:focus-visible {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 2px;
}

/* --- Language switcher --- */
.lang-switcher {
  display: flex;
  align-items: center;
}

.lang-switcher select {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  width: auto;
  min-height: auto;
}

.lang-switcher select option {
  color: #212121;
  background: #fff;
}

/* --- Locale suggestion banner --- */
.locale-banner {
  background: #eef6ff;
  color: #1a3a5c;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
}
.locale-banner a {
  color: #1a6dd4;
  font-weight: 600;
  text-decoration: underline;
}
.locale-banner button {
  background: none;
  border: none;
  color: #1a3a5c;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 0.75rem;
  padding: 0 0.25rem;
  vertical-align: middle;
}

main {
  max-width: 1280px;
  margin: 1.5rem auto;
  padding: 0 1rem 3rem;
  width: 90%;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

h3 {
  font-size: 1.55rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

p {
  color: #334155;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}

.card-headline {
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #111827;
}

label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 600;
  color: #374151;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  font-size: 1rem;
  background: #fff;
  color: #0f172a;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

#outputAnchor {
  scroll-margin-top: 7rem;
}

input[type="text"],
input[type="number"] {
  min-height: 3rem;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 0.72rem 1.15rem;
  min-height: 42px;
  cursor: pointer;
  color: white;
  background: var(--primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  background: #546e7a;
}

.btn.ghost {
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid #cfd8dc;
}

.btn .icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.35rem;
}

.share-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.share-group select {
  width: auto;
  min-width: 130px;
}

.tool-config-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  margin-top: 0.95rem;
  margin-bottom: 0;
  align-items: end;
}

.separator-options {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.6rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  min-height: auto;
  accent-color: var(--primary);
}

.field-stack {
  margin-bottom: 0;
}

.field-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.field-header-row label {
  margin-bottom: 0;
}

.input-textarea {
  min-height: 170px;
}

.input-empty-state {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.6rem;
}

.input-empty-state.hidden {
  display: none;
}

.helper-text {
  margin-top: 0.55rem;
  font-size: 0.9rem;
}

.reverser-actions {
  margin-bottom: 1.25rem;
}

.tool-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.95rem;
  flex-wrap: wrap;
}

.count-meta {
  margin-top: 0;
}

.inline-actions {
  margin-top: 0;
  justify-content: flex-end;
  align-items: center;
}

.btn-small {
  min-height: 38px;
  padding: 0.58rem 0.95rem;
}

.btn-clear {
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  border-radius: 999px;
}

.reverser-link-btn {
  text-decoration: none;
}

.reverser-link-btn:hover,
.reverser-link-btn:focus-visible {
  text-decoration: none;
}

.meta {
  color: var(--muted);
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #334155;
  min-height: 1.2rem;
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(1rem);
  background: rgba(33, 33, 33, 0.94);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 100;
}

.site-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.privacy-banner {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 1rem;
  width: min(92vw, 720px);
  transform: translateX(-50%);
  z-index: 90;
}

.privacy-banner-body {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  padding: 1rem;
}

.privacy-banner h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.privacy-banner p {
  margin: 0 0 0.8rem;
  font-size: 0.94rem;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.privacy-settings {
  display: none;
  margin-top: 0.9rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.85rem;
}

.privacy-settings.visible {
  display: grid;
  gap: 0.65rem;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  font-size: 0.94rem;
  color: #1f2937;
}

.privacy-check input {
  width: auto;
  min-height: auto;
  margin-top: 0.15rem;
}

.privacy-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ede9fe;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.privacy-link-button:hover,
.privacy-link-button:focus-visible {
  text-decoration: underline;
}

.footer-callout {
  background: #f7effa;
  border: 1px dashed #d6d1fa;
  border-radius: 12px;
  padding: 0.75rem;
  margin-top: 0.8rem;
}

footer {
  background: var(--footer-bg);
  color: #fff;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.05rem 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.96rem;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ede9fe;
}

.footer-inner small {
  display: block;
  margin-top: 0.5rem;
  color: #ede9fe;
}

.tricks-list {
  display: grid;
  gap: 1rem;
}

.trick {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}

.trick:last-child {
  border-bottom: 0;
}

.trick .media {
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 0.6rem 0 0.9rem;
  overflow: hidden;
  background: #f8fafc;
}

.trick .media img {
  width: 100%;
  height: auto;
  display: block;
}

.share-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.55rem;
  z-index: 30;
}

.share-fab a {
  border-radius: 999px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.share-fab a.wa {
  background: #25d366;
}

.share-fab a.fb {
  background: #5b5ce2;
}

.share-fab a:hover,
.share-fab a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.share-fab img.icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.share-fab img.icon.invert {
  filter: brightness(0) invert(1);
}

.btn img.icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.btn img.icon.invert {
  filter: brightness(0) invert(1);
}

.btn.ghost img.icon {
  margin-right: 0;
  margin-left: 0;
}

.icon-action {
  vertical-align: middle;
}

.share-label {
  margin: 0;
}

.social-links {
  display: inline-flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.meta + .actions {
  margin-top: 0.85rem;
}

.kicker {
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5b52d6;
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: inline-block;
}

.tip-return {
  margin: 1rem 0 0;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.tricks-list {
  display: grid;
  gap: 1rem;
  margin-top: 0.3rem;
}

.trick-item {
  padding: 0.8rem 0;
  border-bottom: 1px dashed #cfd8dc;
}

.trick-item:last-child {
  border-bottom: 0;
}

.trick-item h3 {
  margin-bottom: 0.4rem;
}

.trick-item p {
  margin: 0 0 0.75rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0.2rem;
}

.chip {
  display: inline-block;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: #f7effa;
  border: 1px solid #e1bee7;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
}

.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-title-row h1 {
  margin-bottom: 0.3rem;
}

.ad-caption {
  margin-top: 0.5rem;
  color: #64748b;
  font-size: 0.84rem;
}

.lead {
  font-size: 1.08rem;
  line-height: 1.6;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.tool-panel {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.tool-panel #outputText {
  flex: 1;
}

.tool-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.compact-actions {
  gap: 1rem;
}

.compact-actions .btn {
  min-width: 100px;
}

.output-actions {
  align-items: center;
}

.flat-copy {
  font-size: 1rem;
  line-height: 1.7;
}

.btn-primary {
  background: #5b5ce2;
}

.btn-primary:hover {
  background: #4b4dbe;
}

.btn-subtle {
  background: #f1efff;
  color: #5146c5;
  border: 1px solid #d6d1fa;
}

.btn-subtle:hover {
  background: #e3defe;
}

.whatsapp-btn {
  background: #43a047;
}

.whatsapp-btn:hover {
  background: #2e7d32;
}

/* --- Tool sidebar (desktop) --- */
.tool-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 130px;
  height: 100vh;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 60px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 15;
  overflow-y: auto;
}

.tool-sidebar-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px 8px;
}

.tool-sidebar-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.tool-sidebar-link:hover {
  background: #f5f5f5;
  text-decoration: none;
}

.tool-sidebar-link.active {
  background: var(--primary-ghost);
  color: var(--primary);
}

/* Offset main and header for sidebar */
header { margin-left: 130px; }
main { margin-left: 130px; }
footer { margin-left: 130px; }

/* --- Tool tab bar (mobile) --- */
.tool-tabbar {
  display: none;
}

/* --- Case converter --- */
.case-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0;
  align-items: center;
}

.case-btn {
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f1efff;
  color: #5146c5;
  border: 1px solid #d6d1fa;
  cursor: pointer;
}

.case-btn:hover {
  background: #e3defe;
}

.case-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.case-divider {
  width: 1px;
  height: 1.4rem;
  background: var(--border);
  margin: 0 0.15rem;
}

/* --- Fancy text grid --- */
.fancy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.fancy-cell {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.12s ease;
}

.fancy-cell:hover {
  background: #f0eeff;
  border-color: #d6d1fa;
}

.fancy-cell-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.fancy-cell-text {
  font-size: 1rem;
  word-break: break-word;
  line-height: 1.4;
}

.fancy-cell-copy {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Counter stats --- */
.counter-textarea {
  min-height: 220px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.stat-box {
  background: #f8f8ff;
  border: 1px solid #e8e8f0;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.2rem;
  letter-spacing: 0.03em;
}

.mobile-promo-card {
  display: none;
}

@media (max-width: 760px) {
  .topbar {
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .topbar .brand {
    justify-content: flex-start;
  }

  .topbar .links {
    display: none;
  }

  .topbar .links a {
    font-size: 0.88rem;
    padding: 0.35rem 0.55rem;
  }

  main {
    margin-top: 1rem;
    padding-bottom: 4.5rem;
  }

  html.has-infolinks-infold main {
    padding-bottom: calc(4.5rem + var(--mobile-tool-tabbar-height) + var(--infolinks-mobile-infold-height) + env(safe-area-inset-bottom, 0px));
  }

  .card {
    padding: 1rem;
  }

  main {
    width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .tool-sidebar {
    display: none;
  }

  .tool-tabbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    z-index: 2147483000;
    justify-content: space-around;
    padding: 6px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
  }

  html.has-infolinks-infold .tool-tabbar {
    bottom: 0;
  }

  .tool-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    flex: 1;
  }

  .tool-tab-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--muted);
  }

  .tool-tab-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--muted);
  }

  .tool-tab.active .tool-tab-icon {
    background: var(--primary-ghost);
    color: var(--primary);
  }

  .tool-tab.active .tool-tab-label {
    color: var(--primary);
  }

  .tool-tab:hover {
    text-decoration: none;
  }

  .privacy-banner {
    bottom: 4.8rem;
    width: calc(100vw - 1rem);
  }

  .privacy-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  header { margin-left: 0; }
  main { margin-left: 0; padding-bottom: 5rem; }
  footer { margin-left: 0; }

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

  .seen-on-row {
    grid-template-columns: 1fr;
  }

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

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

  .compact-actions {
    gap: 0.75rem;
  }

  .tool-config-row {
    grid-template-columns: 1fr;
  }

  .actions,
  .share-group {
    width: 100%;
  }

  .tool-status-row {
    align-items: stretch;
  }

  .inline-actions {
    width: 100%;
    justify-content: stretch;
  }

  .inline-actions .btn {
    flex: 1 1 0;
  }

  .field-header-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .share-group {
    flex-direction: column;
  }

  .share-group select,
  .share-group .btn {
    width: 100%;
  }

  .mobile-promo-card {
    display: block;
    background: #E8F5E9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    margin: 1rem 0;
    transition: background 0.15s ease;
  }

  .mobile-promo-card:hover,
  .mobile-promo-card:focus-visible {
    background: #dcedc8;
    text-decoration: none;
  }

  .mobile-promo-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #2D7A2F;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
  }

  .mobile-promo-icon {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
  }

  .mobile-promo-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2D7A2F;
  }

  .mobile-promo-tagline {
    display: block;
    font-size: 0.7rem;
    color: #596273;
    margin-top: 3px;
  }
}

@media (max-width: 520px) {
  .topbar h1 {
    font-size: 1.4rem;
  }
}

/* --- Cross-promotion: AI Smells --- */
.sidebar-promo-divider {
  border-top: 1px solid var(--border);
  margin: 8px 4px;
}

.sidebar-promo-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2D7A2F;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px 6px;
}

.sidebar-promo-card {
  display: block;
  background: #E8F5E9;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.sidebar-promo-card:hover,
.sidebar-promo-card:focus-visible {
  background: #dcedc8;
  text-decoration: none;
}

.sidebar-promo-icon {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.sidebar-promo-name {
  display: block;
  font-size: 0.69rem;
  font-weight: 700;
  color: #2D7A2F;
  line-height: 1.2;
}

.sidebar-promo-tagline {
  display: block;
  font-size: 0.5rem;
  color: #596273;
  margin-top: 3px;
  line-height: 1.3;
}

.seen-on-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

.seen-on-card {
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.seen-on-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  color: #fff;
}

.seen-on-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.seen-on-tiktok {
  background: #010101;
}

.seen-on-link {
  display: block;
  max-width: 200px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.seen-on-link:hover,
.seen-on-link:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.seen-on-thumb {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* --- 404 page --- */
.not-found {
  text-align: center;
  padding: 4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 10rem);
}

.not-found-inner {
  max-width: 460px;
}

.not-found-code {
  font-size: clamp(4rem, 10vw, 5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.not-found h1 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.not-found-desc {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.not-found-actions {
  margin-bottom: 1.75rem;
}

.not-found-tools-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.not-found-chips {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tool-chip {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: var(--card);
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.tool-chip:hover {
  background: var(--primary-ghost);
  color: var(--primary);
  text-decoration: none;
}

/* --- RTL support --- */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .tool-sidebar {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border);
}

[dir="rtl"] header,
[dir="rtl"] main,
[dir="rtl"] footer {
  margin-left: 0;
  margin-right: 130px;
}

[dir="rtl"] .btn .icon {
  margin-right: 0;
  margin-left: 0.35rem;
}

[dir="rtl"] .btn img.icon {
  margin-right: 0;
  margin-left: 0.5rem;
}

[dir="rtl"] .field-header-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .tool-status-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .inline-actions {
  justify-content: flex-start;
}

[dir="rtl"] .output-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] textarea,
[dir="rtl"] input {
  text-align: right;
}

[dir="rtl"] .checkbox-label {
  flex-direction: row-reverse;
}

[dir="rtl"] .separator-options {
  flex-direction: row-reverse;
}

@media (max-width: 760px) {
  [dir="rtl"] header,
  [dir="rtl"] main,
  [dir="rtl"] footer {
    margin-right: 0;
  }

  [dir="rtl"] .field-header-row {
    flex-direction: row-reverse;
  }
}
