/* ════════════════════════════════════════════
   ExpressiveFlow v3 — ExpressiveBlogs Theme
   Primary: #F43676 (brand pink)
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;700;800;900&family=Satoshi:wght@300;400;500;700&display=swap');

/* ── Variables ── */
:root {
  --bg:          #080b10;
  --bg2:         #0d1117;
  --bg3:         #12181f;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.12);
  --text:        #f0f4f8;
  --text2:       #8a96a3;
  --text3:       #4a5568;
  --accent:      #F43676;
  --accent-glow: rgba(244,54,118,0.25);
  --accent2:     #ff6b9d;
  --accent-dark: #c41e5a;
  --purple:      #a855f7;
  --purple2:     #7c3aed;
  --gold:        #f59e0b;
  --red:         #ef4444;
  --green:       #10b981;
  --blue:        #3b82f6;
  --pk-green:    #01411C;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --glow-accent: 0 0 40px rgba(244,54,118,0.2);
}

[data-theme="light"] {
  --bg:    #fdf2f6;
  --bg2:   #ffffff;
  --bg3:   #fce7ef;
  --border: rgba(244,54,118,0.12);
  --border2: rgba(244,54,118,0.2);
  --text:  #0f172a;
  --text2: #475569;
  --text3: #94a3b8;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Satoshi', 'Cabinet Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Background ── */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.noise-overlay {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
}
.g1 { width: 600px; height: 600px; background: #F43676; top: -200px; left: -200px; }
.g2 { width: 500px; height: 500px; background: #ff6b9d; top: 30%; right: -150px; }
.g3 { width: 400px; height: 400px; background: #c41e5a; bottom: 10%; left: 20%; }
[data-theme="light"] .glow { opacity: 0.06; }

/* ── Layout ── */
.navbar, .hero, .tools-nav, .main-wrap, .features-section, .site-footer {
  position: relative; z-index: 1;
}

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,11,16,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(244,54,118,0.15);
  padding: 0 24px;
  /* needed so dropdown positions relative to navbar */
  position: sticky;
}
[data-theme="light"] .navbar {
  background: rgba(253,242,246,0.92);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  height: 60px;
  position: relative;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 900; font-size: 13px;
  color: #fff;
  box-shadow: 0 0 16px rgba(244,54,118,0.4);
}
.brand-icon.sm { width: 26px; height: 26px; font-size: 11px; }
.brand span { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 17px; }
.brand strong { color: var(--accent); }
.brand-tag {
  font-size: 11px; color: var(--text3);
  background: var(--bg3); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 20px;
}
.nav-tools {
  display: flex; gap: 3px; flex: 1;
  overflow-x: auto; scrollbar-width: none;
  /* Prevent cutting off on right side */
  min-width: 0;
}
.nav-tools::-webkit-scrollbar { display: none; }
.nav-link {
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500; color: var(--text2);
  text-decoration: none; white-space: nowrap;
  transition: all 0.2s; cursor: pointer;
}
.nav-link:hover, .nav-link.active {
  background: rgba(244,54,118,0.12); color: var(--accent);
  text-decoration: none;
}
.nav-more-btn {
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; color: var(--text2); cursor: pointer;
  white-space: nowrap; transition: all 0.2s;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg3);
  user-select: none;
}
.nav-more-btn:hover { color: var(--accent); border-color: rgba(244,54,118,0.3); }
/* More dropdown — fixed to viewport, positioned by JS, never clipped */
.more-dropdown {
  display: none;
  position: fixed;
  top: 0; left: 0;
  background: var(--bg2);
  border: 1px solid rgba(244,54,118,0.25);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 99999;
  min-width: 220px;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.more-dropdown.open {
  display: block;
  animation: dropIn 0.15s ease forwards;
}
.drop-item {
  display: block; padding: 8px 14px; border-radius: 6px;
  font-size: 13px; color: var(--text2); text-decoration: none;
  transition: all 0.15s;
}
.drop-item:hover { background: rgba(244,54,118,0.1); color: var(--accent); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--bg3); color: var(--text2);
  cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
[data-theme="dark"] .t-sun { display: none; }
[data-theme="light"] .t-moon { display: none; }

/* ── Hero ── */
.hero {
  text-align: center; padding: 70px 24px 50px;
  max-width: 900px; margin: 0 auto;
}
.hero-badge {
  display: inline-block; margin-bottom: 20px;
  background: rgba(244,54,118,0.1); border: 1px solid rgba(244,54,118,0.3);
  color: var(--accent); font-size: 12px; font-weight: 600;
  padding: 5px 16px; border-radius: 20px; letter-spacing: 0.05em;
}
.hero h1 {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 900; font-size: clamp(36px, 6.5vw, 68px);
  line-height: 1.05; margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.hero-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 60%, #ff9ec4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px; color: var(--text2); margin-bottom: 32px; line-height: 1.6;
}
.hero-stats {
  display: inline-flex; align-items: center;
  background: var(--bg2); border: 1px solid rgba(244,54,118,0.2);
  border-radius: var(--radius); padding: 16px 32px;
  box-shadow: 0 0 40px rgba(244,54,118,0.08);
}
.hstat { text-align: center; padding: 0 20px; }
.hstat strong { display: block; font-family: 'Cabinet Grotesk', sans-serif; font-weight: 900; font-size: 24px; color: var(--accent); }
.hstat span { font-size: 11px; color: var(--text2); }
.hstat-div { width: 1px; background: var(--border2); height: 36px; }

/* ── Tools Navigation ── */
.tools-nav-wrap {
  position: relative; border-bottom: 1px solid var(--border); overflow: hidden;
}
.tools-nav-wrap::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 20px;
  pointer-events: none;
  background: linear-gradient(to left, transparent, var(--bg));
  z-index: 2;
}
.tools-nav-wrap::after {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 60px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--bg));
  z-index: 2;
}
[data-theme="light"] .tools-nav-wrap::after {
  background: linear-gradient(to right, transparent, #fdf2f6);
}
[data-theme="light"] .tools-nav-wrap::before {
  background: linear-gradient(to left, transparent, #fdf2f6);
}
.tools-nav {
  display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 24px 10px;
}
.tools-nav::-webkit-scrollbar { display: none; }
.tool-tab {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text2);
  font-family: 'Satoshi', sans-serif; font-size: 11.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all 0.2s;
  flex-shrink: 0;
}
.tool-tab:hover { border-color: rgba(244,54,118,0.3); color: var(--accent); }
.tool-tab.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff; box-shadow: 0 0 20px rgba(244,54,118,0.35);
}
.tool-tab.pk-tool {
  border-color: rgba(244,54,118,0.25);
  background: rgba(244,54,118,0.05);
}
.tool-tab.pk-tool:hover { border-color: var(--accent); background: rgba(244,54,118,0.1); color: var(--accent); }
.tool-tab.pk-tool.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Main Wrap ── */
.main-wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ── Tool Panel ── */
.tool-panel { display: none; }
.tool-panel.active { display: block; }

