/* ================= SEO PAGE (/features/seo): 9 section =================
   Dùng lại .pp-sec/.pp-head/.pp-card; mockup riêng, tiền tố .seo-. */

/* ---- 1. hero ---- */
.seo-hero { padding-bottom: 0; }
.seo-hero .pp-hero-in { padding-top: 54px; }
.seo-hero h1 { max-width: 980px; margin-inline: auto; }
.seo-stage { position: relative; height: 420px; max-width: 1240px; margin: 0 auto; }
.seo-hero-mascot { position: absolute; left: 3%; bottom: -4px; height: 330px; width: auto; z-index: 1;
  filter: drop-shadow(0 26px 44px rgba(0,0,0,.55)); }
.seo-serp { position: absolute; left: 50%; top: 16px; transform: translateX(-42%); width: min(620px, 52vw);
  padding: 14px; border-radius: 18px; background: rgba(23,21,16,.94); border: 1px solid #3a362c;
  box-shadow: 0 40px 80px rgba(0,0,0,.5); color: #f5f5f6; z-index: 2; backdrop-filter: blur(8px); }
.seo-search { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px;
  background: rgba(255,255,255,.05); border: 1px solid #3a362c; font-size: 12px; color: #e9e9ee; }
.seo-search .ic { width: 14px; height: 14px; color: var(--orange); flex: 0 0 auto; }
.seo-search span { flex: 1; }
.seo-search em { font-style: normal; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 700;
  color: #141311; background: #ff7a1a; }
.seo-res-list { display: grid; gap: 5px; margin-top: 10px; }
.seo-res { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  background: rgba(255,255,255,.03); }
.seo-res-you { background: rgba(200,247,81,.10); border: 1px solid rgba(200,247,81,.35); }
.seo-rank { font: 700 11px/1 ui-monospace, monospace; color: #8f8b80; width: 16px; }
.seo-res-body { flex: 1; min-width: 0; }
.seo-res-body b { display: block; font-size: 12.5px; font-weight: 600; color: #f5f5f6; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.seo-res-body small { display: block; font-size: 10px; color: #8f8b80; }
.seo-res em { font-style: normal; padding: 2px 7px; border-radius: 5px; font-size: 9px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #16210a; background: #c8f751; }
.seo-serp-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 9.5px; color: #8f8b80; }
.seo-serp-foot em { margin-left: auto; font-style: normal; color: #ffb36b; }

/* ---- 2. keyword research ---- */
.seo-research { display: grid; grid-template-columns: .92fr 1.08fr; gap: 18px; max-width: 1080px; margin: 0 auto;
  position: relative; z-index: 2; }
.seo-form { display: grid; gap: 12px; padding: 20px; background: #17150f; border-color: #34312a; color: #f5f5f6; }
html[data-theme="light"] .seo-form { background: #fff; color: #141418; }
.seo-form-tag { font: 700 9.5px/1 ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: #ffb36b; }
.seo-form label { display: grid; gap: 5px; font-size: 10.5px; color: #8f8b80; }
.seo-form label b { display: flex; justify-content: space-between; padding: 9px 11px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; color: #f5f5f6; background: #201e17; border: 1px solid #3a362c; }
.seo-form label small { font-weight: 500; color: #8f8b80; }
.seo-brand-kws { padding: 10px 11px; border-radius: 9px; background: rgba(255,255,255,.03); border: 1px dashed #3a362c; }
.seo-brand-kws > span { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #8f8b80; }
.seo-brand-kws > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.seo-brand-kws em { font-style: normal; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; color: #e9e9ee;
  background: #26241d; border: 1px solid #3a362c; }
.seo-start { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px;
  border-radius: 10px; font-size: 12.5px; font-weight: 700; color: #141311; background: #ff7a1a; }
.seo-start .ic { width: 14px; height: 14px; }
.seo-kwtable { padding: 18px 20px; background: #17150f; border-color: #34312a; color: #f5f5f6; }
html[data-theme="light"] .seo-kwtable { background: #fff; color: #141418; }
.seo-kt-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.seo-kt-h span { padding: 3px 8px; border-radius: 6px; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  color: #16210a; background: #c8f751; }
.seo-kt-cols, .seo-kw { display: grid; grid-template-columns: 1fr 64px 62px; gap: 10px; align-items: center; }
.seo-kt-cols { margin-top: 14px; font: 600 8.5px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase;
  color: #8f8b80; }
.seo-kw { position: relative; margin-top: 5px; padding: 9px 10px; border-radius: 8px; font-size: 11.5px;
  background: #201e17; color: #e9e9ee; }
.seo-kw b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-kw b small { display: block; margin-top: 2px; font-size: 8px; letter-spacing: .08em; text-transform: uppercase;
  color: #ff5a5f; }
.seo-kw > span { font-variant-numeric: tabular-nums; color: #ffcda6; }
.seo-kw > em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: #a9a9b3; }
.seo-kw.skip { opacity: .55; }
.seo-kt-note { margin: 14px 0 0; font-size: 10.5px; line-height: 1.5; color: #8f8b80; }
.seo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1080px; margin: 20px auto 0; }
.seo-step { padding: 18px; }
.seo-step-n { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 14px; border-radius: 8px;
  font: 700 11px/1 ui-monospace, monospace; color: #141311; background: var(--orange); }

/* ---- 3. article ---- */
.seo-editor { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; max-width: 1080px; margin: 0 auto;
  align-items: stretch; position: relative; z-index: 2; }
.seo-doc { padding: 0; overflow: hidden; background: #17150f; border-color: #34312a; color: #f5f5f6; }
html[data-theme="light"] .seo-doc { background: #fff; }
.seo-toolbar { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-bottom: 1px solid #34312a;
  font-size: 10.5px; color: #cfcabb; }
.seo-toolbar i { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 6px; font-style: normal; background: #201e17; border: 1px solid #3a362c; }
.seo-toolbar em { margin-left: auto; font-style: normal; font: 600 10px/1 ui-monospace, monospace; color: #8f8b80; }
.seo-doc-h1 { margin: 18px 20px 0; font-size: 20px; letter-spacing: -.02em; color: #f5f5f6; }
.seo-doc-p { margin: 10px 20px 0; font-size: 12.5px; line-height: 1.65; color: #bdb8ac; }
.seo-doc h4 { margin: 18px 20px 0; font-size: 13px; color: #f5f5f6; }
.seo-skel { display: grid; gap: 6px; margin: 8px 20px 0; }
.seo-skel i { display: block; height: 6px; border-radius: 3px; background: #2c2a22; }
.seo-imgph { display: flex; align-items: center; justify-content: center; gap: 8px; height: 78px; margin: 16px 20px 20px;
  border-radius: 10px; font-size: 10.5px; color: #8f8b80; background: #201e17; border: 1px dashed #3a362c; }
.seo-imgph .ic { width: 14px; height: 14px; }
.seo-score { display: grid; justify-items: center; padding: 20px; background: #17150f; border-color: #34312a; color: #f5f5f6; }
html[data-theme="light"] .seo-score { background: #fff; }
.seo-ring { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; position: relative;
  --ring-rest: #3a2a1a; background: conic-gradient(#c8f751 0 82%, var(--ring-rest) 82% 100%); }
html[data-theme="light"] .seo-ring { --ring-rest: #ececf0; }
.seo-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #17150f; }
html[data-theme="light"] .seo-ring::before { background: #fff; }
.seo-ring b { position: relative; font-size: 22px; letter-spacing: -.02em; }
.seo-score-l { margin-top: 6px; font-size: 11px; color: #8f8b80; }
.seo-focus { width: 100%; margin-top: 14px; padding: 9px 11px; border-radius: 9px; background: rgba(255,122,26,.10);
  border: 1px solid rgba(255,122,26,.3); }
.seo-focus small { display: block; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: #ffb36b; }
.seo-focus b { display: block; margin-top: 4px; font-size: 11.5px; color: #ffcda6; }
.seo-checks { list-style: none; width: 100%; margin: 12px 0 0; padding: 0; display: grid; gap: 5px; }
.seo-checks li { display: flex; align-items: flex-start; gap: 8px; padding: 4px 6px; border-radius: 6px; cursor: pointer;
  font-size: 10.5px; line-height: 1.4; color: #8f8b80; }
.seo-checks li:hover { background: rgba(255,255,255,.04); }
.seo-checks li.on { color: #d7d2c6; }
.seo-ck { display: grid; place-items: center; width: 14px; height: 14px; margin-top: 1px; border-radius: 4px; flex: 0 0 auto;
  border: 1px solid #4a4536; color: transparent; }
.seo-ck .ic { width: 10px; height: 10px; stroke-width: 3; }
.seo-checks li.on .seo-ck { background: #34d399; border-color: #34d399; color: #0d2d22; }
.seo-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin: 24px 0 0; padding: 0;
  list-style: none; font-size: 12px; color: var(--pp-mute); }
.seo-dots li { display: flex; align-items: center; gap: 7px; }
.seo-dots li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c8f751; }

/* ---- 4. page one ---- */
.seo-pageone { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start;
  max-width: 1040px; margin: 0 auto; }
.seo-serp2 { padding: 16px; background: #17150f; border-color: #34312a; color: #f5f5f6; }
html[data-theme="light"] .seo-serp2 { background: #fff; }
.seo-page1-tag { margin: 14px 0 6px; font: 700 9px/1 ui-monospace, monospace; letter-spacing: .16em;
  text-transform: uppercase; color: #ffb36b; }
.seo-serp2 .seo-res { background: rgba(255,255,255,.03); }
.seo-serp2 .seo-res-you { background: rgba(200,247,81,.10); }
.seo-facts { display: grid; gap: 12px; }
.seo-fact { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 16px 18px; }
.seo-fact-n { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  font: 700 11px/1 ui-monospace, monospace; color: #141311; background: var(--orange); }
.seo-fact h3 { font-size: 14px; }
.seo-fact p { margin: 4px 0 0; }
.seo-note { max-width: 720px; margin: 26px auto 0; text-align: center; font-size: 12.5px; line-height: 1.6;
  color: var(--pp-mute); }

/* ---- 5. publishing ---- */
.seo-pub { max-width: 860px; margin: 0 auto; border-radius: 18px; padding: 18px;
  background: #17150f; border: 1px solid #34312a; color: #f5f5f6; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
html[data-theme="light"] .seo-pub { background: #fff; color: #141418; border-color: #e1e1e6; }
.seo-pub-h { display: flex; align-items: center; gap: 14px; padding: 4px 4px 16px; border-bottom: 1px solid #2c2921; }
html[data-theme="light"] .seo-pub-h { border-color: #ececf0; }
.seo-cover { display: grid; place-items: center; width: 62px; height: 46px; border-radius: 9px; color: #ffb36b;
  background: linear-gradient(135deg, #3a3020, #241f18); border: 1px solid #3a362c; flex: 0 0 auto; }
.seo-cover .ic { width: 18px; height: 18px; }
.seo-pub-h b { display: block; font-size: 14px; }
.seo-pub-h small { display: block; margin-top: 3px; font-size: 10.5px; color: #8f8b80; }
.seo-when { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 10px; border-radius: 999px;
  font-size: 10.5px; color: #ffcda6; background: rgba(255,122,26,.12); border: 1px solid rgba(255,122,26,.3); }
.seo-when .ic { width: 12px; height: 12px; }
.seo-dests { display: grid; gap: 8px; margin-top: 12px; }
.seo-dest { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px;
  background: #201e17; border: 1px solid #34312a; }
html[data-theme="light"] .seo-dest { background: #f7f7f8; border-color: #e6e6ea; }
.seo-dest-ic { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; }
.seo-dest-ic .pp-ic { width: 30px; height: 30px; border-radius: 9px; font-size: 10px; }
.seo-dest-ic .ic { width: 20px; height: 20px; color: #ffb36b; }
.seo-dest b { display: block; font-size: 13px; }
.seo-dest small { display: block; margin-top: 2px; font-size: 10.5px; color: #8f8b80; }
.seo-pill { margin-left: auto; font-style: normal; padding: 3px 8px; border-radius: 6px; font-size: 9px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; }
.seo-pill.ok { color: #34d399; background: rgba(52,211,153,.14); }
.seo-pill.wait { color: #ffb020; background: rgba(255,176,32,.14); }
.seo-pill.mut { color: #cfcabb; background: rgba(255,255,255,.08); }
.seo-pub-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 10px 4px 0;
  border-top: 1px solid #2c2921; font-size: 10.5px; color: #8f8b80; }
html[data-theme="light"] .seo-pub-foot { border-color: #ececf0; }
.seo-toggle { display: inline-flex; align-items: center; gap: 8px; }
.seo-toggle i { position: relative; width: 26px; height: 15px; border-radius: 999px; background: #34d399; }
.seo-toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px;
  border-radius: 50%; background: #0d2d22; }

/* ---- 6. inbox ---- */
.seo-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 13px; font-weight: 600;
  color: var(--orange-2); }
.seo-more .ic { width: 14px; height: 14px; }
.seo-inbox { padding: 16px; background: #17150f; border-color: #34312a; color: #f5f5f6; }
html[data-theme="light"] .seo-inbox { background: #fff; }
.seo-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid #2c2921; }
html[data-theme="light"] .seo-tabs { border-color: #ececf0; }
.seo-tabs span { padding: 5px 9px; border-radius: 7px; font-size: 10.5px; color: #8f8b80; }
.seo-tabs span.on { color: #141311; background: #ffb36b; font-weight: 600; }
.seo-tabs span.soon { display: inline-flex; align-items: center; gap: 4px; }
.seo-tabs span em { font-style: normal; padding: 1px 4px; border-radius: 3px; font-size: 7.5px; letter-spacing: .08em;
  text-transform: uppercase; background: #2a2820; color: #8f8b80; }
.seo-im-list { display: grid; gap: 6px; margin-top: 10px; }
.seo-im { display: flex; gap: 9px; padding: 9px 10px; border-radius: 9px; background: #201e17; }
html[data-theme="light"] .seo-im { background: #f4f4f7; }
.seo-iav { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 10px/1 Inter, sans-serif;
  font-style: normal; background: #6b4fd8; color: #fff; flex: 0 0 auto; }
.seo-im > div { min-width: 0; }
.seo-im b { display: flex; justify-content: space-between; font-size: 11px; color: #f5f5f6; }
html[data-theme="light"] .seo-im b { color: #141418; }
.seo-im b small { font-weight: 400; color: #8f8b80; }
.seo-im span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.45; color: #cfcabb; }
html[data-theme="light"] .seo-im span { color: #55555c; }
.seo-im em { display: block; margin-top: 3px; font-style: normal; font-size: 9.5px; color: #ffb36b; }
.seo-reply { margin-top: 10px; padding: 12px; border-radius: 11px; background: rgba(255,122,26,.10);
  border: 1px solid rgba(255,122,26,.28); }
.seo-reply-tag { font: 700 8.5px/1 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: #ffb36b; }
.seo-reply p { margin: 7px 0 0; font-size: 11.5px; line-height: 1.55; color: #e9e9ee; }
html[data-theme="light"] .seo-reply p { color: #2a2a30; }
.seo-reply-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; font-size: 10.5px; color: #8f8b80; }
.seo-reply-foot > span { padding: 4px 10px; border-radius: 7px; border: 1px solid #3a362c; }
.seo-send { color: #141311 !important; background: #c8f751; border-color: #c8f751 !important; font-weight: 700; }

/* ---- 7. the kit ---- */
.seo-kit { max-width: 1080px; margin: 0 auto; align-items: start; }
.seo-tools { display: grid; gap: 8px; margin-top: 22px; }
.seo-tool { display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px; border-radius: 11px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--pp-line); transition: border-color .15s, background .15s; }
.seo-tool:hover, .seo-tool.on { border-color: rgba(255,122,26,.55); background: rgba(255,122,26,.10); }
.seo-tool-ic { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px;
  color: var(--orange); background: rgba(255,122,26,.16); }
.seo-tool-ic .ic { width: 16px; height: 16px; }
.seo-tool b { display: block; font-size: 13px; color: var(--pp-ink); }
.seo-tool small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.45; color: var(--pp-mute); }
.seo-kcards { display: grid; gap: 12px; }
.seo-kcard { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 24px; min-height: 236px;
  align-content: start; transition: border-color .15s, transform .15s; }
.seo-kcard:hover, .seo-kcard.on { border-color: rgba(255,122,26,.55); transform: translateY(-1px); }
.seo-kcard b { font-size: 14px; color: var(--pp-ink); }
.seo-kcard p { margin: 4px 0 0; }
.seo-learn { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-size: 11.5px; font-weight: 600;
  color: var(--orange-2); }
.seo-learn .ic { width: 12px; height: 12px; }
.seo-kmini { grid-column: 1 / -1; display: flex; gap: 6px; align-self: end; margin-top: 16px; padding: 12px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--pp-line); font-size: 10px; color: var(--pp-mute); }
.seo-kit .pp-copy { position: sticky; top: 96px; }
.seo-kmini span { padding: 4px 8px; border-radius: 5px; background: rgba(255,255,255,.05); }
.seo-kmini u { display: block; flex: 1; height: 16px; border-radius: 3px; background: rgba(255,255,255,.08); text-decoration: none; }
.seo-kmini u.on { background: var(--orange); }
.seo-kit-note { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: var(--pp-mute); }
.seo-pageone { align-items: stretch; }
.seo-facts { align-content: space-between; }
.seo-serp2 .seo-res { padding: 11px 12px; }
.seo-fact { padding: 20px; }

/* ---- light theme: mockups that stay light need dark ink ---- */
html[data-theme="light"] .seo-doc, html[data-theme="light"] .seo-score { color: #141418; }
html[data-theme="light"] .seo-doc-h1, html[data-theme="light"] .seo-doc h4 { color: #141418; }
html[data-theme="light"] .seo-doc-p { color: #46464e; }
html[data-theme="light"] .seo-toolbar { color: #46464e; border-color: #ececf0; }
html[data-theme="light"] .seo-toolbar i { background: #f3f3f6; border-color: #e1e1e6; }
html[data-theme="light"] .seo-skel i { background: #e8e8ee; }
html[data-theme="light"] .seo-imgph { background: #f5f5f8; border-color: #dcdce2; }
html[data-theme="light"] .seo-checks li { color: #6a6a72; }
html[data-theme="light"] .seo-checks li.on { color: #2a2a30; }
html[data-theme="light"] .seo-score-l { color: #55555c; }
html[data-theme="light"] .seo-focus b { color: #8a3a00; }
html[data-theme="light"] .seo-focus small { color: #a33f00; }
html[data-theme="light"] .seo-kw b small { color: #c0363b; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .seo-research, .seo-editor, .seo-pageone { grid-template-columns: 1fr; }
  .seo-serp { left: auto; right: 4%; transform: none; width: min(560px, 62vw); }
  .seo-hero-mascot { height: 260px; }
  .seo-steps { grid-template-columns: 1fr; }
  .seo-kit { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .seo-stage { height: 470px; }
  .seo-hero-mascot { left: 50%; transform: translateX(-50%); height: 180px; bottom: 0; }
  .seo-serp { position: relative; left: auto; right: auto; top: auto; width: min(560px, 92%); margin: 0 auto; }
  .seo-dots { gap: 14px; }
  .seo-pub-foot { flex-wrap: wrap; gap: 8px; }
  .seo-fact { grid-template-columns: 1fr; }
  .seo-fact-n { grid-row: auto; margin-bottom: 8px; }
}
@media (max-width: 720px) {
  .seo-pub-h { flex-wrap: wrap; }
  .seo-when { margin-left: 0; }
  .seo-kw small { display: none; }
  .seo-doc-h1 { font-size: 17px; }
}
