/* ═══ نَسَمة (فاتح) و ليل (داكن): تصميم واحد بثيمين. أشكال عضوية، خلفية حيّة، نواة واحدة. ═══ */
html[data-theme="light"] {
  --bg: #FBF6EE; --bg-2: #F3ECE0; --card: rgba(255,255,255,.74); --card-2: rgba(255,255,255,.9);
  --ink: #1B1932; --ink-2: #4F4B66; --ink-3: #7A7690; --gold: #5B45E0; --teal: #0E9F82; --red: #C2462E; --sun: #E8A33B;
  --hairline: rgba(27,25,50,.12); --btn: #1B1932; --btn-ink: #FFFFFF; --glass: rgba(255,255,255,.8); --shadow: 0 10px 30px rgba(90,70,160,.14);
  --f1: #FFC7A6; --f2: #C9B6FF; --f3: #A6EFD9; --acc: #5B45E0; --acc2: #FF7A59; --soft: rgba(27,25,50,.06);
}
html[data-theme="dark"] {
  --bg: #07080F; --bg-2: #0E1020; --card: rgba(255,255,255,.055); --card-2: rgba(255,255,255,.09);
  --ink: #F2F4FA; --ink-2: #B5BACB; --ink-3: #8B90A5; --gold: #2EF2A5; --teal: #2EF2A5; --red: #FF9A85; --sun: #FFD27A;
  --hairline: rgba(255,255,255,.11); --btn: #2EF2A5; --btn-ink: #04130E; --glass: rgba(255,255,255,.08); --shadow: 0 10px 30px rgba(0,0,0,.4);
  --f1: #0E8F6B; --f2: #2A3CC8; --f3: #0AA8B8; --acc: #2EF2A5; --acc2: #7CF3C8; --soft: rgba(255,255,255,.06);
}
@keyframes morph2 { 0%,100% { border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; } 33% { border-radius: 42% 58% 38% 62% / 58% 42% 58% 42%; } 66% { border-radius: 52% 48% 62% 38% / 40% 60% 40% 60%; } }
@keyframes morphr { 0%,100% { border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; transform: rotate(0); } 33% { border-radius: 42% 58% 38% 62% / 58% 42% 58% 42%; transform: rotate(40deg); } 66% { border-radius: 52% 48% 62% 38% / 40% 60% 40% 60%; transform: rotate(-30deg); } }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.2); } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ripple { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes shimmer { to { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes cnflow { to { stroke-dashoffset: -17; } }
html, body { background: var(--bg) !important; color: var(--ink); transition: background .4s; }
body { animation: none !important; font-family: "Noto Sans Arabic", "Noto Kufi Arabic", system-ui, sans-serif; }
#app { position: relative; z-index: 1; }
#field { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#field i { position: absolute; border-radius: 50%; filter: blur(64px); will-change: transform; transition: background .6s; }
#field i:nth-child(1) { width: 360px; height: 360px; background: var(--f1); top: -110px; right: -110px; opacity: .85; animation: drift 17s ease-in-out infinite; }
#field i:nth-child(2) { width: 320px; height: 320px; background: var(--f2); top: 38%; left: -150px; opacity: .6; animation: drift 21s ease-in-out infinite reverse; }
#field i:nth-child(3) { width: 300px; height: 300px; background: var(--f3); bottom: -110px; right: -70px; opacity: .6; animation: drift 25s ease-in-out infinite; }
html[data-theme="dark"] #field i:nth-child(1) { opacity: .5; } html[data-theme="dark"] #field i:nth-child(2) { opacity: .42; } html[data-theme="dark"] #field i:nth-child(3) { opacity: .32; }
.paused #field i { animation-play-state: paused; }
/* الشريط العلوي */
#topbar { background: linear-gradient(var(--bg) 62%, transparent); }
#view-title { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; background: none; -webkit-text-fill-color: currentColor; }
#view-subtitle { color: var(--ink-3); }
#topbar-logo { display: none; }
#online-dot { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
#themebtn { width: 42px; height: 42px; border: 0; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; cursor: pointer; animation: morphr 10s ease-in-out infinite; margin-inline-start: 10px; box-shadow: var(--shadow); }
#themebtn::before { content: "☾"; font-size: 21px; line-height: 1; }
#themebtn[data-t="dark"]::before { content: "☀"; }
#topbar > :last-child { display: flex; align-items: center; }
/* بطاقات وأزرار وحقول: حواف عضوية */
.card, .stat, .bt, .nudge, .demo-banner, .rep { background: var(--card); border: 1px solid var(--hairline); border-radius: 30px 30px 30px 10px; box-shadow: var(--shadow); backdrop-filter: blur(16px); color: var(--ink); }
.card:nth-of-type(even) { border-radius: 30px 10px 30px 30px; }
.card h3, .card h2 { color: var(--ink); } .card p, .note { color: var(--ink-2); }
.card.tappable:active { border-color: var(--acc); }
.btn { background: var(--btn); color: var(--btn-ink); border-radius: 24px 24px 24px 8px; box-shadow: var(--shadow); }
.btn.ghost { background: var(--soft); color: var(--ink); border: 1.5px solid var(--hairline); box-shadow: none; }
.btn.small { border-radius: 18px 18px 18px 6px; }
.field input[type="text"], .field input[type="password"], .field textarea, .field select, .addrow input, .room-hero textarea {
  background: var(--card-2); color: var(--ink); border: 1.5px solid var(--hairline); border-radius: 24px 24px 24px 8px; backdrop-filter: blur(12px); }
.field input::placeholder, .field textarea::placeholder, .addrow input::placeholder, .room-hero textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus, .addrow input:focus, .room-hero textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
.field label { color: var(--ink-2); }
.chip, .chip.gold, .chip.teal, .chip.off { border-radius: 999px; background: var(--soft); color: var(--ink-2); border: 1px solid var(--hairline); }
.chip.teal { color: var(--teal); } .chip.gold { color: var(--gold); }
.errmsg { color: var(--ink); background: var(--soft); border: 1px solid var(--hairline); border-radius: 18px; }
.okmsg { color: var(--teal); }
.linkbtn, .suggest-note button { color: var(--acc); }
.more summary { color: var(--ink-2); }
.trow, .chk, .roster li, .step { border-color: var(--hairline); }
.ttl small, .stat span, .bt span { color: var(--ink-3); }
.bt b { background: linear-gradient(90deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bt.good b { background: linear-gradient(90deg, var(--teal), var(--sun)); -webkit-background-clip: text; background-clip: text; }
.mv { background: var(--soft); color: var(--ink); border: 1.5px solid var(--hairline); animation: morph2 10s ease-in-out infinite; }
.mv.go { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
#toast { background: var(--btn); color: var(--btn-ink); }
.demo-banner b { color: var(--acc); }
.nudge { background: var(--card-2); }
/* الهيرو: سؤال كبير وكتلة النور */
.room-hero { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; padding: 0 2px; text-align: right; }
.room-hero h2 { font-size: 42px; line-height: 1.2; font-weight: 800; letter-spacing: -.5px; margin: 6px 0 14px; color: var(--ink); }
.room-hero .orbbox { margin-bottom: 0; }
.room-hero .orbx { width: 170px; height: 170px; }
.room-big { border-radius: 28px 28px 28px 10px !important; background-image: none; }
.room-hero textarea { min-height: 110px; }
.emstrip { display: none; }
/* شريط التنقل العائم */
#bottomnav { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: min(92%, 440px); padding: 7px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--glass); backdrop-filter: blur(22px); box-shadow: var(--shadow); gap: 2px; }
.navbtn { color: var(--ink-3); border-radius: 999px; padding: 8px 6px; transition: all .3s; }
.navbtn .navicon { background: none !important; box-shadow: none !important; padding: 2px 10px; font-size: 20px; }
.navbtn:not(.active):not(.on) .navlabel { display: none; }
.navbtn.active, .navbtn.on { background: var(--btn); color: var(--btn-ink); flex: 1.6; box-shadow: var(--shadow); }
.navlabel { font-size: 12px; font-weight: 800; }
/* النواة */
.orbx { position: relative; display: inline-grid; place-items: center; flex: none; vertical-align: middle; }
.orbx i, .orbx b { position: absolute; display: block; }
.orbx .l1, .orbx .l2, .orbx .l3 { inset: 0; animation: morphr 7s ease-in-out infinite; }
.orbx .l2 { inset: 7%; animation-duration: 9s; animation-direction: reverse; } .orbx .l3 { inset: 15%; animation-duration: 6s; }
.orbx .core { width: 28%; height: 28%; border-radius: 50%; animation: breathe 4s ease-in-out infinite; }
.orbx .r1, .orbx .r2 { inset: 0; border-radius: 50%; animation: ripple 4.5s ease-out infinite; } .orbx .r2 { animation-delay: 2.2s; }
.orbx.sz-34 { width: 34px; height: 34px; } .orbx.sz-56 { width: 56px; height: 56px; } .orbx.sz-80 { width: 80px; height: 80px; } .orbx.sz-96 { width: 96px; height: 96px; } .orbx.sz-110 { width: 110px; height: 110px; } .orbx.sz-130 { width: 130px; height: 130px; } .orbx.sz-150 { width: 150px; height: 150px; } .orbx.sz-190 { width: 190px; height: 190px; }
html[data-theme="light"] .orbx .l1 { background: radial-gradient(circle at 30% 25%, #fff, #D9CCFF 40%, #FFC7A6 100%); box-shadow: 0 16px 50px rgba(120,90,220,.28); }
html[data-theme="light"] .orbx .l2 { background: radial-gradient(circle at 65% 70%, #A6EFD9, rgba(201,182,255,0) 70%); mix-blend-mode: multiply; opacity: .8; }
html[data-theme="light"] .orbx .l3 { background: radial-gradient(circle at 35% 30%, #fff, rgba(255,255,255,0) 70%); }
html[data-theme="light"] .orbx .core { background: #fff; box-shadow: 0 0 34px 12px rgba(255,255,255,.9); }
html[data-theme="light"] .orbx .r1, html[data-theme="light"] .orbx .r2 { border: 1.5px solid rgba(90,70,200,.35); }
html[data-theme="dark"] .orbx .l1 { background: conic-gradient(from 0deg, #2EF2A5, #0AA8B8, #3B4DE8, #2EF2A5); box-shadow: 0 0 60px rgba(46,242,165,.4); animation-name: morphr, spin; animation-duration: 7s, 14s; animation-timing-function: ease-in-out, linear; }
html[data-theme="dark"] .orbx .l2 { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.85), rgba(255,255,255,0) 55%), radial-gradient(circle at 60% 70%, #07080F 40%, rgba(7,8,15,0) 75%); }
html[data-theme="dark"] .orbx .l3 { background: radial-gradient(circle, rgba(46,242,165,.9), rgba(46,242,165,0) 70%); mix-blend-mode: screen; }
html[data-theme="dark"] .orbx .core { background: #fff; box-shadow: 0 0 30px 10px rgba(46,242,165,.75); width: 16%; height: 16%; }
html[data-theme="dark"] .orbx .r1, html[data-theme="dark"] .orbx .r2 { border: 1.5px solid rgba(46,242,165,.5); }
.orbx.st-think .l1 { animation-duration: 2.8s; } .orbx.st-think .l2 { animation-duration: 3.4s; } .orbx.st-think .r1, .orbx.st-think .r2 { animation-duration: 1.6s; }
.orbx.st-success .core { animation: breathe 1.2s ease-in-out infinite; transform-origin: center; }
.orbx.st-empty { opacity: .55; } .orbx.st-empty .l1 { animation-duration: 16s; }
.orbx.typing .core { animation-duration: .5s; } .orbx.typing .l1 { animation-duration: 2s; }
.orbbox { display: flex; justify-content: center; transform: translate(calc(var(--ox, 0px) * .8), calc(var(--oy, 0px) * .8)); transition: transform .25s ease-out; }
/* الأدوار: فقاعات عضوية */
.rbub { position: relative; display: inline-grid; place-items: center; color: var(--acc); background: var(--card-2); border: 1px solid var(--hairline); backdrop-filter: blur(10px); box-shadow: var(--shadow); animation: morph2 11s ease-in-out infinite; flex: none; }
.rbub.sz-34 { width: 34px; height: 34px; } .rbub.sz-38 { width: 38px; height: 38px; } .rbub.sz-46 { width: 46px; height: 46px; } .rbub.sz-54 { width: 58px; height: 58px; }
.k-researcher { --acc: #1CA7C9; } .k-strategist { --acc: #7C6CFF; } .k-product { --acc: #5B6CF0; } .k-marketer { --acc: #E0589F; } .k-qa { --acc: #12A58A; } .k-engineer { --acc: #3A8CE8; } .k-writer { --acc: #E0A12E; }
html[data-theme="dark"] .k-researcher { --acc: #6FE3FF; } html[data-theme="dark"] .k-strategist { --acc: #B3A8FF; } html[data-theme="dark"] .k-product { --acc: #98A4FF; } html[data-theme="dark"] .k-marketer { --acc: #FF9AD0; } html[data-theme="dark"] .k-qa { --acc: #2EF2A5; } html[data-theme="dark"] .k-engineer { --acc: #8CC4FF; } html[data-theme="dark"] .k-writer { --acc: #FFD27A; }
.rbub .bd { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); color: var(--btn-ink); font-size: 11px; font-weight: 900; font-style: normal; display: none; place-items: center; line-height: 1; border: 2px solid var(--bg); }
.rbub.st-done .bd { display: grid; }
.rbub.st-idle { opacity: .82; }
.rbub.st-work { box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 30%, transparent), 0 0 26px color-mix(in srgb, var(--acc) 55%, transparent); }
.rbub.st-work svg { animation: breathe .9s ease-in-out infinite; }
/* كوكبة الفريق */
.cn { position: relative; width: 100%; aspect-ratio: 1; margin: 0 auto 6px; max-width: 340px; } .cn.cn-sm { max-width: 300px; }
.cn-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cn-ln { fill: none; stroke: var(--acc); stroke-opacity: .28; stroke-width: 1.4; stroke-linecap: round; }
.cn-ln.cn-work { stroke-opacity: .7; } .cn-ln.cn-done { stroke: var(--teal); stroke-opacity: .5; }
.cn-pulse { fill: var(--acc); filter: drop-shadow(0 0 6px var(--acc)); } .cn-pulse.cn-done { fill: var(--teal); opacity: .8; }
.cn-center { position: absolute; left: 50%; top: 50%; transform: translate(calc(-50% + var(--ox, 0px) * .5), calc(-50% + var(--oy, 0px) * .5)); transition: transform .25s ease-out; }
.cn-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { margin-top: 0; } 50% { margin-top: -6px; } }
.cn-node small { font-size: 11.5px; font-weight: 800; color: var(--ink-2); margin-top: 3px; }
.cn-say { text-align: center; font-weight: 800; font-size: 20px; color: var(--ink); }
.room-prog { text-align: center; } progress { accent-color: var(--acc); }
/* حيوية */
#view > * { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }
.btn { transition: transform .15s; } .btn:active { transform: scale(.95); }
.celebrate { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.celebrate p { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { *, #field i { animation: none !important; transition: none !important; } }

#topbar-title h1, #view-title { background: none !important; color: var(--ink) !important; -webkit-text-fill-color: var(--ink) !important; }
.tile { background: var(--card); color: var(--ink); border: 1px solid var(--hairline); border-radius: 30px 30px 30px 10px; box-shadow: var(--shadow); backdrop-filter: blur(16px); font-weight: 800; }
.tile:nth-child(even) { border-radius: 30px 10px 30px 30px; }
html[data-theme="light"] .orbx .l1 { background: radial-gradient(circle at 30% 25%, #fff, #C3B1FF 42%, #FF9F7A 100%); }
html[data-theme="light"] .orbx .l2 { background: radial-gradient(circle at 65% 70%, #7FE6C8, rgba(201,182,255,0) 70%); }
.navbtn-add .navicon { background: var(--acc) !important; color: var(--btn-ink) !important; width: 44px; height: 44px; padding: 0 !important; display: grid; place-items: center; font-size: 24px; animation: morph2 8s ease-in-out infinite; box-shadow: 0 6px 18px color-mix(in srgb, var(--acc) 45%, transparent) !important; }
html[data-theme="light"] .navbtn-add .navicon { color: #fff !important; }
.navbtn-add .navlabel { display: none !important; } .navbtn-add { flex: 0 0 auto; }
.note.center{text-align:center}
.legal-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:12px 0}
.legal-links .tile{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px}
#splash{pointer-events:none;position:fixed;inset:0;z-index:99;display:flex;align-items:center;justify-content:center;background:var(--bg,#15123A);transition:opacity .35s}
#splash.off{opacity:0;pointer-events:none}
#splash .orbx{width:120px;height:120px}
.pr-row{padding:6px 0;border-bottom:1px solid rgba(128,128,128,.18)}.pr-row.on{font-weight:800}.pr-row.on b{color:var(--accent,#0f9d7a)}
