/* ============================================================
   mettavisaratoolsonline.com — Global Stylesheet
   Colorful, modern, user-friendly design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Base palette */
  --clr-bg: #FAFBFF;
  --clr-surface: #FFFFFF;
  --clr-border: #E5E7F0;
  --clr-border-strong: #D1D5E0;
  --clr-text: #0F172A;
  --clr-muted: #64748B;
  --clr-muted-2: #94A3B8;

  /* Brand accents */
  --clr-accent: #6366F1;            /* indigo */
  --clr-accent-2: #8B5CF6;          /* violet */
  --clr-accent-3: #EC4899;          /* pink */
  --clr-accent-dark: #4F46E5;
  --clr-accent-light: #EEF2FF;

  --clr-green: #10B981;
  --clr-green-light: #ECFDF5;
  --clr-orange: #F59E0B;
  --clr-orange-light: #FFFBEB;
  --clr-red: #EF4444;
  --clr-red-light: #FEF2F2;
  --clr-purple: #8B5CF6;
  --clr-purple-light: #F5F3FF;
  --clr-pink: #EC4899;
  --clr-pink-light: #FDF2F8;
  --clr-teal: #14B8A6;
  --clr-teal-light: #F0FDFA;
  --clr-blue: #3B82F6;
  --clr-blue-light: #EFF6FF;
  --clr-yellow: #FACC15;
  --clr-yellow-light: #FEFCE8;

  /* Brand gradients */
  --grad-brand: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
  --grad-brand-soft: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 50%, #FDF2F8 100%);
  --grad-hero: linear-gradient(135deg, #4338CA 0%, #7C3AED 45%, #DB2777 100%);
  --grad-cta: linear-gradient(90deg, #6366F1, #8B5CF6);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
  --shadow-md: 0 8px 24px rgba(99,102,241,.10), 0 4px 8px rgba(15,23,42,.04);
  --shadow-lg: 0 20px 48px rgba(15,23,42,.12);
  --shadow-glow: 0 10px 40px rgba(139,92,246,.25);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --transition: .2s cubic-bezier(.4,0,.2,1);
  --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--clr-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-accent-dark); text-decoration: underline; }

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

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 22px; }
main { flex: 1; }

/* ── Header ── */
header {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--clr-border);
  position: sticky; top: 0; z-index: 100;
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}

.logo {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 18px;
  color: var(--clr-text); text-decoration: none; flex-shrink: 0;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--grad-brand);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  box-shadow: 0 6px 18px rgba(139,92,246,.35);
}
.logo-text-accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  font-size: 14px; font-weight: 600;
  color: var(--clr-muted);
  padding: 8px 14px; border-radius: 10px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
nav a:hover { background: var(--clr-accent-light); color: var(--clr-accent-dark); text-decoration: none; }
nav a.active { color: var(--clr-accent-dark); background: var(--clr-accent-light); }

.nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 240px;
  transition: all var(--transition);
}
.nav-search:focus-within { border-color: var(--clr-accent); box-shadow: 0 0 0 4px rgba(99,102,241,.12); background: #fff; }
.nav-search input {
  border: none; background: transparent;
  font-family: var(--font); font-size: 13.5px;
  color: var(--clr-text); outline: none; width: 100%;
}
.nav-search input::placeholder { color: var(--clr-muted-2); }
.nav-search svg { color: var(--clr-muted); flex-shrink: 0; }

/* Mobile menu toggle */
.menu-toggle { display: none; background: transparent; border: none; padding: 6px; cursor: pointer; color: var(--clr-text); }

/* ── Ad slots ── */
.ad-slot {
  background: linear-gradient(135deg, #FAFBFF, #F5F3FF);
  border: 1.5px dashed var(--clr-border-strong);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-muted);
  font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 600;
}
.ad-slot-banner { min-height: 90px; width: 100%; margin: 24px 0; }
.ad-slot-square { min-height: 250px; width: 300px; max-width: 100%; }
.ad-slot-leaderboard { min-height: 90px; width: 100%; max-width: 728px; margin: 0 auto 24px; }
.ad-slot-sidebar { min-height: 600px; width: 100%; }
.ad-slot-inarticle { min-height: 250px; width: 100%; margin: 24px 0; }

/* ── Hero / Page Header ── */
.page-hero {
  background: var(--grad-hero);
  color: #fff;
  padding: 58px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.10) 0, transparent 40%);
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  margin-bottom: 12px; line-height: 1.15;
  letter-spacing: -0.02em;
}
.page-hero p {
  font-size: 17px; opacity: .92;
  max-width: 620px; margin: 0 auto;
  line-height: 1.55;
}

