/* ============================================================
   CALCULOOS.COM — GLOBAL STYLESHEET
   Theme: Fresh Mint
   Fonts: Bricolage Grotesque + DM Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Mono:wght@400;500&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

/* ── Design tokens ── */
:root {
  /* Brand colours */
  --green:        #00c896;
  --green-dark:   #009e78;
  --green-light:  #e8fdf7;
  --green-mid:    #c8ece6;
  --navy:         #0d1f1c;
  --navy-mid:     #1a3632;
  --sage:         #567870;
  --sage-light:   #7a9e98;
  --sage-xlight:  #b8d4ce;

  /* Neutrals */
  --white:        #ffffff;
  --off-white:    #f8fffe;
  --surface:      #ffffff;
  --surface2:     #f0faf8;
  --border:       #e0f0ec;
  --border-dark:  #c8e8e2;
  --text:         #0d1f1c;
  --muted:        #567870;
  --hint:         #9abcb6;

  /* Semantic */
  --health:       #ff6b6b;
  --health-bg:    #fff0f0;
  --finance:      #4a9eff;
  --finance-bg:   #eef4ff;
  --cooking:      #ffb347;
  --cooking-bg:   #fff8ec;
  --daily:        #a78bfa;
  --daily-bg:     #f3f0ff;
  --conversion:   #00c896;
  --conversion-bg:#e8fdf7;

  /* Typography */
  --font:         'Bricolage Grotesque', system-ui, sans-serif;
  --mono:         'DM Mono', 'Courier New', monospace;

  /* Spacing scale */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-green: 0 8px 28px rgba(0,200,150,0.15);

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-normal: 0.22s ease;

  /* Layout */
  --container: 1140px;
  --header-h:  66px;
}

/* ── Base ── */
body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* RTL support (Arabic) */
[dir="rtl"] { direction: rtl; }

/* ── Typography ── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; color: var(--navy); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--navy); }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--navy); }
h4 { font-size: 1rem; font-weight: 600; color: var(--navy); }
p  { font-size: 0.95rem; color: var(--muted); line-height: 1.75; }
a  { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; transition: color var(--t-fast); }
a:hover { color: var(--navy); }
code { font-family: var(--mono); font-size: 0.85em; background: var(--green-light); color: var(--green-dark); padding: 2px 6px; border-radius: 4px; }
strong { font-weight: 700; color: var(--navy); }

/* ── Layout helpers ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }
.section { padding: var(--sp-16) 0; }
.section-sm { padding: var(--sp-10) 0; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  width: 100%;
}
.logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--green); }

/* Site nav */
.site-nav { display: flex; align-items: center; gap: var(--sp-1); }
.site-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--navy); background: var(--surface2); }
.site-nav a.active { color: var(--green-dark); background: var(--green-light); }

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px 6px;
}
.lang-btn {
  font-size: 11px;
  font-weight: 700;
  color: var(--sage);
  background: transparent;
  border: none;
  padding: 4px 8px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t-fast);
  letter-spacing: 0.04em;
}
.lang-btn:hover { color: var(--navy); }
.lang-btn.active { background: var(--green); color: var(--white); }

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: var(--sp-4);
  flex-direction: column;
  gap: var(--sp-1);
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px;
  font-weight: 600;
  color: var(--sage);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.mobile-menu a:hover { background: var(--surface2); color: var(--navy); }
.mobile-menu a.active { background: var(--green-light); color: var(--green-dark); }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: var(--sp-4) 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a {
  font-size: 13px;
  font-weight: 500;
  color: var(--sage-light);
  text-decoration: none;
  transition: color var(--t-fast);
}
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb .sep { color: var(--sage-xlight); font-size: 12px; }
.breadcrumb .current { font-size: 13px; font-weight: 600; color: var(--navy); }

/* ── CALCULATOR CARD ── */
.calc-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-normal);
}
.calc-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-green);
  transform: translateY(-3px);
}
.calc-card-header {
  padding: var(--sp-5) var(--sp-6);
  background: var(--green-light);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.calc-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.calc-card-title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.calc-card-sub { font-size: 12px; color: var(--sage); }
.calc-card-body { padding: var(--sp-6); }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.form-label .optional {
  font-size: 11px;
  font-weight: 500;
  color: var(--sage-light);
  margin-left: 4px;
}
.form-input {
  width: 100%;
  border: 2px solid var(--border-dark);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -moz-appearance: textfield;
}
.form-input::-webkit-outer-spin-button,
.form-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.form-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,200,150,0.15);
}
.form-input.error { border-color: #e84040; }
.form-select {
  width: 100%;
  border: 2px solid var(--border-dark);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  outline: none;
  cursor: pointer;
  transition: border-color var(--t-fast);
  appearance: none;
  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='%23567870' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,200,150,0.15); }
