:root, .sw-root {
  --sw-bg: #F6EAD3;
  --sw-ink: #2a1630;
  --sw-ink-soft: #6b5560;
  --sw-accent: #D7263D;
  --sw-font-display: 'Baloo 2', system-ui, sans-serif;
  --sw-font-body: 'Inter', system-ui, sans-serif;
  --red: #D7263D; --saffron: #F4A300; --emerald: #0F8B6F; --blue: #1F4E9E; --magenta: #C2185B;
  --cream: #F6EAD3; --paper: #FFF8EC; --ink: #2a1630; --soft: #6b5560;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.is-ur, body.is-ur .sw-root { --sw-font-display: 'Noto Nastaliq Urdu', 'Baloo 2', serif; --sw-font-body: 'Noto Nastaliq Urdu', 'Inter', serif; }
body.is-ur .kk { font-family: 'Noto Nastaliq Urdu', 'Inter', serif; line-height: 2; }
body.is-ur .sw-copy__title { line-height: 1.75; font-size: clamp(1.6rem, 3.4vw, 2.7rem); }
body.is-ur .sw-copy__body { line-height: 2.1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sw-topcta { background: var(--red) !important; box-shadow: 0 8px 20px rgba(215, 38, 61, .35); }
.sw-brand__mark { background: conic-gradient(from 0deg, var(--red), var(--saffron), var(--emerald), var(--blue), var(--magenta), var(--red)) !important; border-radius: 50% !important; width: 26px !important; height: 26px !important; }

/* ---------- tool section (scrolls over the fixed film) ---------- */
.kk { position: relative; z-index: 70; background: var(--paper); min-height: 100vh; padding: 0 clamp(16px, 5vw, 64px) 40px;
  box-shadow: 0 -30px 60px rgba(42, 22, 48, .18); }
.kk-border { position: absolute; left: 0; right: 0; top: -14px; height: 14px;
  background: repeating-linear-gradient(90deg, var(--red) 0 28px, var(--saffron) 28px 56px, var(--emerald) 56px 84px, var(--blue) 84px 112px, var(--magenta) 112px 140px); }
.kk-border::after { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 10px;
  background: radial-gradient(circle at 10px 0, var(--saffron) 5px, transparent 6px) 0 0 / 20px 10px repeat-x; opacity: .9; }
.kk-head { display: flex; align-items: center; justify-content: space-between; padding: 30px 0 10px; max-width: 1120px; margin: 0 auto; }
.kk-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.35rem; }
body.is-ur .kk-logo { font-family: 'Noto Nastaliq Urdu', serif; font-size: 1.2rem; }
.kk-logo__mark { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--red), var(--saffron), var(--emerald), var(--blue), var(--magenta), var(--red)); box-shadow: inset 0 0 0 6px var(--paper), 0 4px 12px rgba(0,0,0,.15); }
.kk-lang { border: 2px solid var(--ink); background: transparent; border-radius: 999px; padding: 6px 16px; font: 600 .95rem 'Noto Nastaliq Urdu', 'Inter', sans-serif; cursor: pointer; color: var(--ink); }
.kk-lang:hover { background: var(--ink); color: var(--paper); }