/* ── Panel Controls ── */
.panel-controls { margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.ctrl-group { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ctrl-label {
  font-size: 11px; font-weight: 700; color: var(--text3);
  letter-spacing: 0.08em; padding-top: 6px; flex-shrink: 0; min-width: 40px;
}
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--bg2);
  color: var(--text2); font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: 'Satoshi', sans-serif;
  transition: all 0.15s; white-space: nowrap;
}
.pill:hover { border-color: rgba(244,54,118,0.3); color: var(--accent); }
.pill.active {
  background: rgba(244,54,118,0.15); border-color: rgba(244,54,118,0.5);
  color: var(--accent);
}

/* ── Editor Grid ── */
.editor-grid {
  display: grid; grid-template-columns: 1fr 44px 1fr; gap: 0;
  margin-bottom: 16px; align-items: stretch;
}
.editor-grid.single-col { grid-template-columns: 1fr; }
.editor-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.output-box { border-color: rgba(244,54,118,0.15); }
.box-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.box-title { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; color: var(--text2); text-transform: uppercase; }
.box-actions { display: flex; gap: 5px; }
.bact {
  padding: 4px 10px; border-radius: 6px; font-size: 11px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text2); cursor: pointer; font-family: 'Satoshi', sans-serif;
  transition: all 0.15s; white-space: nowrap;
}
.bact:hover { border-color: rgba(244,54,118,0.4); color: var(--accent); background: rgba(244,54,118,0.06); }
.editor-area {
  flex: 1; min-height: 220px; resize: none; padding: 16px;
  background: transparent; border: none; outline: none;
  font-size: 14px; line-height: 1.75; color: var(--text);
  font-family: 'Satoshi', sans-serif;
}
.editor-area::placeholder { color: var(--text3); }
.output-area {
  flex: 1; min-height: 220px; padding: 16px;
  font-size: 14px; line-height: 1.75; color: var(--text);
  overflow-y: auto; white-space: pre-wrap; word-break: break-word;
}
.placeholder-txt { color: var(--text3); font-style: italic; }
.box-footer {
  display: flex; justify-content: space-between; padding: 7px 16px;
  border-top: 1px solid var(--border); font-size: 11px; color: var(--text3);
}
.editor-divider {
  display: flex; align-items: center; justify-content: center;
}
.flow-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(244,54,118,0.08); border: 1px solid rgba(244,54,118,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--accent);
}

