/* ==========================================================================
   Free Character Counter Pro — Front-end styles
   Default theme ("Site Default") intentionally inherits the host theme's
   background, text color, and font — the widget should blend into any
   WordPress site rather than impose its own look. "Aurora" and the light
   editorial themes below are opt-in, self-contained alternatives.
   ========================================================================== */

.fccp-tool {
  /* ---- Theme: Site Default (auto) — inherits the surrounding theme ---- */
  --fccp-ink: currentColor;
  --fccp-paper: color-mix(in srgb, currentColor 5%, transparent);
  --fccp-card: transparent;
  --fccp-card-2: color-mix(in srgb, currentColor 4%, transparent);
  --fccp-border: color-mix(in srgb, currentColor 14%, transparent);
  --fccp-muted: color-mix(in srgb, currentColor 62%, transparent);
  --fccp-accent: #4f5edb;
  --fccp-accent-2: #2f8fd1;
  --fccp-accent-3: #a24fc9;
  --fccp-amber: #b9791c;
  --fccp-danger: #c9463c;
  --fccp-success: #2f8f5f;
  --fccp-radius: 18px;
  --fccp-radius-sm: 12px;
  --fccp-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 26px -18px rgba(0, 0, 0, 0.16);
  --fccp-font-display: inherit;
  --fccp-font-body: inherit;
  --fccp-font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --fccp-speed: 0.22s;

  position: relative;
  max-width: 1040px;
  margin: 32px auto;
  background: var(--fccp-card);
  border: 1px solid var(--fccp-border);
  border-radius: var(--fccp-radius);
  padding: 30px 30px 24px;
  font-family: var(--fccp-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fccp-ink);
  box-shadow: var(--fccp-shadow);
  overflow: hidden;
  isolation: isolate;
}

/* ---- Aurora: dark, glassy, self-contained "AI product" look (opt-in) ---- */
.fccp-tool.fccp-theme-aurora {
  --fccp-ink: #eef1fb;
  --fccp-paper: rgba(255, 255, 255, 0.045);
  --fccp-card: #0c0f1c;
  --fccp-card-2: #11162a;
  --fccp-border: rgba(255, 255, 255, 0.10);
  --fccp-muted: #9aa1bd;
  --fccp-accent: #8b5cf6;
  --fccp-accent-2: #22d3ee;
  --fccp-accent-3: #f472b6;
  --fccp-amber: #f6b93d;
  --fccp-danger: #fb6f6f;
  --fccp-success: #34d399;
  --fccp-radius: 24px;
  --fccp-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255,255,255,0.04) inset;
  --fccp-font-display: 'Fraunces', Georgia, serif;
  --fccp-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fccp-font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(139,92,246,0.16), transparent 55%),
    radial-gradient(120% 140% at 100% 0%, rgba(34,211,238,0.14), transparent 55%),
    var(--fccp-card);
  padding: 34px 34px 26px;
  backdrop-filter: blur(20px);
}

/* ---- Light editorial themes: fixed paper palette, also self-contained (opt-in) ---- */
.fccp-tool.fccp-theme-ink,
.fccp-tool.fccp-theme-rose,
.fccp-tool.fccp-theme-slate {
  --fccp-ink: #14181f;
  --fccp-paper: #fbfaf7;
  --fccp-card: #ffffff;
  --fccp-card-2: #fbfaf7;
  --fccp-border: #e6e2d8;
  --fccp-muted: #6b6f76;
  --fccp-amber: #d98e29;
  --fccp-danger: #c1443c;
  --fccp-success: #2f7d5a;
  --fccp-radius: 22px;
  --fccp-shadow: 0 20px 45px -20px rgba(20, 24, 31, 0.18), 0 2px 8px rgba(20, 24, 31, 0.04);
  --fccp-font-display: 'Fraunces', Georgia, serif;
  --fccp-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--fccp-card);
  padding: 30px 30px 24px;
}

.fccp-tool.fccp-theme-ink {
  --fccp-accent: #2f6f5e;
  --fccp-accent-2: #4c9484;
  --fccp-accent-3: #4c9484;
}

.fccp-tool.fccp-theme-rose {
  --fccp-accent: #a63d5c;
  --fccp-accent-2: #c96b86;
  --fccp-accent-3: #c96b86;
  --fccp-ink: #241a1d;
}