.kk-hero { max-width: 1120px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) 0 12px; text-align: center; }
.kk-eyebrow { display: inline-block; margin: 0; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--emerald) 14%, transparent); color: var(--emerald); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
body.is-ur .kk-eyebrow { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.kk-title { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(2.2rem, 5.4vw, 4.2rem); line-height: 1.02; margin: 16px 0 10px; letter-spacing: -.01em;
  background: linear-gradient(90deg, var(--red), var(--magenta) 40%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.is-ur .kk-title { font-family: 'Noto Nastaliq Urdu', serif; line-height: 1.9; font-size: clamp(1.8rem, 4vw, 3rem); }
.kk-sub { max-width: 56ch; margin: 0 auto 28px; color: var(--soft); font-size: 1.08rem; line-height: 1.6; }

.kk-form { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; max-width: 860px; margin: 0 auto; padding: 10px; border-radius: 22px;
  background: #fff; box-shadow: 0 18px 40px rgba(42, 22, 48, .14), inset 0 0 0 3px var(--saffron); }
.kk-form input, .kk-form select { border: 0; outline: 0; font: 500 1.08rem 'Inter', sans-serif; color: var(--ink); background: transparent; padding: 14px 16px; min-width: 0; }
body.is-ur .kk-form input, body.is-ur .kk-form select { font-family: 'Noto Nastaliq Urdu', 'Inter', serif; }
.kk-form select { border-inline-start: 2px dashed #eadbc2; cursor: pointer; }
.kk-go { border: 0; border-radius: 14px; padding: 14px 26px; cursor: pointer; font: 700 1.05rem 'Baloo 2', sans-serif; color: #fff;
  background: linear-gradient(135deg, var(--red), var(--magenta)); box-shadow: 0 8px 18px rgba(215, 38, 61, .35); transition: transform .15s; }
body.is-ur .kk-go { font-family: 'Noto Nastaliq Urdu', serif; font-size: 1rem; }
.kk-go:hover { transform: translateY(-1px); }
.kk-form.is-busy .kk-go { opacity: .7; pointer-events: none; }
.kk-form.is-busy .kk-go span::after { content: " ⏳"; }
.kk-try { margin-top: 14px; color: var(--soft); font-size: .92rem; }
.kk-try button { margin: 4px; border: 1px solid #e6d3b3; background: #fff; border-radius: 999px; padding: 5px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.kk-try button:hover { border-color: var(--red); color: var(--red); }

.kk-captcha { max-width: 520px; margin: 20px auto 0; padding: 16px; border-radius: 16px; background: #fff7e1; border: 2px dashed var(--saffron); }
.kk-captcha input { width: 70px; padding: 8px; border-radius: 10px; border: 2px solid #e6d3b3; font: 600 1rem 'Inter'; text-align: center; }
.kk-captcha button { margin-inline-start: 8px; border: 0; border-radius: 10px; padding: 9px 16px; background: var(--emerald); color: #fff; font-weight: 700; cursor: pointer; }

.kk-status { max-width: 860px; margin: 18px auto 0; text-align: center; min-height: 1.4em; color: var(--soft); }
.kk-status.is-busy { color: var(--blue); font-weight: 600; }
.kk-status.is-busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-end: 8px; vertical-align: -2px; border-radius: 50%;
  border: 3px solid var(--saffron); border-top-color: var(--red); animation: kkspin .8s linear infinite; }
.kk-status.is-warn { color: var(--red); font-weight: 600; }
@keyframes kkspin { to { transform: rotate(360deg); } }

.kk-results { max-width: 1120px; margin: 26px auto 0; scroll-margin-top: 20px; }
.kk-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.kk-total { font-size: 1.1rem; }
.kk-total b { font: 800 2rem 'Baloo 2', sans-serif; color: var(--red); }
.kk-total q { font-weight: 700; }
.kk-actions { display: flex; gap: 8px; }
.kk-btn { border: 0; border-radius: 12px; padding: 11px 18px; cursor: pointer; font: 700 .98rem 'Inter', sans-serif; color: #fff; background: var(--emerald); box-shadow: 0 6px 14px rgba(15, 139, 111, .3); }
body.is-ur .kk-btn { font-family: 'Noto Nastaliq Urdu', serif; }
.kk-btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #e6d3b3; }
.kk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 12px; }
.kk-tab { border: 2px solid #ead9bd; background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: 600 .92rem inherit; color: var(--ink); font-family: inherit; }
.kk-tab i { font-style: normal; opacity: .6; margin-inline-start: 4px; }
.kk-tab.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.kk-filter { width: 100%; max-width: 360px; padding: 10px 14px; border-radius: 12px; border: 2px solid #ead9bd; font: 500 .98rem inherit; font-family: inherit; margin-bottom: 12px; background: #fff; }
.kk-tablewrap { overflow: auto; max-height: 70vh; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(42, 22, 48, .08); }
.kk-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.kk-table th { position: sticky; top: 0; background: var(--ink); color: var(--paper); text-align: start; padding: 12px 14px; font-weight: 600; z-index: 1; }
.kk-table td { padding: 10px 14px; border-bottom: 1px solid #f2e6d2; }
.kk-table tr:nth-child(even) td { background: #fffaf1; }
.kk-table td:first-child { color: var(--soft); width: 48px; }
.kk-table td.kw { font-weight: 600; }
.g { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.g--related { background: #fde3e6; color: var(--red); }
.g--questions { background: #dcf3ec; color: var(--emerald); }
.g--commercial { background: #fdefd0; color: #9a5d00; }
.g--prepositions { background: #e1e8f7; color: var(--blue); }
.g--comparisons { background: #f8dbe8; color: var(--magenta); }
.g--alphabetical { background: #ede6f3; color: #5b3c7a; }
.kk-copy { border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; color: var(--soft); }
.kk-copy:hover { color: var(--red); }
.kk-note { color: var(--soft); font-size: .92rem; margin-top: 12px; }

.kk-how, .kk-faq { max-width: 1120px; margin: 64px auto 0; scroll-margin-top: 30px; }
.kk-how h2, .kk-faq h2 { font: 800 clamp(1.6rem, 3vw, 2.3rem) 'Baloo 2', sans-serif; margin: 0 0 18px; }
body.is-ur .kk-how h2, body.is-ur .kk-faq h2 { font-family: 'Noto Nastaliq Urdu', serif; line-height: 1.9; }
.kk-how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.kk-how li { counter-increment: s; background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 8px 22px rgba(42, 22, 48, .07); border-top: 6px solid var(--red); line-height: 1.55; }
.kk-how li:nth-child(2) { border-top-color: var(--emerald); } .kk-how li:nth-child(3) { border-top-color: var(--blue); }
.kk-how li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--saffron); color: #fff; font: 800 1.1rem 'Baloo 2'; margin-bottom: 10px; }
.kk-how b { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.kk-faq details { background: #fff; border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 6px 16px rgba(42, 22, 48, .06); }
.kk-faq summary { cursor: pointer; font-weight: 700; }
.kk-faq p { color: var(--soft); line-height: 1.6; margin: 10px 0 0; }
.kk-foot { max-width: 1120px; margin: 56px auto 0; padding-top: 22px; border-top: 2px dashed #ead9bd; text-align: center; color: var(--soft); font-size: .92rem; }
.kk-foot a { color: var(--red); font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
  .kk-form { grid-template-columns: 1fr; }
  .kk-form select { border-inline-start: 0; border-top: 2px dashed #eadbc2; }
  .kk-how ol { grid-template-columns: 1fr; }
  .kk-table td:nth-child(4), .kk-table th:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.is-ur .kk-sub, body.is-ur .kk-note, body.is-ur .kk-how li, body.is-ur .kk-faq p { line-height: 2.3; }
/* about + footer NAP */
.kk-about .kk-sub { max-width: 860px; margin: 0 0 12px; text-align: start; }
.kk-about a { color: var(--red); font-weight: 700; text-decoration: none; }
.kk-foot p { margin: 4px 0; }
.kk-nap { font-size: .85rem; }
.kk-footnav { margin-top: 6px; }
/* Google Ads (Phase 2) */
.kk-gads { margin: 4px 0 14px; padding: 14px 18px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px #f4d58a; }
.kk-gads-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.kk-gads-row p { margin: 0; flex: 1 1 320px; }
.kk-btn--gads { background: var(--blue, #1F4E9E); box-shadow: 0 6px 14px rgba(31, 78, 158, .28); }
.kk-btn:disabled { opacity: .6; cursor: wait; }
.kk-linkbtn { background: none; border: 0; color: var(--red); font: 600 .95rem 'Inter', sans-serif; cursor: pointer; text-decoration: underline; padding: 8px; }
body.is-ur .kk-linkbtn { font-family: 'Noto Nastaliq Urdu', serif; }
#gAcct { font: inherit; padding: 6px 10px; border-radius: 10px; border: 2px solid #e6d3b3; background: var(--paper, #FFF8EC); max-width: 100%; }
.kk-gstatus { margin: 8px 0 0; font-weight: 600; font-size: .92rem; min-height: 0; }
.kk-gstatus:empty { display: none; }
.kk-gstatus.is-ok { color: var(--emerald); } .kk-gstatus.is-warn { color: var(--red); } .kk-gstatus.is-busy { color: var(--soft); }
.kk-table .m { display: none; }
.kk-table.has-m .m { display: table-cell; }
.kk-table td.vol { font-weight: 700; font-variant-numeric: tabular-nums; }
.kk-table td.cpc { white-space: nowrap; font-variant-numeric: tabular-nums; }
.kk-sort { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline dotted; }
.c { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.c--low { background: #dff3ec; color: #0b6b55; } .c--medium { background: #fff0cc; color: #8a5a00; } .c--high { background: #fde0e3; color: #a3172b; } .c--unknown, .c--unspecified { color: var(--soft); }
@media (max-width: 720px) { .kk-table.has-m td:nth-child(3), .kk-table.has-m th:nth-child(3) { display: none; } }
.kk-gads-row[hidden] { display: none; }