/* ── Pakistan Tool Forms ── */
.pk-tool-hero {
  text-align: center; padding: 28px 24px 24px;
  background: linear-gradient(135deg, rgba(244,54,118,0.06), rgba(196,30,90,0.03));
  border: 1px solid rgba(244,54,118,0.18); border-radius: var(--radius);
  margin-bottom: 20px;
}
.pk-badge {
  display: inline-block; margin-bottom: 12px;
  background: rgba(244,54,118,0.12); border: 1px solid rgba(244,54,118,0.3);
  color: var(--accent); font-size: 12px; font-weight: 600;
  padding: 4px 14px; border-radius: 20px;
}
.pk-tool-hero h2 {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 900; font-size: 28px; margin-bottom: 8px;
}
.pk-tool-hero p { color: var(--text2); font-size: 14px; max-width: 560px; margin: 0 auto; line-height: 1.65; }
.pk-form-grid { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.pk-field { display: flex; flex-direction: column; gap: 6px; }
.pk-label { font-size: 12px; font-weight: 600; color: var(--text2); letter-spacing: 0.04em; text-transform: uppercase; }
.pk-textarea {
  min-height: 160px; resize: vertical; padding: 14px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); outline: none;
  font-size: 14px; line-height: 1.7; color: var(--text);
  font-family: 'Satoshi', sans-serif; width: 100%;
  transition: border-color 0.2s;
}
.pk-textarea:focus { border-color: rgba(244,54,118,0.4); }
.pk-textarea::placeholder { color: var(--text3); }
.pk-textarea-sm {
  min-height: 90px; resize: vertical; padding: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); outline: none;
  font-size: 14px; line-height: 1.7; color: var(--text);
  font-family: 'Satoshi', sans-serif; width: 100%;
  transition: border-color 0.2s;
}
.pk-textarea-sm:focus { border-color: rgba(244,54,118,0.4); }
.pk-textarea-sm::placeholder { color: var(--text3); }

/* ── Action Bar ── */
.action-bar {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 12px;
}
.btn-run {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 32px; border-radius: var(--radius-sm);
  background: var(--accent); border: none;
  color: #fff; font-family: 'Cabinet Grotesk', sans-serif;
  font-weight: 800; font-size: 15px; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 0 30px rgba(244,54,118,0.25);
}
.btn-run:hover { transform: translateY(-1px); box-shadow: 0 0 40px rgba(244,54,118,0.45); background: var(--accent2); }
.btn-run:active { transform: translateY(0); }
.btn-run:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-run.btn-purple {
  background: linear-gradient(135deg, var(--purple2), var(--purple));
  color: #fff; box-shadow: 0 0 30px rgba(168,85,247,0.2);
}
.btn-run.btn-purple:hover { box-shadow: 0 0 40px rgba(168,85,247,0.4); }
.btn-run.btn-green { background: var(--green); color: #fff; box-shadow: 0 0 30px rgba(16,185,129,0.2); }
.btn-run.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 0 30px rgba(59,130,246,0.2); }
.btn-run.btn-pk {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; box-shadow: 0 0 30px rgba(244,54,118,0.3);
  padding: 13px 36px; font-size: 15px;
}
.btn-run.btn-pk:hover { box-shadow: 0 0 50px rgba(244,54,118,0.5); }
.btn-example {
  padding: 12px 24px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border2);
  color: var(--text2); font-family: 'Satoshi', sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.btn-example:hover { border-color: var(--accent); color: var(--accent); }