.fccp-tool.fccp-theme-slate {
  --fccp-accent: #47536b;
  --fccp-accent-2: #7488ab;
  --fccp-accent-3: #7488ab;
  --fccp-ink: #1b2028;
}

.fccp-tool * { box-sizing: border-box; }

/* ambient signature (floating orbs + faint grid): Aurora only.
   On every other theme — including Site Default — these stay hidden so
   the widget never paints extra brand color across a page it doesn't own. */
.fccp-orb,
.fccp-grid-overlay {
  display: none;
}
.fccp-tool.fccp-theme-aurora .fccp-orb {
  display: block;
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}
.fccp-tool.fccp-theme-aurora .fccp-orb-1 {
  top: -160px;
  right: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, var(--fccp-accent) 0%, transparent 70%);
  animation: fccp-drift-1 16s ease-in-out infinite alternate;
}
.fccp-tool.fccp-theme-aurora .fccp-orb-2 {
  bottom: -180px;
  left: -140px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, var(--fccp-accent-2) 0%, transparent 70%);
  animation: fccp-drift-2 18s ease-in-out infinite alternate;
}
@keyframes fccp-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 40px) scale(1.15); }
}
@keyframes fccp-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}
.fccp-tool.fccp-theme-aurora .fccp-grid-overlay {
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 30% 0%, black, transparent 75%);
}

/* header badge */
.fccp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--fccp-border);
  background: var(--fccp-paper);
  font-family: var(--fccp-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fccp-accent-2);
  margin-bottom: 14px;
}
.fccp-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fccp-accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fccp-accent-2) 25%, transparent);
}
.fccp-tool.fccp-theme-aurora .fccp-badge-dot {
  animation: fccp-blink 1.8s ease-in-out infinite;
}
@keyframes fccp-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Header ---------- */
.fccp-header { margin-bottom: 24px; position: relative; z-index: 1; }
.fccp-title {
  font-family: var(--fccp-font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--fccp-ink);
  line-height: 1.25;
}
.fccp-tool.fccp-theme-aurora .fccp-title {
  font-size: 30px;
  font-weight: 600;
  background: linear-gradient(120deg, #ffffff 10%, var(--fccp-accent-2) 55%, var(--fccp-accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fccp-subtitle {
  font-size: 14.5px;
  color: var(--fccp-muted);
  margin: 0;
}

/* ---------- Toolbar ---------- */
.fccp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.fccp-field label,
.fccp-field .fccp-field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fccp-muted);
  margin-bottom: 6px;
}
.fccp-lang-select {
  height: 44px;
  padding: 0 14px;
  border-radius: var(--fccp-radius-sm);
  border: 1px solid var(--fccp-border);
  background: var(--fccp-paper);
  font-size: 14px;
  font-weight: 500;
  color: var(--fccp-ink);
  min-width: 200px;
  cursor: pointer;
  transition: border-color var(--fccp-speed), box-shadow var(--fccp-speed);
}
.fccp-lang-select:focus-visible,
.fccp-lang-select:focus {
  outline: none;
  border-color: var(--fccp-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fccp-accent) 18%, transparent);
}

/* ---------- Visitor color picker ---------- */
.fccp-color-field-wrap { min-width: 0; }
.fccp-color-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
}
.fccp-color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--fccp-border);
  padding: 0;
  cursor: pointer;
  background: var(--swatch-color, var(--fccp-accent));
  transition: transform var(--fccp-speed) ease, border-color var(--fccp-speed) ease, box-shadow var(--fccp-speed) ease;
  flex-shrink: 0;
}
.fccp-color-swatch:hover { transform: scale(1.12); }
.fccp-color-swatch:focus-visible { outline: 2px solid var(--fccp-accent); outline-offset: 2px; }
.fccp-color-swatch.is-active {
  border-color: var(--fccp-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fccp-accent-2) 30%, transparent);
}
.fccp-color-swatch-custom {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px dashed var(--fccp-border);
  padding: 0;
  cursor: pointer;
  background: var(--fccp-paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--fccp-muted);
  flex-shrink: 0;
  transition: border-color var(--fccp-speed) ease, transform var(--fccp-speed) ease;
}
.fccp-color-swatch-custom:hover { transform: scale(1.12); border-color: var(--fccp-accent); color: var(--fccp-accent); }
.fccp-color-native-input {
  /* the real <input type="color">, visually hidden but focusable/clickable via the button above it */
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.fccp-color-reset {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: var(--fccp-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px;
  flex-shrink: 0;
}
.fccp-color-reset:hover { color: var(--fccp-accent-2); }

.fccp-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.fccp-btn {
  position: relative;
  overflow: hidden;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--fccp-radius-sm);
  border: none;
  font-family: var(--fccp-font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--fccp-accent), var(--fccp-accent-2));
  transition: transform var(--fccp-speed) ease, box-shadow var(--fccp-speed) ease, background var(--fccp-speed);
}
.fccp-btn-icon { font-size: 14px; line-height: 1; }
.fccp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(20,24,31,0.35); }
.fccp-btn:active { transform: translateY(0) scale(0.97); }
.fccp-btn:focus-visible { outline: 2px solid var(--fccp-accent); outline-offset: 2px; }

