/* ============================================================
   Ln2CRM · DARK  inline-style remap (loaded on every page after premium.css)

   Many pages carry light-theme colours in style="" attributes (tables in
   pricing and blog posts, badges, notes, account widgets). An !important
   rule from a stylesheet beats a plain inline declaration, so each light
   value found in the site survey maps onto the dark tokens here, keyed by
   the exact text of the attribute (with and without the space after ":").
   ============================================================ */

/* ---- Text: near-black and dark greys become the ivory text levels ---- */
[style*="color:#0f0f10"], [style*="color: #0f0f10"],
[style*="color:#14141a"], [style*="color: #14141a"],
[style*="color:#0b1020"], [style*="color: #0b1020"],
[style*="color:#333"], [style*="color: #333"]{ color: var(--p-ivory) !important; }

[style*="color:#555"], [style*="color: #555"],
[style*="color:rgba(0,0,0,.72)"], [style*="color: rgba(0,0,0,.72)"],
[style*="color:rgba(15,15,16,0.65)"], [style*="color: rgba(15,15,16,0.65)"],
[style*="color:rgba(22,18,55,0.65)"], [style*="color: rgba(22,18,55,0.65)"]{ color: var(--p-ivory-2) !important; }

[style*="color:#666"], [style*="color: #666"],
[style*="color:#6b6a6f"], [style*="color: #6b6a6f"],
[style*="color:#888"], [style*="color: #888"]{ color: var(--p-mid) !important; }

/* ---- Accent text: the light-theme shades are too dark on ink ---- */
[style*="color:#6651f6"], [style*="color: #6651f6"],
[style*="color:#7c5cff"], [style*="color: #7c5cff"],
[style*="color:#7c3aed"], [style*="color: #7c3aed"],
[style*="color:#2c1f9b"], [style*="color: #2c1f9b"]{ color: var(--p-violet-ink) !important; }
[style*="color:#15803d"], [style*="color: #15803d"]{ color: var(--p-green) !important; }
[style*="color:#1d4ed8"], [style*="color: #1d4ed8"]{ color: var(--p-blue) !important; }
[style*="color:#a16207"], [style*="color: #a16207"]{ color: #f2c14e !important; }

/* ---- Light surfaces ---- */
[style*="background:#f5f5f7"], [style*="background: #f5f5f7"],
[style*="background:#f6f7fb"], [style*="background: #f6f7fb"],
[style*="background:#f4f2ed"], [style*="background: #f4f2ed"],
[style*="background:#f8f7fd"], [style*="background: #f8f7fd"],
[style*="background:#faf9ff"], [style*="background: #faf9ff"],
[style*="background:#fff;"], [style*="background: #fff;"],
[style$="background:#fff"], [style$="background: #fff"], [style*="background-color:#fff"],
[style*="background:linear-gradient(135deg,#f6f7fb"], [style*="background: linear-gradient(135deg, #f6f7fb"]{
  background: var(--p-surf-2) !important;
}
[style*="background:rgba(0,0,0,.02)"], [style*="background: rgba(0,0,0,.02)"]{ background: rgba(244,241,234,.03) !important; }
/* violet-tinted light cards */
[style*="background:#efeafe"], [style*="background: #efeafe"],
[style*="background:#f3f0ff"], [style*="background: #f3f0ff"],
[style*="background:#f3e8ff"], [style*="background: #f3e8ff"]{ background: var(--p-violet-soft) !important; }
/* the faint violet column tint of comparison tables reads as nothing on ink */
[style*="background:rgba(102,81,246,0.04)"], [style*="background: rgba(102,81,246,0.04)"],
[style*="background:rgba(102,81,246,0.06)"], [style*="background: rgba(102,81,246,0.06)"]{ background: rgba(102,81,246,.09) !important; }
[style*="background:rgba(102,81,246,0.10)"], [style*="background: rgba(102,81,246,0.10)"]{ background: rgba(102,81,246,.16) !important; }
/* semantic light tints keep their meaning as soft tints on ink */
[style*="background:#fef3c7"], [style*="background: #fef3c7"]{ background: rgba(242,193,78,.12) !important; }
[style*="background:#dcfce7"], [style*="background: #dcfce7"]{ background: var(--p-green-soft) !important; }
[style*="background:#dbeafe"], [style*="background: #dbeafe"]{ background: rgba(90,162,238,.12) !important; }

/* ---- Hairlines ---- */
[style*="#e5e5ea"],
[style*="rgba(15,15,16,0.06)"], [style*="rgba(15,15,16,0.08)"], [style*="rgba(15,15,16,.08)"],
[style*="solid rgba(0,0,0,.1)"]{ border-color: var(--p-line-2) !important; }
/* Light callout boxes (a tinted div in the light theme, e.g. "Try Ln2CRM")
   become dark cards; as content blocks they take the violet edge. */
div[style*="background:#f6f7fb"], div[style*="background: #f6f7fb"],
div[style*="background:#f5f5f7"], div[style*="background: #f5f5f7"],
div[style*="background:#f8f7fd"], div[style*="background: #f8f7fd"],
div[style*="background:#faf9ff"], div[style*="background: #faf9ff"],
div[style*="background:#f4f2ed"], div[style*="background: #f4f2ed"]{
  border: 1px solid var(--p-edge) !important;
}
[style*="solid rgba(102,81,246,0.18)"], [style*="solid rgba(102,81,246,0.20)"],
[style*="solid rgba(124,92,255,0.15)"], [style*="solid rgba(124,92,255,0.2)"],
[style*="solid rgba(124,92,255,0.25)"], [style*="solid rgba(124,92,255,0.3)"]{ border-color: var(--p-edge) !important; }

/* ---- Exceptions: dark text that sits on a bright green button must stay dark ---- */
[style*="background:#5bd67e"], [style*="background: #5bd67e"]{ color: #06210f !important; }