.spin-ico { display: inline-block; }
.loading .spin-ico { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Status Bar ── */
.status-bar {
  text-align: center; font-size: 13px; min-height: 20px;
  margin-bottom: 12px; color: var(--text2); transition: all 0.2s;
}
.status-bar.error { color: var(--red); }
.status-bar.success { color: var(--green); }
.status-bar.loading { color: var(--accent); }
.spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid var(--border2); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 6px;
  vertical-align: middle;
}

/* ── Stats Strip ── */
.stats-strip {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: center; padding: 12px 20px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--text2); margin-bottom: 24px;
}
.stats-strip strong { color: var(--accent); font-weight: 700; }
.sdiv { color: var(--text3); }

/* ── Humanizer Hero ── */
.humanizer-hero {
  text-align: center; padding: 32px 24px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(124,58,237,0.05));
  border: 1px solid rgba(168,85,247,0.2); border-radius: var(--radius);
}
.hh-badge {
  display: inline-block; margin-bottom: 12px;
  background: rgba(244,54,118,0.12); border: 1px solid rgba(244,54,118,0.3);
  color: var(--accent); font-size: 12px; font-weight: 600;
  padding: 4px 14px; border-radius: 20px;
}
.humanizer-hero h2 {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 900; font-size: 30px; margin-bottom: 10px;
}
.humanizer-hero p { color: var(--text2); font-size: 14px; max-width: 540px; margin: 0 auto 16px; line-height: 1.6; }
.detector-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.detector-badges span {
  font-size: 12px; font-weight: 600; color: var(--green);
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
  padding: 3px 12px; border-radius: 20px;
}

