/* OnlineCalcul V7 Premium Design System | additive, preserves calculator logic */
:root{
 --oc-ink:#14233b;--oc-muted:#62718a;--oc-brand:#2563eb;--oc-brand-2:#0f766e;
 --oc-bg:#f5f8fc;--oc-surface:#fff;--oc-line:#e3eaf3;--oc-shadow:0 12px 34px rgba(20,35,59,.08);
 --oc-radius:18px;--oc-focus:0 0 0 4px rgba(37,99,235,.16)
}
html{scroll-behavior:smooth;scroll-padding-top:92px}
body{background:var(--oc-bg);color:var(--oc-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.65;letter-spacing:-.01em}
body.dark-mode{--oc-bg:#0b1220;--oc-surface:#121d30;--oc-ink:#edf4ff;--oc-muted:#a7b6cc;--oc-line:#26364d;--oc-shadow:0 14px 38px rgba(0,0,0,.24)}
header{background:rgba(255,255,255,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--oc-line);box-shadow:0 4px 18px rgba(20,35,59,.04);padding:0 clamp(16px,4vw,56px);min-height:76px}
body.dark-mode header{background:rgba(18,29,48,.94);border-color:var(--oc-line)}
.header-main{width:100%;max-width:1320px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.logo{font-size:1.28rem;font-weight:850;letter-spacing:-.045em;color:var(--oc-ink)!important;display:inline-flex;align-items:center;gap:10px}
.logo i{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#0f766e);color:#fff!important;display:grid;place-items:center;margin:0!important;font-size:17px;box-shadow:0 7px 16px rgba(37,99,235,.2)}
.logo span{color:var(--oc-ink)!important}
nav{align-items:center;gap:5px}nav a{font-size:.91rem;font-weight:650;padding:10px 13px;border-radius:11px;color:var(--oc-muted)}
nav a:hover,nav a.active{background:#eaf1ff;color:#1d4ed8}body.dark-mode nav a:hover,body.dark-mode nav a.active{background:#1d3558;color:#bfdbfe}
.container{width:min(1200px,100% - 40px);max-width:1200px;padding:clamp(22px,4vw,48px) 0;margin-inline:auto}
.hero{position:relative;isolation:isolate;overflow:hidden;text-align:left!important;padding:clamp(32px,6vw,76px)!important;border:1px solid rgba(255,255,255,.28);border-radius:28px!important;margin-bottom:34px!important;background:radial-gradient(circle at 86% 18%,rgba(45,212,191,.32),transparent 28%),linear-gradient(120deg,#102746 0%,#174b78 56%,#176b70 100%)!important;box-shadow:0 24px 60px rgba(16,39,70,.18)}
.hero:after{content:"";position:absolute;z-index:-1;width:340px;height:340px;border:1px solid rgba(255,255,255,.15);border-radius:50%;right:-115px;bottom:-205px;box-shadow:0 0 0 34px rgba(255,255,255,.035),0 0 0 70px rgba(255,255,255,.025)}
.hero h1{max-width:760px;color:#fff!important;font-size:clamp(2.15rem,5vw,4.1rem)!important;line-height:1.08;letter-spacing:-.055em;font-weight:850;margin-bottom:16px!important}
.hero p{max-width:680px;color:#e0f2fe!important;font-size:clamp(1rem,1.7vw,1.2rem)!important;line-height:1.7}
.stats-bar{justify-content:flex-start!important;gap:clamp(22px,5vw,62px)!important;margin-top:28px!important}.stat{text-align:left}.stat-number{font-size:1.55rem!important;color:#fff}.stat-label{color:#c6e4f2;font-size:.82rem}
.category{display:block!important;width:fit-content;border:0!important;margin:38px 0 16px!important;padding:0 0 0 14px!important;border-left:4px solid #14b8a6!important;color:var(--oc-ink);font-size:1.45rem!important;font-weight:800;letter-spacing:-.035em}
.tools-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr))!important;gap:16px!important;margin:18px 0 34px!important}
.tool-card{position:relative;min-height:154px;background:var(--oc-surface)!important;border:1px solid var(--oc-line)!important;border-radius:17px!important;padding:22px!important;color:var(--oc-ink)!important;box-shadow:0 3px 12px rgba(20,35,59,.025);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important}
.tool-card:hover{transform:translateY(-4px)!important;border-color:#9bbcf9!important;box-shadow:var(--oc-shadow)!important}
.tool-card>i{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:#edf4ff;color:#2563eb!important;font-size:1.15rem!important;margin:0 0 15px!important}
.tool-card h3{font-size:1.02rem!important;line-height:1.35;color:var(--oc-ink);font-weight:760;margin-bottom:7px!important}
.tool-card p{color:var(--oc-muted)!important;font-size:.88rem!important;line-height:1.55}
body.dark-mode .tool-card{background:var(--oc-surface)!important;border-color:var(--oc-line)!important;color:var(--oc-ink)!important}
body.dark-mode .tool-card h3,body.dark-mode .category{color:var(--oc-ink)!important}body.dark-mode .tool-card>i{background:#1d3558;color:#93c5fd!important}
/* Shared calculator page surfaces */
.calculator-card,.content-card,.result-card,.form-container,.calculator-container,.faq-item,.card{border-radius:var(--oc-radius)!important;border-color:var(--oc-line)!important;box-shadow:0 8px 26px rgba(20,35,59,.055)}
input,select,textarea{border:1px solid #cbd6e5!important;border-radius:10px!important;min-height:44px;transition:border-color .18s,box-shadow .18s}
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:none!important;border-color:#3b82f6!important;box-shadow:var(--oc-focus)!important}
button,.btn,.calculate-btn,.submit-btn,[type=submit]{border-radius:11px!important;font-weight:700;transition:transform .18s,box-shadow .18s,filter .18s}
button:hover,.btn:hover,.calculate-btn:hover,.submit-btn:hover,[type=submit]:hover{filter:brightness(1.04);transform:translateY(-1px)}
footer{margin-top:48px}footer a{transition:color .15s}footer a:hover{color:#60a5fa}
/* Homepage search */
.oc-search-wrap{position:relative;max-width:620px;margin:26px 0 0}
.oc-search{width:100%;height:58px!important;padding:0 20px 0 54px!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:15px!important;background:rgba(255,255,255,.98)!important;color:#14233b!important;font-size:1rem;box-shadow:0 12px 28px rgba(0,0,0,.12)!important}
.oc-search-icon{position:absolute;left:19px;top:50%;transform:translateY(-50%);color:#52657e;font-size:17px;pointer-events:none}
.oc-search-status{margin-top:9px;color:#d9edf8;font-size:.84rem;min-height:1.4em}
.oc-no-results{padding:24px;background:var(--oc-surface);border:1px dashed var(--oc-line);border-radius:14px;color:var(--oc-muted);text-align:center}
@media(max-width:768px){header{min-height:66px}.container{width:min(100% - 28px,1200px);padding-top:22px}.hero{padding:30px 23px!important;border-radius:21px!important}.hero h1{font-size:2.35rem!important}.stats-bar{gap:18px!important}.stat-number{font-size:1.25rem!important}.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}.tool-card{padding:16px!important;min-height:145px}.tool-card>i{width:38px;height:38px}.category{font-size:1.25rem!important}}
@media(max-width:420px){.tools-grid{grid-template-columns:1fr!important}.tool-card{min-height:unset}.hero h1{font-size:2rem!important}.stats-bar{justify-content:space-between!important}.stat-number{font-size:1.1rem!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