.fccp-btn-copy { background: linear-gradient(135deg, var(--fccp-accent), var(--fccp-accent-2)); }
.fccp-btn-primary {
  background: linear-gradient(135deg, var(--fccp-accent-3), var(--fccp-accent));
}
.fccp-btn-primary.is-loading { opacity: 0.75; pointer-events: none; }
.fccp-btn-ghost {
  background: var(--fccp-paper);
  color: var(--fccp-ink);
  border: 1px solid var(--fccp-border);
}
.fccp-btn-ghost:hover { background: #fff; border-color: var(--fccp-accent); }
.fccp-btn.fccp-success { background: #2f7d5a !important; }

/* ripple */
.fccp-btn .fccp-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,0.5);
  animation: fccp-ripple 0.55s ease-out;
  pointer-events: none;
}
@keyframes fccp-ripple {
  to { transform: scale(3); opacity: 0; }
}

/* ---------- Editor ---------- */
.fccp-editor { position: relative; margin-bottom: 14px; }
.fccp-textarea {
  width: 100%;
  min-height: 220px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1.5px solid var(--fccp-border);
  font-size: 16px;
  line-height: 1.75;
  font-family: var(--fccp-font-body);
  color: var(--fccp-ink);
  background: var(--fccp-paper);
  resize: vertical;
  transition: border-color var(--fccp-speed), box-shadow var(--fccp-speed), background var(--fccp-speed);
}
.fccp-textarea:focus {
  outline: none;
  border-color: var(--fccp-accent);
  background: #fff;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--fccp-accent) 12%, transparent);
}
.fccp-textarea::placeholder { color: #a3a7ad; }

.fccp-toast {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--fccp-accent), var(--fccp-accent-2));
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.fccp-toast.is-visible { opacity: 1; transform: translateY(0); }

.fccp-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fccp-accent-2), var(--fccp-accent-3), transparent);
  opacity: 0;
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}
.fccp-editor.is-scanning .fccp-scan-line {
  opacity: 1;
  animation: fccp-scan 1.1s linear infinite;
}
@keyframes fccp-scan {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.fccp-editor-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.fccp-grammar-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fccp-muted);
}
.fccp-grammar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fccp-muted);
}
.fccp-grammar-status.is-scanning .fccp-grammar-dot {
  background: var(--fccp-accent-2);
  animation: fccp-blink 0.9s ease-in-out infinite;
}
.fccp-grammar-status.is-clean .fccp-grammar-dot { background: var(--fccp-success); }
.fccp-grammar-status.has-issues .fccp-grammar-dot { background: var(--fccp-danger); }
.fccp-grammar-status.is-error .fccp-grammar-dot { background: var(--fccp-amber); }

.fccp-draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: var(--fccp-radius-sm);
  background: var(--fccp-paper);
  border: 1px solid var(--fccp-border);
  font-size: 13px;
  color: var(--fccp-ink);
  animation: fccp-fade-in 0.25s ease both;
}
.fccp-draft-banner button {
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--fccp-accent-2);
}
.fccp-draft-banner button + button { color: var(--fccp-muted); margin-left: 14px; }

