
/* Base */
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#070d1a;color:#e2e8f0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial}
.container{max-width:1180px;margin:0 auto;padding:24px}

/* Header */
.header{position:sticky;top:0;z-index:50;background:rgba(15,23,42,.8);border-bottom:1px solid rgba(148,163,184,.25);backdrop-filter:blur(8px)}
.header-inner{display:flex;align-items:center;gap:16px;padding:14px 36px;}
.logo{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.logo img{height:38px}

/* Offer ticker */
.moving-offer{overflow:hidden;white-space:nowrap;border-bottom:1px solid rgba(148,163,184,.2);background:#141c2f}
.moving-offer .track{display:inline-block;padding:8px 0;animation:marquee 18s linear infinite}
.moving-offer .badge{display:inline-flex;align-items:center;gap:8px;color:#e2e8f0;background:linear-gradient(90deg,rgba(125,211,252,.15),rgba(167,139,250,.15));border:1px solid rgba(148,163,184,.25);padding:6px 14px;border-radius:999px;margin-right:16px;position:relative;overflow:hidden}
.moving-offer .badge:after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.35),transparent 70%);transform:translateX(-100%);animation:shimmer 3s infinite}
@keyframes marquee{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
@keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}

/* Typography */
h1{font-size:56px;line-height:1.08;margin:24px 0}
.h1-gradient .key{background:linear-gradient(90deg,#7dd3fc,#a78bfa);-webkit-background-clip:text;background-clip:text;color:transparent}
.subtitle{color:#94a3b8;font-size:18px}

/* Grid & cards */
.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:20px}
.card{grid-column:span 4;background:#111827;border:1px solid rgba(148,163,184,.25);border-radius:16px;overflow:hidden;transition:transform .2s ease, box-shadow .3s ease}
.card:hover{transform:translateY(-4px);box-shadow:0 20px 60px rgba(99,102,241,.18)}
.card img{display:none} .card .icon{display:block !important; width:56px; height:56px; margin:8px 0 6px} 
.card .body{padding:16px}
.card .title{font-weight:800;font-size:20px}
.card .desc{color:#94a3b8;margin-top:8px;min-height:48px}
.card .price{margin-top:12px;font-weight:700;color:#a7f3d0}
.card .actions{display:flex;gap:10px;margin-top:12px}
.btn{appearance:none;border:1px solid rgba(148,163,184,.35);background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(0,0,0,.08));color:inherit;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer;transition:box-shadow .3s ease,transform .08s ease}
.btn:hover{box-shadow:0 0 0 3px rgba(125,211,252,.2),0 20px 60px rgba(99,102,241,.12)}
.btn:active{transform:translateY(1px)}
.btn.primary{border-color:rgba(96,165,250,.6)}
.btn.primary.pulse{animation:pulse 2.2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.35)}70%{box-shadow:0 0 0 18px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}

/* Sections */
.section{margin:44px 0}
.section h2{margin:8px 0 12px;font-size:26px}

/* Sticky CTA bar */
.sticky-bar{position:sticky;bottom:0;z-index:60;background:rgba(2,6,23,.9);border-top:1px solid rgba(148,163,184,.25);padding:10px 16px}
.sticky-inner{max-width:1180px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px}
.cart-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:rgba(34,197,94,.15);color:#86efac;font-weight:800}

/* Drawer cart */
.overlay{position:fixed;inset:0;background:rgba(2,6,23,.55);display:none;z-index:80}
.drawer{position:fixed;top:0;right:0;height:100%;width:min(420px,92vw);background:#111827;border-left:1px solid rgba(148,163,184,.25);transform:translateX(100%);transition:transform .28s ease;z-index:90;display:flex;flex-direction:column}
.cart-open .drawer{transform:translateX(0)}
.drawer-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;border-bottom:1px solid rgba(148,163,184,.25)}
.drawer-body{padding:10px 16px;overflow:auto;flex:1}
.drawer-footer{padding:12px 16px;border-top:1px solid rgba(148,163,184,.25);display:flex;flex-direction:column;gap:8px}
.line{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px dashed rgba(148,163,184,.25)}
.qty{display:flex;align-items:center;gap:6px}
.qty button{width:28px;height:28px;border-radius:8px;border:1px solid rgba(148,163,184,.35);background:#141c2f;color:#e2e8f0;cursor:pointer}

/* Reveal */
.reveal{opacity:0;transform:translateY(12px);transition:all .6s ease}
.reveal.is-visible{opacity:1;transform:translateY(0)}

/* Calculator */
.calc{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
.calc .box{grid-column:span 4;background:#111827;border:1px solid rgba(148,163,184,.25);border-radius:12px;padding:14px}
.calc input{width:100%;padding:10px 12px;border-radius:10px;border:1px solid rgba(148,163,184,.35);background:#141c2f;color:#e2e8f0}
.calc .result{grid-column:span 12;display:flex;gap:16px;align-items:center}

/* Footer */
.footer{border-top:1px solid rgba(148,163,184,.25);margin-top:40px}
.footer-inner{display:grid;grid-template-columns:1fr auto;gap:12px;padding:20px 24px}
.footer a{color:#60a5fa;text-decoration:none}

/* Responsive */
@media(max-width:960px){.card{grid-column:span 6}}
@media(max-width:640px){.card{grid-column:span 12}h1{font-size:34px}.moving-offer .track{animation-duration:24s}}


/* Prettier drawer */
.drawer{box-shadow: -24px 0 48px rgba(2,6,23,.45);}
.drawer-header{position:sticky;top:0;background:linear-gradient(180deg, rgba(20,28,47,1), rgba(20,28,47,.92));}
.drawer-footer{position:sticky;bottom:0;background:linear-gradient(0deg, rgba(20,28,47,1), rgba(20,28,47,.92));}
.line img{border-radius:10px}

/* Toast */
.toast{position:fixed; left:50%; transform:translateX(-50%); bottom:16px; z-index:120; display:none;}
.toast.show{display:block; animation: toastIn .25s ease, toastOut .25s ease 2.75s forwards;}
.toast .item{background:#0f172a;color:#e2e8f0;border:1px solid rgba(148,163,184,.25); padding:10px 14px; border-radius:12px; box-shadow:0 12px 28px rgba(2,6,23,.45)}
@keyframes toastIn{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes toastOut{to{transform:translateY(8px);opacity:0}}

/* Fly-to-cart */
.fly{position:fixed; z-index:110; pointer-events:none; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s ease; will-change: transform, opacity;}

/* Cart count bump */
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.2)}100%{transform:scale(1)}}
.cart-pill.bump{animation: bump .35s ease}

/* Improved calculator */
.calc-pro .box input{font-size:18px;border-radius:12px}
.calc-pro .kpis{display:flex;gap:16px;flex-wrap:wrap}
.calc-pro .stat{background:#0f172a;border:1px solid rgba(148,163,184,.25);border-radius:12px;padding:10px 12px;min-width:160px}
.calc-pro .stat .label{font-size:12px;color:#94a3b8}
.calc-pro .stat .value{font-size:20px;font-weight:800}
.calc-pro .stat .value.ok{color:#86efac}
.calc-pro .bar{height:10px;background:#0f172a;border:1px solid rgba(148,163,184,.25);border-radius:999px;overflow:hidden;margin-top:10px}
.calc-pro .bar .fill{height:100%;background:linear-gradient(90deg,#22c55e,#60a5fa)}

/* Minimal top ticker */
.moving-offer.mini{border-bottom:1px solid rgba(148,163,184,.15); background:#141c2f}
.moving-offer.mini .track{animation-duration: 28s}
.moving-offer.mini .tag{display:inline-flex;align-items:center;gap:8px;color:#cbd5e1;background:rgba(148,163,184,.08);border:1px solid rgba(148,163,184,.18);padding:6px 12px;border-radius:999px;margin-right:10px;font-size:13px}
.moving-offer.mini .tag:after{display:none}

/* Header social buttons */
.header .btn{display:inline-flex;align-items:center;justify-content:center;min-width:auto}
.header .btn[title]{font-weight:700}


/* Card aesthetic without images */
.card .body{padding:22px}
.card{padding-top:10px}
.card .title{font-size:22px}
.card .desc{margin-top:10px}
.card .actions{margin-top:16px}

/* Add a subtle badge placeholder at top of card */
.card:before{content:""; display:block; width:44px; height:44px; border-radius:12px; background:linear-gradient(135deg, rgba(125,211,252,.25), rgba(167,139,250,.25)); border:1px solid rgba(148,163,184,.25); margin:12px 0 0 12px}

/* Header social icons as ghost buttons */
.header .btn img{filter: drop-shadow(0 0 0 rgba(0,0,0,0)); opacity:.9}
.header .btn:hover img{opacity:1}

/* Drawer more spacious */
.drawer-body{padding:18px 18px}
.line{grid-template-columns: 1fr auto;}
.line img{display:none}

/* Centered toast with nicer animation */
.toast{position:fixed; left:50%; transform:translateX(-50%); bottom:16px; z-index:120; display:none;}
.toast .item{background:#0f172a; border:1px solid rgba(148,163,184,.25); padding:12px 18px; border-radius:14px; box-shadow:0 18px 64px rgba(2,6,23,.55)}
.toast.show{animation: popIn .28s ease, fadeOut .25s ease 2.75s forwards}
@keyframes popIn{0%{opacity:0; transform:translateX(-50%) translateY(-6px) scale(.94)}100%{opacity:1; transform:translateX(-50%) translateY(0) scale(1)}}
@keyframes fadeOut{to{opacity:0; transform:translateX(-50%) translateY(-4px) scale(.98)}}

/* Calculator pro++ */
.calc-pro .box{padding:16px}
.calc-pro .box label{font-size:14px;color:#cbd5e1}
.calc-pro .kpis{gap:18px}
.calc-pro .stat{min-width:180px}
.calc-pro .stat .value{font-size:22px}
.calc-pro .bar{height:12px}
.calc-advanced{display:flex; gap:16px; margin-top:10px; align-items:center; flex-wrap:wrap}
.badge{display:inline-flex; align-items:center; gap:6px; background:rgba(148,163,184,.12); border:1px solid rgba(148,163,184,.22); color:#e2e8f0; padding:6px 10px; border-radius:999px; font-size:12px}

/* Icon button + count bubble */
.icon-btn{position:relative; display:inline-flex; align-items:center; justify-content:center; width:44px; height:40px; border-radius:12px; border:1px solid rgba(148,163,184,.25); background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.08)); cursor:pointer}
.icon-btn:hover{box-shadow:0 0 0 3px rgba(125,211,252,.2),0 12px 36px rgba(99,102,241,.12)}
.badge-count{position:absolute; top:-6px; right:-6px; background:#22c55e; color:#052e16; border-radius:999px; padding:2px 6px; font-size:12px; font-weight:800; border:2px solid #0f172a}
/* Ticker slow seamless */
.moving-offer.mini{overflow:hidden; white-space:nowrap}
.moving-offer .track{display:inline-block; padding:8px 0; will-change:transform}
.moving-offer .track1{animation: ticker 40s linear infinite}
.moving-offer .track2{animation: ticker2 40s linear infinite}
@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}
@keyframes ticker2{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}

.social-group{display:inline-flex;gap:12px;margin-right:20px;padding-right:16px;border-right:1px solid rgba(148,163,184,.30)}
@keyframes ripple{to{transform:translate(-50%,-50%) scale(22); opacity:0}}


/* Center icon within the square */
.card .icon{position:absolute; left:48px; top:48px; transform:translate(-50%,-50%); width:28px; height:28px; display:block; object-fit:contain; pointer-events:none; opacity:.98}
/* Body spacing more generous to avoid overlap */
.card .body{ padding:24px 18px 20px 128px }

/* Price styling improved */
.card .price{display:inline-flex; align-items:baseline; gap:6px; padding:6px 10px; border-radius:12px; border:1px solid rgba(148,163,184,.28); background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.12)); color:#e5e7eb; font-weight:900; font-size:20px; letter-spacing:.2px}
.card .price .cur{opacity:.9; font-weight:800; font-size:.9em}





/* Premium hover unchanged (kept) */

/* Price: premium green (stronger), no box */
.card .price{display:inline-flex; align-items:baseline; gap:4px; padding:0; border:none; background:none; color:#a7f3d0; font-weight:900; font-size:23px; letter-spacing:.15px; text-shadow: 0 0 14px rgba(34,197,94,.14)}
.card .price .cur{opacity:.95; font-weight:800; font-size:.9em}

/* Header spacer kept */
.header-gap{display:inline-block; width:18px; height:1px}
.social-group{display:inline-flex;gap:12px;margin-right:20px;padding-right:16px;border-right:1px solid rgba(148,163,184,.30)}
.card .body{display:grid; grid-template-columns: 80px 1fr; grid-column-gap:14px; align-items:start; padding:22px 18px 20px 18px}
.badge{width:76px; height:76px; border-radius:18px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(125,211,252,.22), rgba(167,139,250,.22));
  border:1px solid rgba(148,163,184,.32); box-shadow: inset 0 0 18px rgba(148,163,184,.12)
}
.badge .icon{display:block !important; width:44px; height:44px; object-fit:contain; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); opacity:.98}

/* Premium hover (kept) */
.card{transition: box-shadow .25s ease, transform .18s ease}
.card:hover{transform:translateY(-3px); box-shadow:0 26px 70px rgba(99,102,241,.14), 0 6px 20px rgba(2,6,23,.32)}

/* Title/desc spacing tweaks after grid switch */
.card .title{margin-top:2px}
.card .desc{margin-top:8px}
.card .actions{margin-top:14px}

/* Price: premium green, no box (kept, slightly stronger) */
.card .price{display:inline-flex; align-items:baseline; gap:4px; padding:0; border:none; background:none; color:#a7f3d0; font-weight:900; font-size:23px; letter-spacing:.15px; text-shadow: 0 0 14px rgba(34,197,94,.14)}
.card .price .cur{opacity:.95; font-weight:800; font-size:.9em}

/* Header separation (kept) */
.header-gap{display:inline-block; width:18px; height:1px}
.social-group{display:inline-flex;gap:12px;margin-right:20px;padding-right:16px;border-right:1px solid rgba(148,163,184,.30)}
@keyframes bgshift{0%{background-position:0% 0%}50%{background-position:100% 50%}100%{background-position:0% 0%}}
@media (prefers-reduced-motion: reduce){ body{animation:none} }

.card .body{display:grid; grid-template-columns: 90px 1fr; grid-column-gap:16px; align-items:start; padding:22px 18px 20px 18px}
.badge{width:78px; height:78px; border-radius:18px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(125,211,252,.22), rgba(167,139,250,.22));
  border:1px solid rgba(148,163,184,.32); box-shadow: inset 0 0 18px rgba(148,163,184,.12)}
.badge .icon{display:block !important; width:48px; height:48px; object-fit:contain; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); opacity:.98}

/* Toast variants */
.toast{position:fixed; left:50%; transform:translateX(-50%); bottom:16px; z-index:120; display:none;}
.toast .item{border-radius:14px; padding:14px 18px; font-weight:800}
.toast .success{background:linear-gradient(180deg, rgba(34,197,94,.15), rgba(16,185,129,.12)); border:1px solid rgba(34,197,94,.35); color:#bbf7d0}
.toast .error{background:linear-gradient(180deg, rgba(239,68,68,.16), rgba(220,38,38,.10)); border:1px solid rgba(239,68,68,.35); color:#fecaca}
.toast.show{animation: popIn .28s ease, fadeOut .25s ease 2.75s forwards}

/* Mobile tweaks */
@media(max-width: 720px){
  .card .body{grid-template-columns:72px 1fr; grid-column-gap:12px; padding:18px 14px}
  .badge{width:64px; height:64px; border-radius:14px}
  .badge .icon{width:36px; height:36px}
  .header-inner{flex-wrap:wrap; gap:12pxjustify-content:space-between;padding:14px 36px;}
  .moving-offer.mini .track{animation-duration: 36s}
}



/* ===== v17 overrides ===== */
/* Text-only cards */
.card:before{display:none !important; content:none}
.badge{display:none !important}
.card .icon{display:none !important}
.card .body{display:block; padding:22px 18px 20px 18px}

/* Header spacing */
.header-gap{display:inline-block; width:18px; height:1px}
.header-divider{display:inline-block; width:1px; height:22px; background:rgba(148,163,184,.34); margin:0 8px}

/* Animated background forced */
html, body{min-height:100%;}
body{background:radial-gradient(1200px 800px at 10% 10%, rgba(99,102,241,.08), transparent 50%),
      radial-gradient(1000px 700px at 90% 20%, rgba(56,189,248,.07), transparent 50%),
      linear-gradient(120deg, #0e1629, #0f1a33 40%, #0e1629 80%) !important;
  background-size: 140% 140% !important; animation:bgshift 18s ease-in-out infinite}
@keyframes bgshift{0%{background-position:0% 0%}50%{background-position:100% 50%}100%{background-position:0% 0%}}
@media (prefers-reduced-motion: reduce){ body{animation:none !important} }

/* Cookies banner always on top */
.cookie-banner{z-index:9999 !important}
/* Optional floating manage button */
.cookie-manage{position:fixed; left:16px; bottom:64px; z-index:9999; opacity:.85}



/* Dynamic background */
body:before{content:"";position:fixed;inset:-10%;z-index:-1;pointer-events:none;background:radial-gradient(1200px 800px at 10% 10%, rgba(35,50,78,.32), transparent 60%), radial-gradient(900px 600px at 90% 80%, rgba(40,28,64,.32), transparent 60%);animation:bgMove 28s linear infinite alternate}
@keyframes bgMove{from{transform:translate3d(0,0,0)}to{transform:translate3d(-2%, -1%, 0)}}
@media (prefers-reduced-motion: reduce){ body:before{animation:none}}

/* Toast bottom center */
.toast{position:fixed; left:50%; transform:translateX(-50%); bottom:16px; z-index:120; display:none;}

/* Product title font */
.card .title{font-family:'Space Grotesk', ui-sans-serif, system-ui; letter-spacing:.2px}

/* Mobile tweaks */
@media (max-width: 720px){
  .header-inner{padding:14px 36px;}
  .grid{grid-template-columns:1fr}
  .card{grid-column:span 12}
  .btn{padding:12px 14px}
  h1{font-size:34px}
  .subtitle{font-size:16px}
  .drawer{width:100vw}
}
.lang-switch{display:inline-flex;gap:6px;margin:0 10px}
.lang-switch .btn{padding:6px 10px;font-weight:600}
.social-group{display:inline-flex;gap:12px;margin-right:20px;padding-right:16px;border-right:1px solid rgba(148,163,184,.30)}

.header-actions{margin-left:auto;display:flex;gap: 12px;align-items:center}

@media (min-width: 1200px){ .header-inner{ padding-left: 48px; padding-right: 48px } }


/* Mobile refinements */
@media (max-width: 860px){
  .container{padding:16px}
  .grid{grid-template-columns:1fr; gap:16px}
  .card{grid-column:span 12; border-radius:14px}
  .card .body{padding:14px}
  .btn{min-height:44px; padding:12px 16px; font-size:16px}
  .icon-btn{padding:10px}
  .header-inner{padding:10px 16px}
  .hero h1{font-size:32px; line-height:1.15}
  .subtitle{font-size:15px; line-height:1.6}
  .drawer{width:100vw; max-width:100vw}
  .drawer-header{position:sticky; top:0; background:rgba(15,23,42,.9); backdrop-filter:blur(8px); padding:14px}
  .drawer-footer{position:sticky; bottom:calc(env(safe-area-inset-bottom) + 0px); background:rgba(15,23,42,.9); backdrop-filter:blur(8px); padding:12px}
  #goCheckout{width:100%}
}

/* iOS safe area */
@supports(padding:max(0px)){
  .header{padding-top: max(0px, env(safe-area-inset-top))}
  .drawer-footer{padding-bottom: max(12px, env(safe-area-inset-bottom))}
}