/* ── Tool page layout ── */
.tool-page-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 32px 0 48px;
}
.tool-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
}
.tool-card h2 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 20px; color: var(--clr-text);
  display: flex; align-items: center; gap: 10px;
}
.tool-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* ── Form elements ── */
textarea, input[type=text], input[type=number], input[type=email],
input[type=url], input[type=password], input[type=date], select {
  width: 100%;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--clr-text);
  background: #fff;
  border: 1.5px solid var(--clr-border);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea:focus, input:focus, select:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 4px rgba(99,102,241,.14);
}
textarea { resize: vertical; min-height: 150px; line-height: 1.6; font-family: var(--mono); font-size: 13.5px; }

label { font-size: 13px; font-weight: 600; color: var(--clr-text); display: block; margin-bottom: 7px; }
.form-group { margin-bottom: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-cta);
  color: #fff;
  font-family: var(--font);
  font-size: 14px; font-weight: 600;
  border: none; border-radius: 10px;
  padding: 11px 22px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(99,102,241,.25);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,.38); }
.btn:active { transform: translateY(0); }

.btn-secondary {
  background: #fff; color: var(--clr-text);
  border: 1.5px solid var(--clr-border-strong);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--clr-bg); border-color: var(--clr-accent); color: var(--clr-accent-dark); box-shadow: var(--shadow-sm); }