.form-hint { font-size: 12px; color: var(--sage-light); }
.form-error { font-size: 12px; color: #e84040; display: none; }
.form-error.visible { display: block; }

/* Toggle switch for units */
.unit-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px;
  width: fit-content;
}
.unit-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--sage);
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t-fast);
  letter-spacing: 0.02em;
}
.unit-btn.active { background: var(--green); color: var(--white); }

/* ── CALCULATE BUTTON ── */
.btn-calc {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  letter-spacing: 0.01em;
  margin-top: var(--sp-2);
}
.btn-calc:hover { background: var(--green); transform: translateY(-1px); box-shadow: var(--shadow-green); }
.btn-calc:active { transform: translateY(0); }
.btn-reset {
  width: 100%;
  background: transparent;
  color: var(--sage);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: var(--r-md);
  border: 2px solid var(--border-dark);
  cursor: pointer;
  transition: all var(--t-fast);
  margin-top: var(--sp-2);
}
.btn-reset:hover { border-color: var(--green); color: var(--green-dark); }
.btn-secondary {
  background: var(--green-light);
  color: var(--green-dark);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--r-md);
  border: 2px solid var(--green-mid);
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-secondary:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* ── RESULT BOX ── */
.result-box {
  background: var(--green-light);
  border: 2px solid var(--green-mid);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-top: var(--sp-5);
  display: none;
  animation: fadeIn 0.3s ease;
}
.result-box.visible { display: block; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.result-primary {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-2);
}
.result-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1.5px solid var(--green-mid);
}
.result-item { }
.result-item-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.result-item-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--sage-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.result-interpretation {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
}
.interp-normal { background: #edfdf4; color: #1a7a45; border: 1.5px solid #a8e6c4; }
.interp-warning { background: #fff8ec; color: #9a6200; border: 1.5px solid #ffd980; }
.interp-danger  { background: #fff0f0; color: #cc3333; border: 1.5px solid #ffb3b3; }

/* ── CHART container ── */
.chart-container {
  position: relative;
  width: 100%;
  height: 260px;
  margin-top: var(--sp-5);
}

/* ── CATEGORY BADGE ── */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.cat-health    { background: var(--health-bg);    color: var(--health); }
.cat-finance   { background: var(--finance-bg);   color: var(--finance); }
.cat-cooking   { background: var(--cooking-bg);   color: #d48000; }
.cat-daily     { background: var(--daily-bg);     color: #7c4dff; }
.cat-conversion{ background: var(--conversion-bg);color: var(--green-dark); }

/* ── INFO SECTIONS ── */
.info-section { padding: var(--sp-16) 0; }
.info-section h2 { margin-bottom: var(--sp-4); }
.info-section p  { margin-bottom: var(--sp-4); max-width: 720px; }
.info-section h3 { margin: var(--sp-8) 0 var(--sp-3); }
.info-section ul, .info-section ol { margin: 0 0 var(--sp-4) var(--sp-6); }
.info-section li { font-size: 0.95rem; color: var(--muted); line-height: 1.75; margin-bottom: var(--sp-2); }
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-4) 0 var(--sp-6);
  font-size: 14px;
}
.info-table th {
  background: var(--green-light);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--green-mid);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.info-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
.info-table tr:hover td { background: var(--surface2); }

/* ── FAQ ── */
.faq-list { margin: var(--sp-4) 0; }
.faq-item {
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--t-fast);
}
.faq-item:hover { border-color: var(--green-mid); }
.faq-item[open] { border-color: var(--green); }
.faq-item summary {
  padding: var(--sp-5) var(--sp-6);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: var(--sp-6);
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--green);
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-body {
  padding: 0 var(--sp-6) var(--sp-5);
  border-top: 1.5px solid var(--border);
  padding-top: var(--sp-4);
}
.faq-body p { font-size: 14px; margin-bottom: 0; }
.faq-body code { font-family: var(--mono); background: var(--green-light); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* ── CALLOUT BOX ── */
.callout {
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-5) 0;
  border-left: 4px solid;
}
.callout-tip   { background: var(--green-light); border-color: var(--green); }
.callout-info  { background: #eef4ff; border-color: var(--finance); }
.callout-warn  { background: #fff8ec; border-color: var(--cooking); }
.callout-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.callout-tip  .callout-title { color: var(--green-dark); }
.callout-info .callout-title { color: var(--finance); }
.callout-warn .callout-title { color: #9a6200; }
.callout p { font-size: 14px; margin: 0; }

/* ── RELATED TOOLS ── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}
.related-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  transition: all var(--t-normal);
}
.related-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}
.related-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.related-card-text {}
.related-card-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.related-card-cat  { font-size: 11px; color: var(--sage-light); font-weight: 600; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: var(--sp-16) 0 var(--sp-8);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-10);
}
.footer-brand .logo { color: var(--white); }
.footer-brand .logo span { color: var(--green); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.7; margin-top: var(--sp-3); max-width: 240px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-4);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-bottom span { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-lang-row { display: flex; gap: var(--sp-2); }
.footer-lang-btn {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t-fast);
  letter-spacing: 0.04em;
}
.footer-lang-btn:hover, .footer-lang-btn.active { background: var(--green); color: var(--white); border-color: var(--green); }

/* ── HERO ── */
.page-hero {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: var(--sp-12) 0 var(--sp-10);
}
.page-hero .cat-badge { margin-bottom: var(--sp-4); }
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero .hero-desc { font-size: 16px; max-width: 600px; margin-bottom: 0; }

/* ── HOMEPAGE ── */
.home-hero {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: var(--sp-16) 0 var(--sp-12);
  text-align: center;
}
.home-hero h1 { margin: 0 auto var(--sp-5); max-width: 700px; }
.home-hero h1 mark {
  background: var(--green);
  color: var(--white);
  padding: 0 8px 3px;
  border-radius: var(--r-sm);
  font-style: normal;
}
.home-hero p { max-width: 520px; margin: 0 auto var(--sp-8); font-size: 17px; }
.search-bar {
  display: flex;
  gap: var(--sp-2);
  max-width: 520px;
  margin: 0 auto var(--sp-8);
  background: var(--white);
  border: 2px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-bar:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,200,150,0.12), var(--shadow-md);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--navy);
  background: transparent;
}
.search-bar input::placeholder { color: var(--sage-xlight); }
.search-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.search-btn:hover { background: var(--green); }
.cat-pills { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }
.cat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  background: var(--white);
  border: 2px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--r-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-fast);
}
.cat-pill:hover { border-color: var(--green); color: var(--green-dark); transform: translateY(-1px); }
.cat-pill.active { background: var(--green); border-color: var(--green); color: var(--white); }

/* ── CATEGORY SECTION ── */
.cat-section { padding: var(--sp-12) 0; }
.cat-section + .cat-section { border-top: 2px solid var(--border); }
.cat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
.cat-header-left { display: flex; align-items: center; gap: var(--sp-4); }
.cat-header-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.cat-header-title { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 2px; letter-spacing: -0.02em; }
.cat-header-sub { font-size: 13px; color: var(--sage-light); font-weight: 500; }
.view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.view-all:hover { color: var(--navy); }

/* ── TOOL CARDS grid ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}
.tool-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  transition: all var(--t-normal);
}
.tool-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-green);
}
.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.tool-card-body {}
.tool-card-name { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.tool-card-desc { font-size: 12px; color: var(--sage-light); line-height: 1.5; }
.tool-card-arrow { margin-left: auto; color: var(--border-dark); font-size: 16px; align-self: center; flex-shrink: 0; transition: color var(--t-fast), transform var(--t-fast); }
.tool-card:hover .tool-card-arrow { color: var(--green); transform: translateX(3px); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--green-light);
  border-top: 2px solid var(--green-mid);
  border-bottom: 2px solid var(--green-mid);
  padding: var(--sp-5) 0;
}
.stats-inner { display: flex; align-items: center; justify-content: center; gap: var(--sp-12); flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--green-dark); letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--sage); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--green-mid); border-radius: 4px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}
@media (max-width: 768px) {
  :root { --header-h: 58px; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-inner { gap: var(--sp-8); }
  .home-hero { padding: var(--sp-10) 0; }
  .cat-header { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .lang-switcher { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--sp-4); }
  .calc-card-body { padding: var(--sp-4); }
  .info-section { padding: var(--sp-10) 0; }
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.hidden { display: none !important; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
