*{box-sizing:border-box} :root{--navy:#081a3a;--blue:#2864e8;--pale:#eef4ff;--ink:#17243d;--muted:#8794a9;--line:#e8edf5;--bg:#f5f7fb}body{margin:0;background:var(--bg);color:var(--ink);font-family:"DM Sans",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}.splash{position:fixed;inset:0;background:radial-gradient(circle at 50% 42%,#163e7d,#081a3a 65%);color:white;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:99}.splash-logo{width:68px;height:68px;border-radius:22px;background:linear-gradient(145deg,#78a8ff,var(--blue));display:grid;place-items:center;font:800 38px "Plus Jakarta Sans";box-shadow:0 15px 50px var(--blue)66;margin-bottom:17px}.splash>b{font:800 24px "Plus Jakarta Sans";letter-spacing:4px}.splash>span{font-size:8px;letter-spacing:3px;color:#a9c4f2;margin-top:5px}.loader{width:130px;height:3px;background:#ffffff25;border-radius:9px;margin-top:35px;overflow:hidden}.loader i{display:block;height:100%;width:35%;background:#83adff;animation:load 1.1s infinite ease-in-out}@keyframes load{from{transform:translateX(-110%)}to{transform:translateX(400%)}}.splash small{font-size:10px;color:#b7c9e9;margin-top:14px}.app{min-height:100vh}.topbar{height:68px;background:var(--navy);display:flex;align-items:center;padding:0 max(4vw,18px);gap:15px;color:white;position:sticky;top:0;z-index:10}.icon-btn{border:1px solid #ffffff25;background:#ffffff10;color:white;width:36px;height:36px;border-radius:10px;font-size:19px}.brand{color:#fff;text-decoration:none;font:800 19px "Plus Jakarta Sans";letter-spacing:2px;display:flex;align-items:center;gap:9px}.brand-mark{width:31px;height:31px;border-radius:9px;background:linear-gradient(145deg,#79a9ff,var(--blue));display:grid;place-items:center}.top-right{margin-left:auto;display:flex;align-items:center;gap:14px}.online-label{font-size:8px;letter-spacing:1.4px;color:#a9c7f8}.online-label i,.live-pill i{display:inline-block;width:6px;height:6px;background:#31d69a;border-radius:50%;margin-right:5px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#d5e4ff,#6597f4);color:#14356d;font-weight:800;border:2px solid white}.layout{max-width:1400px;margin:auto;display:grid;grid-template-columns:225px minmax(0,1fr);gap:28px;padding:27px max(4vw,18px) 55px}.sidebar{background:white;border:1px solid var(--line);border-radius:19px;padding:19px 14px;height:calc(100vh - 110px);min-height:480px;position:sticky;top:88px;display:flex;flex-direction:column;box-shadow:0 10px 35px #193c7410}.user-card{display:flex;align-items:center;gap:10px;padding:4px 3px 20px;border-bottom:1px solid var(--line)}.user-card b,.user-card small{display:block}.user-card b{font-size:11px}.user-card small{font-size:9px;color:var(--muted);margin-top:4px}.avatar.big{width:40px;height:40px}.nav-title,.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.6px;color:#93a0b4}.nav-title{margin:23px 7px 10px}.sidebar nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;text-align:left;padding:11px 12px;border-radius:10px;color:#74829a;font-size:11px;font-weight:700}.nav-item span{display:inline-block;width:25px;font-size:17px}.nav-item.active,.nav-item:hover{background:var(--pale);color:var(--blue)}.sidebar-tip{margin-top:auto;background:#eff5ff;padding:14px;border-radius:12px;color:#355b9a}.sidebar-tip b{font-size:10px}.sidebar-tip p{font-size:9px;line-height:1.6;margin-bottom:0;color:#7186aa}.version{font-size:8px;color:#a4afbf;letter-spacing:1.2px;margin:17px 4px 0}.main{min-width:0}.page{display:none;animation:fade .2s ease}.page.active{display:block}@keyframes fade{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}.welcome,.page-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:4px 0 23px}.eyebrow{margin:0 0 8px}.welcome h1,.page-title h1{font:800 clamp(23px,3vw,32px) "Plus Jakarta Sans";letter-spacing:-1px;margin:0}.welcome h1 span{color:var(--blue)}.muted{font-size:11px;color:var(--muted);line-height:1.65;margin:7px 0 0}.date-chip,.live-pill{font-size:9px;color:#5275b4;background:#eaf1ff;border-radius:30px;padding:9px 12px;font-weight:800;white-space:nowrap}.hero{background:linear-gradient(110deg,#091d43,#17488e 68%,#3478e9);border-radius:20px;padding:30px 34px;color:white;min-height:230px;position:relative;overflow:hidden;display:flex;align-items:center}.hero-content{position:relative;z-index:2;max-width:440px}.tag{font-size:8px;letter-spacing:1.8px;border:1px solid #ffffff55;border-radius:30px;padding:7px 10px;color:#c5d9ff}.hero h2{font:800 30px/1.18 "Plus Jakarta Sans";margin:17px 0 7px}.hero p{font-size:10px;line-height:1.7;color:#c5d8f6;max-width:330px}.white-btn{background:white;color:#17488e;border:0;border-radius:9px;padding:11px 14px;font-size:10px;font-weight:800;margin-top:10px}.hero-shape{position:absolute;right:7%;top:0;width:270px;height:100%}.hero-orb{position:absolute;width:220px;height:220px;right:0;top:20px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#9dc0ff,#3978dc 60%,#153e82)}.hero-tile{position:absolute;right:70px;top:37px;width:105px;height:150px;border:1px solid #ffffff8a;background:#ffffff25;backdrop-filter:blur(8px);border-radius:15px;transform:rotate(9deg);padding:17px;color:#e6f0ff;font-size:12px;letter-spacing:2px}.hero-tile b{font:800 20px "Plus Jakarta Sans"}.hero-tile small{position:absolute;bottom:14px;left:17px;font-size:7px}.section-head{display:flex;justify-content:space-between;align-items:end;margin:28px 0 13px}.section-head h2{font:800 19px "Plus Jakarta Sans";margin:0}.feature-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:11px}.feature{position:relative;text-align:left;border:1px solid var(--line);background:white;border-radius:14px;padding:15px 12px;min-height:125px;color:var(--ink);box-shadow:0 6px 20px #16376b08}.feature:hover{transform:translateY(-2px);box-shadow:0 12px 25px #16376b12}.ficon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;font-style:normal;font-size:18px;margin-bottom:13px}.blue{background:#e8f0ff;color:var(--blue)}.purple{background:#f0eaff;color:#8255d7}.cyan{background:#e4f8fc;color:#1b9bb7}.orange{background:#fff1df;color:#db8a27}.pink{background:#ffebf2;color:#d84c89}.feature b,.feature small{display:block}.feature b{font-size:10px}.feature small{font-size:8px;color:var(--muted);margin-top:5px}.feature>span{position:absolute;right:11px;top:12px;color:#91a5c9}.link-btn{border:0;background:transparent;color:var(--blue);font-size:10px;font-weight:800}.story-row{display:flex;align-items:flex-start;gap:15px;overflow-x:auto;min-height:95px;padding:5px 0 12px}.story-add,.story-bubble{border:0;background:transparent;min-width:68px;display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--ink);font-size:9px}.story-add span{width:60px;height:60px;border:1.5px dashed #83a6e8;background:#edf3ff;border-radius:50%;display:grid;place-items:center;color:var(--blue);font-size:25px}.story-bubble{cursor:pointer}.story-bubble img{width:60px;height:60px;border-radius:50%;padding:3px;border:2px solid #3877ed;object-fit:cover}.page-title{margin-bottom:23px}.primary,.secondary{border:0;border-radius:10px;padding:11px 15px;background:linear-gradient(120deg,#3476f6,#2358d6);color:white;font-size:10px;font-weight:800}.secondary{background:#eaf1ff;color:var(--blue)}.full{width:100%;margin-top:12px}.soft-panel{background:#edf4ff;color:#3e619d;border-radius:13px;padding:15px;font-size:10px;margin-top:18px}.soft-panel p{line-height:1.6;margin-bottom:0;color:#7186aa}.chat-card,.ai-card{background:white;border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:0 10px 30px #1839660a}.chat-head{padding:15px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.chat-head b,.chat-head small{display:block}.chat-head b{font-size:11px}.chat-head small{font-size:9px;color:var(--muted);margin-top:4px}.icon-btn.light{background:#f0f4fb;color:#58709b;border:0}.messages{height:min(52vh,480px);min-height:280px;overflow:auto;padding:17px;display:flex;flex-direction:column;gap:11px;background:#fbfcff}.message{max-width:82%;align-self:flex-start;background:#fff;border:1px solid var(--line);border-radius:4px 13px 13px 13px;padding:9px 11px;box-shadow:0 3px 10px #18396608}.message.mine{align-self:flex-end;background:#eaf1ff;border-color:#d9e5ff;border-radius:13px 4px 13px 13px}.message b{font-size:9px;color:#3165bd;display:block;margin-bottom:5px}.message p{font-size:11px;line-height:1.5;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.message time{display:block;text-align:right;font-size:8px;color:#9aa6b7;margin-top:5px}.chat-compose,.ai-compose{display:flex;gap:9px;padding:13px;border-top:1px solid var(--line)}.chat-compose input{flex:1;min-width:0;border:1px solid var(--line);background:#f8faff;border-radius:10px;padding:12px;font-size:10px;outline:none}.send-btn{width:42px;border:0;border-radius:10px;background:var(--blue);color:white}.chat-foot,.helper{font-size:9px;color:#9aa6b7;padding:0 14px 12px}.tool-layout{display:grid;grid-template-columns:1fr 280px;gap:15px}.tool-card,.qr-result{background:white;border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:0 8px 25px #16376b08}.tool-card label,.field-label{display:block;font-size:10px;font-weight:800;margin:4px 0 8px}.tool-card textarea,.tool-card input,.tool-card select,.modal textarea,.ai-compose textarea{width:100%;border:1px solid var(--line);border-radius:9px;padding:11px;font-size:10px;outline:none;background:#fbfcff;color:var(--ink)}.tool-card select{margin-bottom:10px}.qr-result{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.qr-placeholder{width:190px;height:190px;border:1px dashed #d5dfef;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#a3b6d6;font-size:42px}.qr-placeholder small{font-size:9px}.qr-result canvas,.qr-result img{max-width:100%;height:auto!important}.tools-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.tool-icon{width:35px;height:35px;background:#edf3ff;border-radius:10px;display:grid;place-items:center;color:var(--blue);font-size:18px}.tool-card h3{font:800 14px "Plus Jakarta Sans";margin:11px 0}.tool-result,.password-output{background:#f4f7fc;border-radius:9px;padding:12px;font-size:12px;min-height:40px;margin-top:9px;overflow-wrap:anywhere}.stats,.inline-controls{display:flex;align-items:center;gap:12px;margin-top:10px;font-size:9px;color:var(--muted)}.stats b{color:var(--blue)}.inline-controls select{width:70px;margin:0}.clock{font:800 28px "Plus Jakarta Sans";color:#2b66d8;margin:20px 0}.ai-card{padding:18px}.ai-intro{display:flex;gap:10px;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line)}.ai-symbol{width:39px;height:39px;border-radius:12px;background:#eaf1ff;color:var(--blue);display:grid;place-items:center;font-size:22px}.ai-intro b,.ai-intro small{display:block}.ai-intro b{font-size:11px}.ai-intro small{font-size:9px;color:var(--muted);margin-top:4px}.ai-output{min-height:300px;max-height:48vh;overflow:auto;padding:16px 3px;display:flex;flex-direction:column;gap:12px}.ai-welcome,.ai-bubble{background:#f0f5ff;padding:13px;border-radius:12px;font-size:11px;line-height:1.6;max-width:90%;white-space:pre-wrap}.ai-bubble.user{align-self:flex-end;background:var(--blue);color:white}.ai-compose{padding:12px 0 0;align-items:end}.ai-compose textarea{flex:1;resize:vertical}.ai-compose button{height:40px}.error{font-size:10px;color:#d34c5b;min-height:12px}.mobile-nav{display:none}.modal-bg,.viewer-bg{position:fixed;inset:0;background:#06142bc4;z-index:50;display:grid;place-items:center;padding:15px;backdrop-filter:blur(4px)}[hidden]{display:none!important}.modal{background:white;border-radius:18px;padding:21px;width:min(100%,440px);max-height:92vh;overflow:auto}.modal-head{display:flex;justify-content:space-between;align-items:start}.modal-head h2{font:800 19px "Plus Jakarta Sans";margin:0 0 16px}.close{border:0;background:#f0f3f8;border-radius:9px;width:31px;height:31px;font-size:20px}.upload-box{height:145px;border:1px dashed #9db5e1;background:#f7faff;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#41649e}.upload-box span{font-size:25px;color:var(--blue)}.upload-box b{font-size:11px}.upload-box small{font-size:9px;color:var(--muted)}#storyPreview img{max-height:260px;max-width:100%;display:block;margin:auto;border-radius:10px}.field-label{margin-top:15px}.viewer-bg{background:#020817e8}.viewer{width:min(100%,410px);height:90vh;background:#07152d;border-radius:17px;position:relative;overflow:hidden;color:white;display:flex;align-items:center;justify-content:center}.viewer>img{max-width:100%;max-height:100%;object-fit:contain}.viewer-bar{position:absolute;top:10px;left:10px;right:10px;height:3px;background:#ffffff55;z-index:2}.viewer-bar span{display:block;height:100%;width:100%;background:white;animation:load 8s linear}.viewer-head{position:absolute;z-index:3;top:22px;left:15px;right:12px;display:flex;gap:8px;align-items:center}.viewer-head b{margin-right:auto;font-size:11px}.viewer-head button{background:#0006;color:white;border:0;border-radius:8px;padding:7px 10px}.viewer>p{position:absolute;bottom:45px;text-align:center;padding:0 15px;text-shadow:0 2px 5px black;font-size:12px}.viewer>small{position:absolute;bottom:15px;left:15px;font-size:9px}.viewer-next{position:absolute;bottom:12px;right:13px;border:0;background:#ffffff25;color:white;padding:7px 10px;border-radius:8px}.toast{position:fixed;z-index:100;bottom:25px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#0b1e40;color:white;padding:11px 16px;border-radius:10px;font-size:10px;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:900px){.feature-grid{grid-template-columns:repeat(3,1fr)}.hero-shape{right:-60px;opacity:.6}}
@media(max-width:650px){.topbar{height:60px;padding:0 13px}.layout{display:block;padding:20px 14px 90px}.sidebar{display:none;position:fixed;z-index:30;left:10px;top:68px;bottom:80px;width:245px;height:auto;min-height:0}.sidebar.open{display:flex}.online-label{display:none}.welcome h1,.page-title h1{font-size:23px}.date-chip{display:none}.hero{padding:23px 20px;min-height:220px}.hero h2{font-size:26px}.hero-content{max-width:85%}.hero-shape{right:-130px;opacity:.4}.feature-grid{grid-template-columns:repeat(2,1fr);gap:9px}.feature{min-height:115px}.tool-layout{grid-template-columns:1fr}.qr-result{min-height:260px}.tools-grid{grid-template-columns:1fr}.mobile-nav{position:fixed;display:flex;z-index:25;bottom:0;left:0;right:0;height:65px;padding:5px 4px calc(5px + env(safe-area-inset-bottom));background:white;border-top:1px solid var(--line);justify-content:space-around}.mobile-nav button{border:0;background:transparent;color:#94a0b2;font-size:8px;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:45px}.mobile-nav button span{font-size:19px}.mobile-nav button.active{color:var(--blue)}.page-title{align-items:flex-start}.page-title>.primary{padding:10px;font-size:9px}.chat-compose input{font-size:10px}.messages{height:55vh}.ai-output{min-height:260px}.inline-controls{flex-wrap:wrap}.welcome{margin-bottom:18px}}

hr{border:0;border-top:1px solid var(--line);margin:18px 0}.profile-card{max-width:520px}.profile-card .avatar{margin-bottom:15px}.profile-card input{margin-bottom:8px}.prayer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:15px}.prayer-item{background:#f1f5fc;padding:12px;border-radius:10px}.prayer-item b,.prayer-item span{display:block}.prayer-item b{font-size:10px}.prayer-item span{font-size:15px;color:var(--blue);font-weight:800;margin-top:5px}.quran-card{margin-top:15px}.quran-result{max-height:520px;overflow:auto;margin-top:15px}.ayah{padding:13px 3px;border-bottom:1px solid var(--line)}.ayah .arabic{font-size:22px;line-height:2.1;text-align:right;direction:rtl}.ayah .translation{font-size:11px;line-height:1.7;color:#65748d;margin-top:8px}.ascii-output{white-space:pre;overflow:auto;font-size:9px;min-height:80px}.tool-card input[type=color]{height:45px;padding:3px}.dark{--bg:#101827;--ink:#e7edf8;--muted:#9aa9bf;--line:#29364b}.dark .sidebar,.dark .feature,.dark .tool-card,.dark .qr-result,.dark .chat-card,.dark .ai-card,.dark .mobile-nav{background:#172337;color:#e7edf8;border-color:#29364b}.dark .messages,.dark .tool-result,.dark .chat-compose input,.dark .tool-card textarea,.dark .tool-card input,.dark .tool-card select{background:#101827;color:#e7edf8;border-color:#29364b}.dark .nav-item{color:#aab8cc}.dark .nav-item.active{background:#23385b;color:#8db4ff}
@media(max-width:650px){.prayer-grid{grid-template-columns:repeat(2,1fr)}.mobile-nav button:last-child{display:flex}}

/* NEXA 3.0 visual rebuild — responsive dashboard and readable tool cards */
:root{--bg:#f3f6fc;--ink:#14213b;--muted:#71809a;--line:#e4eaf4;--blue:#2864e8;--navy:#071a3b}
body{font-family:"DM Sans",system-ui,sans-serif;background:var(--bg);letter-spacing:-.01em}
.topbar{height:72px;padding-inline:clamp(16px,4vw,56px);box-shadow:0 8px 28px #061a3a18}
.brand{font-size:21px;gap:12px}.brand-mark{width:42px;height:42px;border-radius:13px;font-size:23px}
.layout{max-width:1500px;grid-template-columns:245px minmax(0,1fr);gap:28px;padding-top:30px}
.sidebar{top:92px;border-radius:22px;padding:22px 16px}
.main{padding-bottom:35px}.welcome{margin-bottom:25px}.welcome h1,.page-title h1{font-size:clamp(25px,3vw,36px);letter-spacing:-1.25px}
.muted{font-size:13px;line-height:1.7}.eyebrow{font-size:10px;letter-spacing:1.8px}
.hero{min-height:290px;padding:38px 42px;border-radius:26px;box-shadow:0 18px 48px #123c801c}
.hero h2{font-size:clamp(30px,4vw,42px);letter-spacing:-1.5px}.hero p{font-size:13px;line-height:1.8}.tag{font-size:10px}.white-btn{font-size:12px;padding:14px 18px;border-radius:12px}
.section-head{margin:34px 0 16px}.section-head h2{font-size:22px}
.feature-grid{gap:14px}.feature{padding:18px;min-height:145px;border-radius:18px;transition:transform .18s,box-shadow .18s}.feature b{font-size:12px}.feature small{font-size:10px;line-height:1.5}.ficon{width:42px;height:42px;border-radius:13px;font-size:20px}
.device-dashboard{margin-top:30px}.device-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.device-stat{min-width:0;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 8px 25px #17386608;display:flex;flex-direction:column;gap:7px}
.device-stat>span{width:38px;height:38px;border-radius:12px;background:#edf3ff;color:var(--blue);display:grid;place-items:center;font-size:19px;margin-bottom:3px}
.device-stat small{font-size:11px;color:var(--muted);font-weight:700}.device-stat b{font-size:clamp(16px,2vw,22px);line-height:1.25;overflow-wrap:anywhere}.device-stat em{font-size:10px;line-height:1.5;color:#8996aa;font-style:normal;overflow-wrap:anywhere}
.mini-btn{align-self:flex-start;border:0;border-radius:9px;padding:8px 11px;background:#eaf1ff;color:#235bd1;font-size:10px;font-weight:800;margin-top:3px}
.status-live{font-size:11px;color:#168b65;font-weight:800;background:#e6f8f1;border-radius:30px;padding:8px 12px}
.tools-grid{gap:18px}.tool-card,.qr-result{padding:22px;border-radius:20px;box-shadow:0 10px 28px #17386609}.tool-card h3{font-size:16px;margin:14px 0}.tool-card label,.field-label{font-size:12px}.tool-card textarea,.tool-card input,.tool-card select,.modal textarea,.ai-compose textarea{font-size:13px;padding:13px;border-radius:12px;min-height:46px}.tool-card textarea{min-height:88px}.primary,.secondary{font-size:12px;padding:13px 17px;border-radius:12px;min-height:44px}.full{margin-top:14px}.helper{font-size:11px;line-height:1.65;padding:0;margin-top:10px}.tool-result,.password-output{font-size:13px;line-height:1.6;padding:14px;border-radius:12px;white-space:pre-wrap}.page-title{margin-bottom:26px}.tools-categories{margin-bottom:35px}.api-setup{display:flex;gap:14px;align-items:flex-start;margin-top:20px;padding:18px;background:#f1f6ff;border:1px solid #dce8fb;border-radius:16px}.api-setup-icon{flex:0 0 42px;height:42px;display:grid;place-items:center;background:#e0ebff;color:var(--blue);border-radius:13px;font-size:20px}.api-setup b{font-size:13px}.api-setup p{font-size:11px;line-height:1.7;color:#61718c;margin:7px 0}.api-setup code{background:#e3ebf8;border-radius:5px;padding:2px 5px}.api-note{font-size:10px;color:var(--blue);font-weight:700}
.chat-card,.ai-card{border-radius:20px}.chat-head b{font-size:13px}.chat-head small{font-size:11px}.messages{padding:20px}.message{padding:12px 14px}.message b,.message p{font-size:12px}.chat-compose input{font-size:13px}.ai-card{padding:22px}.ai-output{padding:20px 4px}.ai-welcome,.ai-bubble{font-size:13px;padding:14px 16px;line-height:1.7}.ai-compose textarea{font-size:13px}
.mobile-nav{height:74px;padding:8px 5px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -8px 25px #0b23400a}.mobile-nav button{font-size:10px;gap:4px}.mobile-nav button span{font-size:21px}
.dark .device-stat,.dark .api-setup{background:#172337;border-color:#29364b;color:#e7edf8}.dark .api-setup p{color:#aab8cc}.dark .api-setup code{background:#263954}
@media(max-width:900px){.device-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.layout{grid-template-columns:205px minmax(0,1fr);gap:18px}.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.topbar{height:66px;padding:0 14px}.layout{padding:20px 14px 110px}.welcome h1,.page-title h1{font-size:25px}.hero{min-height:270px;padding:25px 22px;border-radius:23px}.hero h2{font-size:30px;line-height:1.16}.hero-content{max-width:95%}.hero-shape{right:-165px;opacity:.25}.device-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.device-stat{padding:14px;border-radius:16px;gap:6px}.device-stat b{font-size:18px}.device-stat em{font-size:10px}.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.feature{min-height:132px;padding:15px}.tools-grid{grid-template-columns:1fr;gap:13px}.tool-card{padding:18px}.page-title{gap:10px}.mobile-nav{height:72px}.mobile-nav button{min-width:0;flex:1}.api-setup{padding:14px}.online-label{display:none}}

/* NEXA static integrations: Pollinations, Indonesian RSS, Spotify embed */
.ai-key-panel{margin:0 0 18px!important;display:flex;gap:14px;align-items:flex-start}
.ai-key-fields{min-width:0;flex:1}.ai-key-fields input{width:100%;margin-top:10px;border:1px solid var(--line);background:var(--surface,#fff);border-radius:12px;padding:13px;font:inherit;color:inherit}.ai-key-fields .inline-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.ai-key-fields .inline-controls button{margin:0}
.news-filters{display:flex;gap:8px;overflow:auto;padding:2px 0 14px}.news-filter{border:1px solid var(--line);background:var(--surface,#fff);color:inherit;border-radius:30px;padding:9px 15px;white-space:nowrap;font-weight:700;font-size:12px}.news-filter.active{background:var(--blue);border-color:var(--blue);color:white}.news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.news-card{background:var(--surface,#fff);border:1px solid var(--line);border-radius:17px;padding:17px;min-width:0;box-shadow:0 8px 24px #17386608}.news-card h3{font-size:15px;line-height:1.5;margin:9px 0;color:var(--text,#14233d)}.news-card p{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 13px}.news-meta{font-size:10px;color:var(--blue);font-weight:800}.news-card a,.link-btn{font-size:12px;font-weight:800;color:var(--blue);text-decoration:none}.spotify-player{margin:16px 0 10px;min-height:120px;border-radius:14px;overflow:hidden;background:var(--soft,#f2f5fb)}.spotify-player iframe{display:block;border-radius:14px;max-width:100%}.dark .news-card,.dark .news-filter,.dark .ai-key-fields input{background:#172337;border-color:#29364b;color:#e7edf8}.dark .news-card h3{color:#e7edf8}
@media(max-width:650px){.news-grid{grid-template-columns:1fr}.ai-key-fields .inline-controls button{flex:1}.news-card{padding:15px}}

/* NEXA v11: Ceramah, Game Zone, development apology */
.dev-apology{max-width:1500px;margin:12px auto 0;padding:12px 18px;border:1px solid #f1d9a7;background:#fff8e8;color:#77551c;border-radius:13px;font-size:12px;line-height:1.65}.dev-apology b{font-weight:800}.lecture-channels{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}.lecture-channels a{padding:10px 13px;border-radius:10px;background:#edf3ff;color:#245ac8;text-decoration:none;font-size:12px;font-weight:800}.games-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.game-card{min-width:0}.game-status{display:block;margin:13px 0;color:var(--blue);font-size:13px;line-height:1.5}.ttt-board{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;max-width:260px;margin:16px auto}.ttt-cell{aspect-ratio:1;border:1px solid var(--line);border-radius:13px;background:#f1f5fc;color:#18345f;font-size:34px;font-weight:900}.reaction-pad{width:100%;min-height:135px;border:0;border-radius:15px;background:#e9eef7;color:#26364f;font-weight:900;font-size:15px;margin-top:12px}.reaction-pad.waiting{background:#e7a63a;color:#fff}.reaction-pad.ready{background:#16a36a;color:#fff}.reaction-pad.too-soon{background:#d9534f;color:#fff}.dark .dev-apology{background:#30291b;border-color:#5b4826;color:#f1dba8}.dark .ttt-cell{background:#101827;color:#e7edf8;border-color:#29364b}.dark .reaction-pad{background:#29364b;color:#e7edf8}
@media(max-width:900px){.games-grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){.games-grid{grid-template-columns:1fr}.dev-apology{margin:8px 12px 0;font-size:10px}.lecture-channels a{flex:1;text-align:center}.ttt-board{max-width:290px}}

/* NEXA Watch */
.watch-player{width:100%;margin-top:16px;overflow:hidden;border-radius:16px;background:#050b18;aspect-ratio:16/9;display:grid;place-items:center}.watch-player iframe{width:100%;height:100%;min-height:240px;display:block}.watch-categories{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.streaming-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin-top:14px}.streaming-links a{display:flex;flex-direction:column;gap:5px;padding:14px;border:1px solid var(--line,#dce3ef);border-radius:13px;text-decoration:none;color:inherit;font-weight:800;background:var(--surface,#fff)}.streaming-links a small{font-weight:500;color:var(--muted,#718096)}

/* NEXA v18: unified needs/tools navigation and personalized canvas */
:root{--accent:var(--blue);--blue:#2864e8;--green:#159b76}
body{background-image:radial-gradient(ellipse at 12% 5%,#dce9ff88,transparent 38%),radial-gradient(ellipse at 88% 24%,#d7f4f188,transparent 35%);background-attachment:fixed}
body[data-background="midnight"]{background:#0b1425;background-image:radial-gradient(ellipse at 15% 0%,#173a69,transparent 45%)}
body[data-background="ocean"]{background:#eaf7ff;background-image:radial-gradient(ellipse at 10% 0%,#9bd8efaa,transparent 45%),radial-gradient(ellipse at 90% 30%,#8cb9ff88,transparent 40%)}
body[data-background="sunset"]{background:#fff4ed;background-image:radial-gradient(ellipse at 15% 0%,#ffd1ae99,transparent 45%),radial-gradient(ellipse at 90% 30%,#e6b9e899,transparent 40%)}
body[data-background="light"]{background:#f5f7fb;background-image:radial-gradient(ellipse at 10% 0%,#e4edff,transparent 42%)}
body[data-background="aurora"]{background-color:#f4f7fc;background-image:radial-gradient(ellipse at 10% 0%,#c6d9ff88,transparent 42%),radial-gradient(ellipse at 90% 25%,#b6f0e488,transparent 38%)}
.settings-trigger{font-weight:900;font-size:13px;background:#ffffff18;letter-spacing:.5px}
.sidebar nav .nav-title:not(:first-child){margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.sidebar nav .nav-item{display:block;width:100%}
.dashboard-needs .feature{min-height:118px}
.dashboard-showcase{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.showcase-card{border:0;padding:0;min-height:205px;position:relative;overflow:hidden;border-radius:20px;text-align:left;background:#13284b;box-shadow:0 12px 30px #102c551c}
.showcase-card>img{width:100%;height:100%;min-height:205px;position:absolute;inset:0;object-fit:cover;transition:transform .45s}
.showcase-card:hover>img{transform:scale(1.05)}
.showcase-overlay{position:absolute;inset:auto 0 0;padding:38px 18px 17px;color:white;background:linear-gradient(transparent,#07172de8);display:flex;flex-direction:column;gap:4px}
.showcase-overlay b{font:800 17px "Plus Jakarta Sans"}.showcase-overlay small{font-size:10px;color:#d5e2f7}
.quran-showcase{background:radial-gradient(circle at 65% 30%,#2b9c78,#063d35 70%)}
.quran-art{display:grid;place-items:center;min-height:180px;background:radial-gradient(circle,#d7b56d22,transparent 60%)}
.quran-book{width:120px;height:142px;border:5px double #d5b56d;border-radius:8px 17px 17px 8px;background:linear-gradient(130deg,#075748,#073d37);box-shadow:10px 12px 0 #041f1b,0 20px 35px #0005;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#f4d58b;gap:10px;transform:rotate(-7deg)}
.quran-book span{font-family:serif;font-size:20px}.quran-book i{width:58px;height:35px;border:1px solid #d5b56d;border-radius:50%}
.prayer-dashboard{margin-top:18px}.prayer-dashboard .section-head{margin:0 0 10px}.prayer-dashboard .prayer-grid{grid-template-columns:repeat(4,1fr)}
.home-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.home-news-item{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:var(--ink);padding:16px;border:1px solid var(--line);background:#ffffffd9;border-radius:14px;min-height:100px}.home-news-item b{font-size:12px;line-height:1.5}.home-news-item small{font-size:9px;color:var(--muted)}
.settings-backdrop{position:fixed;inset:0;z-index:80;background:#06132988;backdrop-filter:blur(5px);display:flex;justify-content:flex-start}.settings-drawer{width:min(390px,92vw);height:100%;overflow:auto;background:#fff;padding:25px 22px;box-shadow:20px 0 60px #06132935;display:flex;flex-direction:column;gap:12px}.settings-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}.settings-head h2{font:800 21px "Plus Jakarta Sans";margin:0}.settings-drawer label{font-size:12px;font-weight:700;color:#53627a;margin-top:7px}.settings-drawer input[type=color]{height:48px;width:100%;padding:4px;border:1px solid var(--line);border-radius:10px;background:#fff}.settings-drawer select{padding:13px;border:1px solid var(--line);border-radius:10px;background:white;color:#26364f}.settings-drawer .toggle-line{display:flex;align-items:center;gap:10px}.settings-drawer .toggle-line input{width:17px;height:17px}
.savings-summary{display:grid;grid-template-columns:1.3fr 1fr;gap:14px}.savings-summary strong{display:block;font:800 28px "Plus Jakarta Sans";margin-top:8px}.saving-progress{height:9px;background:#e8eef7;border-radius:20px;overflow:hidden;margin-top:14px}.saving-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--accent),#46c9a0);border-radius:20px;transition:width .35s}.saving-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.saving-form button{grid-column:span 2}.saving-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 2px;border-bottom:1px solid var(--line);font-size:11px}.saving-row b.in{color:#159b76}.saving-row b.out{color:#d65c65}
.scanner-card,.mosque-card{max-width:850px}.scan-result{margin-top:16px;padding:15px;border:1px solid var(--line);border-radius:12px;background:#f5f8fd;color:#50617a;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.scan-result.safe{background:#eaf8f1;border-color:#b9e6ce;color:#126d4c}.scan-result.danger{background:#fff0f0;border-color:#f1c3c3;color:#9f2525}.scan-result a{display:block;margin-top:10px;color:var(--accent);overflow-wrap:anywhere}.reminder-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.reminder-row label{display:flex;gap:8px;align-items:center;font-size:11px}.reminder-row small{font-size:9px;color:var(--muted)}.mosque-results{display:grid;gap:9px}.mosque-results a{color:var(--accent);font-size:12px;text-decoration:none;padding:10px;border-radius:9px;background:#f3f7fd}.quran-banner{display:flex;align-items:center;gap:15px;padding:12px 16px;border-radius:14px;background:linear-gradient(110deg,#073f37,#14785d);color:white;margin-bottom:17px}.quran-banner .quran-art{min-height:110px;min-width:105px}.quran-banner .quran-book{width:70px;height:88px}.quran-banner .quran-book span{font-size:12px}.quran-banner .quran-book i{width:34px;height:20px}.quran-banner p{font-size:10px;line-height:1.6;color:#d2efe2}.osint-frame{width:100%;height:780px;border:1px solid var(--line);border-radius:14px;background:#fff}.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
body.dark .settings-drawer{background:#172337;color:#e7edf8}body.dark .settings-drawer select,body.dark .settings-drawer input[type=color]{background:#101827;color:#e7edf8;border-color:#29364b}body.dark .home-news-item{background:#172337;color:#e7edf8}body.dark .scan-result{background:#101827;color:#e7edf8;border-color:#29364b}body.dark .mosque-results a{background:#101827}body.dark .quran-card,body.dark .prayer-dashboard{background:#172337;color:#e7edf8}
@media(max-width:650px){.dashboard-showcase{grid-template-columns:1fr}.showcase-card{min-height:190px}.home-news-grid{grid-template-columns:1fr}.prayer-dashboard .prayer-grid{grid-template-columns:repeat(2,1fr)}.savings-summary{grid-template-columns:1fr}.saving-form{grid-template-columns:1fr}.saving-form button{grid-column:auto}.reminder-row{align-items:flex-start;flex-direction:column}.settings-drawer{padding:22px 18px}.osint-frame{height:920px}}
.settings-trigger{font-size:9px;font-weight:900;letter-spacing:.6px;width:42px}
.home-chat-preview{display:grid;gap:7px;padding:13px 15px;border:1px solid var(--line);background:#ffffffd9;border-radius:14px}
.home-chat-line{font-size:11px;color:#52627a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 0}
body.dark .home-chat-preview{background:#172337;border-color:#29364b}body.dark .home-chat-line{color:#d5deec}

/* NEXA v19 — Gateway visual system based on the approved blue tools-dashboard reference */
:root{--navy:#07518b;--blue:#087be8;--pale:#eaf5ff;--bg:#edf5ff;--ink:#102c54;--line:#cfe1f2}
body{background-color:#edf5ff;background-image:radial-gradient(ellipse at 12% 12%,#d4eaff 0,transparent 38%),radial-gradient(ellipse at 88% 34%,#c9f0f2 0,transparent 34%),linear-gradient(145deg,#f7fbff,#eaf3ff 55%,#f6fbff);background-attachment:fixed}
.topbar{height:82px;background:linear-gradient(110deg,#064b83,#087fd2 60%,#07518b);padding-inline:clamp(14px,3vw,44px);box-shadow:0 10px 32px #06477b35;border-bottom:1px solid #ffffff35}
.settings-trigger{width:auto;min-width:48px;padding:0 13px;border-radius:15px;background:#ffffff20;border:1px solid #ffffff4d;font-size:11px;letter-spacing:.7px}
#menuToggle{width:44px;height:44px;border-radius:14px;background:#ffffff18;border:1px solid #ffffff40;font-size:23px}
.brand{margin:auto;display:flex;gap:11px;align-items:center;font-size:25px;letter-spacing:2.5px}.brand-mark{width:48px;height:48px;border-radius:16px;font-size:27px;box-shadow:0 8px 22px #001d4a55}.brand>span:last-child{display:flex;flex-direction:column;line-height:1}.brand small{font-size:9px;letter-spacing:2px;color:#c8e6ff;margin-top:5px;font-weight:700}
.top-right{margin-left:0}.online-label{display:none}#themeBtn{width:42px;height:42px;border-radius:50%;background:#ffffff20;border:1px solid #ffffff55}
.layout{max-width:1500px;grid-template-columns:230px minmax(0,1fr);gap:24px;padding-top:26px}.sidebar{border-radius:24px;border:1px solid #d4e6f7;background:#ffffffd9;backdrop-filter:blur(16px);box-shadow:0 18px 45px #235c9612}.nav-item{border-radius:13px}.nav-item.active,.nav-item:hover{background:linear-gradient(100deg,#e4f2ff,#f0f8ff);color:#0874d5}.nav-title{color:#4b8ab9}.main{padding-bottom:45px}.dev-apology{border-radius:15px}
.hero-v19{position:relative;isolation:isolate;min-height:310px;overflow:hidden;border:1px solid #b6dfff;background:linear-gradient(110deg,#075ca5 0%,#0a91dc 48%,#67d0f0 100%);box-shadow:0 20px 48px #0876c333;border-radius:28px;padding:38px 40px;color:#fff}
.hero-v19:before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 78% 18%,#ffffff80 0 2px,transparent 3px),radial-gradient(circle at 88% 65%,#ffffff70 0 3px,transparent 4px),linear-gradient(130deg,transparent 42%,#ffffff1c 42% 43%,transparent 43%);background-size:52px 52px,70px 70px,100% 100%;opacity:.7}
.hero-v19:after{content:"";position:absolute;z-index:-1;width:360px;height:360px;right:8%;top:-135px;border-radius:50%;border:1px solid #ffffff55;box-shadow:0 0 0 22px #ffffff0d,0 0 0 55px #ffffff0b,0 0 0 90px #ffffff09}
.hero-v19 .hero-content{max-width:57%;position:relative;z-index:2}.hero-v19 .tag{display:inline-flex;padding:9px 13px;border:1px solid #ffffff60;border-radius:30px;background:#ffffff1c;color:#e7f7ff;font-weight:800;letter-spacing:1.5px}.hero-v19 h2{font-size:clamp(34px,4.5vw,54px);line-height:1.04;margin:20px 0 12px;letter-spacing:-1.7px}.hero-v19 p{font-size:14px;max-width:390px;color:#e3f5ff}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.hero-v19 .white-btn{background:white;color:#075b9e;border-radius:13px;font-weight:800}.hero-ghost{border:1px solid #ffffff80;background:#ffffff16;color:#fff;border-radius:13px;padding:13px 17px;font-size:12px;font-weight:800}.hero-art{position:absolute;right:5%;top:0;bottom:0;width:37%;display:grid;place-items:center}.hero-ring{width:min(270px,90%);aspect-ratio:1;border-radius:50%;border:1px solid #ffffff85;background:radial-gradient(circle at 35% 25%,#ffffffa8,#ffffff22 42%,#034b8b66 72%);box-shadow:inset 0 0 35px #ffffff66,0 18px 55px #003e7b55;animation:gatewayFloat 6s ease-in-out infinite}.hero-orbit-card{position:absolute;width:170px;height:150px;border-radius:24px;border:1px solid #ffffffa6;background:linear-gradient(145deg,#ffffff45,#ffffff12);backdrop-filter:blur(12px);box-shadow:0 20px 45px #003f8055;display:flex;flex-direction:column;justify-content:center;align-items:center;transform:rotate(7deg);color:#fff}.hero-orbit-card b{font:900 35px "Plus Jakarta Sans";letter-spacing:3px;text-shadow:0 5px 18px #00477c66}.hero-orbit-card small{font-size:9px;letter-spacing:2px}.hero-orbit-card span{font-size:9px;margin-top:15px;color:#d5efff}@keyframes gatewayFloat{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-10px) rotate(3deg)}}
.section-head{align-items:center}.section-head h2{color:#123b6b}.dashboard-needs .feature,.home-tool-shortcuts .feature{background:#ffffffd9;border:1px solid #d3e5f6;box-shadow:0 10px 28px #1c5b9710;border-radius:22px}.feature{transition:transform .22s,box-shadow .22s,border-color .22s}.feature:hover{transform:translateY(-4px);box-shadow:0 16px 35px #1269b51c;border-color:#9ccdf5}.ficon{box-shadow:0 5px 14px #194d8210}.home-tools-head{margin-top:34px}.home-tool-shortcuts{margin-bottom:25px}.home-tool-shortcuts .feature{min-height:120px}.prayer-dashboard,.tool-card{border:1px solid #d4e4f3;background:#ffffffdf;box-shadow:0 12px 30px #1b578d0b;border-radius:22px}.home-news-grid{gap:12px}.home-news-item{border-radius:17px;border-color:#d6e7f5;box-shadow:0 8px 22px #194e7d0a}.page-title h1{color:#123d70}
.mobile-nav{height:78px;position:fixed;z-index:50;left:0;right:0;bottom:0;padding:7px max(10px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));display:flex;justify-content:space-around;align-items:center;background:linear-gradient(110deg,#07518b,#087fd2 55%,#07518b);border-top:1px solid #ffffff50;box-shadow:0 -12px 35px #06477b30;backdrop-filter:blur(18px)}.mobile-nav button{position:relative;flex:1;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;background:transparent;color:#d5eaff;font-size:10px;font-weight:700}.mobile-nav button span{font-size:21px;line-height:1}.mobile-nav button.active{color:#fff}.mobile-nav button.active:before{content:"";position:absolute;inset:2px 9px;border-radius:15px;background:#ffffff20;box-shadow:inset 0 0 0 1px #ffffff22}.mobile-nav .nav-tools-main{flex:1.15;margin-top:-20px}.mobile-nav .nav-tools-main span{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#fff,#d9efff);color:#0872c8;border:4px solid #b8e4ff;box-shadow:0 7px 20px #003e7b55;font-size:24px}.mobile-nav .nav-tools-main{color:white}
.settings-backdrop{backdrop-filter:blur(8px)}.settings-drawer{border-radius:0 24px 24px 0;background:linear-gradient(180deg,#fff,#eef7ff)}.primary{background:linear-gradient(110deg,#0875d5,#159ee8);box-shadow:0 7px 18px #0875d522}.secondary{background:#e6f3ff;color:#075eaa;border:1px solid #c7e2f8}
body.dark{background:#081b32;background-image:radial-gradient(ellipse at 15% 0%,#16416c,transparent 45%)}body.dark .sidebar,body.dark .tool-card,body.dark .prayer-dashboard,body.dark .dashboard-needs .feature,body.dark .home-tool-shortcuts .feature{background:#102b49eF;border-color:#24486c;color:#eaf4ff}body.dark .section-head h2,body.dark .page-title h1{color:#eaf4ff}body.dark .home-news-item{background:#102b49;color:#eaf4ff;border-color:#24486c}
@media(max-width:900px){.layout{grid-template-columns:1fr;padding-top:18px}.sidebar{display:none;position:fixed;z-index:60;left:12px;right:12px;top:90px;height:calc(100dvh - 180px);overflow:auto}.sidebar.open{display:flex}.dev-apology{margin:8px 12px 0}.hero-v19{min-height:280px}}
@media(max-width:650px){.topbar{height:82px;padding:0 13px;gap:9px}.brand{font-size:22px;gap:8px}.brand-mark{width:43px;height:43px}.settings-trigger{min-width:44px;padding:0 9px}#menuToggle{width:40px;height:40px}.top-right{gap:8px}.top-right .avatar{width:38px;height:38px}.layout{padding:18px 13px 112px}.welcome{display:none}.hero-v19{min-height:270px;padding:25px 21px;border-radius:24px}.hero-v19 .hero-content{max-width:70%}.hero-v19 h2{font-size:35px}.hero-v19 p{font-size:12px;max-width:235px}.hero-art{right:-9%;width:48%;opacity:.8}.hero-ring{width:210px}.hero-orbit-card{width:125px;height:112px}.hero-orbit-card b{font-size:26px}.hero-orbit-card small{font-size:7px}.hero-actions{gap:7px}.hero-v19 .white-btn,.hero-ghost{padding:11px 12px;font-size:10px}.device-dashboard{margin-top:22px}.device-grid{gap:9px}.device-stat{background:#ffffffdf;border:1px solid #d4e4f3}.dashboard-needs .feature,.home-tool-shortcuts .feature{min-height:125px;padding:15px}.section-head{margin:26px 0 13px}.section-head h2{font-size:20px}.dashboard-showcase{grid-template-columns:1fr 1fr;gap:9px}.showcase-card,.showcase-card>img{min-height:150px}.showcase-overlay{padding:28px 12px 12px}.showcase-overlay b{font-size:13px}.showcase-overlay small{font-size:9px}.prayer-dashboard .prayer-grid{grid-template-columns:repeat(2,1fr)}.home-news-grid{grid-template-columns:1fr}.mobile-nav{height:76px}.mobile-nav button{font-size:9px}.mobile-nav button span{font-size:20px}.mobile-nav .nav-tools-main span{width:51px;height:51px}.main{padding-bottom:20px}}
@media(prefers-reduced-motion:reduce){.hero-ring{animation:none}}

/* NEXA v20 premium visual layer */
:root{--accent:#087be8;--blue:#087be8;--bg-custom:#edf5ff;--glow:color-mix(in srgb,var(--accent) 22%,transparent)}
body[data-background="custom"]{background:var(--bg-custom);background-image:radial-gradient(ellipse at 8% 0%,color-mix(in srgb,var(--accent) 17%,transparent),transparent 48%),radial-gradient(ellipse at 92% 25%,#7de5e033,transparent 40%)}
body[data-background="ocean"]{background-color:#eaf6ff;background-image:radial-gradient(ellipse at 8% 0%,#80c9ff99,transparent 48%),radial-gradient(ellipse at 92% 28%,#72e5df66,transparent 42%),linear-gradient(135deg,#f4faff,#e5f2ff)}
body[data-background="midnight"]{background-color:#07172d;background-image:radial-gradient(ellipse at 15% 0%,#14508b99,transparent 45%),radial-gradient(ellipse at 90% 30%,#143e6588,transparent 42%)}
.topbar{background:linear-gradient(105deg,#061a3d 0%,#073c78 48%,#0879c9 100%);box-shadow:0 8px 28px #07386a35;border-bottom:1px solid #ffffff35}
.brand-mark{box-shadow:0 0 0 4px #ffffff13,0 8px 24px #2d83ff66;font-style:italic}
.hero-v19{border:1px solid #a9d8ff;border-radius:26px;background:linear-gradient(110deg,#052b61 0%,#0877c8 58%,#39b8e7 100%);box-shadow:0 18px 45px #0879c92b,inset 0 1px 0 #ffffffaa;min-height:270px}
.hero-v19:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 35%,#d8f7ff66,transparent 25%),linear-gradient(125deg,transparent 45%,#ffffff18 46%,transparent 70%);pointer-events:none}
.hero-v19:after{content:"N";position:absolute;right:9%;top:4%;font:italic 900 clamp(130px,22vw,250px)/1 "Plus Jakarta Sans";color:#ffffff16;text-shadow:0 0 50px #9be4ff55;transform:rotate(-12deg)}
.hero-v19 .tag{background:#ffffff18;backdrop-filter:blur(8px);border-color:#ffffff55}
.hero-v19 h2{font-size:clamp(31px,4vw,48px);letter-spacing:-1.8px;text-shadow:0 5px 25px #001b4b55}
.hero-ring{border-color:#b9f1ff88;box-shadow:0 0 45px #55cfff66,inset 0 0 35px #6bcfff44}
.hero-orbit-card{background:linear-gradient(145deg,#ffffff35,#ffffff0b);border:1px solid #ffffff88;box-shadow:0 22px 55px #001a4655;backdrop-filter:blur(15px)}
.dashboard-needs .feature,.home-tool-shortcuts .feature,.tool-card,.chat-card,.ai-card,.device-stat,.prayer-dashboard{border-radius:20px;box-shadow:0 12px 34px #194a8010,inset 0 1px 0 #ffffffcc;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.dashboard-needs .feature:hover,.home-tool-shortcuts .feature:hover,.tool-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px #0b66b51b;border-color:color-mix(in srgb,var(--accent) 38%,white)}
.feature .ficon{width:48px;height:48px;border-radius:15px;font-size:22px;box-shadow:inset 0 1px 0 #ffffffaa}
.feature .ficon:empty:before{font-family:Arial,sans-serif;font-weight:900;content:"✦"}
.ficon.purple:empty:before{content:"◎"}.ficon.blue:empty:before{content:"◈"}.ficon.cyan:empty:before{content:"⌁"}.ficon.green:empty:before{content:"☾"}.ficon.orange:empty:before{content:"▤"}.ficon.pink:empty:before{content:"✧"}
.tool-icon:empty,.ai-symbol:empty,.api-setup-icon:empty{position:relative;background:linear-gradient(145deg,#e8f4ff,#cde7ff);border:1px solid #b9dcfa;box-shadow:0 6px 18px #087be81c}
.tool-icon:empty:before{content:"✦";font-size:20px;font-weight:900;color:var(--accent)}
.ai-symbol:empty:before{content:"N";font:bold italic 22px "Plus Jakarta Sans";color:var(--accent)}
.api-setup-icon:empty:before{content:"G";font:bold 19px Arial;color:#1b73e8}
.device-stat{border:1px solid #d6e7f7;background:linear-gradient(145deg,#ffffff,#f4f9ff)}
.section-head h2,.page-title h1{letter-spacing:-.65px}
.settings-drawer{border:1px solid #c9e3f8;box-shadow:20px 0 70px #001d4533}
.settings-drawer input[type=color]{height:46px;width:100%;border:1px solid #c6d8eb;border-radius:12px;padding:4px;background:white}
.primary{background:linear-gradient(110deg,var(--accent),color-mix(in srgb,var(--accent) 68%,#54d9ef));box-shadow:0 8px 22px var(--glow)}
.nav-item.active,.nav-item:hover{background:color-mix(in srgb,var(--accent) 10%,white);color:var(--accent)}
.mobile-nav{background:linear-gradient(105deg,#06336c,#087dc4);box-shadow:0 -8px 35px #07386a30;border-top:1px solid #ffffff55}
.mobile-nav .nav-tools-main span{background:linear-gradient(145deg,#fff,#c9edff);box-shadow:0 0 0 5px #ffffff22,0 8px 26px #001e5066}
.showcase-card{border-radius:20px;box-shadow:0 12px 28px #0b4a8120}
.showcase-card img{filter:saturate(1.12) contrast(1.03)}
body.dark .tool-card,body.dark .ai-card,body.dark .chat-card,body.dark .device-stat{background:linear-gradient(145deg,#102e50,#0b2440);color:#eaf4ff;border-color:#2b5279;box-shadow:0 14px 35px #0005}
body.dark .feature{background:linear-gradient(145deg,#12365b,#0d2948);color:#eaf4ff;border-color:#2b5279}
body.dark .tool-card input,body.dark .tool-card textarea,body.dark .tool-card select,body.dark .ai-compose textarea{background:#0b213b;color:#eaf4ff;border-color:#31577d}
@media(max-width:650px){.hero-v19{min-height:290px;padding:27px 22px}.hero-v19:after{right:-5%;top:18%;font-size:175px}.hero-v19 .hero-content{max-width:78%}.feature .ficon{width:44px;height:44px}.dashboard-needs .feature{min-height:142px}}


/* NEXA v25 Anime Ocean, NEXAGRAM and 3D games */
.splash-logo{overflow:hidden;padding:0}.splash-logo img,.brand-mark img{width:100%;height:100%;object-fit:cover;display:block}.brand-mark{overflow:hidden;padding:0;border:2px solid #a9dcff;background:#063d75}.nexa-gram-head{display:flex;align-items:center;gap:16px;padding:14px;border-radius:20px;background:linear-gradient(110deg,#07518b,#0789d2);color:white;margin:12px 0 16px}.nexa-gram-head img{width:78px;height:78px;object-fit:cover;border-radius:15px;border:2px solid #ffffff8a}.nexa-gram-head div{display:flex;flex-direction:column;gap:5px}.nexa-gram-head small{color:#d5efff}.gram-compose{display:grid;gap:12px}.gram-compose textarea{width:100%;border:1px solid #cbdced;border-radius:14px;padding:14px;resize:vertical}.gram-upload{display:inline-flex;align-items:center;gap:10px;color:#0874c8;font-weight:700}.gram-upload input{max-width:190px}.gram-compose>img{max-width:100%;max-height:280px;object-fit:contain;border-radius:14px}.gram-feed{display:grid;gap:14px}.gram-post{padding:16px}.gram-author{display:flex;align-items:center;gap:10px}.gram-author>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#168be8,#0a4e99);color:white;font-weight:900}.gram-author div{display:flex;flex-direction:column;gap:3px}.gram-author small{font-size:11px;color:#899bb0}.gram-caption{white-space:pre-wrap;line-height:1.6}.gram-photo{display:block;width:100%;max-height:520px;object-fit:contain;background:#edf5ff;border-radius:15px;margin:12px 0}.gram-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.gram-comment{font-size:12px;padding:8px 10px;border-radius:10px;background:#f1f6fd;margin:6px 0}.chess-card,.luffy-card{overflow:hidden}.chess-stage{perspective:1000px;display:flex;justify-content:center;padding:22px 8px 35px;background:radial-gradient(ellipse,#d9edff,#f6faff 65%);border-radius:18px}.chess-board3d{width:min(88vw,440px);aspect-ratio:1;display:grid;grid-template-columns:repeat(8,1fr);transform:rotateX(12deg) rotateZ(0deg);transform-style:preserve-3d;box-shadow:0 22px 0 #633a1c,0 32px 35px #173e6555;border:8px solid #8d572e;border-radius:5px;overflow:hidden}.chess-square{border:0;border-radius:0;display:grid;place-items:center;font-family:serif;font-size:clamp(22px,5vw,42px);padding:0;line-height:1}.light-square{background:#f2d8ae}.dark-square{background:#9b653b}.white-piece{color:#fff;text-shadow:0 2px 2px #402b1d,0 0 2px #3a2517}.black-piece{color:#18202c;text-shadow:0 1px 1px #ffffff70}.selected-square{outline:4px solid #12b8ff;outline-offset:-4px;background:#5bc8ed!important}.chess-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}.chess-controls b{margin-right:auto}.luffy-stage{height:350px;position:relative;display:grid;place-items:center;perspective:900px;overflow:hidden;border-radius:20px;background:radial-gradient(ellipse at 50% 40%,#ffffff,#d9efff 48%,#83c9f4)}.luffy-orbit{position:absolute;width:230px;height:85px;border:3px solid #087dd8;border-radius:50%;transform:rotateX(68deg) rotateZ(-18deg);box-shadow:0 0 18px #27a8ff80}.luffy-shadow{position:absolute;width:145px;height:28px;bottom:40px;border-radius:50%;background:#134d7850;filter:blur(8px)}.luffy-model{width:180px;height:280px;position:relative;transform-style:preserve-3d;transition:transform .45s cubic-bezier(.2,.7,.2,1);filter:drop-shadow(0 16px 12px #0a477333)}.luffy-hat{position:absolute;z-index:5;top:4px;left:27px;width:126px;height:43px;border-radius:65% 65% 22% 22%;background:linear-gradient(#fbd66d,#c98525);border:4px solid #7a4219;transform:rotateX(12deg);box-shadow:inset 0 -7px #a85d1c}.luffy-hat:after{content:"";position:absolute;left:-22px;right:-22px;bottom:-10px;height:15px;border-radius:50%;background:#f4c34e;border:3px solid #7a4219}.luffy-hat i{position:absolute;left:20px;right:20px;bottom:5px;height:7px;background:#bd2d22;border-radius:8px}.luffy-head{position:absolute;z-index:4;top:38px;left:48px;width:84px;height:80px;border-radius:44% 44% 48% 48%;background:linear-gradient(110deg,#f8c08d,#df8d5e);border:3px solid #743e28;box-shadow:inset -7px -4px #c87b53}.luffy-hair{position:absolute;top:-8px;left:3px;width:72px;height:25px;background:#191716;clip-path:polygon(0 100%,10% 10%,25% 55%,40% 0,55% 60%,73% 10%,100% 100%)}.luffy-eye{position:absolute;top:31px;width:7px;height:11px;background:#171717;border-radius:50%}.luffy-eye.left{left:21px}.luffy-eye.right{right:21px}.luffy-scar{position:absolute;top:50px;left:39px;width:16px;height:3px;background:#a52d26;transform:rotate(12deg)}.luffy-mouth{position:absolute;bottom:11px;left:30px;width:24px;height:10px;border-bottom:3px solid #6e2820;border-radius:50%}.luffy-neck{position:absolute;top:108px;left:76px;width:30px;height:18px;background:#e7a06f}.luffy-body{position:absolute;top:121px;left:43px;width:94px;height:86px;border-radius:24px 24px 18px 18px;background:linear-gradient(90deg,#bd251e,#ef3c30 50%,#9d1c19);border:3px solid #76231e;transform:translateZ(5px)}.vest-left,.vest-right{position:absolute;top:0;width:0;height:0;border-top:42px solid #f3d6aa}.vest-left{left:25px;border-left:12px solid transparent}.vest-right{right:25px;border-right:12px solid transparent}.luffy-button{position:absolute;top:30px;left:45px;width:6px;height:6px;border-radius:50%;background:#ffd65a}.luffy-button.second{top:47px}.luffy-arm{position:absolute;top:130px;width:28px;height:77px;border-radius:20px;background:linear-gradient(90deg,#eab080,#f6c49b);border:3px solid #9b583b}.luffy-arm.left{left:20px;transform:rotate(18deg)}.luffy-arm.right{right:15px;transform:rotate(-18deg)}.luffy-shorts{position:absolute;top:197px;left:43px;width:94px;height:40px;background:#2777bf;border:3px solid #174c80;border-radius:5px 5px 15px 15px}.luffy-leg{position:absolute;top:230px;width:30px;height:42px;border-radius:12px;background:#e7ac80;border:3px solid #995c3e}.luffy-leg.left{left:54px}.luffy-leg.right{right:52px}
@media(max-width:650px){.nexa-gram-head img{width:62px;height:62px}.chess-board3d{width:min(90vw,390px)}.luffy-stage{height:330px}.gram-actions button{font-size:11px;padding:9px 11px}}

/* v40.4 password-change add-on */
.password-change-card{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--card,transparent)}.password-change-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}.password-change-head p{margin:4px 0 0}.password-change-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#dceaff,#b9d8ff);color:#1765c1;font-size:24px}.password-change-card>label{display:block;margin:12px 0 6px;font-size:12px;font-weight:700}.password-field{display:flex;align-items:center;gap:8px}.password-field input{flex:1;min-width:0;margin:0!important}.password-toggle{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:11px;background:transparent;color:inherit;font-size:17px}.password-change-status.error{color:#dc2626}.password-change-status.success{color:#16a34a}.dark .password-change-card{background:#172337;border-color:#29364b}.dark .password-change-icon{background:#203a5b;color:#9bcaff}

/* NEXA Music Room v41.2 */
.nexa-music-card{overflow:hidden;background:linear-gradient(135deg,#17152f,#101a2c 55%,#102b35);border:1px solid #34415f}.music-heading{display:flex;align-items:center;gap:14px;margin-bottom:16px}.music-heading h3{margin:0 0 4px}.music-disc{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;font-size:27px;color:#fff;background:linear-gradient(135deg,#7c3aed,#06b6d4);box-shadow:0 8px 28px #0891b255}.nexa-music-card .spotify-player{margin-top:16px;min-height:100px;border-radius:14px;overflow:hidden;background:#080d18}.nexa-music-card .spotify-player iframe{display:block;width:100%;border:0;border-radius:14px}.nexa-music-card .qr-placeholder{min-height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.nexa-music-card .qr-placeholder b{font-size:30px;color:#8b5cf6}

/* NEXATIFY public API-key settings */
.nexatify-key-settings{margin:12px 0 16px;padding:12px;border:1px solid var(--border,#39445b);border-radius:12px;background:rgba(120,130,160,.07)}
.nexatify-key-settings summary{cursor:pointer;font-weight:700}
.nexatify-key-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}
.nexatify-key-row input{flex:1 1 220px;min-width:0}
.nexatify-key-row button{flex:0 0 auto}

.dm-unread-badge{display:inline-flex;align-items:center;margin-left:8px;padding:3px 8px;border-radius:999px;background:#dc2626;color:#fff;font-size:11px;font-weight:800;line-height:1.35;white-space:nowrap}
.nexa-incoming{position:relative;z-index:5;box-shadow:0 12px 32px #0003;animation:nexaIncomingPulse 1.8s ease-in-out infinite alternate}
@keyframes nexaIncomingPulse{from{border-color:#3b82f6}to{border-color:#22c55e}}

/* NEXA v42 media and profile enhancements */
.profile-photo-avatar.has-profile-photo,.avatar.has-profile-photo{background-size:cover;background-position:center;background-repeat:no-repeat;color:transparent!important}
.chat-attach{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;border:1px solid var(--border,rgba(255,255,255,.18));border-radius:12px;cursor:pointer;font-size:24px}
.chat-media{display:block;width:min(100%,420px);max-height:420px;object-fit:contain;border-radius:14px;margin:8px 0;background:#080808}
.chat-message-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:7px}
#gramPreviewWrap img,#gramVideoPreview{display:block;width:100%;max-height:360px;object-fit:contain;border-radius:14px;margin:10px 0}
.gram-avatar{width:38px;height:38px;border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;background:var(--surface-2,#333)}
.gram-avatar img{width:100%;height:100%;object-fit:cover}
#viewerVideo{width:100%;max-height:70vh;object-fit:contain;background:#000}
.chess-square.legal-target{box-shadow:inset 0 0 0 4px rgba(30,180,110,.85)}
.chess-controls label{display:flex;align-items:center;gap:6px}
.chess-controls select{max-width:110px}

/* NEXA v42.4 chat interaction repair */
.chat-card{position:relative;isolation:isolate}
.chat-compose{position:sticky;bottom:0;z-index:24;display:flex;align-items:center;gap:9px;background:var(--card,#fff);padding:12px;border-top:1px solid var(--line);padding-bottom:calc(12px + env(safe-area-inset-bottom))}
.chat-compose>*{pointer-events:auto}
.chat-compose .send-btn{position:relative;z-index:26;flex:0 0 46px;min-width:46px;min-height:46px;display:grid;place-items:center;touch-action:manipulation;pointer-events:auto;opacity:1}
.chat-compose .send-btn:disabled{opacity:.65;cursor:wait}
.chat-compose .chat-attach{flex:0 0 42px;min-width:42px;min-height:46px}
.chat-compose #chatInput{min-height:46px;font-size:14px;position:relative;z-index:25;pointer-events:auto}
.messages{overscroll-behavior:contain;scroll-behavior:smooth;scroll-padding-bottom:12px}
.message{flex-shrink:0}
@media(max-width:650px){.layout{padding-bottom:calc(125px + env(safe-area-inset-bottom))}.chat-card{margin-bottom:18px}.chat-compose{bottom:72px}}

/* v42.5: mobile chat composer and media controls */
.chat-card{display:flex;flex-direction:column;min-width:0}
.chat-card .messages{width:100%;box-sizing:border-box;flex:0 0 auto;height:min(46vh,430px);min-height:220px;overflow-y:auto;overscroll-behavior:contain}
.chat-card .emoji-strip{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:7px;padding:10px 12px;background:var(--card,#fff);border-top:1px solid var(--line);border-bottom:1px solid var(--line);overflow:visible;min-height:54px;box-sizing:border-box}
.chat-card .emoji-strip button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:40px;padding:0;border:1px solid var(--line);border-radius:9px;background:#f7f9fc;font-size:21px;line-height:1;touch-action:manipulation}
.chat-card .chat-compose{position:relative!important;inset:auto!important;bottom:auto!important;z-index:3;display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;background:var(--card,#fff);padding:10px 12px calc(12px + env(safe-area-inset-bottom));margin:0;flex-shrink:0;overflow:visible}
.chat-card .chat-compose .chat-attach{display:grid;place-items:center;flex:0 0 42px;width:42px;height:46px;min-height:46px;border:1px solid var(--line);border-radius:10px;background:#f1f5fb;color:#254c82;font-size:26px;font-weight:700;cursor:pointer;touch-action:manipulation}
.chat-card .chat-compose #chatInput{display:block;flex:1 1 auto;width:0;min-width:0;height:46px;box-sizing:border-box;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#111;font-size:15px;line-height:1.3;z-index:1}
.chat-card .chat-compose .send-btn{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;min-height:48px;margin:0;padding:0;border:0;border-radius:10px;background:var(--blue);color:#fff;font-size:22px;touch-action:manipulation;z-index:4}
.chat-card .chat-foot{position:relative;z-index:1;margin:0;padding:8px 14px 14px;line-height:1.5}
.ai-card{min-width:0;overflow:hidden}
.nexa-ai-media-tools{display:flex;flex-wrap:wrap;gap:9px;padding:10px 0}
.nexa-ai-media-tools button,.nexa-ai-media-tools label{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 13px;border:1px solid var(--line);border-radius:10px;font-weight:700;font-size:13px;cursor:pointer}
.ai-image-preview{display:flex;align-items:center;gap:10px;padding:8px 0;flex-wrap:wrap}
.ai-image-preview[hidden]{display:none}
.ai-image-preview img{width:64px;height:64px;object-fit:cover;border-radius:9px}
.ai-image-preview span{font-size:12px;font-weight:700}
.ai-image-preview button{padding:8px 12px}
.ai-chat-image{display:block;max-width:min(100%,280px);max-height:260px;object-fit:contain;border-radius:12px;margin-top:8px}
.ai-generated-image{display:block;width:100%;max-width:520px;height:auto;max-height:600px;object-fit:contain;border-radius:14px;margin-top:12px}
@media(max-width:650px){
 .chat-card .messages{height:42vh;min-height:190px}
 .chat-card .emoji-strip{gap:6px;padding:8px}
 .chat-card .emoji-strip button{flex-basis:38px;width:38px;height:38px}
 .chat-card .chat-compose{padding:9px 9px calc(10px + env(safe-area-inset-bottom));gap:7px}
 .chat-card .chat-compose .chat-attach{flex-basis:38px;width:38px;height:44px}
 .chat-card .chat-compose .send-btn{flex-basis:44px;width:44px;height:46px}
 .chat-card .chat-compose #chatInput{height:44px;font-size:14px}
}
