/* Shared across every page: seamless header + dark mode. Loaded after each page's own styles. */

/* ---- Header blends into the first section ---- */
#nav{background:transparent!important;border-bottom:1px solid transparent;transition:background-color .3s,border-color .3s,box-shadow .3s}
#nav.sc{background:rgba(251,248,246,.8)!important;-webkit-backdrop-filter:saturate(1.6) blur(16px);backdrop-filter:saturate(1.6) blur(16px);border-bottom-color:var(--l)}
#nav+.hero,#nav~.ph-hero{margin-top:-68px}
#nav+.hero{padding-top:88px}
#nav~.ph-hero{padding-top:164px}
@media(max-width:900px){#nav~.ph-hero{padding-top:124px}}

/* ---- Theme toggle (footer) ---- */
.thm{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--l);background:transparent;color:inherit;border-radius:999px;padding:7px 14px 7px 10px;font:500 13px/1 var(--s);cursor:pointer;transition:border-color .2s,color .2s}
.thm:hover{border-color:#D62976;color:var(--k)}
.thm svg{width:16px;height:16px;flex:none}
.thm .i-sun,html[data-theme=dark] .thm .i-moon{display:none}
html[data-theme=dark] .thm .i-sun{display:block}

/* ---- Dark mode ---- */
html[data-theme=dark]{color-scheme:dark;--k:#f3edf1;--w:#0e0a12;--t:#a79eab;--g:#9b8f99;--l:#2e2433}
html[data-theme=dark] body{background:var(--w);color:var(--k)}
html[data-theme=dark] #nav.sc{background:rgba(14,10,18,.78)!important}
html[data-theme=dark] .hero::before,html[data-theme=dark] .hero,html[data-theme=dark] .ph-hero{opacity:1}
html[data-theme=dark] ::selection{background:#D62976;color:#fff}
html[data-theme=dark] .ph-hero{border-bottom-color:var(--l)}
html[data-theme=dark] footer{border-top-color:var(--l)}
/* generated: light surfaces -> dark surfaces, dark text -> light text */
html[data-theme=dark] body:not(.cl) .btn.o{background:#1c1521}
html[data-theme=dark] body:not(.cl) .btn.w{background:#1c1521}
html[data-theme=dark] body:not(.cl) .menu a:hover{background:#321e2c}
html[data-theme=dark] body:not(.cl) .pill{background:#1c1521}
html[data-theme=dark] body:not(.cl) .up{background:#1c1521}
html[data-theme=dark] body:not(.cl) .chip{background:#1c1521}
html[data-theme=dark] body:not(.cl) .drop{background:linear-gradient(#251419,#251419) padding-box,var(--gr) border-box}
html[data-theme=dark] body:not(.cl) .drop{background:#27151d;border:2px dashed #593647}
html[data-theme=dark] body:not(.cl) .drop:hover,html[data-theme=dark] body:not(.cl) .drop.over{background:#2c1821}
html[data-theme=dark] body:not(.cl) .drop small i{background:#1c1521}
html[data-theme=dark] body:not(.cl) .thumbs div{background:#331c29 center/cover}
html[data-theme=dark] body:not(.cl) .ready{background:#1c1521}
html[data-theme=dark] body:not(.cl) .arrows button{background:#1c1521}
html[data-theme=dark] body:not(.cl) .how{background:#1c1521}
html[data-theme=dark] body:not(.cl) .ill{background:#1c1521}
html[data-theme=dark] body:not(.cl) .mini{background:#1c1521}
html[data-theme=dark] body:not(.cl) .price small{color:#d2ccd7}
html[data-theme=dark] body:not(.cl) .plans .pc.hi{border-color:rgba(43,43,43,0.3)}
html[data-theme=dark] body:not(.cl) .fine{color:#b8b0be}
html[data-theme=dark] body:not(.cl) .app .ai{background:#1c1521}
html[data-theme=dark] body:not(.cl) .prog .bar{background:#371f2d}
html[data-theme=dark] body:not(.cl) .opt{background:#1c1521}
html[data-theme=dark] body:not(.cl) .opt .em{background:#2f1927}
html[data-theme=dark] body:not(.cl) .opt.on{background:linear-gradient(#1c1521,#1c1521) padding-box,var(--gr) border-box}
html[data-theme=dark] body:not(.cl) .fld input,html[data-theme=dark] body:not(.cl) .fld textarea{background:#1c1521}
html[data-theme=dark] body:not(.cl) .drop2{background:#27151d;border:2px dashed #593647}
html[data-theme=dark] body:not(.cl) .drop2:hover,html[data-theme=dark] body:not(.cl) .drop2.over{background:#2c1821}
html[data-theme=dark] body:not(.cl) .chatapps span{background:#1c1521}
html[data-theme=dark] body:not(.cl) .thumbs2 div{background:#331c29 center/cover}
html[data-theme=dark] body:not(.cl) .rev{background:#1c1521}
html[data-theme=dark] body:not(.cl) .rev div{border-top:1px solid #432838}
/* legal, FAQ and About pages (style.css) */
html[data-theme=dark] body.cl .hero p.lead{color:#dedede}
html[data-theme=dark] body.cl .compose{background:#1c1521}
html[data-theme=dark] body.cl .step p{color:#d0d0d0}
html[data-theme=dark] body.cl .idx span{color:#d0d0d0}
html[data-theme=dark] body.cl .qa div{color:#d0d0d0}
html[data-theme=dark] body.cl .plat .row{color:#9a9a9e}
html[data-theme=dark] body.cl .ideas span{background:#1c1521}
html[data-theme=dark] body.cl .facts span{color:#d0d0d0}
html[data-theme=dark] body.cl .wall .t{background:#1c1521}
html[data-theme=dark] body.cl .wall .t.dk small{color:#b3b3b3}
html[data-theme=dark] body.cl .ph-hero p{color:#dedede}
html[data-theme=dark] body.cl .faq-tools input{background:#1c1521}
html[data-theme=dark] body.cl .contact{background:#1c1521}
html[data-theme=dark] body.cl .letter p{color:#e1e1e1}
html[data-theme=dark] body.cl .doc p,html[data-theme=dark] body.cl .doc li{color:#e1e1e1}
html[data-theme=dark] body.cl .doc .note{background:#1c1521}
html[data-theme=dark] body.cl .hero p.lead,html[data-theme=dark] body.cl .ph-hero p{color:#9a9a9e}
html[data-theme=dark] body.cl .plat .row{color:#b5b5b2}
html[data-theme=dark] body.cl .chip{border-color:#4a2c3e;background:#1c1521}
html[data-theme=dark] body.cl .compose,html[data-theme=dark] body.cl .card,html[data-theme=dark] body.cl .contact,html[data-theme=dark] body.cl .wall .t,html[data-theme=dark] body.cl .doc .note,html[data-theme=dark] body.cl .faq-tools input,html[data-theme=dark] body.cl .fr,html[data-theme=dark] body.cl .film{border-color:#472a3b}
html[data-theme=dark] body.cl footer{border-top-color:#4a2c3e}
html[data-theme=dark] body.cl .lside .ltabs{background:#1c1521;border:1px solid #472a3b}
html[data-theme=dark] body.cl .lside .ltabs a{color:#9a9a9e}
html[data-theme=dark] body.cl .lside .ltabs a:hover{background:#291621}
html[data-theme=dark] body.cl .lside .ltabs a.on{background:#2b1721}

/* ---- Referral card (footer) ---- */
footer .refer{width:100%;display:flex;align-items:center;gap:20px;margin:0 0 56px;padding:22px 24px;border-radius:24px;background:#fff;border:1px solid #efe3ea;box-shadow:0 24px 50px -36px rgba(150,47,191,.5);text-align:left}
.refer-ic{flex:none;width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(45deg,#FEDA75,#FA7E1E 28%,#D62976 55%,#962FBF 78%,#4F5BD5);box-shadow:0 12px 24px -12px rgba(214,41,118,.8)}
.refer-ic svg{width:24px;height:24px}
.refer-t{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}
.refer-t b{font:700 20px/1.2 var(--f);letter-spacing:-.03em;color:var(--k);text-transform:none}
.refer-t span{font-size:14px;color:var(--t,#6e6e73);line-height:1.45}
footer .refer .refer-b{flex:none;color:#fff;border:0;border-radius:999px;padding:13px 22px;font:600 14px/1 var(--s);letter-spacing:0;background:linear-gradient(90deg,#FEDA75,#FA7E1E,#D62976,#962FBF,#4F5BD5,#962FBF,#D62976,#FA7E1E,#FEDA75);background-size:200% 100%;animation:flow 7s linear infinite;box-shadow:0 14px 30px -14px rgba(214,41,118,.8);cursor:pointer}
html[data-theme=dark] footer .refer{background:#1c1521;border-color:#2e2433}
@media(max-width:700px){footer .refer{flex-wrap:wrap}.refer-t{flex-basis:calc(100% - 68px)}footer .refer .refer-b{width:100%}}

/* ---- Language button + drawer ---- */
html.i18n-wait body{opacity:0}
body{transition:opacity .15s}
.nav-r{display:flex;align-items:center;gap:10px}
.lgb{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--l);background:transparent;color:var(--k);border-radius:999px;padding:9px 13px 9px 11px;font:600 13px/1 var(--s);letter-spacing:.02em;cursor:pointer;transition:border-color .2s,background-color .2s}
.lgb:hover{border-color:#D62976}
.lgb svg{width:17px;height:17px;flex:none}
.lgb-f{padding:7px 14px 7px 10px;font-weight:500;letter-spacing:0;color:inherit}
.lgd{position:fixed;inset:0;z-index:100;visibility:hidden;pointer-events:none}
.lgd.on{visibility:visible;pointer-events:auto}
.lgd-bg{position:absolute;inset:0;background:rgba(20,10,31,.38);opacity:0;transition:opacity .3s;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.lgd.on .lgd-bg{opacity:1}
.lgd-p{position:absolute;top:12px;right:12px;bottom:12px;width:min(380px,calc(100% - 24px));background:var(--w);color:var(--k);border-radius:28px;padding:26px 22px;box-shadow:0 40px 80px -30px rgba(20,10,31,.5);transform:translateX(calc(100% + 24px));transition:transform .4s cubic-bezier(.2,.9,.25,1);display:flex;flex-direction:column;overflow:auto}
.lgd.on .lgd-p{transform:none}
.lgd-top{display:flex;align-items:center;justify-content:space-between}
.lgd-top h3{font:700 28px/1 var(--f);letter-spacing:-.04em}
.lgd-x{width:40px;height:40px;border-radius:50%;border:1px solid var(--l);background:transparent;color:var(--k);display:grid;place-items:center;cursor:pointer}
.lgd-x svg{width:18px;height:18px}
.lgd-sub{margin:8px 0 22px;font-size:14px;color:var(--t,#6e6e73)}
.lgd-l{display:flex;flex-direction:column;gap:6px}
.lgd-l button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 18px;border-radius:18px;border:1px solid var(--l);background:#fff;color:var(--k);font:600 16px/1 var(--s);cursor:pointer;text-align:left;transition:border-color .2s,transform .2s}
.lgd-l button:hover{border-color:#D62976;transform:translateX(-2px)}
.lgd-l button i{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;opacity:0;background:linear-gradient(45deg,#FEDA75,#FA7E1E 28%,#D62976 55%,#962FBF 78%,#4F5BD5);color:#fff}
.lgd-l button i svg{width:14px;height:14px}
.lgd-l button.on{border-color:transparent;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(45deg,#FEDA75,#FA7E1E 28%,#D62976 55%,#962FBF 78%,#4F5BD5) border-box;border:1.5px solid transparent}
.lgd-l button.on i{opacity:1}
html.lgd-lock{overflow:hidden}
html[data-theme=dark] .lgd-p{background:#140f19;box-shadow:0 40px 80px -30px #000}
html[data-theme=dark] .lgd-l button{background:#1c1521}
html[data-theme=dark] .lgd-l button.on{background:linear-gradient(#1c1521,#1c1521) padding-box,linear-gradient(45deg,#FEDA75,#FA7E1E 28%,#D62976 55%,#962FBF 78%,#4F5BD5) border-box}
@media(max-width:600px){.lgb span{display:none}.lgb{padding:9px}.lgb-f span{display:inline}.lgb-f{padding:7px 14px 7px 10px}}
@media(prefers-reduced-motion:reduce){.lgd-p,.lgd-bg{transition:none}}
.prefs{display:inline-flex;gap:8px;flex-wrap:wrap;align-items:center}