/* ── Tone Analyzer ── */
.tone-result-area {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-top: 16px;
  display: none; min-height: 100px;
}
.tone-result-area.visible { display: block; }
.tone-cards { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tone-card {
  flex: 1; min-width: 120px; padding: 14px 16px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); text-align: center;
}
.tone-card .tc-label { font-size: 11px; color: var(--text2); margin-bottom: 6px; letter-spacing: 0.05em; }
.tone-card .tc-val { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800; font-size: 20px; }
.tone-detail { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* ── Language Select ── */
.lang-select-wrap { flex: 1; }
.lang-select {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 8px 12px;
  font-size: 13px; color: var(--text); font-family: 'Satoshi', sans-serif;
  outline: none; cursor: pointer; width: auto; min-width: 180px;
}
.lang-select:focus { border-color: rgba(244,54,118,0.4); }

/* ── Features ── */
.features-section {
  max-width: 1280px; margin: 0 auto 64px; padding: 0 24px;
}
.feat-title {
  font-family: 'Cabinet Grotesk', sans-serif; font-weight: 900;
  font-size: clamp(24px, 4vw, 36px); text-align: center; margin-bottom: 36px;
}
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.feat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feat-card:hover {
  border-color: rgba(244,54,118,0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(244,54,118,0.1);
}
.feat-ico { font-size: 26px; margin-bottom: 12px; }
.feat-card h3 { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.feat-card p { font-size: 13px; color: var(--text2); line-height: 1.65; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border); padding: 24px;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand span { font-family: 'Cabinet Grotesk', sans-serif; font-weight: 700; font-size: 15px; }
.footer-brand strong { color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--text2); }
kbd {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 4px; padding: 1px 5px; font-size: 11px; font-family: monospace;
}

/* ── Blog Generator ── */
.blog-output {
  white-space: pre-wrap;
  line-height: 1.85;
  font-size: 14.5px;
}
.pk-input {
  padding: 10px 14px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); outline: none;
  font-size: 14px; color: var(--text); font-family: 'Satoshi', sans-serif;
  width: 100%; transition: border-color 0.2s;
}
.pk-input:focus { border-color: rgba(244,54,118,0.4); }
.pk-input::placeholder { color: var(--text3); }

/* ── SEO Fields Grid ── */
.seo-fields-grid {
  display: flex; flex-direction: column; gap: 12px;
}
.seo-field-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.seo-field-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.seo-field-label {
  font-size: 11px; font-weight: 700; color: var(--text2);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.seo-field-copy {
  padding: 3px 10px; border-radius: 5px; font-size: 11px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text2); cursor: pointer; font-family: 'Satoshi', sans-serif;
  transition: all 0.15s;
}
.seo-field-copy:hover { border-color: rgba(244,54,118,0.4); color: var(--accent); background: rgba(244,54,118,0.06); }
.seo-field-copy.copied { border-color: var(--green); color: var(--green); }
.seo-field-value {
  padding: 12px 14px; font-size: 14px; color: var(--text);
  line-height: 1.6; word-break: break-word;
}
.seo-field-value.code-style {
  font-family: 'Courier New', monospace; font-size: 12.5px;
  background: rgba(0,0,0,0.2); color: #a8ff78;
}
.char-count { font-size: 11px; color: var(--text3); margin-left: 8px; }
.char-count.over { color: var(--red); }

/* ── Instagram Hero ── */
.insta-hero {
  background: linear-gradient(135deg, rgba(225,48,108,0.08), rgba(193,53,132,0.05), rgba(88,81,219,0.05));
  border-color: rgba(225,48,108,0.2);
}
.insta-badge {
  background: linear-gradient(135deg, rgba(225,48,108,0.15), rgba(88,81,219,0.1));
  border-color: rgba(225,48,108,0.3);
  color: #e1306c;
}
.btn-run.btn-insta {
  background: linear-gradient(135deg, #e1306c, #833ab4);
  color: #fff; box-shadow: 0 0 30px rgba(225,48,108,0.25);
}
.btn-run.btn-insta:hover { box-shadow: 0 0 50px rgba(225,48,108,0.5); }
.platform-badges {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px;
}
.platform-badges span {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: rgba(244,54,118,0.1); border: 1px solid rgba(244,54,118,0.25);
  padding: 3px 12px; border-radius: 20px;
}

/* ── Instagram Result Grid ── */
.insta-result-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 768px) { .insta-result-grid { grid-template-columns: 1fr; } }
.insta-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.insta-card.full-width { grid-column: 1 / -1; }
.insta-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; background: var(--bg3); border-bottom: 1px solid var(--border);
}
.insta-card-label {
  font-size: 11px; font-weight: 700; color: var(--text2);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.insta-card-copy {
  padding: 3px 10px; border-radius: 5px; font-size: 11px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text2); cursor: pointer; font-family: 'Satoshi', sans-serif; transition: all 0.15s;
}
.insta-card-copy:hover { border-color: rgba(225,48,108,0.4); color: #e1306c; background: rgba(225,48,108,0.06); }
.insta-card-copy.copied { border-color: var(--green); color: var(--green); }
.insta-card-value {
  padding: 12px 14px; font-size: 14px; color: var(--text); line-height: 1.75; white-space: pre-wrap;
}
.hashtag-value { color: #4fa3e0; font-size: 13px; }

/* ── Pinterest Hero ── */
.pinterest-hero {
  background: linear-gradient(135deg, rgba(230,0,35,0.07), rgba(189,8,28,0.04));
  border-color: rgba(230,0,35,0.2);
}
.pinterest-badge {
  background: rgba(230,0,35,0.12); border-color: rgba(230,0,35,0.3);
  color: #e60023;
}
.pinterest-badges span {
  color: #e60023; background: rgba(230,0,35,0.08); border-color: rgba(230,0,35,0.2);
}
.btn-run.btn-pinterest {
  background: linear-gradient(135deg, #e60023, #ad081b);
  color: #fff; box-shadow: 0 0 30px rgba(230,0,35,0.2);
}
.btn-run.btn-pinterest:hover { box-shadow: 0 0 50px rgba(230,0,35,0.4); }

/* ── Pinterest Result Grid ── */
.pinterest-result-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 768px) { .pinterest-result-grid { grid-template-columns: 1fr; } }
.pin-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.pin-card.full-width { grid-column: 1 / -1; }
.pin-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; background: var(--bg3); border-bottom: 1px solid var(--border);
}
.pin-card-label {
  font-size: 11px; font-weight: 700; color: var(--text2);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.pin-card-copy {
  padding: 3px 10px; border-radius: 5px; font-size: 11px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text2); cursor: pointer; font-family: 'Satoshi', sans-serif; transition: all 0.15s;
}
.pin-card-copy:hover { border-color: rgba(230,0,35,0.4); color: #e60023; }
.pin-card-copy.copied { border-color: var(--green); color: var(--green); }
.pin-card-value {
  padding: 12px 14px; font-size: 14px; color: var(--text); line-height: 1.75; white-space: pre-wrap;
}
.pin-keywords { color: #e60023; font-size: 13px; }

/* ── Larger bact for action rows ── */
.bact-lg {
  padding: 7px 16px; font-size: 12px; border-radius: var(--radius-sm);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* Navbar — hide text links, keep brand + more + theme */
  .nav-tools { display: none; }
  .nav-inner { gap: 12px; padding: 0; }
  .navbar { padding: 0 16px; }
  .brand-tag { display: none; }
  .nav-right { margin-left: auto; }

  /* More button stays visible on mobile */
  .nav-more-btn { display: flex; }

  /* Hero */
  .hero { padding: 40px 16px 28px; }
  .hero h1 { font-size: clamp(28px, 9vw, 42px); }
  .hero-badge { font-size: 11px; padding: 4px 12px; }
  .hero-sub { font-size: 14px; }
  .hero-stats { flex-wrap: wrap; gap: 0; padding: 12px 16px; }
  .hstat { padding: 8px 12px; }
  .hstat-div { display: none; }

  /* Tools nav — horizontal scroll, bigger touch targets */
  .tools-nav-wrap::before { display: none; }
  .tools-nav { padding: 10px 16px; gap: 6px; }
  .tool-tab { font-size: 12px; padding: 7px 12px; border-radius: 20px; }

  /* Main */
  .main-wrap { padding: 20px 16px 60px; }

  /* Editor grid — stack vertically */
  .editor-grid { grid-template-columns: 1fr; gap: 12px; }
  .editor-divider { display: none; }
  .editor-area { min-height: 140px; }

  /* Panel controls */
  .panel-controls { gap: 14px; }
  .ctrl-group { gap: 6px; }
  .ctrl-label { font-size: 10px; min-width: unset; }
  .pill-row { gap: 5px; }
  .pill { font-size: 12px; padding: 5px 10px; }

  /* Buttons */
  .action-bar { flex-wrap: wrap; gap: 8px; }
  .btn-run { padding: 13px 28px; font-size: 15px; width: 100%; justify-content: center; }
  .btn-example { width: 100%; text-align: center; }
  .box-actions { gap: 4px; }
  .bact { padding: 4px 8px; font-size: 11px; }

  /* PK tool layouts */
  .pk-tool-hero { padding: 20px 16px; }
  .pk-tool-hero h2 { font-size: 20px; }
  .pk-form-grid { gap: 16px; }
  .pk-textarea { min-height: 100px; }
  .pk-textarea-sm { min-height: 80px; }

  /* Features grid */
  .feat-grid { grid-template-columns: 1fr; }
  .feat-title { font-size: 22px; }

  /* AI Detector score */
  .det-score-wrap { flex-direction: column; align-items: center; gap: 16px; }
  .det-meta-cards { grid-template-columns: 1fr 1fr; }

  /* Image gen */
  .image-result-actions { flex-direction: column; width: 100%; }
  .image-result-actions a, .image-result-actions button { width: 100%; justify-content: center; }

  /* Hero stats text */
  .hstat strong { font-size: 22px; }
  .hstat span { font-size: 11px; }

  /* Humanizer hero */
  .humanizer-hero { padding: 20px 16px; }
  .humanizer-hero h2 { font-size: 22px; }
  .detector-badges, .platform-badges { gap: 6px; }
  .detector-badges span, .platform-badges span { font-size: 11px; padding: 3px 8px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .hero-stats { width: 100%; justify-content: space-around; }
  .ctrl-group { flex-direction: column; gap: 6px; }
  .pill-row { flex-wrap: wrap; }
  .det-meta-cards { grid-template-columns: 1fr; }
  .box-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .box-title { font-size: 13px; }
  .tool-tab { font-size: 11px; padding: 6px 10px; }
  .brand span { font-size: 15px; }
  .stats-strip { flex-wrap: wrap; gap: 6px; font-size: 12px; }
}

/* Touch-friendly tap areas */
@media (hover: none) {
  .tool-tab { min-height: 36px; }
  .pill { min-height: 34px; }
  .bact { min-height: 30px; }
  .drop-item { min-height: 44px; display: flex; align-items: center; }
}

/* ════════════════════════════════════════════
   ExpressiveFlow v4 — New Tools CSS
   AI Detector + AI Image Generator + Upgrades
   ════════════════════════════════════════════ */

/* ── Highlight tabs (new tools) ── */
.tool-tab.highlight-tab {
  background: linear-gradient(135deg, rgba(244,54,118,0.18), rgba(168,85,247,0.18));
  border-color: rgba(244,54,118,0.35);
  color: var(--accent);
  font-weight: 700;
}
.tool-tab.highlight-tab:hover {
  background: linear-gradient(135deg, rgba(244,54,118,0.3), rgba(168,85,247,0.3));
}

/* ── Humanizer tip strip ── */
.humanizer-tip {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(244,54,118,0.07);
  border: 1px solid rgba(244,54,118,0.18);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}
.inline-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}

/* ── AI Detector ── */
.detector-hero { background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(168,85,247,0.08)); }
.detector-badge { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.3); color: #60a5fa; }
.btn-detector {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  box-shadow: 0 0 30px rgba(59,130,246,0.3);
}
.btn-detector:hover { box-shadow: 0 0 40px rgba(59,130,246,0.5); }

/* Score circle */
.det-score-wrap {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.det-score-circle {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}
.det-score-circle svg { width: 100%; height: 100%; }
.det-score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.det-score-num {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
}
.det-score-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text2);
}
.det-score-meta { flex: 1; min-width: 200px; }
.det-meta-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.det-meta-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.det-meta-card .dmc-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 4px;
}
.det-meta-card .dmc-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* Annotated text */
.det-text-analysis {
  margin-bottom: 20px;
}
.det-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text2);
  margin-bottom: 8px;
}
.det-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text2);
}
.det-leg { display: flex; align-items: center; gap: 4px; }
.ai-high { color: #ef4444; }
.ai-med { color: #f59e0b; }
.ai-low { color: #10b981; }
.det-annotated-text {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  line-height: 2;
  font-size: 14px;
  color: var(--text);
}
.det-sentence {
  display: inline;
  border-radius: 3px;
  padding: 1px 0;
  cursor: default;
  transition: opacity 0.2s;
}
.det-sentence:hover { opacity: 0.8; }
.det-s-high { background: rgba(239,68,68,0.2); border-bottom: 2px solid #ef4444; }
.det-s-med { background: rgba(245,158,11,0.15); border-bottom: 2px solid #f59e0b; }
.det-s-low { background: rgba(16,185,129,0.08); }

/* Patterns found */
.det-patterns-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.det-patterns-section h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 10px;
}
.det-pattern-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.det-pattern-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.det-pattern-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.det-pattern-text { line-height: 1.5; }

/* Fix suggestions */
.det-fix-section {
  background: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(59,130,246,0.06));
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 8px;
}
.det-fix-section h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #10b981;
  margin-bottom: 10px;
}
.det-fix-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.det-fix-item {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.det-fix-item::before { content: '→'; position: absolute; left: 0; color: #10b981; font-weight: 700; }



/* Score color states */
.score-human { color: #10b981; }
.score-low { color: #f59e0b; }
.score-high { color: #ef4444; }
.arc-human { stroke: #10b981 !important; }
.arc-low { stroke: #f59e0b !important; }
.arc-high { stroke: #ef4444 !important; }