/* ---------- Ruler signature bar ---------- */
.fccp-ruler { margin: 4px 0 26px; }
.fccp-ruler-track {
  position: relative;
  height: 10px;
  background: var(--fccp-paper);
  border: 1px solid var(--fccp-border);
  border-radius: 999px;
  overflow: hidden;
}
.fccp-ruler-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--fccp-accent), var(--fccp-accent-2));
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(.22,.9,.35,1), background 0.35s;
}
.fccp-ruler-fill.is-warn { background: linear-gradient(90deg, var(--fccp-amber), #e6a94a); }
.fccp-ruler-fill.is-over { background: linear-gradient(90deg, var(--fccp-danger), #e0685f); }
.fccp-ruler-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-top: 6px;
}
.fccp-ruler-ticks span {
  width: 1px;
  height: 6px;
  background: var(--fccp-border);
}

/* ---------- Stats grid ---------- */
.fccp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}
.fccp-stat {
  background: var(--fccp-paper);
  border: 1px solid var(--fccp-border);
  border-radius: 16px;
  padding: 16px 8px;
  text-align: center;
  transition: transform var(--fccp-speed) ease, box-shadow var(--fccp-speed) ease, border-color var(--fccp-speed);
}
.fccp-stat:hover {
  transform: translateY(-3px);
  border-color: var(--fccp-accent);
  box-shadow: 0 10px 20px -12px rgba(20,24,31,0.25);
  background: #fff;
}
.fccp-stat strong {
  display: block;
  font-family: var(--fccp-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 25px;
  font-weight: 600;
  color: var(--fccp-accent);
  line-height: 1.2;
}
.fccp-stat.fccp-pulse strong { animation: fccp-pop 0.28s ease; }
@keyframes fccp-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}
.fccp-stat span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fccp-muted);
  text-transform: uppercase;
}

/* ---------- Social section ---------- */
.fccp-section { position: relative; z-index: 1; margin-bottom: 26px; }
.fccp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.fccp-section-title {
  font-family: var(--fccp-font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
}
.fccp-section-head .fccp-section-title { margin: 0; }
.fccp-section-title-sm { font-size: 15.5px; margin-bottom: 12px; }
.fccp-privacy-note {
  font-size: 11.5px;
  color: var(--fccp-muted);
}

.fccp-stat-grammar strong { color: var(--fccp-accent-3); }
.fccp-stat-grammar.is-clean strong { color: var(--fccp-success); }

.fccp-grammar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fccp-issue-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--fccp-paper);
  border: 1px solid var(--fccp-border);
  border-left: 3px solid var(--fccp-amber);
  animation: fccp-fade-in 0.25s ease both;
}
.fccp-issue-card.fccp-issue-grammar { border-left-color: var(--fccp-danger); }
.fccp-issue-card.fccp-issue-style { border-left-color: var(--fccp-accent-2); }
.fccp-issue-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.fccp-issue-message { font-size: 13.5px; font-weight: 600; color: var(--fccp-ink); }
.fccp-issue-context { font-size: 12.5px; color: var(--fccp-muted); }
.fccp-issue-context mark {
  background: color-mix(in srgb, var(--fccp-danger) 22%, transparent);
  color: inherit;
  border-radius: 4px;
  padding: 0 2px;
}
.fccp-issue-apply {
  flex-shrink: 0;
  border: 1px solid var(--fccp-border);
  background: var(--fccp-card-2, var(--fccp-paper));
  color: var(--fccp-accent-2);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--fccp-speed), border-color var(--fccp-speed);
}
.fccp-issue-apply:hover { transform: translateY(-1px); border-color: var(--fccp-accent-2); }

