:root{
  --bg:#f6f7fb;--panel:#fff;--text:#11172a;--muted:#778097;--line:#e8ebf2;
  --navy:#0b1020;--violet:#6d5dfc;--violet2:#8b7cff;--soft:#f2f0ff;
  --green:#19945d;--red:#d54848;--amber:#d88b22;--blue:#3677ff;
  --shadow:0 18px 55px rgba(18,24,43,.08);--r:22px
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
button,input,textarea,select{font:inherit}button{cursor:pointer}
.hidden{display:none!important}
.brand,.side-brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:-.03em;text-decoration:none;color:inherit;font-size:20px}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#8b7cff,#5c48ff);color:#fff;box-shadow:0 10px 25px rgba(109,93,252,.28)}
.auth-screen{min-height:100vh;background:#0b1020;color:#fff;overflow:hidden}
.auth-brandbar{position:fixed;z-index:4;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:center;padding:25px 34px}
.glass-btn{border:1px solid rgba(255,255,255,.16);color:#fff;background:rgba(255,255,255,.08);border-radius:14px;padding:9px 14px;font-weight:800;backdrop-filter:blur(10px)}
.auth-grid{min-height:100vh;display:grid;grid-template-columns:1.12fr .88fr}
.auth-visual{position:relative;display:flex;align-items:center;padding:110px 7vw 70px;overflow:hidden;background:radial-gradient(circle at 35% 25%,rgba(109,93,252,.38),transparent 38%),linear-gradient(140deg,#0b1020 35%,#121a34)}
.visual-orb{position:absolute;border-radius:50%;filter:blur(2px);opacity:.55}.orb-a{width:320px;height:320px;background:#533dff;right:-120px;top:15%}.orb-b{width:260px;height:260px;background:#0aa6a6;left:-120px;bottom:-80px}
.visual-copy{position:relative;z-index:2;max-width:680px}.kicker{display:block;font-size:11px;letter-spacing:.13em;font-weight:900;color:#7364f7;margin-bottom:7px}.auth-visual .kicker{color:#b8afff}
.visual-copy h1{font-size:clamp(42px,5vw,78px);line-height:.98;letter-spacing:-.055em;margin:0 0 22px;max-width:760px}
.visual-copy>p{font-size:18px;color:#bac3d8;max-width:620px;line-height:1.6}
.mini-market{margin-top:38px;height:190px;max-width:620px;border:1px solid rgba(255,255,255,.1);border-radius:24px;background:rgba(255,255,255,.04);padding:16px;backdrop-filter:blur(10px)}
.mini-market svg{width:100%;height:100%}.auth-points{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.auth-points span{border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.055);padding:9px 12px;border-radius:999px;font-size:12px;color:#d8dded}
.auth-panel{display:flex;align-items:center;justify-content:center;background:#f8f9fc;color:var(--text);padding:90px 35px 50px}
.auth-card{width:min(460px,100%);background:#fff;border:1px solid var(--line);box-shadow:0 30px 80px rgba(2,8,23,.13);border-radius:28px;padding:28px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;padding:4px;background:#f3f4f8;border-radius:14px;margin-bottom:26px}
.auth-tab{border:0;background:transparent;padding:10px;border-radius:11px;color:var(--muted);font-weight:850}.auth-tab.active{background:#fff;color:var(--text);box-shadow:0 4px 12px rgba(17,23,42,.08)}
.auth-title h2{font-size:29px;letter-spacing:-.04em;margin:0 0 7px}.auth-title p{color:var(--muted);margin:0 0 20px;line-height:1.5}
label{display:grid;gap:7px;font-size:12px;font-weight:850;color:#444c62;margin:12px 0}
input,textarea,select{width:100%;border:1px solid #dfe3ec;border-radius:13px;background:#fff;color:var(--text);padding:12px 13px;outline:none;transition:.18s}
input:focus,textarea:focus,select:focus{border-color:#8c7eff;box-shadow:0 0 0 4px rgba(109,93,252,.09)}
.btn,.icon-btn{border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--text);font-weight:850;padding:10px 14px;transition:.18s}.btn:hover,.icon-btn:hover{transform:translateY(-1px)}
.btn.primary{border-color:#5f4df3;background:linear-gradient(135deg,#7464ff,#5947e9);color:#fff;box-shadow:0 9px 22px rgba(109,93,252,.2)}.btn.ghost{background:#fff}.btn.wide{width:100%;padding:13px}.btn.large{padding:14px 18px}.btn.small{padding:8px 10px;font-size:12px}.btn.danger{color:var(--red);border-color:#f0caca}
.auth-note{font-size:11px;color:#8a92a5;text-align:center;margin-top:14px;line-height:1.45}
.app{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:244px;background:#0c1122;color:#d8def0;padding:24px 16px 18px;display:flex;flex-direction:column;justify-content:space-between;z-index:20}.side-brand{padding:0 10px 28px;color:#fff}.side-nav{display:grid;gap:6px}.nav-item{display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:#9099b3;padding:11px 12px;border-radius:13px;font-weight:780;text-align:left}.nav-item:hover{background:#141b31;color:#fff}.nav-item.active{background:linear-gradient(135deg,#5e50d8,#7868ff);color:#fff;box-shadow:0 10px 24px rgba(109,93,252,.26)}.nav-item>span:first-child{width:22px;font-size:18px}.nav-count{margin-inline-start:auto;background:#fff;color:#4e42c4;border-radius:10px;padding:2px 6px;font-size:10px}
.profile-chip{border:1px solid #222a43;background:#12182d;color:#fff;border-radius:17px;padding:10px;display:flex;align-items:center;gap:9px;text-align:left}.profile-copy{display:grid;min-width:0;flex:1}.profile-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-copy small{color:#7e88a6;font-size:10px;margin-top:2px}
.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#ddd7ff,#8d7dff);color:#30267c;font-weight:900;overflow:hidden;background-size:cover;background-position:center;border:0}.avatar.xl{width:84px;height:84px;font-size:25px}
.app-main{margin-left:244px;min-height:100vh}.content{max-width:1380px;margin:auto;padding:34px 34px 90px}.view{display:none}.view.active{display:block}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.page-head h1{font-size:36px;letter-spacing:-.045em;margin:0 0 6px}.greeting{font-size:32px;font-weight:930;letter-spacing:-.045em}.muted{color:var(--muted)}.page-head p{margin:5px 0 0}.head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mobile-header,.bottom-nav{display:none}
.onboarding{min-height:600px;border:1px solid #e6e7ef;background:linear-gradient(145deg,#fff 55%,#f2f0ff);border-radius:30px;box-shadow:var(--shadow);display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;overflow:hidden;padding:50px}
.onboarding-graphic{position:relative;display:grid;place-items:center;min-height:370px}.zero-ring{width:220px;height:220px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,#fff 52%,transparent 53%),conic-gradient(#7868ff 0 2%,#e9e7ff 2%);box-shadow:0 35px 70px rgba(89,71,233,.16);position:relative;z-index:2}.zero-ring span{font-size:74px;font-weight:950;letter-spacing:-.07em}.zero-ring small{position:absolute;bottom:55px;color:var(--muted);font-weight:800}.onboarding-lines{position:absolute;inset:22% 3% 10%}.onboarding-lines i{position:absolute;height:3px;background:linear-gradient(90deg,transparent,#b9b0ff);border-radius:3px;transform-origin:left center}.onboarding-lines i:nth-child(1){width:58%;left:4%;top:58%;transform:rotate(-18deg)}.onboarding-lines i:nth-child(2){width:54%;left:40%;top:42%;transform:rotate(11deg)}.onboarding-lines i:nth-child(3){width:34%;left:63%;top:58%;transform:rotate(-32deg)}.onboarding-copy{max-width:560px}.onboarding-copy h2{font-size:42px;line-height:1.05;letter-spacing:-.05em;margin:5px 0 15px}.onboarding-copy p{font-size:17px;line-height:1.65;color:var(--muted);max-width:540px}
.insights-section{margin-bottom:17px}.section-title-row{margin-bottom:12px}.section-title-row h2,.card h2{margin:0;font-size:22px;letter-spacing:-.03em}.insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.insight{position:relative;background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px 48px 15px 16px;box-shadow:0 10px 30px rgba(18,24,43,.05)}.insight strong{display:block;margin-bottom:4px}.insight p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.insight.success{border-left:5px solid var(--green)}.insight.risk{border-left:5px solid var(--red)}.insight.info{border-left:5px solid var(--blue)}.insight .dismiss{position:absolute;right:10px;top:10px;border:0;background:transparent;color:#9aa2b4;font-size:15px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:20px}.market-card{margin-bottom:17px}.card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:17px}.card-head.compact{align-items:center}.card-head p{margin:5px 0 0;max-width:700px;font-size:13px}.segmented{padding:4px;border:1px solid var(--line);border-radius:12px;background:#f7f8fb;display:flex}.range-btn{border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:850;padding:7px 10px}.range-btn.active{background:#fff;color:var(--text);box-shadow:0 3px 8px rgba(18,24,43,.08)}
.chart-stage{height:390px;border:1px solid #edf0f5;border-radius:17px;background:linear-gradient(180deg,#fff,#fafbfc);overflow:hidden}.chart-stage svg{width:100%;height:100%;display:block}.market-legend{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.legend-pill{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:850}.dot{width:9px;height:9px;border-radius:50%}
.dash-columns{display:grid;grid-template-columns:1.1fr .9fr;gap:17px}.task-list,.goal-list,.notification-stack,.planner-stack{display:grid;gap:9px}.empty-block{border:1px dashed #d9dde6;border-radius:15px;padding:22px;text-align:center;color:var(--muted);font-size:13px}.task-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;border:1px solid var(--line);border-radius:15px;padding:11px}.task-row.done{opacity:.55}.task-row.done .task-name{text-decoration:line-through}.task-check{width:28px;height:28px;border:1px solid #dfe3ec;border-radius:9px;background:#fff;font-weight:900}.task-row.done .task-check{background:#141a2e;color:#fff}.task-name{font-weight:850}.task-meta{font-size:11px;color:var(--muted);margin-top:3px}.impact-chip{font-size:11px;font-weight:900;padding:6px 8px;border-radius:9px;background:#f2f0ff;color:#5544d6}
.goal-row{border:1px solid var(--line);border-radius:15px;padding:13px}.goal-row-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.goal-title{display:flex;align-items:center;gap:8px;font-weight:900}.momentum-score{font-size:23px;font-weight:950;letter-spacing:-.04em}.goal-status{font-size:11px;font-weight:900;margin:7px 0}.goal-status.good{color:var(--green)}.goal-status.warn{color:var(--amber)}.goal-status.risk{color:var(--red)}.progress-line{height:7px;border-radius:8px;background:#eef0f4;overflow:hidden}.progress-line i{display:block;height:100%;border-radius:8px}.goal-foot{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);margin-top:7px}
.goals-page{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.goal-large{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:var(--shadow)}.goal-large-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.goal-large h3{font-size:21px;margin:0}.goal-actions{display:flex;gap:5px}.icon-btn{padding:7px 9px;background:#fff}.goal-big-score{font-size:46px;font-weight:950;letter-spacing:-.06em;margin:16px 0 4px}.goal-big-score small{font-size:12px;color:var(--muted);font-weight:800;letter-spacing:0}.why-box{background:#f8f9fb;border-radius:13px;padding:11px;font-size:12px;color:#596075;margin-top:12px}
.plan-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:var(--shadow)}.plan-title{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:900;margin-bottom:12px}.cascade{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.cascade-step{background:#f8f8fc;border:1px solid #f0f1f5;border-radius:13px;padding:11px;min-height:92px}.cascade-step b{display:block;color:#6b5be8;font-size:10px;letter-spacing:.08em;margin-bottom:5px}.cascade-step span{font-size:12px;font-weight:700;line-height:1.4}
.notice-row{display:flex;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 8px 25px rgba(18,24,43,.04)}.notice-row strong{display:block;margin-bottom:4px}.notice-row p{margin:0;color:var(--muted);font-size:13px}.notice-row time{font-size:10px;color:#9ca3b5;white-space:nowrap}
.account-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:17px}.profile-hero{display:flex;align-items:center;gap:16px;margin-bottom:20px}.profile-hero h2{margin:0 0 4px}.avatar-upload{position:relative;margin:0}.avatar-upload input{display:none}.avatar-upload b{position:absolute;right:-2px;bottom:-2px;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#5f4df3;color:#fff;border:3px solid #fff}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border-bottom:0}.setting-row div:first-child{display:grid;gap:4px}.setting-row small{color:var(--muted);font-size:11px}.number-input{width:76px}.inline-actions{display:flex!important;grid-auto-flow:column;gap:7px}.file-btn{position:relative;overflow:hidden}.file-btn input{position:absolute;inset:0;opacity:0}.danger-row strong{color:var(--red)}
.dialog{border:0;border-radius:25px;padding:22px;width:min(720px,calc(100vw - 26px));box-shadow:0 35px 100px rgba(6,12,28,.25)}.compact-dialog{width:min(560px,calc(100vw - 26px))}.dialog::backdrop{background:rgba(8,12,24,.48);backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:13px}.dialog-head h2{font-size:27px;letter-spacing:-.04em;margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.form-grid .full{grid-column:1/-1}.goal-zero-note{display:flex;align-items:center;gap:10px;background:#f5f3ff;border-radius:14px;padding:10px 12px;color:#5b4fc2;font-size:12px;font-weight:800}.goal-zero-note b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;font-size:17px}.divider{height:1px;background:var(--line);margin:17px 0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.toast{position:fixed;z-index:99;left:50%;bottom:25px;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#11182a;color:#fff;border-radius:13px;padding:10px 14px;font-size:12px;font-weight:850;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
html[dir="rtl"] body{text-align:right}html[dir="rtl"] .sidebar{left:auto;right:0}html[dir="rtl"] .app-main{margin-left:0;margin-right:244px}html[dir="rtl"] .nav-item{text-align:right}html[dir="rtl"] .profile-chip{text-align:right}
@media(max-width:980px){
  .auth-grid{grid-template-columns:1fr}.auth-visual{display:none}.auth-panel{min-height:100vh;padding:90px 18px 35px}.auth-brandbar{padding:20px}
  .sidebar{display:none}.app-main,html[dir="rtl"] .app-main{margin:0}.content{padding:22px 16px 95px}.mobile-header{display:flex;position:sticky;top:0;z-index:12;align-items:center;justify-content:space-between;background:rgba(246,247,251,.9);backdrop-filter:blur(14px);padding:12px 16px;border-bottom:1px solid rgba(230,233,240,.8)}.mobile-actions{display:flex;gap:7px;align-items:center}.bottom-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;z-index:30;left:9px;right:9px;bottom:8px;background:rgba(12,17,34,.95);backdrop-filter:blur(16px);border:1px solid #252c42;border-radius:20px;padding:6px}.bottom-item{border:0;background:transparent;color:#7f89a7;display:grid;justify-items:center;gap:1px;padding:7px 2px;border-radius:13px}.bottom-item span{font-size:17px}.bottom-item small{font-size:9px;font-weight:850}.bottom-item.active{background:#6d5dfc;color:#fff}
  .page-head{align-items:center}.page-head h1{font-size:30px}.greeting{font-size:27px}.head-actions #langBtn{display:none}.onboarding{grid-template-columns:1fr;padding:28px 20px;min-height:auto}.onboarding-graphic{min-height:280px}.zero-ring{width:180px;height:180px}.zero-ring span{font-size:62px}.zero-ring small{bottom:42px}.onboarding-copy{text-align:center;margin:auto}.onboarding-copy h2{font-size:33px}.insight-grid,.dash-columns,.account-grid{grid-template-columns:1fr}.goals-page{grid-template-columns:1fr}.chart-stage{height:330px}.cascade{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .content{padding-left:11px;padding-right:11px}.page-head{gap:10px}.page-head h1{font-size:27px}.page-head .head-actions .btn{padding:9px 10px}.insight-grid{grid-template-columns:1fr}.card{padding:15px;border-radius:19px}.chart-stage{height:290px}.card-head{display:grid}.segmented{justify-self:start}.cascade{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.auth-card{padding:20px}.visual-copy h1{font-size:42px}
}

/* ---------- V1.2 LANDING PAGE ---------- */
.landing-screen{min-height:100vh;background:#fff;color:var(--text)}
.landing-container{width:min(1180px,calc(100% - 40px));margin:auto}
.landing-nav{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1180px)/2));position:absolute;z-index:8;left:0;right:0;top:0;color:#fff}
.landing-nav-actions{display:flex;align-items:center;gap:9px}
.landing-link{border:0;background:transparent;color:#dfe5f5;padding:10px 11px;font-weight:800}
.landing-brand{color:#fff}
.hero-glow{position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none}
.hero-glow-a{width:580px;height:580px;right:-190px;top:-120px;background:radial-gradient(circle,rgba(109,93,252,.48),rgba(109,93,252,0) 68%)}
.hero-glow-b{width:520px;height:520px;left:-250px;bottom:-250px;background:radial-gradient(circle,rgba(18,163,170,.28),rgba(18,163,170,0) 70%)}
.landing-hero{position:relative;overflow:hidden;background:
  radial-gradient(circle at 70% 20%,rgba(94,76,233,.24),transparent 28%),
  linear-gradient(135deg,#090e1c 0%,#10182f 55%,#0a1022 100%);color:#fff;padding:140px 0 86px;min-height:760px}
.hero-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:54px;align-items:center}
.hero-pill{display:inline-flex;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#cbc5ff;border-radius:999px;padding:8px 12px;font-size:11px;font-weight:900;letter-spacing:.12em;margin-bottom:19px}
.hero-copy h1{font-size:clamp(50px,6vw,82px);line-height:.94;letter-spacing:-.065em;margin:0 0 24px;max-width:690px}
.hero-copy>p{color:#bcc5d8;font-size:18px;line-height:1.65;max-width:670px;margin-bottom:28px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.hero-cta{padding:14px 19px!important;border-radius:14px!important;font-size:15px}
.hero-secondary{padding:14px 18px;background:rgba(255,255,255,.07);color:#fff;border-color:rgba(255,255,255,.14)}
.hero-trust{display:flex;gap:17px;flex-wrap:wrap;margin-top:23px;color:#b8c1d4;font-size:12px}.hero-trust span{display:flex;gap:6px}.hero-trust b{font-weight:750}
.hero-product{position:relative;min-width:0}
.product-window{position:relative;background:#f6f7fb;border:1px solid rgba(255,255,255,.15);border-radius:25px;box-shadow:0 45px 110px rgba(0,0,0,.42);overflow:hidden;transform:perspective(1200px) rotateY(-2deg) rotateX(1deg)}
.product-top{height:49px;background:#fff;border-bottom:1px solid #e8ebf2;display:flex;align-items:center;justify-content:space-between;padding:0 15px;color:#11172a}
.product-dots{display:flex;gap:5px}.product-dots i{width:7px;height:7px;border-radius:50%;background:#d6d9e1}.product-logo{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:900}.brand-mark.mini{width:22px;height:22px;border-radius:7px;font-size:10px}.product-avatar{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#ddd7ff;color:#443894;font-size:10px;font-weight:900}
.product-body{display:grid;grid-template-columns:54px 1fr;min-height:430px}.mock-sidebar{background:#0d1325;padding:16px 10px;display:grid;align-content:start;gap:15px}.mock-sidebar i{display:block;height:30px;border-radius:9px;background:#1c2540}.mock-sidebar i.active{background:#6d5dfc}
.mock-main{padding:24px}.mock-greeting{display:grid;gap:7px;margin-bottom:16px}.mock-greeting span{display:block;width:34%;height:18px;background:#161d31;border-radius:6px}.mock-greeting b{display:block;width:22%;height:8px;background:#dfe3ec;border-radius:8px}
.mock-signals{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mock-signal{border:1px solid #e7eaf1;background:#fff;border-radius:12px;padding:11px;border-left-width:4px}.mock-signal.green{border-left-color:#20a66a}.mock-signal.red{border-left-color:#ef5350}.mock-signal b,.mock-signal span{display:block;border-radius:5px;background:#e8ebf1}.mock-signal b{width:55%;height:8px;background:#222a3f}.mock-signal span{height:6px;margin-top:7px}.mock-signal span:last-child{width:70%}
.mock-market{margin-top:11px;border:1px solid #e7eaf1;border-radius:13px;background:#fff;padding:12px}.mock-market-title{display:flex;justify-content:space-between}.mock-market-title span{width:28%;height:8px;background:#20283d;border-radius:4px}.mock-market-title i{width:33px;height:18px;background:#f0f2f6;border-radius:7px}.mock-market svg{width:100%;height:230px;margin-top:4px}.mock-legend{display:flex;gap:12px;flex-wrap:wrap;color:#5e667a;font-size:8px;font-weight:800}.mock-legend span{display:flex;align-items:center;gap:4px}.mock-legend i,.feature-market-legend i,.feature-list i{width:7px;height:7px;border-radius:50%;display:inline-block}.blue{background:#3677ff}.green{background:#20a66a}.red{background:#ef5350}
.floating-card{position:absolute;display:flex;align-items:center;gap:9px;background:#fff;color:#172036;border:1px solid #e8ebf1;box-shadow:0 18px 50px rgba(0,0,0,.22);border-radius:14px;padding:10px 12px;z-index:3}.floating-card>span{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;color:#fff;font-weight:900}.floating-card div{display:grid}.floating-card b{font-size:11px}.floating-card small{font-size:9px;color:#7d8598;margin-top:2px}.float-good{left:-28px;bottom:44px}.float-good>span{background:#20a66a}.float-risk{right:-17px;top:88px}.float-risk>span{background:#ef5350}
.landing-section{padding:92px 0}.light-section{background:#fff}.dark-section{background:#0c1223;color:#fff}
.landing-section-head{text-align:center;max-width:760px;margin:0 auto 42px}.landing-section-head h2,.feature-copy h2,.cta-box h2{font-size:clamp(34px,4.6vw,56px);line-height:1.02;letter-spacing:-.055em;margin:8px 0 13px}.landing-section-head p{color:#7a8396;font-size:16px;line-height:1.6}
.goal-chain{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr auto 1fr auto 1fr;align-items:center;gap:10px}.chain-card{min-width:0;border:1px solid #e8ebf1;background:#fafbfc;border-radius:17px;padding:16px;min-height:118px;display:grid;align-content:start;gap:5px}.chain-card>span{color:#6d5dfc;font-weight:900;font-size:10px}.chain-card b{font-size:15px}.chain-card small{color:#828a9b}.chain-card.featured{background:linear-gradient(145deg,#6d5dfc,#5442dc);color:#fff;border-color:#6d5dfc;box-shadow:0 18px 45px rgba(109,93,252,.25)}.chain-card.featured>span,.chain-card.featured small{color:#e3dfff}.chain-arrow{color:#b7bdca;font-size:22px}
.feature-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:65px;align-items:center}.light-kicker{color:#a99fff!important}.feature-copy h2{margin-top:8px}.feature-copy>p{color:#aeb7ca;font-size:16px;line-height:1.7}.feature-list{padding:0;margin:24px 0 0;list-style:none;display:grid;gap:11px}.feature-list li{display:flex;align-items:center;gap:10px;color:#dce1eb}.feature-list i{width:10px;height:10px}
.feature-market-card{background:#11192e;border:1px solid #28324a;border-radius:23px;padding:18px;box-shadow:0 28px 80px rgba(0,0,0,.28)}.feature-market-head{display:flex;justify-content:space-between;align-items:center}.feature-market-head span{background:#1e2942;padding:6px 9px;border-radius:8px;color:#aeb7ca;font-size:10px}.feature-market-chart{height:310px;margin-top:12px;overflow:hidden}.feature-market-chart svg{width:100%;height:100%}.feature-market-chart .halo{fill:none;stroke:#fff;stroke-width:10;opacity:.15}.feature-market-chart .blue-path,.feature-market-chart .green-path,.feature-market-chart .red-path{fill:none;stroke-width:6;stroke-linecap:round}.feature-market-chart .blue-path{stroke:#5c91ff}.feature-market-chart .green-path{stroke:#4bd083}.feature-market-chart .red-path{stroke:#ff706d}.feature-market-legend{display:flex;gap:10px;flex-wrap:wrap}.feature-market-legend span{display:flex;align-items:center;gap:6px;border:1px solid #29344c;background:#151f36;color:#c9d0df;border-radius:999px;padding:7px 9px;font-size:10px}.feature-market-legend b{color:#fff}
.benefit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.benefit-card{border:1px solid #e8ebf1;border-radius:20px;padding:22px;background:#fff;box-shadow:0 12px 35px rgba(18,24,43,.045)}.benefit-icon{width:39px;height:39px;border-radius:12px;display:grid;place-items:center;color:#fff;font-weight:900;margin-bottom:16px}.green-bg{background:#20a66a}.red-bg{background:#ef5350}.blue-bg{background:#3677ff}.violet-bg{background:#6d5dfc}.benefit-card h3{margin:0 0 8px;font-size:18px}.benefit-card p{margin:0;color:#7a8396;line-height:1.6;font-size:13px}
.landing-cta-section{background:#f5f6fb;padding:32px 0 80px}.cta-box{display:flex;align-items:center;justify-content:space-between;gap:35px;background:linear-gradient(135deg,#0d1427,#171f39);color:#fff;border-radius:28px;padding:46px 50px;overflow:hidden;position:relative}.cta-box h2{max-width:720px;margin:6px 0 10px}.cta-box p{color:#aeb7ca;margin:0;max-width:670px;line-height:1.6}.cta-box .btn{white-space:nowrap}
.landing-footer{border-top:1px solid #e9ebf1;background:#fff;padding:22px 0;color:#7b8497}.landing-footer .landing-container{display:flex;justify-content:space-between;align-items:center}.landing-footer .brand{color:#11172a;font-size:16px}
.auth-brand-actions{display:flex;gap:8px}

/* ---------- V1.2 CHART CLARITY ---------- */
.chart-stage{background:#fff;scrollbar-width:thin;scrollbar-color:#ccd2df #f5f6f9}
.chart-stage::-webkit-scrollbar{height:6px}.chart-stage::-webkit-scrollbar-track{background:#f5f6f9}.chart-stage::-webkit-scrollbar-thumb{background:#ccd2df;border-radius:99px}
.market-legend .legend-pill{box-shadow:0 5px 14px rgba(18,24,43,.055)}
.market-legend .dot{width:11px;height:11px;box-shadow:0 0 0 3px rgba(0,0,0,.035)}

/* ---------- INSTAGRAM-LIKE MOBILE NAV ---------- */
.instagram-nav{background:rgba(255,255,255,.96)!important;border:1px solid #e2e5ec!important;box-shadow:0 12px 35px rgba(18,24,43,.16)!important;backdrop-filter:blur(18px)}
.instagram-nav .bottom-item{color:#2b3347!important;position:relative;min-height:48px}
.instagram-nav .bottom-item svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.instagram-nav .bottom-item small{display:none}
.instagram-nav .bottom-item.active{background:transparent!important;color:#0d1325!important}
.instagram-nav .bottom-item.active:not(.center-action)::after{content:"";position:absolute;bottom:1px;width:4px;height:4px;border-radius:50%;background:#6d5dfc}
.instagram-nav .center-action{overflow:visible}
.center-action-ring{width:43px;height:43px;border-radius:14px;background:linear-gradient(135deg,#6d5dfc,#5845e8);display:grid;place-items:center;color:#fff;box-shadow:0 9px 21px rgba(109,93,252,.3)}
.center-action-ring svg{width:23px!important;height:23px!important;stroke-width:2.25!important}
.instagram-nav .center-action.active::after{display:none}
.bottom-avatar{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#e0dcff,#8b7cff);color:#31277e;font-size:10px;font-weight:900;background-size:cover;background-position:center;border:1.5px solid #fff;box-shadow:0 0 0 1px #d8dce5}
.instagram-nav .bottom-item.active .bottom-avatar{box-shadow:0 0 0 2px #6d5dfc}

/* ---------- MOBILE UX ---------- */
@media(max-width:980px){
  .landing-nav{position:absolute;padding:0 18px;height:68px}
  .landing-nav-actions .landing-link[data-go-login]{display:none}
  .landing-nav-actions .btn{padding:9px 12px;font-size:12px}
  .landing-hero{padding:115px 0 64px;min-height:auto}
  .hero-grid{grid-template-columns:1fr;gap:48px}
  .hero-copy{text-align:center}.hero-copy h1{margin-left:auto;margin-right:auto}.hero-copy>p{margin-left:auto;margin-right:auto}
  .hero-actions,.hero-trust{justify-content:center}
  .hero-product{width:min(760px,100%);margin:auto}
  .product-window{transform:none}
  .goal-chain{grid-template-columns:1fr 1fr;gap:10px}.chain-arrow{display:none}
  .feature-grid{grid-template-columns:1fr;gap:36px}
  .benefit-grid{grid-template-columns:1fr 1fr}
  .cta-box{padding:38px;display:grid}
}
@media(max-width:560px){
  .landing-container{width:min(100% - 24px,1180px)}
  .landing-nav{padding:0 12px}.landing-nav-actions{gap:3px}.landing-nav .brand span:last-child{font-size:17px}
  .landing-link{padding:8px 6px;font-size:11px}
  .landing-hero{padding-top:102px;padding-bottom:42px}
  .hero-pill{font-size:9px;letter-spacing:.08em}
  .hero-copy h1{font-size:46px;line-height:.96}
  .hero-copy>p{font-size:15px;line-height:1.58}
  .hero-actions{display:grid;grid-template-columns:1fr}.hero-actions .btn{width:100%}
  .hero-trust{display:grid;justify-content:center;text-align:left;gap:8px}
  html[dir="rtl"] .hero-trust{text-align:right}
  .product-body{grid-template-columns:36px 1fr;min-height:330px}.mock-sidebar{padding:12px 6px;gap:10px}.mock-sidebar i{height:25px}.mock-main{padding:13px}.mock-signals{gap:6px}.mock-market svg{height:170px}
  .floating-card{transform:scale(.84)}.float-good{left:-8px;bottom:19px}.float-risk{right:-9px;top:70px}
  .landing-section{padding:66px 0}.landing-section-head{margin-bottom:28px}.landing-section-head h2,.feature-copy h2,.cta-box h2{font-size:34px}
  .goal-chain{grid-template-columns:1fr 1fr}.chain-card{min-height:104px;padding:13px}.chain-card b{font-size:13px}
  .feature-market-card{padding:13px;border-radius:18px}.feature-market-chart{height:235px}
  .benefit-grid{grid-template-columns:1fr}.benefit-card{padding:18px}
  .landing-cta-section{padding:18px 0 62px}.cta-box{padding:28px 22px;border-radius:22px}.cta-box .btn{width:100%}
  .landing-footer .landing-container{font-size:11px}
  .auth-brandbar{position:absolute}
  .auth-brand-actions .glass-btn{font-size:11px;padding:8px 9px}
  .chart-stage{height:320px!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch}
  #marketChart{min-width:760px!important;width:760px!important;height:100%!important;display:block}
  .market-card{overflow:hidden}
  .market-card .card-head{gap:8px}
  .market-card .card-head h2{font-size:19px}
  .market-card .card-head p{font-size:11px;line-height:1.45}
  .market-legend{flex-wrap:nowrap!important;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .market-legend::-webkit-scrollbar{display:none}
  .market-legend .legend-pill{flex:0 0 auto;padding:8px 11px;font-size:11px}
  .bottom-nav{left:12px!important;right:12px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;padding:5px 7px!important;border-radius:18px!important}
  .instagram-nav .bottom-item{padding:5px 2px!important}
}


/* =========================================================
   LifeOS V3 — Executive Interior
   ========================================================= */
:root{
  --exec-bg:#f3f1ec;
  --exec-paper:#fbfaf7;
  --exec-white:#ffffff;
  --exec-ink:#111318;
  --exec-soft-ink:#31343c;
  --exec-muted:#7b7d84;
  --exec-border:#dedbd4;
  --exec-border-strong:#cbc6bb;
  --exec-dark:#101218;
  --exec-dark-2:#161922;
  --exec-dark-3:#1d2230;
  --exec-gold:#b89a63;
  --exec-gold-soft:#eee5d4;
  --exec-shadow:0 18px 55px rgba(25,27,31,.07);
  --exec-shadow-lg:0 26px 90px rgba(17,19,24,.10);
}

/* Typography */
.app, .dialog, .auth-screen{
  font-family:"SF Pro Display","SF Pro Text","Inter","Noto Sans Arabic","IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;
}
html[dir="rtl"] .app,
html[dir="rtl"] .dialog,
html[dir="rtl"] .auth-screen{
  font-family:"Noto Sans Arabic","IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;
  letter-spacing:0;
}
.app{background:var(--exec-bg)}
.content{max-width:1480px;padding:38px 44px 110px}
.page-head{margin-bottom:26px;align-items:flex-start}
.executive-overline{
  color:#9a7e4d;font-size:10px;font-weight:900;letter-spacing:.17em;margin-bottom:9px
}
html[dir="rtl"] .executive-overline{letter-spacing:0;font-size:11px}
.greeting{font-size:38px;font-weight:850;letter-spacing:-.05em;color:var(--exec-ink);line-height:1.05}
html[dir="rtl"] .greeting{font-size:36px;letter-spacing:-.02em;line-height:1.35;font-weight:800}
.executive-subtitle{margin:10px 0 0;color:#73757c;font-size:13px;max-width:720px;line-height:1.6}
html[dir="rtl"] .executive-subtitle{font-size:14px;line-height:1.8}

/* Sidebar */
.sidebar{
  width:252px;background:linear-gradient(180deg,#101218,#0c0e13);
  padding:28px 18px 18px;border-right:1px solid rgba(255,255,255,.055)
}
html[dir="rtl"] .sidebar{border-right:0;border-left:1px solid rgba(255,255,255,.055)}
.app-main{margin-left:252px}
html[dir="rtl"] .app-main{margin-left:0;margin-right:252px}
.side-brand{padding:0 9px 34px;font-size:21px;letter-spacing:-.04em}
.side-brand .brand-mark{background:#f1ede4;color:#12141a;box-shadow:none}
.nav-item{
  min-height:46px;color:#858b99;padding:11px 12px;border-radius:12px;
  font-size:13px;font-weight:700;letter-spacing:-.01em;gap:11px
}
.nav-item:hover{background:#171a22;color:#f3f4f7}
.nav-item.active{
  background:#f0ede6;color:#111318;box-shadow:none
}
.nav-icon{width:21px!important;height:21px;display:grid;place-items:center}
.nav-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav-item.active .nav-icon{color:#111318}
.nav-count{background:#2a2e39;color:#d9dde8}
.nav-item.active .nav-count{background:#111318;color:#fff}
.profile-chip{
  border:1px solid #242730;background:#151820;border-radius:15px;padding:11px;
  transition:.2s
}
.profile-chip:hover{background:#1a1e28;border-color:#323744}
.profile-copy strong{font-size:12px}.profile-copy small{font-size:9px;color:#757c8d}

/* Header controls */
.head-actions .btn,.btn.ghost{
  background:rgba(255,255,255,.72);border-color:var(--exec-border);
  color:var(--exec-soft-ink);box-shadow:0 4px 18px rgba(23,25,29,.025)
}
.head-actions .btn.primary,.btn.primary{
  background:#15171c;border-color:#15171c;color:#fff;box-shadow:0 10px 25px rgba(17,19,24,.14)
}
.head-actions .btn.primary:hover,.btn.primary:hover{background:#22252c}

/* Core cards */
.card{
  background:rgba(255,255,255,.86);border:1px solid var(--exec-border);
  border-radius:19px;box-shadow:var(--exec-shadow);padding:22px
}
.card-head{margin-bottom:18px}
.card-head h2,.section-title-row h2{
  color:var(--exec-ink);font-size:21px;font-weight:820;letter-spacing:-.035em
}
html[dir="rtl"] .card-head h2,
html[dir="rtl"] .section-title-row h2{font-size:21px;letter-spacing:0}
.kicker{
  color:#9a7e4d;font-size:9px;letter-spacing:.16em;font-weight:900
}
html[dir="rtl"] .kicker{letter-spacing:0;font-size:10px}
.muted{color:var(--exec-muted)}

/* Executive summary */
.executive-summary{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px
}
.summary-tile{
  position:relative;overflow:hidden;background:rgba(255,255,255,.82);
  border:1px solid var(--exec-border);border-radius:17px;padding:17px 18px;
  box-shadow:0 9px 28px rgba(19,21,25,.035)
}
.summary-tile::after{
  content:"";position:absolute;right:-25px;bottom:-38px;width:92px;height:92px;border-radius:50%;
  background:rgba(184,154,99,.08)
}
html[dir="rtl"] .summary-tile::after{right:auto;left:-25px}
.summary-tile>span{display:block;color:#656871;font-size:11px;font-weight:780;margin-bottom:11px}
.summary-tile>strong{
  display:block;color:#14161b;font-size:34px;line-height:1;letter-spacing:-.055em;font-weight:850
}
.summary-tile>small{display:block;margin-top:8px;color:#9a9ca3;font-size:10px}
.summary-tile.positive>strong{color:#177b52}
.summary-tile.warning>strong{color:#b65b2c}
.summary-tile.execution>strong{color:#3c5bc7}

/* Signals */
.insights-section{
  border:0;background:transparent;margin-bottom:18px
}
.section-title-row{margin-bottom:11px}
.insight-grid{gap:10px}
.insight{
  border-radius:16px;padding:15px 48px 15px 17px;background:#faf9f6;
  border:1px solid var(--exec-border);box-shadow:none
}
html[dir="rtl"] .insight{padding:15px 17px 15px 48px}
.insight.success{border-left:3px solid #2e8c66}
.insight.risk{border-left:3px solid #cc5e52}
.insight.info{border-left:3px solid #5676c7}
html[dir="rtl"] .insight.success,
html[dir="rtl"] .insight.risk,
html[dir="rtl"] .insight.info{border-left:1px solid var(--exec-border);border-right-width:3px}
html[dir="rtl"] .insight.success{border-right-color:#2e8c66}
html[dir="rtl"] .insight.risk{border-right-color:#cc5e52}
html[dir="rtl"] .insight.info{border-right-color:#5676c7}
.insight strong{font-size:12px;color:#202229}.insight p{font-size:12px;line-height:1.6}
.insight .dismiss{color:#9b9da4}

/* Executive market */
.executive-market{
  background:linear-gradient(180deg,#151821 0%,#10131a 100%);
  border:1px solid #282c36;box-shadow:0 26px 70px rgba(14,16,21,.16);
  color:#fff;padding:24px;border-radius:21px
}
.executive-market .card-head h2{color:#f5f5f2;font-size:24px}
.executive-market .card-head p{color:#888f9f;max-width:760px}
.market-title-line{display:flex;align-items:center;gap:8px}
.market-live-dot{width:7px;height:7px;border-radius:50%;background:#5cd79d;box-shadow:0 0 0 5px rgba(92,215,157,.08)}
.executive-market .market-kicker{color:#c3a873}
.executive-market .segmented{background:#1b1f29;border-color:#2c313d}
.executive-market .range-btn{color:#777f90}
.executive-market .range-btn.active{background:#f0ede6;color:#15171c;box-shadow:none}
.executive-market .chart-stage{
  background:linear-gradient(180deg,#11151d,#0e1117);
  border-color:#252a34;border-radius:15px;height:410px
}
.executive-market .market-legend{margin-top:14px}
.executive-market .legend-pill{
  background:#191d26;border-color:#2d323d;color:#adb3c0;box-shadow:none
}
.executive-market .legend-pill b{color:#fff}
.executive-market .legend-pill .dot{box-shadow:0 0 0 3px rgba(255,255,255,.07)}

/* Two lower cards */
.dash-columns{gap:16px}
.execution-card,.portfolio-card{min-height:350px}
.execution-card .card-head,.portfolio-card .card-head{padding-bottom:13px;border-bottom:1px solid #ebe8e1}
.task-row{
  border-color:#e4e1da;background:#fff;border-radius:13px;padding:12px 13px
}
.task-row:hover{border-color:#cfcabf;box-shadow:0 7px 20px rgba(17,19,24,.04)}
.task-check{border-color:#d7d2c8}
.task-row.done .task-check{background:#1b1e24}
.impact-chip{background:#eeeae1;color:#6d5c3c}
.goal-row{background:#fff;border-color:#e4e1da;border-radius:14px;padding:14px}
.goal-title{font-size:13px}
.momentum-score{font-size:26px}
.progress-line{background:#ece9e3;height:6px}

/* Empty state */
.onboarding{
  background:linear-gradient(145deg,#fbfaf7 55%,#efeae0);
  border-color:#d9d5cc;border-radius:24px;box-shadow:var(--exec-shadow-lg);
  min-height:590px
}
.zero-ring{
  background:radial-gradient(circle,#fbfaf7 52%,transparent 53%),conic-gradient(#b89a63 0 2%,#e7e1d5 2%);
  box-shadow:0 35px 70px rgba(84,73,52,.12)
}
.onboarding-copy h2{color:#17191e;font-size:43px}
html[dir="rtl"] .onboarding-copy h2{font-size:38px;line-height:1.35}

/* Goals page */
.goals-page{gap:16px}
.goal-large{
  border-color:var(--exec-border);border-radius:18px;background:rgba(255,255,255,.9);
  box-shadow:var(--exec-shadow);padding:20px
}
.goal-large h3{font-size:20px}.goal-big-score{font-size:50px}
.why-box{background:#f3f0e9;color:#65615a;border:1px solid #e7e1d6}
.icon-btn{border-color:var(--exec-border);background:#fff}

/* Today / Planner / Notifications */
.plan-card,.notice-row{
  border-color:var(--exec-border);border-radius:17px;background:rgba(255,255,255,.9);
  box-shadow:var(--exec-shadow)
}
.cascade-step{background:#f5f2ec;border-color:#e7e1d8}
.cascade-step b{color:#937547}
.notice-row strong{color:#202229}
.notice-row p{line-height:1.6}

/* Account */
.account-grid{gap:18px}
.profile-card,.settings-card{background:#fbfaf7}
.account-status-line{
  display:inline-flex;align-items:center;gap:7px;color:#7d735f;background:#efe9dd;
  border:1px solid #e2d8c5;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:800;
  margin-bottom:20px
}
.status-dot{width:6px;height:6px;border-radius:50%;background:#4ca374}
.profile-hero{padding-bottom:19px;border-bottom:1px solid #e8e3da}
.setting-row{border-bottom-color:#e6e1d8}
.settings-card h2{font-size:20px}

/* Forms/dialogs */
.dialog{
  border-radius:22px;background:#fbfaf7;border:1px solid #d9d4ca;
  box-shadow:0 35px 110px rgba(14,16,21,.22)
}
.dialog::backdrop{background:rgba(12,14,18,.57);backdrop-filter:blur(7px)}
.dialog-head h2{font-weight:820;color:#15171c}
input,textarea,select{
  border-color:#d7d2c8;background:#fff;color:#1a1c22;border-radius:11px
}
input:focus,textarea:focus,select:focus{
  border-color:#9d875d;box-shadow:0 0 0 4px rgba(184,154,99,.09)
}
.goal-zero-note{background:#f0eadf;color:#796544}
.divider{background:#e5e0d7}

/* Premium auth */
.auth-screen{background:#0d0f14;color:#f4f3ef}
.auth-brandbar{padding:28px 38px}
.auth-grid{grid-template-columns:1.18fr .82fr}
.auth-visual{
  background:
    radial-gradient(circle at 20% 22%,rgba(184,154,99,.16),transparent 28%),
    radial-gradient(circle at 86% 74%,rgba(82,105,172,.12),transparent 28%),
    linear-gradient(145deg,#0f1117,#151821);
  padding:120px 7vw 78px
}
.auth-visual .kicker{color:#bda777}
.visual-copy h1{
  max-width:780px;font-size:clamp(48px,5.2vw,78px);font-weight:780;letter-spacing:-.06em
}
html[dir="rtl"] .visual-copy h1{font-size:clamp(45px,5vw,72px);line-height:1.25;letter-spacing:-.025em}
.visual-copy>p{color:#a7adba;max-width:680px;font-size:17px}
.mini-market{
  background:rgba(255,255,255,.025);border-color:rgba(255,255,255,.09);
  border-radius:19px;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)
}
.executive-points span{
  background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.075);
  color:#b8beca
}
.auth-executive-strip{
  display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:15px;max-width:650px
}
.auth-executive-strip>div{
  border-top:1px solid rgba(255,255,255,.11);padding:11px 3px 0;display:grid;gap:4px
}
.auth-executive-strip strong{color:#bda777;font-size:10px;letter-spacing:.14em}
.auth-executive-strip span{color:#868d9c;font-size:10px;line-height:1.4}
.auth-panel{background:#f3f1ec;padding:92px 40px 52px}
.auth-card{
  width:min(470px,100%);border:1px solid #dcd7ce;background:#fbfaf7;
  border-radius:22px;box-shadow:0 28px 90px rgba(12,14,18,.14);padding:30px
}
.auth-tabs{background:#ebe7df;border-radius:11px}
.auth-tab{border-radius:8px}.auth-tab.active{box-shadow:none;background:#fbfaf7}
.auth-title h2{font-size:31px;font-weight:820;color:#15171c}
html[dir="rtl"] .auth-title h2{font-size:29px;line-height:1.45}
.auth-title p{color:#76777d;line-height:1.7}
.auth-note{
  text-align:start;background:#f0ece4;border:1px solid #e3ddd2;padding:10px 11px;border-radius:11px;
  color:#817b70
}
.glass-btn{
  background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.12);color:#e5e3de
}

/* Mobile */
@media(max-width:980px){
  .content{padding:20px 14px 104px}
  .mobile-header{
    background:rgba(243,241,236,.9);border-bottom:1px solid rgba(216,212,203,.9)
  }
  .mobile-header .side-brand{color:#16181d}
  .mobile-header .brand-mark{background:#14161b;color:#fff}
  .executive-summary{grid-template-columns:1fr 1fr}
  .greeting{font-size:31px}
  html[dir="rtl"] .greeting{font-size:29px}
  .executive-market{padding:16px}
  .executive-market .chart-stage{height:340px}
  .auth-grid{grid-template-columns:1fr}
  .auth-panel{background:#f3f1ec}
}
@media(max-width:560px){
  .content{padding-left:11px;padding-right:11px}
  .page-head{margin-bottom:18px}
  .executive-overline{font-size:8px}
  .executive-subtitle{font-size:12px}
  .executive-summary{gap:8px}
  .summary-tile{padding:14px 13px;border-radius:14px}
  .summary-tile>strong{font-size:28px}
  .summary-tile>span{font-size:10px}
  .summary-tile>small{font-size:9px}
  .insight-grid{grid-template-columns:1fr}
  .executive-market{border-radius:17px}
  .executive-market .card-head h2{font-size:20px}
  .executive-market .chart-stage{height:330px!important}
  .dash-columns{grid-template-columns:1fr}
  .execution-card,.portfolio-card{min-height:auto}
  .auth-card{border-radius:18px;padding:22px}
  .auth-title h2{font-size:27px}
  .auth-executive-strip{grid-template-columns:1fr;gap:7px}
}

/* Mobile bottom bar polish */
.instagram-nav{
  max-width:460px;margin:auto;left:12px!important;right:12px!important;
  background:rgba(250,249,246,.97)!important;border-color:#d8d4ca!important;
  box-shadow:0 14px 40px rgba(16,18,23,.13)!important
}
.instagram-nav .bottom-item{color:#62656d!important}
.instagram-nav .bottom-item.active{color:#15171c!important}
.instagram-nav .bottom-item.active:not(.center-action)::after{background:#b89a63}
.center-action-ring{
  background:#17191e;box-shadow:0 10px 24px rgba(17,19,24,.2);border-radius:13px
}
.instagram-nav .bottom-item.active .bottom-avatar{box-shadow:0 0 0 2px #b89a63}


/* =========================================================
   LifeOS V3.1 — Critical Mobile Layout Fix
   ========================================================= */
@media (max-width:980px){
  /* V3 desktop sidebar margin was overriding the earlier mobile reset */
  .app-main,
  html[dir="rtl"] .app-main{
    margin-left:0 !important;
    margin-right:0 !important;
    width:100% !important;
    max-width:100% !important;
  }

  .app{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  .content{
    width:100%;
    max-width:none !important;
    margin:0 !important;
    box-sizing:border-box;
    overflow-x:hidden;
  }

  .view,
  .view.active{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  /* Let the executive heading breathe on a phone */
  .page-head{
    display:block !important;
    width:100%;
  }

  .executive-heading{
    width:100%;
    max-width:100%;
  }

  .head-actions{
    width:100%;
    margin-top:15px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
  }

  .head-actions .btn.primary{
    min-height:43px;
    padding-inline:16px;
  }

  /* Full-width onboarding card */
  .onboarding{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  .onboarding-graphic,
  .onboarding-copy{
    min-width:0;
    width:100%;
  }

  /* Prevent dashboard sections from forcing desktop width */
  .executive-summary,
  .insight-grid,
  .dash-columns,
  .account-grid,
  .goals-page,
  .planner-stack{
    width:100%;
    min-width:0;
  }

  .card,
  .executive-market{
    width:100%;
    max-width:100%;
    min-width:0;
  }
}

@media (max-width:560px){
  .content{
    padding:18px 11px 104px !important;
  }

  .page-head{
    margin-bottom:18px;
  }

  .greeting{
    max-width:100%;
    font-size:30px !important;
    line-height:1.08 !important;
    overflow-wrap:normal;
    word-break:normal;
  }

  html[dir="rtl"] .greeting{
    font-size:28px !important;
    line-height:1.4 !important;
  }

  .executive-subtitle{
    max-width:100%;
    margin-top:8px;
  }

  .head-actions{
    margin-top:13px;
  }

  .head-actions .btn.ghost[data-open-notifs]{
    width:48px;
    flex:0 0 48px;
    padding:10px 7px;
  }

  .head-actions .btn.primary{
    flex:1 1 auto;
    justify-content:center;
  }

  /* Empty dashboard should feel intentionally composed, not clipped */
  .onboarding{
    padding:24px 16px 30px !important;
    border-radius:19px;
  }

  .onboarding-graphic{
    min-height:245px !important;
  }

  .zero-ring{
    width:165px !important;
    height:165px !important;
  }

  .zero-ring span{
    font-size:56px !important;
  }

  .zero-ring small{
    bottom:38px !important;
  }

  .onboarding-copy h2{
    font-size:30px !important;
    line-height:1.12 !important;
  }

  html[dir="rtl"] .onboarding-copy h2{
    font-size:28px !important;
    line-height:1.45 !important;
  }

  .onboarding-copy p{
    font-size:14px !important;
    line-height:1.65 !important;
  }

  /* Keep the bottom navigation within the actual viewport */
  .instagram-nav{
    width:auto !important;
    max-width:calc(100% - 24px) !important;
    margin:0 !important;
  }
}


/* =========================================================
   LifeOS V3.2 — Navigation, Arabic & Brand Consistency
   ========================================================= */

/* Consistent LifeOS wordmark inside the product */
.lifeos-wordmark{
  font-weight:900;
  letter-spacing:-.045em;
}
.lifeos-wordmark .lifeos-mark{
  width:36px;
  height:36px;
  border-radius:11px;
  background:#15171c !important;
  color:#fff !important;
  box-shadow:none !important;
  border:1px solid rgba(255,255,255,.08);
  font-size:22px;
  font-weight:850;
}
.sidebar .lifeos-wordmark{
  color:#f7f5ef;
}
.sidebar .lifeos-wordmark .lifeos-mark{
  background:#090b0f !important;
  border-color:#2b2f38;
}
.mobile-header .lifeos-wordmark{
  color:#15171c;
}
.mobile-header .lifeos-wordmark .lifeos-mark{
  background:#15171c !important;
  color:#fff !important;
}

/* Arabic should feel like a native product, not a flipped English layout */
html[dir="rtl"] body{
  text-align:right;
}
html[dir="rtl"] .content,
html[dir="rtl"] .card,
html[dir="rtl"] .dialog,
html[dir="rtl"] .auth-card,
html[dir="rtl"] .landing-screen{
  font-family:-apple-system,BlinkMacSystemFont,"SF Arabic","Geeza Pro","Noto Sans Arabic","IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .greeting,
html[dir="rtl"] .task-name,
html[dir="rtl"] .goal-title{
  letter-spacing:0 !important;
}
html[dir="rtl"] .page-head,
html[dir="rtl"] .card-head,
html[dir="rtl"] .goal-row-top,
html[dir="rtl"] .goal-large-head,
html[dir="rtl"] .setting-row,
html[dir="rtl"] .profile-hero,
html[dir="rtl"] .notice-row{
  direction:rtl;
}
html[dir="rtl"] .head-actions,
html[dir="rtl"] .inline-actions,
html[dir="rtl"] .market-legend,
html[dir="rtl"] .legend-pill,
html[dir="rtl"] .goal-title,
html[dir="rtl"] .plan-title{
  direction:rtl;
}
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select{
  text-align:right;
  direction:rtl;
}
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="password"]{
  direction:ltr;
  text-align:left;
}
html[dir="rtl"] .executive-subtitle,
html[dir="rtl"] .muted,
html[dir="rtl"] .insight p,
html[dir="rtl"] .notice-row p,
html[dir="rtl"] .why-box{
  line-height:1.85;
}

/* Bottom bar: all five icons have exactly the same visual weight */
.instagram-nav{
  min-height:64px;
  align-items:center;
}
.instagram-nav .bottom-item{
  min-width:0;
  min-height:52px !important;
  padding:5px 2px !important;
  display:grid !important;
  place-items:center !important;
  align-content:center !important;
  gap:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:14px !important;
  color:#62656d !important;
  transform:none !important;
}
.instagram-nav .bottom-item svg{
  width:27px !important;
  height:27px !important;
  stroke-width:1.8 !important;
  overflow:visible;
}
.instagram-nav .bottom-item.active{
  background:transparent !important;
  color:#15171c !important;
}
.instagram-nav .bottom-item.active::before{
  content:"";
  position:absolute;
  width:42px;
  height:42px;
  border-radius:50%;
  border:2px solid #b89a63;
  background:rgba(184,154,99,.055);
  z-index:-1;
}
.instagram-nav .bottom-item.active::after{
  content:"";
  position:absolute;
  bottom:-2px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#b89a63 !important;
}
.instagram-nav .bottom-item{
  position:relative;
  z-index:1;
}
.instagram-nav .bottom-avatar{
  width:29px !important;
  height:29px !important;
  border:0 !important;
  box-shadow:none !important;
  position:relative;
  z-index:2;
}
.instagram-nav .bottom-item.active .bottom-avatar{
  box-shadow:none !important;
}
.instagram-nav .bottom-item.active:has(.bottom-avatar)::before{
  width:42px;
  height:42px;
}
.instagram-nav .bottom-item.active:has(.bottom-avatar)::after{
  bottom:-2px;
}

/* Kill any legacy oversized center-action rules from earlier versions */
.center-action,
.center-action-ring{
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  min-height:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

/* Mobile header logo and spacing */
@media(max-width:980px){
  .mobile-header{
    min-height:64px;
    padding:12px 16px;
  }
  .mobile-header .side-brand{
    padding:0;
    gap:9px;
    font-size:20px;
  }
}

@media(max-width:560px){
  .instagram-nav{
    min-height:62px !important;
    padding:6px 8px !important;
  }
  .instagram-nav .bottom-item{
    min-height:48px !important;
  }
  .instagram-nav .bottom-item svg{
    width:25px !important;
    height:25px !important;
  }
  .instagram-nav .bottom-avatar{
    width:27px !important;
    height:27px !important;
  }

  /* Arabic mobile typography */
  html[dir="rtl"] .executive-overline{
    font-size:9px !important;
    line-height:1.5;
  }
  html[dir="rtl"] .greeting{
    font-size:27px !important;
    line-height:1.5 !important;
  }
  html[dir="rtl"] .executive-subtitle{
    font-size:13px !important;
    line-height:1.9 !important;
  }
  html[dir="rtl"] .card-head h2,
  html[dir="rtl"] .section-title-row h2{
    font-size:19px !important;
    line-height:1.55 !important;
  }
}

/* Keep authentication navigation readable over the light mobile panel. */
@media(max-width:980px){
  .auth-brandbar{color:#15171c}
  .auth-brandbar .glass-btn{color:#31343c;background:#fbfaf7;border-color:#cbc6bb}
}