.btn-success { background: linear-gradient(90deg, #10B981, #059669); }
.btn-success:hover { box-shadow: 0 8px 20px rgba(16,185,129,.35); }

.btn-danger { background: linear-gradient(90deg, #EF4444, #DC2626); }

.btn-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ── Result box ── */
.result-box {
  background: linear-gradient(135deg, #FAFBFF, #F5F3FF);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  min-height: 80px;
  word-break: break-all;
  margin-top: 16px;
  position: relative;
}

.copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: #fff;
  border: 1px solid var(--clr-border-strong);
  border-radius: 7px; padding: 5px 11px;
  font-size: 12px; font-family: var(--font);
  font-weight: 600; color: var(--clr-muted);
  cursor: pointer; transition: all var(--transition);
}
.copy-btn:hover { color: var(--clr-accent); border-color: var(--clr-accent); background: var(--clr-accent-light); }

/* ── Stats bar ── */
.stats-bar {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 18px;
  padding: 18px;
  background: linear-gradient(135deg, var(--clr-accent-light), #F5F3FF);
  border-radius: var(--radius);
  border: 1px solid var(--clr-border);
}
.stat { flex: 1; min-width: 110px; text-align: center; }
.stat-val { font-size: 24px; font-weight: 800; color: var(--clr-accent-dark); line-height: 1.1; }
.stat-label { font-size: 11px; color: var(--clr-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; font-weight: 600; }

/* ── Related tools ── */
.related-tools { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.related-tools h3 { font-size: 13px; font-weight: 700; margin-bottom: 14px; color: var(--clr-muted); text-transform: uppercase; letter-spacing: .06em; }
.related-tool-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  color: var(--clr-text);
  text-decoration: none;
  transition: all var(--transition);
}
.related-tool-link:hover { background: var(--grad-brand-soft); color: var(--clr-accent-dark); text-decoration: none; transform: translateX(3px); }
.related-tool-link .ricon { font-size: 17px; }

/* ── Homepage hero ── */
.home-hero {
  background: var(--grad-hero);
  color: #fff;
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,.14) 0, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,.12) 0, transparent 35%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M50 50v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-40V6h-2v4h-4v2h4v4h2v-4h4v-2h-4zM10 50v-4H8v4H4v2h4v4h2v-4h4v-2h-4zM10 10V6H8v4H4v2h4v4h2v-4h4V10h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.home-hero > .container { position: relative; }
.home-hero .badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
}
.home-hero h1 {
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 18px; letter-spacing: -0.025em;
}
.home-hero h1 span {
  background: linear-gradient(90deg, #FBBF24, #F472B6, #A78BFA);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 12px rgba(251,191,36,.4));
}
.home-hero p { font-size: 18px; opacity: .92; max-width: 600px; margin: 0 auto 34px; line-height: 1.55; }

.home-search {
  display: flex;
  max-width: 560px; margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(15,23,42,.3);
  overflow: hidden; position: relative;
}
.home-search input {
  flex: 1; padding: 16px 20px;
  border: none; font-size: 15.5px;
  background: transparent; color: var(--clr-text);
  outline: none; min-width: 0;
  font-family: var(--font);
}
.home-search button {
  background: var(--grad-cta);
  border: none; color: #fff;
  padding: 0 28px;
  font-size: 14.5px; font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: filter var(--transition);
}
.home-search button:hover { filter: brightness(1.08); }

/* ── Home stats ── */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 620px; margin: 34px auto 0;
  position: relative;
}
.home-stat {
  text-align: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 14px 8px;
}
.home-stat strong { display: block; font-size: 26px; font-weight: 800; color: #fff; }
.home-stat span { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* ── Category grid ── */
.cats-section { padding: 36px 0 20px; }
.section-title {
  font-size: 26px; font-weight: 800;
  margin-bottom: 6px; letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 10px;
}
.section-title .emj { font-size: 28px; }
.section-title span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-subtitle { color: var(--clr-muted); font-size: 14.5px; margin-bottom: 20px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.cat-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}
.cat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cat-accent, var(--clr-accent));
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--cat-accent, var(--clr-accent)); }

.cat-card-head {
  padding: 18px 18px 12px;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.cat-card-head .icon {
  font-size: 22px;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cat-bg, var(--clr-accent-light));
}
.cat-card-body { padding: 0 0 8px; }

.tool-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px;
  border-top: 1px solid var(--clr-border);
  font-size: 14px; font-weight: 500;
  color: var(--clr-text);
  text-decoration: none;
  transition: all var(--transition);
}
.tool-link:hover {
  background: var(--cat-hover-bg, var(--clr-accent-light));
  color: var(--cat-accent, var(--clr-accent-dark));
  text-decoration: none;
  padding-left: 22px;
}
.tool-link-arrow { color: var(--clr-muted-2); font-size: 13px; transition: transform var(--transition); }
.tool-link:hover .tool-link-arrow { transform: translateX(3px); color: var(--cat-accent, var(--clr-accent)); }

/* Category colour themes */
.cat-image { --cat-accent: #EC4899; --cat-bg: #FDF2F8; --cat-hover-bg: #FCE7F3; }
.cat-text  { --cat-accent: #8B5CF6; --cat-bg: #F5F3FF; --cat-hover-bg: #EDE9FE; }
.cat-dev   { --cat-accent: #10B981; --cat-bg: #ECFDF5; --cat-hover-bg: #D1FAE5; }
.cat-file  { --cat-accent: #3B82F6; --cat-bg: #EFF6FF; --cat-hover-bg: #DBEAFE; }
.cat-calc  { --cat-accent: #F59E0B; --cat-bg: #FFFBEB; --cat-hover-bg: #FEF3C7; }
.cat-sec   { --cat-accent: #EF4444; --cat-bg: #FEF2F2; --cat-hover-bg: #FEE2E2; }

.cat-image .cat-card-head { color: #9D174D; }
.cat-text  .cat-card-head { color: #5B21B6; }
.cat-dev   .cat-card-head { color: #065F46; }
.cat-file  .cat-card-head { color: #1E40AF; }
.cat-calc  .cat-card-head { color: #92400E; }
.cat-sec   .cat-card-head { color: #991B1B; }

/* ── Footer ── */
footer {
  background: linear-gradient(180deg, #0F172A 0%, #1E1B4B 100%);
  color: #94A3B8;
  padding: 56px 0 28px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(148,163,184,.15);
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; display: flex; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: #94A3B8; max-width: 320px; }

.footer-col h4 { color: #F1F5F9; font-size: 12.5px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-col a {
  display: block; color: #94A3B8;
  font-size: 13.5px; margin-bottom: 8px;
  text-decoration: none; transition: color var(--transition);
}
.footer-col a:hover { color: #A5B4FC; text-decoration: none; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; font-size: 12.5px;
  flex-wrap: wrap; gap: 8px;
  color: #94A3B8;
}
.footer-bottom a { color: #A5B4FC; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 14px 0; font-size: 13px;
  color: var(--clr-muted);
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--clr-muted); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { color: var(--clr-accent); }
.breadcrumb .sep { opacity: .4; }

/* ── Info / SEO content ── */
.info-section {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
.info-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.info-section h3 { font-size: 15px; font-weight: 700; margin: 22px 0 10px; color: var(--clr-text); }
.info-section p { font-size: 14.5px; color: #475569; line-height: 1.75; margin-bottom: 10px; }
.info-section ul { padding-left: 22px; }
.info-section li { font-size: 14.5px; color: #475569; line-height: 1.75; margin-bottom: 5px; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: #0F172A; color: #fff;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(80px); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── Color swatch ── */
.color-preview {
  width: 100%; height: 140px;
  border-radius: 12px;
  border: 1px solid var(--clr-border);
  margin-bottom: 16px;
  transition: background .15s;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

/* ── Range ── */
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  border-radius: 3px;
  background: var(--clr-border);
  outline: none; padding: 0;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad-cta);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(99,102,241,.45);
}
input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border: none;
  border-radius: 50%;
  background: var(--clr-accent);
  cursor: pointer;
}

/* ── Drop zone ── */
.drop-zone {
  border: 2px dashed var(--clr-border-strong);
  border-radius: var(--radius);
  padding: 44px 20px; text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: linear-gradient(135deg, #FAFBFF, #F5F3FF);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--clr-accent);
  background: var(--clr-accent-light);
}
.drop-zone .dz-icon { font-size: 44px; margin-bottom: 14px; }
.drop-zone p { color: var(--clr-muted); font-size: 14.5px; }
.drop-zone strong { color: var(--clr-accent-dark); }

/* ── Tag input ── */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--clr-accent-light);
  color: var(--clr-accent-dark);
  font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 100px;
}

/* ── Diff viewer ── */
.diff-add { background: #DCFCE7; color: #166534; padding: 1px 3px; border-radius: 3px; }
.diff-remove { background: #FEE2E2; color: #991B1B; padding: 1px 3px; border-radius: 3px; text-decoration: line-through; }

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  max-width: 520px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  z-index: 9998;
  display: none;
  align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner.show { display: flex; animation: slideUp .3s ease; }
.cookie-banner p { font-size: 13px; color: var(--clr-muted); flex: 1; min-width: 220px; margin: 0; }
.cookie-banner p a { color: var(--clr-accent); font-weight: 600; }
.cookie-banner button {
  background: var(--grad-cta); color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ── Why us grid ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--clr-accent); }
.why-icon {
  font-size: 32px; margin-bottom: 12px;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--grad-brand-soft);
  display: flex; align-items: center; justify-content: center;
}
.why-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--clr-muted); line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .tool-page-wrap { grid-template-columns: 1fr; }
  .tool-sidebar { flex-direction: column; }
  .ad-slot-sidebar { min-height: 250px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  nav .nav-search { display: none; }
  .home-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .home-hero { padding: 54px 0 48px; }
  .page-hero { padding: 44px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  nav { display: none; position: absolute; top: 68px; left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: stretch;
        padding: 14px; gap: 4px; border-bottom: 1px solid var(--clr-border);
        box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a { text-align: center; padding: 12px 14px; }
  .ad-slot-banner { min-height: 70px; }
  .header-inner { height: 60px; }
  .tool-card { padding: 22px; }
  .info-section { padding: 22px; }
  .btn-group .btn, .btn-group .btn-secondary { flex: 1 1 auto; justify-content: center; }
}
