/* Dark theme for the public pages. Light stays the default; only html[data-theme="dark"] (set by the switch, stored in
   localStorage "inv-theme") changes anything. Loaded after invoicy-modern.css. Palette: the navy the light pages already
   use for their dark cards (#0b1220, #112a47) with the same single blue accent. */

/* ---- theme button (top bar) ---- */
.inv-theme-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;padding:0;border:1px solid #cdd6e2;border-radius:999px;background:#fff;color:#334155;font-size:13px;line-height:1;cursor:pointer;transition:color .2s,border-color .2s,background-color .2s,transform .3s cubic-bezier(.16,1,.3,1)}
.inv-theme-btn:hover{color:var(--accent);border-color:var(--accent);transform:rotate(-12deg)}
.inv-theme-btn:active{transform:scale(.94)}
.inv-theme-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.inv-theme-btn .ico-sun{display:none}
html[data-theme="dark"] .inv-theme-btn .ico-sun{display:inline-block}
html[data-theme="dark"] .inv-theme-btn .ico-moon{display:none}
.inv-topbar .inv-theme-btn i{color:inherit;font-size:13px}
@media (prefers-reduced-motion:reduce){.inv-theme-btn{transition:none}.inv-theme-btn:hover{transform:none}}

/* ---- tokens ---- */
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#eaf0f8;--ink2:#b4c1d2;--ink3:#8a9bb1;--line:#1f2f46;--soft:#0e1829;
  --navy:#050a13;--navy2:#0a1424;--accent-t:rgba(26,159,223,.16);
  --shadow-s:0 1px 2px rgba(0,0,0,.35),0 12px 28px -16px rgba(0,0,0,.7);
  --shadow-m:0 1px 2px rgba(0,0,0,.4),0 26px 48px -20px rgba(0,0,0,.8);
  --d-bg:#0a111d;--d-card:#111c2f;--d-card2:#16253b;--d-line:#1f2f46;--d-line2:#2a3d59;
}
html[data-theme="dark"] body{background:var(--d-bg);color:var(--ink2)}
html[data-theme="dark"] ::selection{background:#1a9fdf;color:#fff}
html[data-theme="dark"] .page-wrapper{background:transparent}

/* ---- top bar, header, menu ---- */
html[data-theme="dark"] .inv-topbar{background:#0d1626;border-bottom-color:var(--d-line);color:var(--ink2)}
html[data-theme="dark"] .inv-topbar a{color:#cbd6e4}
html[data-theme="dark"] .inv-topbar a:hover{color:#5cc3f2}
html[data-theme="dark"] .inv-topbar .tb-wa{background:rgba(22,163,74,.16);color:#86efac}
html[data-theme="dark"] .inv-topbar .tb-wa i{color:#4ade80}
html[data-theme="dark"] .inv-topbar .tb-wa:hover{background:rgba(22,163,74,.26);color:#bbf7d0}
html[data-theme="dark"] .inv-theme-btn{background:#111c2f;border-color:var(--d-line2);color:#cbd6e4}
html[data-theme="dark"] .inv-theme-btn:hover{color:#5cc3f2;border-color:#5cc3f2}
html[data-theme="dark"] .inv-nav{background:rgba(10,17,29,.88);border-bottom-color:var(--d-line)}
html[data-theme="dark"] .inv-menu a{color:#d5deeb}
html[data-theme="dark"] .inv-menu a:hover{color:#5cc3f2;background:rgba(26,159,223,.12)}
html[data-theme="dark"] .inv-menu li.active>a{color:#5cc3f2;background:rgba(26,159,223,.16)}
html[data-theme="dark"] .inv-menu .sub{background:#111c2f;border-color:var(--d-line2);box-shadow:0 20px 40px -16px rgba(0,0,0,.7)}
html[data-theme="dark"] .nb-ghost{color:#e2e8f2;border-color:var(--d-line2);background:transparent}
html[data-theme="dark"] .nb-ghost:hover{border-color:#5cc3f2;color:#5cc3f2}
html[data-theme="dark"] .inv-burger{background:#111c2f;border-color:var(--d-line2)}
html[data-theme="dark"] .inv-burger span{background:#e2e8f2}
@media (max-width:991px){
  html[data-theme="dark"] .inv-menu{background:#0d1626;border-bottom-color:var(--d-line);box-shadow:0 24px 40px -20px rgba(0,0,0,.8)}
}

/* ---- footer ---- */
html[data-theme="dark"] .inv-footer{background:#0b1423;border-top-color:var(--d-line);color:var(--ink2)}
html[data-theme="dark"] .inv-footer p{color:var(--ink2)}
html[data-theme="dark"] .inv-footer .fcol h4{color:#eaf0f8}
html[data-theme="dark"] .inv-footer a{color:#aebbce}
html[data-theme="dark"] .inv-footer a:hover{color:#5cc3f2}
html[data-theme="dark"] .inv-footer .fwa{background:rgba(22,163,74,.16);color:#86efac}
html[data-theme="dark"] .inv-footer .fid{background:#111c2f;border-color:var(--d-line2);color:var(--ink2)}
html[data-theme="dark"] .inv-footer .fid b{color:#eaf0f8}
html[data-theme="dark"] .inv-footer .fanpc a{background:#111c2f;border-color:var(--d-line2);color:#c3cfdf}
html[data-theme="dark"] .inv-footer .fbottom{border-top-color:var(--d-line)}

/* ---- page banner on inner pages ---- */
html[data-theme="dark"] .page-title{background-image:radial-gradient(700px 240px at 82% 0,rgba(26,159,223,.2),transparent 62%),linear-gradient(180deg,#0d1b30 0%,#0a111d 100%)!important}
html[data-theme="dark"] .page-title h2,html[data-theme="dark"] .page-title h1{color:#fff}
html[data-theme="dark"] .page-title .bread-crumb li,html[data-theme="dark"] .page-title .bread-crumb li a{color:var(--ink2)}
html[data-theme="dark"] .page-title .bread-crumb li:last-child{color:#5cc3f2}

/* ---- sections, headings, text ---- */
html[data-theme="dark"] .inv-section.alt{background:var(--soft)}
html[data-theme="dark"] .inv-section .sec-title h2,html[data-theme="dark"] .inv-about .sec-title h2{color:var(--ink)}
html[data-theme="dark"] .inv-section .sec-title h2 span,html[data-theme="dark"] .inv-about .sec-title h2 span{color:#38b6ee}
html[data-theme="dark"] .inv-list li{color:var(--ink2)}
html[data-theme="dark"] .inv-legal h3{color:var(--ink);border-bottom-color:var(--d-line2)}
html[data-theme="dark"] .inv-legal code{background:#16253b;color:#dbe5f1}
html[data-theme="dark"] .inv-legal,html[data-theme="dark"] .inv-legal p,html[data-theme="dark"] .inv-legal li,html[data-theme="dark"] .inv-legal td,html[data-theme="dark"] .inv-legal-box{color:var(--ink2)}
html[data-theme="dark"] .inv-legal strong,html[data-theme="dark"] .inv-legal b,html[data-theme="dark"] .inv-legal h4,html[data-theme="dark"] .inv-legal-side h4{color:var(--ink)}
html[data-theme="dark"] .inv-legal-toc a,html[data-theme="dark"] .inv-legal-side a{color:var(--ink2)}
html[data-theme="dark"] .inv-legal-toc a:hover,html[data-theme="dark"] .inv-legal-side a:hover{color:#5cc3f2}
html[data-theme="dark"] .inv-legal a:not(.theme-btn){color:#5cc3f2}
html[data-theme="dark"] .inv-legal-box{background:var(--d-card)}
html[data-theme="dark"] .inv-legal-side{background:var(--d-card);border-color:var(--d-line)}
html[data-theme="dark"] .inv-legal-side h4.also{border-top-color:var(--d-line)}
html[data-theme="dark"] .inv-legal-table td{border-bottom-color:var(--d-line)}

html[data-theme="dark"] .inv-prose,html[data-theme="dark"] .inv-prose p{color:var(--ink2)}
html[data-theme="dark"] .inv-mini p b{color:var(--ink)}
html[data-theme="dark"] .inv-hint{color:var(--ink3)}
html[data-theme="dark"] .inv-company dd,html[data-theme="dark"] .inv-company dd a{color:var(--ink)}
html[data-theme="dark"] .inv-company dt{color:var(--ink3)}

/* ---- cards ---- */
html[data-theme="dark"] .inv-card,html[data-theme="dark"] .inv-plan,html[data-theme="dark"] .inv-company,
html[data-theme="dark"] .contact-form-box,html[data-theme="dark"] .inv-about .feature-highlight,html[data-theme="dark"] .inv-mini div{background:var(--d-card);border-color:var(--d-line)}
html[data-theme="dark"] .inv-card:hover{border-color:var(--d-line2)}
html[data-theme="dark"] .inv-card h3,html[data-theme="dark"] .inv-plan h3,html[data-theme="dark"] .inv-company h3{color:var(--ink)}
html[data-theme="dark"] .inv-grid>.inv-card:nth-child(1){background:radial-gradient(520px 260px at 100% 0,rgba(255,255,255,.16),transparent 60%),linear-gradient(135deg,#1a8fcb 0%,#0a5f93 100%);border-color:transparent}
html[data-theme="dark"] .inv-grid>.inv-card:nth-child(1) h3{color:#fff}
html[data-theme="dark"] .inv-grid>.inv-card:nth-child(4),html[data-theme="dark"] .inv-facts>.inv-card:nth-child(2){background:linear-gradient(160deg,#10243b 0%,#0e1f35 100%);border-color:#1b3552}
html[data-theme="dark"] .inv-grid>.inv-card:nth-child(6){background:linear-gradient(135deg,#050a13 0%,#0d2038 100%);border-color:var(--d-line)}
html[data-theme="dark"] .inv-grid>.inv-card.sec-card,html[data-theme="dark"] .switch-card{background:linear-gradient(135deg,#10243b 0%,#0e1829 70%);border-color:#1b3552}
html[data-theme="dark"] .inv-grid>.inv-card.sec-card h3{color:var(--ink)}
html[data-theme="dark"] .inv-grid>.inv-card.sec-card p{color:var(--ink2)}
html[data-theme="dark"] .sec-facts li{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .sec-facts b{color:var(--ink)}
html[data-theme="dark"] .sec-facts span{color:var(--ink2)}
html[data-theme="dark"] .inv-flow .dot{background:var(--d-card);border-color:var(--d-line2)}
html[data-theme="dark"] .inv-mini .inv-ico{background:rgba(26,159,223,.16)}
html[data-theme="dark"] .inv-strip{background:#0d1626;border-color:var(--d-line)}
html[data-theme="dark"] .inv-aside{background:linear-gradient(170deg,#050a13 0%,#0d2038 100%);border-color:var(--d-line)}

/* ---- pricing ---- */
html[data-theme="dark"] .inv-plan .price b{color:var(--ink)}
html[data-theme="dark"] .inv-plan.main .price b{color:#fff}
html[data-theme="dark"] .inv-plan.main{background:linear-gradient(170deg,#0a1a30 0%,#12355c 100%);box-shadow:0 34px 60px -26px rgba(0,0,0,.8);border-color:rgba(92,195,242,.25)}
html[data-theme="dark"] .inv-table-wrap{background:var(--d-card);border-color:var(--d-line)}
html[data-theme="dark"] .inv-compare th,html[data-theme="dark"] .inv-compare td{border-bottom-color:var(--d-line);color:var(--ink2)}
html[data-theme="dark"] .inv-compare thead th{background:var(--d-card2);color:var(--ink)}
html[data-theme="dark"] .inv-compare thead th.main{background:var(--accent);color:#fff}
html[data-theme="dark"] .inv-compare tbody th{color:var(--ink)}
html[data-theme="dark"] .inv-faq details{background:var(--d-card);border-color:var(--d-line)}
html[data-theme="dark"] .inv-faq summary{color:var(--ink)}
html[data-theme="dark"] .inv-faq .a{color:var(--ink2)}

/* ---- notices, forms ---- */
html[data-theme="dark"] .inv-notice.ok{background:rgba(22,163,74,.14);color:#86efac;border-color:rgba(74,222,128,.3)}
html[data-theme="dark"] .inv-notice.bad{background:rgba(239,68,68,.14);color:#fca5a5;border-color:rgba(248,113,113,.3)}
html[data-theme="dark"] .contact-form .title-box h2{color:var(--ink)}
html[data-theme="dark"] .contact-form .form-group label{color:var(--ink2)}
html[data-theme="dark"] .contact-form .form-group input[type=text],html[data-theme="dark"] .contact-form .form-group input[type=email],
html[data-theme="dark"] .contact-form .form-group select,html[data-theme="dark"] .contact-form .form-group textarea{background:#0c1626;border-color:var(--d-line2);color:var(--ink)}
html[data-theme="dark"] .contact-form .form-group input:focus,html[data-theme="dark"] .contact-form .form-group select:focus,
html[data-theme="dark"] .contact-form .form-group textarea:focus{background:#0e1b2f;border-color:var(--accent);box-shadow:0 0 0 4px rgba(26,159,223,.22)}
html[data-theme="dark"] ::placeholder,html[data-theme="dark"] .contact-form .form-group ::placeholder{color:#8da0b8!important;opacity:1}
html[data-theme="dark"] .contact-form-box .text,html[data-theme="dark"] .contact-form .title-box .text{color:var(--ink3)}
html[data-theme="dark"] .contact-form .form-group .icon,html[data-theme="dark"] .contact-form .form-group i{color:#7f92aa}

/* ---- home hero ---- */
html[data-theme="dark"] .main-slider .inv-hero-tag,html[data-theme="dark"] .inv-hero-m .m-tag{background:#111c2f;border-color:var(--d-line2);color:#e2e8f2;box-shadow:none}
html[data-theme="dark"] .main-slider .inv-hero-h1,html[data-theme="dark"] .inv-hero-m h1{color:#fff}
html[data-theme="dark"] .main-slider .inv-hero-copy .lead,html[data-theme="dark"] .inv-hero-m .m-lead{color:var(--ink2)}
html[data-theme="dark"] .main-slider .inv-hero-copy .chips li,html[data-theme="dark"] .inv-hero-m .m-chips li{background:#111c2f;border-color:var(--d-line2);color:#d5deeb;box-shadow:none}
html[data-theme="dark"] .inv-hero-m{background:#0b1423}
html[data-theme="dark"] .main-slider{background-color:var(--d-bg)}
html[data-theme="dark"] .main-slider .dark-color-layer{background-color:#10233b}
html[data-theme="dark"] .main-slider [class*="vector-layer"]{opacity:.22}
html[data-theme="dark"] .about-section,html[data-theme="dark"] .inv-about{background-color:var(--d-bg)}
@media (max-width:575px){
html[data-theme="dark"] .inv-hero-m .m-chips li{background:none;border:0}
html[data-theme="dark"] .inv-hero-m .m-chips i{background:rgba(56,182,238,.16)}
html[data-theme="dark"] .inv-swipe{background:var(--d-bg)}
html[data-theme="dark"] .sw-sheet{border-color:var(--d-line2);box-shadow:0 18px 32px -16px rgba(0,0,0,.7)}
html[data-theme="dark"] .sw-count b{color:#38b6ee}
}

/* ---- closing banner: dark above, footer colour below ---- */
html[data-theme="dark"] .cta-section{background:linear-gradient(to bottom,var(--d-bg) 50%,#0b1423 50%)}
html[data-theme="dark"] .cta-section .inner-container{background:#12243c;box-shadow:0 0 0 1px var(--d-line2)}

/* ---- scrollbars and media ---- */
html[data-theme="dark"]{scrollbar-color:#2a3d59 #0a111d}