/* ---------- Insights: readability + keywords ---------- */
.fccp-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}
.fccp-readability-score { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.fccp-readability-ring {
  --pct: 0;
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--fccp-accent-2) calc(var(--pct) * 1%), var(--fccp-border) 0);
  transition: background 0.4s ease;
}
.fccp-readability-ring span[data-readability-value] {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fccp-font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--fccp-ink);
  /* Solid backing plate so the ring reads as a hollow ring rather than a
     filled disc. Themes with an opaque --fccp-card (Aurora, Ink, Rose,
     Slate) use that directly; Site Default (transparent --fccp-card) falls
     back to a plate that follows the page's light/dark color scheme. */
  background: #ffffff;
  background: var(--fccp-card, #ffffff);
}
.fccp-tool:not(.fccp-theme-aurora):not(.fccp-theme-ink):not(.fccp-theme-rose):not(.fccp-theme-slate) .fccp-readability-ring span[data-readability-value] {
  background: light-dark(#ffffff, #15181f);
}
.fccp-readability-copy strong { display: block; font-size: 14px; margin-bottom: 2px; }
.fccp-readability-copy span { font-size: 12px; color: var(--fccp-muted); }
.fccp-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.fccp-mini-stats div {
  text-align: center;
  background: var(--fccp-paper);
  border: 1px solid var(--fccp-border);
  border-radius: 12px;
  padding: 10px 4px;
}
.fccp-mini-stats strong {
  display: block;
  font-family: var(--fccp-font-mono);
  font-size: 16px;
  color: var(--fccp-accent-2);
}
.fccp-mini-stats span {
  display: block;
  font-size: 10.5px;
  color: var(--fccp-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 3px;
}

.fccp-keyword-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fccp-keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--fccp-paper);
  border: 1px solid var(--fccp-border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fccp-ink);
  animation: fccp-fade-in 0.25s ease both;
}
.fccp-keyword-chip em {
  font-style: normal;
  color: var(--fccp-accent-2);
  font-family: var(--fccp-font-mono);
}
.fccp-platform-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  background: var(--fccp-paper);
  border: 1px solid var(--fccp-border);
  padding: 14px 18px;
  border-radius: 18px;
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 500;
}
.fccp-platform-toggles label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--fccp-ink);
  transition: color var(--fccp-speed);
}
.fccp-platform-toggles label:hover { color: var(--fccp-accent); }
.fccp-platform-toggles input {
  width: 17px;
  height: 17px;
  accent-color: var(--fccp-accent);
  cursor: pointer;
  margin: 0;
}

.fccp-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.fccp-social-card {
  background: var(--fccp-paper);
  border: 1px solid var(--fccp-border);
  border-radius: 16px;
  padding: 16px 16px 18px;
  transition: transform var(--fccp-speed), box-shadow var(--fccp-speed), border-color var(--fccp-speed), background var(--fccp-speed);
  animation: fccp-fade-in 0.3s ease both;
}
@keyframes fccp-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fccp-social-card:hover {
  transform: translateY(-3px);
  border-color: var(--fccp-accent);
  background: #fff;
  box-shadow: 0 14px 26px -16px rgba(20,24,31,0.28);
}
.fccp-social-card strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.fccp-social-count {
  font-family: var(--fccp-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  color: var(--fccp-muted);
}
.fccp-social-count.is-over { color: var(--fccp-danger); font-weight: 600; }
.fccp-social-progress {
  height: 7px;
  background: #e7e3d9;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.fccp-social-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--fccp-accent);
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
}
.fccp-social-progress-fill.is-warn { background: var(--fccp-amber); }
.fccp-social-progress-fill.is-over { background: var(--fccp-danger); }

.fccp-empty-note {
  grid-column: 1 / -1;
  text-align: center;
  padding: 22px;
  color: var(--fccp-muted);
  background: var(--fccp-paper);
  border: 1px dashed var(--fccp-border);
  border-radius: 16px;
  font-size: 13.5px;
}

/* ---------- Footer ---------- */
.fccp-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--fccp-border);
}
.fccp-footer-hint {
  font-size: 12px;
  color: var(--fccp-muted);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .fccp-orb,
  .fccp-badge-dot,
  .fccp-scan-line,
  .fccp-stat.fccp-pulse strong,
  .fccp-social-card,
  .fccp-issue-card,
  .fccp-keyword-chip { animation: none !important; }
  .fccp-btn, .fccp-stat, .fccp-social-card, .fccp-ruler-fill, .fccp-social-progress-fill, .fccp-readability-ring {
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .fccp-tool { padding: 24px 20px 20px; margin: 20px 12px; }
  .fccp-title { font-size: 25px; }
  .fccp-toolbar { flex-direction: column; align-items: stretch; }
  .fccp-actions { justify-content: flex-start; }
  .fccp-insights-grid { grid-template-columns: 1fr; }
  .fccp-section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .fccp-actions .fccp-btn { flex: 1 1 auto; justify-content: center; }
  .fccp-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .fccp-social-grid { grid-template-columns: 1fr; }
  .fccp-lang-select { min-width: 0; width: 100%; }
  .fccp-mini-stats { grid-template-columns: 1fr 1fr; }
  .fccp-mini-stats div:last-child { grid-column: 1 / -1; }
  .fccp-issue-top { flex-direction: column; }
  .fccp-badge { font-size: 9.5px; }
}
