
*{margin:0;padding:0;box-sizing:border-box}
:root{--bg:#f9fafb;--panel:#ffffff;--ink:#111827;--muted:#6b7280;--line:#e5e7eb;--line2:#f3f4f6;--blue:#3b82f6;--green:#10b981;--amber:#f59e0b;--violet:#8b5cf6;--radius:16px}
html{scroll-behavior:smooth}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--ink);line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
.container{max-width:1280px;margin:0 auto;padding:0 20px}
/* header style */
header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.hdr{height:64px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:-.02em;font-size:18px;color:#111827}
.brand-mark{width:38px;height:38px;border-radius:10px;background:#111827;color:white;display:grid;place-items:center;font-size:18px;font-weight:900}
.brand small{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#6b7280;font-weight:700;margin-top:-2px}
.nav{display:none;gap:6px;align-items:center}
@media(min-width:980px){.nav{display:flex}}
.nav a{padding:8px 12px;border-radius:8px;font-size:14px;font-weight:500;color:#4b5563}
.nav a:hover{background:#f3f4f6;color:#111827}
.nav a.active{background:#111827;color:white}
.hdr-right{display:flex;align-items:center;gap:10px}
.search-icon{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:white;display:grid;place-items:center;cursor:pointer}
.theme-toggle{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:white;display:grid;place-items:center;cursor:pointer;font-size:16px;transition:.15s}
.theme-toggle:hover{transform:rotate(15deg)}
.btn-dark{background:#111827;color:white;padding:10px 16px;border-radius:10px;font-weight:700;font-size:13px;border:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.btn-dark:hover{background:#1f2937}
/* hero centered */
.hero{padding:48px 0 28px;text-align:center;background:white;border-bottom:1px solid var(--line)}
.hero h1{font-size:44px;line-height:1.05;letter-spacing:-.03em;font-weight:900;max-width:760px;margin:0 auto}
.hero h1 span{position:relative}
.hero h1 span:after{content:"";position:absolute;left:0;right:0;bottom:4px;height:10px;background:#fef08a;z-index:-1;opacity:.6}
.hero p{color:var(--muted);font-size:15px;max-width:640px;margin:12px auto 0;line-height:1.6}
.hero p b{color:var(--ink)}
.hero-search{max-width:680px;margin:22px auto 0;position:relative}
.hero-search input{width:100%;padding:16px 20px 16px 48px;border:1px solid #d1d5db;border-radius:14px;font-size:15px;font-weight:500;outline:none;box-shadow:0 10px 30px rgba(0,0,0,.06);transition:.15s}
.hero-search input:focus{border-color:#111827;box-shadow:0 10px 30px rgba(0,0,0,.10)}
.hero-search span{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#4b5563;font-size:18px}
.hero-search button{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:#111827;color:white;border:none;padding:10px 18px;border-radius:10px;font-weight:700;font-size:13px;cursor:pointer}
.quick{margin-top:14px;display:flex;gap:8px;justify-content:center;flex-wrap:wrap;align-items:center;font-size:12px;color:var(--muted)}
.quick b{color:var(--ink)}
.quick a{background:#f3f4f6;border:1px solid #e5e7eb;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:600;color:#374151}
.quick a:hover{background:white;box-shadow:0 4px 12px rgba(0,0,0,.06)}
.stats-bar{margin-top:16px;display:inline-flex;gap:18px;align-items:center;background:#f9fafb;border:1px solid #e5e7eb;padding:10px 16px;border-radius:999px;font-size:12px;font-weight:600;color:#374151}
.stats-bar b{color:#111827}
.stats-bar span.dot{width:6px;height:6px;border-radius:50%;background:#10b981;display:inline-block}
/* filter bar */
.filter-bar{position:sticky;top:64px;z-index:40;background:rgba(249,250,251,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding:12px 0}
.filter-inner{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.pills{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pill{padding:8px 14px;border-radius:999px;font-size:13px;font-weight:600;border:1px solid #e5e7eb;background:white;cursor:pointer;transition:.15s;color:#374151}
.pill.active{background:#111827;color:white;border-color:#111827}
.pill:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(0,0,0,.06)}
.count{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);background:white;border:1px solid var(--line);padding:8px 12px;border-radius:10px}
/* ad */
.ad{border:1px dashed #d1d5db;background:repeating-linear-gradient(45deg, #f9fafb, #f9fafb 10px, #f3f4f6 10px, #f3f4f6 20px);border-radius:12px;display:grid;place-items:center;color:#9ca3af;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:14px;text-align:center}
/* tools grid */
.tools{padding:22px 0 30px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.section-head h2{font-size:20px;letter-spacing:-.02em;font-weight:800;display:flex;align-items:center;gap:10px}
.section-head h2 i{width:32px;height:32px;border-radius:8px;background:#111827;color:white;display:grid;place-items:center;font-style:normal;font-size:14px}
.section-head p{font-size:13px;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:1100px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.grid{grid-template-columns:1fr}}
.card{background:white;border:1px solid #e5e7eb;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px;transition:.18s;position:relative;overflow:hidden}
.card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(0,0,0,.08);border-color:#d1d5db}
.card-top{display:flex;gap:12px;align-items:start}
.icon{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;font-size:22px;flex-shrink:0;border:1px solid rgba(0,0,0,.06)}
.icon-blue{background:#dbeafe;border-color:#bfdbfe}
.icon-green{background:#d1fae5;border-color:#a7f3d0}
.icon-amber{background:#fef3c7;border-color:#fde68a}
.icon-violet{background:#ede9fe;border-color:#ddd6fe}
.badge{position:absolute;top:10px;right:10px;font-size:10px;font-weight:800;letter-spacing:.06em;padding:4px 7px;border-radius:999px;border:1px solid #e5e7eb;background:white}
.badge-hot{background:#111827;color:white;border-color:#111827}
.badge-new{background:#dcfce7;color:#166534;border-color:#bbf7d0}
.badge-pop{background:#fef3c7;color:#92400e;border-color:#fde68a}
.card h3{font-size:14px;line-height:1.3;font-weight:750;letter-spacing:-.01em}
.card p{font-size:12.5px;color:var(--muted);line-height:1.5;min-height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;padding-top:10px;border-top:1px solid #f3f4f6}
.card-foot span{font-size:11px;font-weight:600;color:#9ca3af}
.open{font-size:12px;font-weight:750;color:#111827;display:inline-flex;gap:4px;align-items:center}
.card:hover .open{gap:6px}
/* features style */
.features{margin-top:22px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:900px){.features{grid-template-columns:1fr}}
.feat{background:white;border:1px solid #e5e7eb;border-radius:16px;padding:18px;display:flex;gap:12px}
.feat i{width:40px;height:40px;border-radius:10px;background:#f3f4f6;display:grid;place-items:center;font-style:normal;font-size:18px;flex-shrink:0}
.feat h4{font-size:14px}
.feat p{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.5}
/* footer */
footer{margin-top:28px;background:#111827;color:#9ca3af;padding:32px 0 20px}
.foot-grid{display:grid;grid-template-columns:1.6fr .9fr .9fr .9fr;gap:22px}
@media(max-width:900px){.foot-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.foot-grid{grid-template-columns:1fr}}
.foot-brand{color:white;font-weight:900;font-size:18px;display:flex;gap:10px;align-items:center}
.foot-brand i{width:38px;height:38px;border-radius:10px;background:white;color:#111827;display:grid;place-items:center}
footer h5{color:white;font-size:12px;letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px}
footer a{display:block;color:#9ca3af;font-size:13px;margin:7px 0}
footer a:hover{color:white}
.copy{margin-top:22px;padding-top:16px;border-top:1px solid #1f2937;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:#6b7280}
/* modal clean */
.modal{position:fixed;inset:0;background:rgba(17,24,39,.55);backdrop-filter:blur(8px);display:none;z-index:80;padding:16px;overflow:auto}
.modal.open{display:block}
.modal-card{max-width:880px;margin:20px auto;background:white;border-radius:16px;overflow:hidden;border:1px solid #e5e7eb;box-shadow:0 30px 60px rgba(0,0,0,.25)}
.modal-head{padding:18px 20px;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;background:rgba(255,255,255,.96);backdrop-filter:blur(10px)}
.modal-head h3{font-size:17px;display:flex;align-items:center;gap:10px;letter-spacing:-.01em}
.close{width:36px;height:36px;border-radius:10px;border:1px solid #e5e7eb;background:white;cursor:pointer;display:grid;place-items:center;font-size:16px}
.close:hover{background:#f9fafb}
.tool-body{padding:20px;display:grid;gap:16px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:640px){.form-grid{grid-template-columns:1fr}}
.field{display:grid;gap:6px}
.field label{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#374151}
.field input,.field select,.field textarea{width:100%;padding:11px 13px;border:1px solid #d1d5db;border-radius:10px;font-size:14px;font-weight:500;outline:none;background:white}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#111827;box-shadow:0 0 0 3px #f3f4f6}
.result{border:1px solid #e5e7eb;background:#f9fafb;border-radius:12px;padding:14px;display:grid;gap:10px}
.kpi{display:flex;gap:10px;flex-wrap:wrap}
.kpi div{flex:1;min-width:140px;background:white;border:1px solid #e5e7eb;border-radius:12px;padding:12px}
.kpi b{display:block;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.kpi strong{font-size:18px;letter-spacing:-.01em}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.btn{appearance:none;border:none;cursor:pointer;font-weight:700;border-radius:10px;padding:11px 16px;font-size:13px;display:inline-flex;align-items:center;gap:6px;transition:.15s}
.btn-primary{background:#111827;color:white}
.btn-primary:hover{background:#1f2937}
.btn-light{background:white;border:1px solid #e5e7eb;color:#111827}
.canvas-wrap{border:1px solid #e5e7eb;border-radius:12px;overflow:hidden;background:white;display:grid;place-items:center;min-height:200px}
.drop{border:2px dashed #d1d5db;border-radius:12px;padding:22px;text-align:center;background:#f9fafb;cursor:pointer}
.drop:hover{border-color:#111827;background:white}
.table{width:100%;border-collapse:collapse;font-size:13px}
.table th,.table td{border:1px solid #e5e7eb;padding:9px;text-align:left}
.table th{background:#f9fafb;font-size:11px;text-transform:uppercase;letter-spacing:.05em}
.invoice-paper{background:white;border:1px solid #e5e7eb;border-radius:12px;padding:20px}
/* dark mode */
[data-theme="dark"]{color-scheme:dark}
[data-theme="dark"] body{background:#0b0f1f;color:#f1f5f9}
[data-theme="dark"] header{background:rgba(11,15,31,.9);border-color:#1e293b}
[data-theme="dark"] .hero{background:#0b0f1f;border-color:#1e293b}
[data-theme="dark"] .hero h1{color:white}
[data-theme="dark"] .hero p{color:#94a3b8}
[data-theme="dark"] .hero-search input{background:#11162f;border-color:#334155;color:white}
[data-theme="dark"] .hero-search input::placeholder{color:#64748b}
[data-theme="dark"] .card{background:#11162f;border-color:#1e293b}
[data-theme="dark"] .card p{color:#94a3b8}
[data-theme="dark"] .card-foot{border-color:#1e293b}
[data-theme="dark"] .filter-bar{background:rgba(11,15,31,.9);border-color:#1e293b}
[data-theme="dark"] .pill{background:#11162f;border-color:#334155;color:#cbd5e1}
[data-theme="dark"] .pill.active{background:white;color:#0b0f1f}
[data-theme="dark"] .feat{background:#11162f;border-color:#1e293b}
[data-theme="dark"] .feat p{color:#94a3b8}
[data-theme="dark"] .modal-card{background:#11162f;border-color:#1e293b}
[data-theme="dark"] .modal-head{background:rgba(17,22,47,.95);border-color:#1e293b}
[data-theme="dark"] .close{background:#0b0f1f;border-color:#334155;color:white}
[data-theme="dark"] .field input,[data-theme="dark"] .field select,[data-theme="dark"] .field textarea{background:#0b0f1f;border-color:#334155;color:white}
[data-theme="dark"] .result{background:#0b0f1f;border-color:#1e293b}
[data-theme="dark"] .kpi div{background:#11162f;border-color:#1e293b}
[data-theme="dark"] .theme-toggle{background:#11162f;border-color:#334155;color:white}
[data-theme="dark"] .search-icon{background:#11162f;border-color:#334155;color:white}
[data-theme="dark"] footer{background:#020617} /* - Auth Modal */
.auth-modal{position:fixed;inset:0;background:rgba(17,24,39,.62);backdrop-filter:blur(10px);display:none;z-index:90;padding:16px;overflow:auto}
.auth-modal.open{display:grid;place-items:center}
.auth-card{width:100%;max-width:440px;background:white;border-radius:20px;overflow:hidden;border:1px solid #e5e7eb;box-shadow:0 30px 60px rgba(0,0,0,.3);animation:authIn .22s ease}
@keyframes authIn{from{opacity:0;transform:translateY(10px) scale(.98)} to{opacity:1;transform:none}}
.auth-head{padding:22px 22px 0;text-align:center}
.auth-head h3{font-size:22px;letter-spacing:-.02em;font-weight:900}
.auth-head p{font-size:13px;color:#6b7280;margin-top:6px}
.auth-tabs{display:flex;gap:6px;background:#f3f4f6;border-radius:999px;padding:4px;width:fit-content;margin:14px auto 0}
.auth-tab{padding:7px 14px;border-radius:999px;font-size:13px;font-weight:700;border:none;cursor:pointer;background:transparent;color:#6b7280}
.auth-tab.active{background:white;color:#111827;box-shadow:0 4px 12px rgba(0,0,0,.08);border:1px solid #e5e7eb}
.auth-body{padding:18px 22px 22px;display:grid;gap:12px}
.auth-field{display:grid;gap:6px}
.auth-field label{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#374151}
.auth-field input{width:100%;padding:12px 14px;border:1px solid #d1d5db;border-radius:10px;font-size:14px;font-weight:500;outline:none}
.auth-field input:focus{border-color:#111827;box-shadow:0 0 0 3px #f3f4f6}
.auth-btn{width:100%;padding:12px;border-radius:10px;border:none;background:#111827;color:white;font-weight:800;font-size:14px;cursor:pointer;transition:.15s}
.auth-btn:hover{background:#1f2937}
.auth-divider{display:flex;align-items:center;gap:12px;color:#9ca3af;font-size:12px;font-weight:600}
.auth-divider:before,.auth-divider:after{content:"";flex:1;height:1px;background:#e5e7eb}
.google-btn{width:100%;padding:11px;border:1px solid #e5e7eb;background:white;border-radius:10px;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.google-btn:hover{background:#f9fafb}
.auth-foot{font-size:12px;color:#6b7280;text-align:center}
.auth-foot a{color:#111827;font-weight:700}
.auth-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:10px;border:1px solid #e5e7eb;background:white;display:grid;place-items:center;cursor:pointer}
.user-menu{display:flex;align-items:center;gap:10px}
.user-avatar{width:36px;height:36px;border-radius:10px;background:#111827;color:white;display:grid;place-items:center;font-weight:800;font-size:13px}
/* removed */
[data-theme="dark"] .auth-card{background:#11162f;border-color:#1e293b}
[data-theme="dark"] .auth-head p{color:#94a3b8}
[data-theme="dark"] .auth-tabs{background:#0b0f1f}
[data-theme="dark"] .auth-tab.active{background:#1e293b;color:white;border-color:#334155}
[data-theme="dark"] .auth-field input{background:#0b0f1f;border-color:#334155;color:white}
[data-theme="dark"] .auth-card{color:#f1f5f9}
[data-theme="dark"] .google-btn{background:#0b0f1f;border-color:#334155;color:white}
.hamburger{display:none}
@media(max-width:980px){ .nav{position:fixed;top:64px;left:0;right:0;background:white;border-bottom:1px solid #e5e7eb;flex-direction:column;align-items:stretch;padding:12px;gap:4px;transform:translateY(-110%);opacity:0;pointer-events:none;transition:.22s;box-shadow:0 12px 30px rgba(0,0,0,.08);z-index:49} .nav.open{transform:translateY(0);opacity:1;pointer-events:auto} .nav a{padding:12px 14px;border-radius:10px} .hamburger{display:grid !important} .hdr{height:64px} .hdr-right{gap:8px} .hdr-right .btn-dark{padding:8px 12px;font-size:12px}
}
@media(max-width:375px){ .hdr{gap:8px} .brand{font-size:16px} .brand-mark{width:34px;height:34px;font-size:16px}
}
.noscript-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:10px}
@media(max-width:520px){.noscript-grid{grid-template-columns:1fr}} :focus-visible{outline:2px solid #4f46e5;outline-offset:2px}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:2px solid #4f46e5;outline-offset:2px;border-color:#4f46e5}
.hamburger:focus-visible,.theme-toggle:focus-visible,.btn:focus-visible{outline:2px solid #4f46e5;outline-offset:2px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}} [data-theme="dark"] .brand{color:#f1f5f9}
[data-theme="dark"] .brand small{color:#94a3b8}
[data-theme="dark"] .nav a{color:#cbd5e1}
[data-theme="dark"] .nav a.active,[data-theme="dark"] .nav a[aria-current="page"]{color:white;background:rgba(255,255,255,.08);border-color:transparent}
[data-theme="dark"] .hero h1 span{-webkit-text-fill-color:transparent}
[data-theme="dark"] .card{color:#f1f5f9}
[data-theme="dark"] .card h3{color:#f1f5f9}
[data-theme="dark"] .foot-brand{color:white}
[data-theme="dark"] .icon{filter:brightness(1.1)}
[data-theme="dark"] .feat h4{color:#f1f5f9}
[data-theme="dark"] .result h4{color:#f1f5f9}
[data-theme="dark"] .result{color:#cbd5e1}
[data-theme="dark"] a{color:#93c5fd} @media(max-width:980px){ .brand small{display:none} .brand{font-size:15px} .brand-mark{width:30px;height:30px;font-size:14px} .hdr{gap:8px} .hdr-right{gap:6px} .hdr-right .btn-dark{padding:6px 9px;font-size:11px} .search-icon,.theme-toggle{width:34px;height:34px} #authArea .btn-dark:first-child{display:none}
} [data-theme="dark"] .nav a.active{color:#f1f5f9 !important;background:#1e293b !important;border-color:#334155 !important}
[data-theme="dark"] .hero b{color:#e2e8f0}
[data-theme="dark"] .hero p{color:#cbd5e1}
[data-theme="dark"] .quick span{color:#94a3b8}
[data-theme="dark"] .card h3{color:#f1f5f9} 
[data-theme="dark"] .stats-bar{background:#1e293b !important;border-color:#334155 !important;color:#e2e8f0 !important}
[data-theme="dark"] .stats-bar b{color:#f1f5f9 !important}
[data-theme="dark"] .quick a{background:#1e293b !important;color:#e2e8f0 !important;border-color:#334155 !important}
[data-theme="dark"] .card .icon,[data-theme="dark"] .icon-violet,[data-theme="dark"] .icon-green,[data-theme="dark"] .icon-blue{background:#1e293b !important;color:#f1f5f9 !important;border-color:#334155 !important}
[data-theme="dark"] .card .grid div{background:#1e293b !important;border-color:#334155 !important}
[data-theme="dark"] .card h3{color:#f1f5f9 !important}
[data-theme="dark"] .card a{color:#93c5fd !important}


[data-theme="dark"] main p{color:#cbd5e1 !important}
[data-theme="dark"] .card p{color:#cbd5e1 !important}
[data-theme="dark"] .section-head p{color:#94a3b8 !important}
[data-theme="dark"] .post p{color:#cbd5e1 !important}
[data-theme="dark"] #postN div{color:#e2e8f0 !important}


/* === DARK MODE CONTRAST FIX - Problem A: light bg with light text === */
[data-theme="dark"] .stats-bar{background:#1e293b !important;border:1px solid #334155 !important;color:#e2e8f0 !important}
[data-theme="dark"] .stats-bar b{color:#f8fafc !important}
[data-theme="dark"] .stats-bar .dot{background:#10b981 !important}
[data-theme="dark"] .quick a{background:#1e293b !important;color:#cbd5e1 !important;border:1px solid #334155 !important}
[data-theme="dark"] .quick span{color:#94a3b8 !important}
[data-theme="dark"] .card .icon,
[data-theme="dark"] .card .icon-violet,
[data-theme="dark"] .card .icon-green,
[data-theme="dark"] .card .icon-blue,
[data-theme="dark"] .card .icon-amber{background:#1e293b !important;color:#f1f5f9 !important;border:1px solid #334155 !important;filter:none !important}
[data-theme="dark"] .feat{background:#1e293b !important;border-color:#334155 !important}
[data-theme="dark"] .feat h4{color:#f1f5f9 !important}
[data-theme="dark"] .feat p{color:#cbd5e1 !important}

/* === Problem B: dark text on dark bg === */
[data-theme="dark"] body{color:#e2e8f0}
[data-theme="dark"] main p{color:#cbd5e1 !important}
[data-theme="dark"] .card p{color:#cbd5e1 !important}
[data-theme="dark"] .section-head p{color:#94a3b8 !important}
[data-theme="dark"] .section-head h2{color:#f1f5f9 !important}
[data-theme="dark"] .hero p{color:#cbd5e1 !important}
[data-theme="dark"] .hero b{color:#f1f5f9 !important}
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3{color:#f1f5f9 !important}
[data-theme="dark"] .post{color:#cbd5e1}
[data-theme="dark"] .post p{color:#cbd5e1 !important}
[data-theme="dark"] #post1 div, [data-theme="dark"] #post2 div, [data-theme="dark"] #post3 div, [data-theme="dark"] #post4 div{background:#1e293b !important;color:#e2e8f0 !important;border-color:#334155 !important}
[data-theme="dark"] footer{color:#94a3b8}
[data-theme="dark"] footer p{color:#94a3b8 !important}



.tool-hero{padding:36px 0 18px;text-align:center;background:white;border-bottom:1px solid #e5e7eb}
.tool-hero h1{font-size:32px;line-height:1.1;letter-spacing:-.02em;font-weight:900;max-width:800px;margin:0 auto}
.tool-hero p{color:#6b7280;max-width:640px;margin:10px auto 0;font-size:14px;line-height:1.6}
.breadcrumb{font-size:12px;color:#6b7280;margin-bottom:10px} .breadcrumb a{color:#3b82f6}
.tool-wrap{max-width:880px;margin:20px auto;background:white;border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;box-shadow:0 14px 30px rgba(0,0,0,.06)}
.tool-head{padding:18px 20px;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f9fafb;flex-wrap:wrap}
.tool-head h2{font-size:16px;display:flex;gap:10px;align-items:center;min-width:0;flex-wrap:wrap} .tool-head .icon{width:40px;height:40px}
.tool-body{padding:20px;display:grid;gap:16px}
.related{max-width:880px;margin:14px auto;display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.related a{padding:8px 14px;background:white;border:1px solid #e5e7eb;border-radius:999px;font-size:12px;font-weight:600}
.related a:hover{border-color:#111827}


/* AUDIT-DARK-FIX: override hardcoded light surfaces in dark mode */
[data-theme="dark"] .tool-hero{background:#0b0f1f !important;border-color:#1e293b !important;color:#f8fafc}
[data-theme="dark"] .tool-hero h1,[data-theme="dark"] .tool-hero h2,[data-theme="dark"] .tool-head h2{color:#f8fafc !important}
[data-theme="dark"] .tool-hero p,[data-theme="dark"] .breadcrumb{color:#94a3b8 !important}
[data-theme="dark"] .breadcrumb a{color:#93c5fd !important}
[data-theme="dark"] .tool-wrap{background:#11162f !important;border-color:#1e293b !important;color:#e2e8f0;box-shadow:none}
[data-theme="dark"] .tool-head{background:#1e293b !important;border-color:#334155 !important;color:#f8fafc}
[data-theme="dark"] .tool-body{background:transparent;color:#e2e8f0}
[data-theme="dark"] .related a{background:#1e293b !important;border-color:#334155 !important;color:#e2e8f0 !important}
[data-theme="dark"] .related a:hover{border-color:#93c5fd !important;color:#fff !important}
[data-theme="dark"] .badge{background:#1e293b !important;color:#e2e8f0 !important;border-color:#334155 !important}
[data-theme="dark"] .badge-hot{background:#111827 !important;color:#fff !important;border-color:#111827 !important}
[data-theme="dark"] .badge-new{background:#064e3b !important;color:#bbf7d0 !important;border-color:#065f46 !important}
[data-theme="dark"] .field label{color:#cbd5e1 !important}
[data-theme="dark"] .field input,[data-theme="dark"] .field select,[data-theme="dark"] .field textarea{background:#0b0f1f !important;color:#f8fafc !important;border-color:#334155 !important}
[data-theme="dark"] .result,[data-theme="dark"] .kpi div{background:#0b0f1f !important;border-color:#334155 !important;color:#e2e8f0 !important}
[data-theme="dark"] .kpi b{color:#94a3b8 !important}
[data-theme="dark"] .kpi strong{color:#f8fafc !important}
[data-theme="dark"] .hamburger,[data-theme="dark"] .theme-toggle,[data-theme="dark"] .search-icon{background:#11162f !important;color:#f8fafc !important;border-color:#334155 !important}
[data-theme="dark"] [style*="background:white"],
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background:#FFFFFF"],
[data-theme="dark"] [style*="background:#f9fafb"],
[data-theme="dark"] [style*="background:#f3f4f6"],
[data-theme="dark"] [style*="background:#fcfcfd"],
[data-theme="dark"] [style*="background:#f8fafc"]{
  background:#1e293b !important;
  color:#f8fafc !important;
  border-color:#334155 !important;
}
[data-theme="dark"] [style*="background:#fef08a"],
[data-theme="dark"] [style*="background: #fef08a"]{
  background:#854d0e !important;
  color:#fef9c3 !important;
}
[data-theme="dark"] #cookieBanner [style*="background:white"],
[data-theme="dark"] #cookieBanner [style*="background: white"]{
  background:#f8fafc !important;
  color:#111827 !important;
  border-color:#e5e7eb !important;
}
[data-theme="dark"] button[style*="background:white"],
[data-theme="dark"] a[style*="background:white"]{
  background:#1e293b !important;
  color:#f8fafc !important;
  border-color:#334155 !important;
}
