/* ACC — تصميم القلعة: خط ثمانية، كروت ملونة مدوّرة، عناوين ضخمة، هايلايتر ليموني، وحركة بكل مكان. */
:root {
  --bg: #F3F1F8;
  --surface: #FFFFFF;
  --surface-2: #F6F5FA;
  --fg: #14101F;
  --muted: #6F6A80;
  --line: rgba(20, 16, 31, .08);
  --hover: rgba(20, 16, 31, .05);
  --black: #14101F;
  --on-black: #FFFFFF;
  --purple: #5B45F5;
  --lime: #B4FF5C;
  --pink: #FF5FD2;
  --blue: #2E9BFF;
  --orange: #FF8A1F;
  --green: #7CD53F;
  --danger: #FF3B5C;
  --shadow-sm: 0 2px 8px rgba(30, 20, 70, .06);
  --shadow: 0 18px 50px rgba(30, 20, 70, .10);
  --shadow-lg: 0 30px 80px rgba(30, 20, 70, .18);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --sb-w: 288px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B0914;
  --surface: #161325;
  --surface-2: #1D1931;
  --fg: #F4F1FF;
  --muted: #9C96B4;
  --line: rgba(255, 255, 255, .08);
  --hover: rgba(255, 255, 255, .06);
  --black: #F4F1FF;
  --on-black: #14101F;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--fg);
  font: 400 15.5px/1.6 var(--acc-font);
  -webkit-font-smoothing: antialiased; overflow: hidden;
  transition: background .5s var(--out), color .5s var(--out);
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ================= الهيكل ================= */
.shell { display: flex; height: 100vh; padding: 14px; gap: 14px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }

/* ================= القائمة الجانبية ================= */
.sidebar {
  width: var(--sb-w); flex: none; background: var(--surface); border-radius: 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; padding: 18px 14px 14px; gap: 4px; overflow-y: auto; overflow-x: hidden;
  transition: margin .55s var(--out), transform .55s var(--out), background .5s;
  animation: sb-in .8s var(--out) both;
}
@keyframes sb-in { from { opacity: 0; transform: translateX(40px); } }
.shell.nav-collapsed .sidebar { margin-inline-start: calc(-1 * var(--sb-w) - 14px); }

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 16px; }
.brand-mark { width: 48px; height: 48px; border-radius: 16px; flex: none; display: grid; place-items: center; background: var(--purple); }
.brand-mark span {
  width: 26px; height: 26px; background: var(--lime);
  clip-path: polygon(0 100%, 0 30%, 18% 30%, 18% 0, 38% 0, 38% 18%, 46% 18%, 46% 0, 54% 0, 54% 18%, 62% 18%, 62% 0, 82% 0, 82% 30%, 100% 30%, 100% 100%);
  transition: transform .5s var(--spring);
}
.brand:hover .brand-mark span { transform: translateY(-3px) scale(1.08); }
.brand-mark.fx-iri::before { inset: -3px; } .brand-mark.fx-iri.on::after { opacity: .35; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 28px; font-weight: 900; letter-spacing: .5px; }
.brand-text small { font-size: 10.5px; color: var(--muted); direction: ltr; text-align: start; font-weight: 500; margin-top: 3px; }

.nav-home, .tree a, .sec-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 99px; cursor: pointer; position: relative;
  transition: background .3s, color .3s, transform .4s var(--spring);
}
.nav-home { font-weight: 700; }
.nav-home:hover, .tree a:hover { background: var(--hover); transform: translateX(-3px); }
.nav-home.active, .tree a.active { background: var(--black); color: var(--on-black); }
.nh-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 15px; flex: none; }
.nav-home.active .nh-ic { background: rgba(255, 255, 255, .14); }

.sb-label { font-size: 12px; color: var(--muted); padding: 16px 12px 6px; font-weight: 700; letter-spacing: .3px; }
.tree { display: flex; flex-direction: column; gap: 2px; }
.section { display: flex; flex-direction: column; animation: fx-rise .6s var(--out) backwards; animation-delay: calc(var(--i, 0) * 60ms + 200ms); }
.sec-head { font-weight: 700; border-radius: 16px; }
.sec-head:hover { background: var(--hover); }
.sec-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--c, var(--purple)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--purple)) 22%, transparent); }
.sec-head .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-tools {
  display: flex; gap: 2px; opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .35s var(--spring);
  position: absolute; inset-inline-end: 6px; background: var(--surface); border-radius: 99px; pointer-events: none;
}
.sec-head:hover .sec-tools, .sec-head:focus-within .sec-tools { pointer-events: auto; }
.sec-head:hover .sec-tools, .sec-head:focus-within .sec-tools { opacity: 1; transform: none; }
.sec-items { display: flex; flex-direction: column; gap: 2px; padding-inline-start: 18px; margin-inline-start: 17px; border-inline-start: 2px dashed var(--line); }
.tree a { font-size: 14.5px; font-weight: 500; }
.tree a .ic { width: 26px; text-align: center; flex: none; transition: transform .45s var(--spring); }
.tree a:hover .ic { transform: rotate(-12deg) scale(1.2); }
.tree a .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree .empty-note { font-size: 13px; color: var(--muted); padding: 4px 12px; }

.new-section-sb {
  margin-top: 10px; display: flex; align-items: center; gap: 8px; justify-content: center; padding: 11px; border-radius: 99px;
  border: 2px dashed var(--line); background: transparent; color: var(--muted); font-weight: 700; cursor: pointer;
  transition: border-color .3s, color .3s, background .3s, transform .4s var(--spring);
}
.new-section-sb:hover { border-color: var(--purple); color: var(--purple); background: color-mix(in srgb, var(--purple) 7%, transparent); }
.new-section-sb .plus, .plus { font-size: 20px; line-height: 1; display: inline-block; transition: transform .5s var(--spring); }
.new-section-sb:hover .plus { transform: rotate(90deg) scale(1.15); }

.perch { flex: 1; min-height: 150px; position: relative; }
.sb-foot { display: flex; flex-direction: column; gap: 10px; padding: 12px 6px 2px; border-top: 1px solid var(--line); }
.theme-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.foot-btns { display: flex; gap: 8px; }

/* ================= أزرار ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 99px; padding: 13px 24px;
  font-weight: 700; font-size: 15.5px; cursor: pointer; border: 0; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--spring), box-shadow .4s, background .3s, color .3s;
}
.btn .arr { display: inline-block; transition: transform .45s var(--spring); }
.btn:hover .arr { transform: translateX(-6px); }
.btn::after { /* لمعة بتمرق */
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .8s var(--out);
}
.btn:hover::after { transform: translateX(-120%); }
.btn-black { background: #14101F; color: #fff; box-shadow: 0 10px 26px rgba(20, 16, 31, .28); }
.btn-black:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(20, 16, 31, .34); }
.btn-outline { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn-outline-dark { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline-dark:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-primary { background: var(--black); color: var(--on-black); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--hover); color: var(--fg); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }

.round-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; display: inline-grid; place-items: center; font-size: 17px;
  background: var(--surface-2); color: var(--fg); transition: transform .45s var(--spring), background .3s;
}
.round-btn:hover { transform: translateY(-3px) rotate(-8deg); background: var(--hover); }
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: inline-grid; place-items: center;
  font-size: 18px; color: inherit; opacity: .75; transition: transform .45s var(--spring), background .25s, opacity .25s;
}
.icon-btn:hover { background: rgba(127, 127, 127, .16); opacity: 1; transform: scale(1.12); }
.nav-toggle, .nav-toggle-v { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 700;
  background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm);
}
.chip-light { background: rgba(255, 255, 255, .95); color: #14101F; }

/* ================= الرئيسية ================= */
.home { overflow-y: auto; height: 100%; padding: 0 0 80px; border-radius: 32px; scroll-behavior: smooth; }
.home::-webkit-scrollbar { width: 0; }

.hero {
  position: relative; background: var(--purple); color: #fff; border-radius: 36px; padding: 46px 48px 140px; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; min-height: 380px; isolation: isolate;
  box-shadow: 0 30px 70px rgba(91, 69, 245, .35);
}
.hero-main { position: relative; z-index: 2; }
.hero-title { font-size: clamp(42px, 5.6vw, 88px); font-weight: 900; line-height: 1.05; margin: 18px 0 14px; letter-spacing: -.5px; }
.hero-title .fx-hl { color: #14101F; }
.hero-sub { font-size: 17px; max-width: 480px; opacity: .85; margin: 0 0 28px; font-weight: 400; }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; }
.hero-doodle { width: 130px; height: 50px; color: #fff; opacity: .95; }
.hero-floor { position: absolute; inset-inline: 0; bottom: 0; height: 200px; pointer-events: none; z-index: 3; }
.hero-floor .acc-mascot-host { pointer-events: auto; }

.hero-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.spark { position: absolute; fill: var(--lime); animation: twinkle 3.2s ease-in-out infinite; }
.spark.s1 { width: 30px; top: 34px; inset-inline-end: 42%; }
.spark.s2 { width: 18px; top: 70%; inset-inline-end: 8%; fill: #fff; animation-delay: -1.1s; }
.spark.s3 { width: 22px; top: 18%; inset-inline-end: 6%; fill: var(--pink); animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .6; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.blob.b1 { width: 360px; height: 360px; background: #8A6CFF; top: -140px; inset-inline-start: -80px; }
.blob.b2 { width: 300px; height: 300px; background: #FF5FD2; bottom: -160px; inset-inline-start: 30%; opacity: .35; animation-duration: 18s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }

/* شيبس الأرقام (صغيرة ونظيفة) */
.stat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -10px 0 24px; }
.stat-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px;
  background: #fff; color: #14101F; box-shadow: 0 8px 20px -10px rgba(20, 16, 31, .5); transition: transform .45s var(--spring);
}
.stat-chip:hover { transform: translateY(-3px) rotate(-2deg); }
.stat-chip i { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.stat-chip b { font-size: 20px; font-weight: 900; line-height: 1; height: 1em; }
.stat-chip span { font-size: 13.5px; font-weight: 700; color: #6F6A80; }

/* مقولة اليوم */
.quote-card {
  position: relative; z-index: 2; margin: 0; align-self: center; background: #fff; color: #14101F; border-radius: 30px; padding: 26px 26px 18px;
  box-shadow: 0 24px 50px -20px rgba(20, 16, 31, .55); transform: rotate(-1.5deg); transition: transform .6s var(--spring);
}
.quote-card:hover { transform: rotate(0) translateY(-4px); }
.q-chip { display: inline-block; font-size: 12.5px; font-weight: 700; background: #14101F; color: var(--lime); padding: 5px 12px; border-radius: 99px; }
.q-mark { position: absolute; top: 18px; inset-inline-end: 22px; width: 46px; fill: var(--lime); }
.quote-card blockquote { margin: 16px 0 14px; font-size: clamp(20px, 1.9vw, 27px); font-weight: 900; line-height: 1.45; }
.quote-card blockquote.swap { animation: q-swap .6s var(--out); }
@keyframes q-swap { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.quote-card figcaption { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #6F6A80; font-weight: 500; }
.q-next { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #F6F5FA; cursor: pointer; font-size: 16px; transition: transform .5s var(--spring); }
.q-next:hover { transform: rotate(-180deg); background: var(--lime); }

/* ودجتس */
.widgets { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; margin-top: 18px; }
.w-card { background: var(--surface); border-radius: 32px; padding: 22px 24px; box-shadow: var(--shadow-sm); }
.w-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.w-title { font-size: 19px; font-weight: 900; }
.clock { font-size: 26px; font-weight: 900; direction: ltr; letter-spacing: .5px; }

/* بومودورو */
.pomo { background: #14101F; color: #fff; }
:root[data-theme="dark"] .pomo { background: #1D1931; }
.pomo-modes { display: flex; background: rgba(255, 255, 255, .1); border-radius: 99px; padding: 3px; }
.pomo-modes button { border: 0; background: transparent; color: rgba(255, 255, 255, .7); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px; cursor: pointer; transition: background .3s, color .3s; }
.pomo-modes button.on { background: var(--lime); color: #14101F; }
.pomo-body { display: flex; align-items: center; gap: 22px; }
.pomo-ring { position: relative; width: 150px; height: 150px; flex: none; }
.pomo-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pomo-ring circle { fill: none; stroke-width: 9; }
.pomo-ring .track { stroke: rgba(255, 255, 255, .1); }
.pomo-ring .prog { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke .4s; filter: drop-shadow(0 0 8px rgba(180, 255, 92, .55)); }
.pomo.is-break .pomo-ring .prog { stroke: #2EE6C9; filter: drop-shadow(0 0 8px rgba(46, 230, 201, .55)); }
.pomo-time { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pomo-time b { font-size: 36px; font-weight: 900; direction: ltr; font-variant-numeric: tabular-nums; line-height: 1; }
.pomo-time small { font-size: 12.5px; color: rgba(255, 255, 255, .6); margin-top: 6px; font-weight: 500; }
.pomo.running .pomo-ring { animation: pomo-breathe 4s ease-in-out infinite; }
@keyframes pomo-breathe { 50% { transform: scale(1.03); } }
.pomo-side { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.pomo-btns { display: flex; gap: 8px; align-items: center; }
.pomo-go {
  flex: 1; border: 0; border-radius: 99px; padding: 13px 18px; font-weight: 900; font-size: 16px; cursor: pointer; background: var(--lime); color: #14101F;
  box-shadow: 0 10px 24px -10px rgba(180, 255, 92, .8); transition: transform .4s var(--spring);
}
.pomo-go:hover { transform: translateY(-2px); } .pomo-go:active { transform: scale(.95); }
.pomo.running .pomo-go { background: #fff; }
.pomo-reset { background: rgba(255, 255, 255, .1); color: #fff; }
.pomo-reset:hover { background: rgba(255, 255, 255, .2); }
.pomo-count { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.pomo-count b { font-size: 22px; font-weight: 900; color: #fff; }
.pomo-dots { display: flex; gap: 6px; flex-wrap: wrap; min-height: 12px; }
.pomo-dots i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F5F; box-shadow: 0 0 0 3px rgba(255, 95, 95, .2); animation: fx-pop .5s var(--spring) backwards; }

/* البومودورو الصغير بالقائمة */
.pomo-mini {
  display: flex; align-items: center; gap: 8px; margin: 6px 4px 0; padding: 8px 14px; border-radius: 99px; background: #14101F; color: #fff; font-weight: 700; font-size: 14px;
  animation: fx-pop .5s var(--spring) backwards;
}
.pomo-mini b { direction: ltr; font-variant-numeric: tabular-nums; }
.pomo-mini small { margin-inline-start: auto; color: var(--lime); font-size: 12px; }
.pm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pm-blink 1.2s ease-in-out infinite; }
@keyframes pm-blink { 50% { opacity: .25; } }

/* يومك */
.day-gauge { direction: ltr; height: 64px; position: relative; }
.day-scale { display: flex; justify-content: space-between; direction: ltr; font-size: 11.5px; color: var(--muted); margin-top: 8px; font-weight: 500; }
.day-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.day-foot span { font-size: 14.5px; font-weight: 700; }
.day-foot b { font-size: 26px; font-weight: 900; }

.home-grid { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }

/* كرت القسم */
.sec-card {
  --c: var(--purple); --on: #fff;
  background: var(--c); color: var(--on); border-radius: 36px; padding: 30px 30px 28px; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 24px 60px color-mix(in srgb, var(--c) 30%, transparent);
}
.sec-card::before { /* نقشة خفيفة */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .12;
  background-image: radial-gradient(currentColor 1.2px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(120deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(120deg, #000, transparent 60%);
}
.sec-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.sec-card-head .sec-emoji {
  width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm); transition: transform .5s var(--spring);
}
.sec-card:hover .sec-emoji { transform: rotate(-10deg) scale(1.08); }
.sec-card-head h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); font-weight: 900; line-height: 1.1; flex: 1; }
.sec-card-head .count { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: #14101F; }
.sec-card .icon-btn { width: 40px; height: 40px; background: rgba(255, 255, 255, .92); color: #14101F; opacity: 1; font-size: 20px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tile {
  background: var(--surface); color: var(--fg); border-radius: 28px; padding: 20px; min-height: 160px; display: flex; flex-direction: column;
  justify-content: space-between; gap: 14px; cursor: pointer; box-shadow: var(--shadow-sm); border: 0; text-align: start;
}
.tile:hover { box-shadow: var(--shadow-lg); }
.t-emoji {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; background: var(--surface-2);
  transition: transform .55s var(--spring);
}
.tile:hover .t-emoji { transform: translateY(-4px) rotate(-10deg) scale(1.08); }
.t-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.t-name { font-weight: 900; font-size: 19px; line-height: 1.2; }
.t-go {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--black); color: var(--on-black); flex: none;
  transform: scale(.6) rotate(45deg); opacity: 0; transition: transform .5s var(--spring), opacity .3s;
}
.tile:hover .t-go { transform: none; opacity: 1; }
.tile.add {
  background: rgba(255, 255, 255, .14); color: inherit; border: 2px dashed currentColor; box-shadow: none; align-items: center; justify-content: center;
  font-weight: 700; opacity: .85; transition: opacity .3s, background .3s, transform .5s var(--spring);
}
.tile.add:hover { opacity: 1; background: rgba(255, 255, 255, .24); transform: translateY(-4px); }
.tile.add .plus { font-size: 40px; font-weight: 300; }
.tile.add:hover .plus { transform: rotate(180deg) scale(1.2); }

.new-section-big {
  border-radius: 36px; border: 2.5px dashed var(--line); background: transparent; padding: 34px; display: flex; align-items: center; justify-content: center;
  gap: 14px; font-size: 22px; font-weight: 900; color: var(--muted); cursor: pointer; transition: all .45s var(--spring);
}
.new-section-big:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-3px); background: color-mix(in srgb, var(--purple) 5%, transparent); }
.new-section-big:hover .plus { transform: rotate(90deg) scale(1.2); }
.new-section-big .plus { font-size: 34px; }

.empty-home { background: var(--surface); border-radius: 36px; padding: 40px 24px 30px; text-align: center; box-shadow: var(--shadow-sm); position: relative; min-height: 300px; }
.empty-home h2 { font-size: 34px; font-weight: 900; margin: 10px 0 6px; }
.empty-home p { color: var(--muted); margin: 0 0 20px; }

/* ================= عرض داشبورد ================= */
.viewer { display: flex; flex-direction: column; height: 100%; gap: 12px; }
.viewer-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-sm);
  animation: fx-rise .6s var(--out) backwards;
}
.viewer-bar .round-btn { width: 40px; height: 40px; }
.crumbs { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 15px; min-width: 0; font-weight: 500; }
.crumbs .sep { color: var(--muted); }
.crumbs b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 900; font-size: 17px; }
.frame-wrap { flex: 1; border-radius: 32px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.frame-wrap.enter { animation: frame-in .7s var(--out) both; }
@keyframes frame-in { from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(6px); } }
#frame { width: 100%; height: 100%; border: 0; display: block; }

/* ================= نوافذ ================= */
#layer:empty { display: none; }
.modal-wrap {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(14, 10, 30, .38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .3s ease both;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(460px, 100%); border-radius: 32px; padding: 28px; background: var(--surface); box-shadow: var(--shadow-lg); position: relative;
  animation: modal-in .55s var(--spring) both;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(.9); } }
.modal h3 { margin: 0 0 6px; font-size: 28px; font-weight: 900; }
.modal p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.modal .mascot-peek { position: absolute; top: -70px; inset-inline-start: 26px; width: 80px; pointer-events: none; animation: peek .7s var(--spring) .15s both; }
@keyframes peek { from { transform: translateY(40px); opacity: 0; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field > label { font-size: 13px; color: var(--muted); font-weight: 700; }
.field input, .field select {
  width: 100%; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 18px; padding: 13px 16px; font-size: 16px; position: relative;
  transition: border-color .3s, background .3s;
}
.field input:focus, .field select:focus { outline: none; border-color: transparent; background: var(--surface); }
.field .err { color: var(--danger); font-size: 13px; min-height: 18px; font-weight: 500; }
.row { display: flex; gap: 12px; }
.row .field:first-child { width: 84px; flex: none; }
.row .field:first-child input { text-align: center; font-size: 26px; padding: 8px; }
.row .field:last-child { flex: 1; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; }
.picks button {
  border: 0; background: var(--surface-2); font-size: 21px; width: 40px; height: 40px; border-radius: 14px; cursor: pointer;
  transition: transform .4s var(--spring), background .2s;
}
.picks button:hover { transform: translateY(-3px) scale(1.15) rotate(-6deg); background: var(--hover); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.swatches button {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); position: relative;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px transparent; transition: transform .4s var(--spring), box-shadow .3s;
}
.swatches button:hover { transform: scale(1.15); }
.swatches button.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--c); transform: scale(1.08); }
.swatches button.on::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.modal-actions { display: flex; gap: 8px; margin-top: 8px; }

.menu {
  position: fixed; z-index: 60; min-width: 220px; border-radius: 22px; padding: 7px; background: var(--surface); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); animation: menu-in .4s var(--spring) both; transform-origin: top;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.9); } }
.menu button {
  display: flex; width: 100%; gap: 10px; padding: 10px 14px; border: 0; background: transparent; border-radius: 14px; cursor: pointer; text-align: start;
  font-weight: 500; animation: fx-rise .4s var(--out) backwards; animation-delay: calc(var(--i) * 35ms); transition: background .2s, transform .3s var(--spring);
}
.menu button:hover { background: var(--hover); transform: translateX(-4px); }
.menu button.danger { color: var(--danger); }

.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 70; pointer-events: none; }
.toast {
  padding: 12px 22px; border-radius: 99px; background: #14101F; color: #fff; box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 700;
  animation: toast-in .55s var(--spring) both;
}
:root[data-theme="dark"] .toast { background: #F4F1FF; color: #14101F; }
.toast.out { animation: toast-out .35s ease forwards; }
.toast.warn { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(30px) scale(.8); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(16px) scale(.9); } }

/* ================= شاشة صغيرة ================= */
@media (max-width: 1100px) {
  .widgets { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 34px 26px 150px; }
  .quote-card { transform: none; }
  .pomo-body { flex-direction: column; align-items: stretch; }
  .pomo-ring { margin: 0 auto; }
}
@media (max-width: 820px) {
  .shell { padding: 10px; }
  .sidebar { position: fixed; inset-block: 10px; inset-inline-start: 10px; z-index: 40; transform: translateX(120%); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-collapsed .sidebar { margin: 0; }
  .shell.nav-open .scrim { position: fixed; inset: 0; background: rgba(14, 10, 30, .35); backdrop-filter: blur(4px); z-index: 30; }
  .nav-toggle { display: inline-grid; position: absolute; top: 14px; inset-inline-start: 14px; z-index: 6; background: rgba(255, 255, 255, .9); color: #14101F; }
  .nav-toggle-v { display: inline-grid; }
  .hero-title { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========== لوحة السويتشات بالقائمة الجانبية =========== */
.sb-foot .theme-row { display: none; }
.neon-panel {
  display: flex; justify-content: space-around; align-items: flex-start; gap: 8px; padding: 16px 8px 14px; border-radius: 24px;
  background: radial-gradient(120% 90% at 50% 110%, #231c3d, #0E0B18 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.neon-item { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.neon-item small { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* =========== الهيرو: المقولة + الودجتس جوا المربع البنفسجي =========== */
.hero { align-items: start; }
.hero .widgets { grid-column: 1 / -1; margin-top: 6px; position: relative; z-index: 2; }
.hero .w-card.day { background: rgba(255, 255, 255, .97); color: #14101F; }
:root[data-theme="dark"] .hero .w-card.day { background: #161325; color: #F4F1FF; }
.hero .w-card { box-shadow: 0 24px 50px -24px rgba(20, 16, 31, .6); }

/* =========== زر Top 3 =========== */
.top3-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 8px 7px 18px; border-radius: 99px; background: var(--lime); color: #14101F;
  box-shadow: 0 12px 28px -10px rgba(180, 255, 92, .85); transition: transform .45s var(--spring), box-shadow .3s; position: relative;
}
[dir="rtl"] .top3-btn { padding: 7px 18px 7px 8px; }
.top3-btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 18px 34px -12px rgba(180, 255, 92, .95); }
.t3-ic { width: 38px; height: 38px; border-radius: 50%; background: #14101F; display: grid; place-items: center; font-size: 18px; transition: transform .5s var(--spring); }
.top3-btn:hover .t3-ic { transform: rotate(-14deg) scale(1.08); }
.t3-txt { display: flex; flex-direction: column; line-height: 1.1; }
.t3-txt b { font-size: 18px; font-weight: 900; direction: ltr; }
.t3-txt small { font-size: 12px; font-weight: 700; opacity: .75; }
.t3-ring { width: 34px; height: 34px; }
.t3-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.t3-ring circle { fill: none; stroke-width: 4; stroke: rgba(20, 16, 31, .15); }
.t3-ring .t3-prog { stroke: #14101F; stroke-linecap: round; transition: stroke-dashoffset 1s var(--out); }

/* =========== الإنجليزي (من اليسار لليمين) =========== */
[dir="ltr"] .arr, [dir="ltr"] .t-go { transform: scaleX(-1); }
[dir="ltr"] .btn:hover .arr { transform: scaleX(-1) translateX(-6px); }
[dir="ltr"] .tile:hover .t-go { transform: scaleX(-1); }
[dir="ltr"] .nav-home:hover, [dir="ltr"] .tree a:hover { transform: translateX(3px); }
[dir="ltr"] .menu button:hover { transform: translateX(4px); }
[dir="ltr"] .quote-card { transform: rotate(1.5deg); }
[dir="ltr"] .quote-card:hover { transform: translateY(-4px); }
[dir="ltr"] .hero-title { letter-spacing: -1.5px; }
@media (max-width: 820px) { [dir="ltr"] .sidebar { transform: translateX(-120%); } [dir="ltr"] .shell.nav-open .sidebar { transform: none; } }

/* =========== شريط العوالم (زي Vector / Pixel / Layout / Canva AI) =========== */
.main { gap: 12px; }
.main > .home, .main > .tab-view, .main > .viewer { height: auto; flex: 1; min-height: 0; }
.worlds-bar {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 26px; background: #14101F;
  box-shadow: 0 14px 34px -16px rgba(20, 16, 31, .7); animation: fx-rise .7s var(--out) backwards; z-index: 6;
}
:root[data-theme="dark"] .worlds-bar { background: #1D1931; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.wb-home { width: 50px; height: 50px; border-radius: 18px; display: grid; place-items: center; flex: none; transition: background .3s, transform .45s var(--spring); }
.wb-home:hover { background: rgba(255, 255, 255, .08); transform: rotate(-8deg); }
.wb-mark { width: 30px; height: 30px; border-radius: 10px; background: var(--purple); display: grid; place-items: center; transition: transform .5s var(--spring), box-shadow .4s; }
.wb-mark span { width: 18px; height: 18px; background: var(--lime);
  clip-path: polygon(0 100%, 0 30%, 18% 30%, 18% 0, 38% 0, 38% 18%, 46% 18%, 46% 0, 54% 0, 54% 18%, 62% 18%, 62% 0, 82% 0, 82% 30%, 100% 30%, 100% 100%); }
.wb-home.on .wb-mark { box-shadow: 0 0 0 3px rgba(180, 255, 92, .35), 0 0 18px rgba(91, 69, 245, .9); transform: scale(1.08); }
.wb-pills { position: relative; flex: 1; display: flex; gap: 4px; padding: 5px; border-radius: 20px; background: rgba(255, 255, 255, .06); overflow-x: auto; scrollbar-width: none; }
.wb-pills::-webkit-scrollbar { display: none; }
.wb-indicator { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 16px; opacity: 0; z-index: 0;
  transition: transform .55s var(--spring), width .55s var(--spring), background .4s, opacity .3s; box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .5); }
.wb-pill {
  position: relative; z-index: 1; flex: 1; min-width: max-content; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px;
  border-radius: 16px; color: rgba(255, 255, 255, .72); font-weight: 700; font-size: 17px; white-space: nowrap; transition: color .35s;
}
.wb-pill i { font-style: normal; font-size: 20px; transition: transform .5s var(--spring); }
.wb-pill:hover { color: #fff; }
.wb-pill:hover i { transform: scale(1.2) rotate(-10deg); }
.wb-pill.on { color: #14101F; }
.wb-pill.on[data-tab-link="work"] { color: #fff; }
.wb-pill.on i { transform: scale(1.12); }

/* =========== صفحة العالم =========== */
.tab-view { overflow-y: auto; border-radius: 32px; padding-bottom: 80px; }
.tab-view::-webkit-scrollbar { width: 0; }
.tab-hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; padding: 34px 38px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--tc); color: var(--tink); box-shadow: 0 28px 60px -24px color-mix(in srgb, var(--tc) 85%, transparent);
}
.th-deco { position: absolute; inset: 0; z-index: -1; }
.th-deco .b1 { background: rgba(255, 255, 255, .5); top: -160px; inset-inline-end: -60px; opacity: .45; }
.th-deco .b2 { background: rgba(20, 16, 31, .35); bottom: -180px; inset-inline-start: 20%; opacity: .25; }
.th-icon { width: 84px; height: 84px; border-radius: 28px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; font-size: 44px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); animation: fx-pop .7s var(--spring) .1s backwards; }
.th-text { flex: 1; min-width: 220px; }
.th-text h1 { margin: 0; font-size: clamp(40px, 5vw, 72px); font-weight: 900; line-height: 1; }
.th-text p { margin: 8px 0 0; font-size: 16.5px; font-weight: 500; opacity: .8; }
.th-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-hero .btn-black { box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6); }
.tab-foot { display: flex; flex-direction: column; gap: 14px; }
.tab-empty { background: var(--surface); border-radius: 36px; padding: 40px 30px; text-align: center; box-shadow: var(--shadow-sm); margin-top: 18px; }
.tab-empty h2 { font-size: 32px; font-weight: 900; margin: 0 0 6px; }
.tab-empty p { color: var(--muted); margin: 0 0 20px; }
.ideas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; }
.tab-foot .ideas { justify-content: flex-start; margin: 0; }
.idea {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 99px; border: 2px dashed var(--line); background: var(--surface);
  font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .45s var(--spring), border-color .3s, box-shadow .3s;
}
.idea i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 17px; }
.idea .plus { font-size: 18px; color: var(--muted); }
.idea:hover { transform: translateY(-3px) rotate(-1deg); border-style: solid; border-color: var(--purple); box-shadow: var(--shadow); }
.idea:hover .plus { transform: rotate(90deg); color: var(--purple); }

/* =========== عوالمك بالرئيسية =========== */
.worlds-title { font-size: 28px; font-weight: 900; margin: 26px 6px 12px; }
.worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.world {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: 24px; min-height: 230px; display: flex; flex-direction: column; gap: 6px;
  background: var(--tc); color: var(--tink); box-shadow: 0 22px 46px -22px color-mix(in srgb, var(--tc) 90%, transparent);
}
.world::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .28); top: -90px; inset-inline-end: -70px; z-index: -1; transition: transform .7s var(--out); }
.world:hover::before { transform: scale(1.3); }
.w-icon { width: 60px; height: 60px; border-radius: 20px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; font-size: 30px; margin-bottom: 8px; transition: transform .55s var(--spring); }
.world:hover .w-icon { transform: rotate(-12deg) scale(1.08); }
.w-name { font-size: 32px; font-weight: 900; line-height: 1; }
.w-sub { font-size: 13.5px; font-weight: 500; opacity: .8; }
.w-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.w-list i { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .85); color: #14101F; }
.w-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; padding-top: 10px; }
.w-go { width: 36px; height: 36px; border-radius: 50%; background: #14101F; color: #fff; display: grid; place-items: center; transition: transform .5s var(--spring); }
.world:hover .w-go { transform: translateX(-4px) scale(1.1); }
[dir="ltr"] .w-go { transform: scaleX(-1); }
[dir="ltr"] .world:hover .w-go { transform: scaleX(-1) translateX(-4px) scale(1.1); }

/* القائمة الجانبية: عناوين العوالم */
.tree-tab { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 900; padding: 12px 12px 4px; color: var(--fg); opacity: .85; }
.tree-tab::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: var(--tc); opacity: .55; }

/* =========== مساعدي =========== */
.asst-fab {
  position: fixed; bottom: 22px; inset-inline-end: 24px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: transparent; color: #0E3B1F;
  display: grid; place-items: center; transition: transform .5s var(--spring); animation: fx-pop .7s var(--spring) .8s backwards, af-live 2.6s ease-in-out 1.5s infinite;
}
/* نبض أخضر خفيف ورا الزر: «حيّ» */
@keyframes af-live {
  0%, 100% { box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .35), 0 0 10px 0 rgba(124, 213, 63, .35); }
  50% { box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .35), 0 0 26px 7px rgba(124, 213, 63, .55); }
}
/* حلقة كروم رفيعة وخفيفة بتلف ببطء */
.asst-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 0; opacity: .75;
  background: conic-gradient(from 0deg, #fff 0deg, #e4e7ec 18deg, #6a6f78 52deg, #2a2c33 78deg, #8a909a 108deg, #f4f6f8 138deg, #cfe6ff 150deg, #fff 160deg, #ffe2b5 172deg, #a9aeb7 200deg, #3a3c43 236deg, #50535b 262deg, #d6dae0 292deg, #fff 316deg, #ffd9a6 330deg, #c4defe 344deg, #fff 360deg);
  animation: af-chrome 7s linear infinite; }
/* القرص الزجاجي */
.asst-fab::before { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; z-index: 1;
  background: linear-gradient(150deg, rgba(255, 255, 255, .6), rgba(214, 255, 196, .3) 55%, rgba(124, 213, 63, .28));
  backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .9), inset 0 -6px 12px rgba(124, 213, 63, .25); }
:root[data-theme="dark"] .asst-fab { color: #D8FFC4; }
:root[data-theme="dark"] .asst-fab::before { background: linear-gradient(150deg, rgba(255, 255, 255, .22), rgba(124, 213, 63, .16) 55%, rgba(20, 40, 20, .35)); box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .35), inset 0 -6px 12px rgba(124, 213, 63, .2); }
.asst-fab .af-ic, .asst-fab b { z-index: 2; }
@keyframes af-chrome { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .asst-fab::after { animation: none; } .asst-fab { animation: none; box-shadow: 0 0 18px 3px rgba(124, 213, 63, .45); } }
.asst-fab .af-ic { position: relative; width: 26px; height: 26px; display: grid; place-items: center; }
.asst-fab .af-ic svg { width: 100%; height: 100%; }
.asst-fab:hover { transform: scale(1.1) rotate(-10deg); }
.asst-fab b { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--lime); color: #14101F; font-size: 12px; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.asst-scrim { position: fixed; inset: 0; z-index: 46; background: rgba(14, 10, 30, .3); backdrop-filter: blur(4px); animation: fade .3s ease both; }
.asst {
  position: fixed; top: 14px; bottom: 14px; inset-inline-end: 14px; z-index: 47; width: min(420px, calc(100vw - 28px)); border-radius: 32px; background: var(--surface);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; padding: 20px; gap: 14px;
  transform: translateX(-115%); opacity: 0; pointer-events: none; transition: transform .6s var(--spring), opacity .3s;
}
[dir="ltr"] .asst { transform: translateX(115%); }
.asst.open { transform: none; opacity: 1; pointer-events: auto; }
.asst-head { display: flex; align-items: center; justify-content: space-between; }
.asst-head h2 { margin: 0; font-size: 26px; font-weight: 900; }
.asst-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: var(--surface-2); }
.asst-tabs button { flex: 1; border: 0; background: transparent; padding: 9px 8px; border-radius: 99px; font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--muted); transition: background .3s, color .3s; }
.asst-tabs button.on { background: var(--black); color: var(--on-black); }
.asst-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.a-score { display: flex; align-items: baseline; gap: 10px; padding: 16px 18px; border-radius: 22px; background: var(--lime); color: #14101F; }
.a-score b { font-size: 40px; font-weight: 900; line-height: 1; direction: ltr; }
.a-score span { font-weight: 700; }
.a-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.a-task { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); animation: fx-rise .45s var(--out) backwards; }
.a-task .a-check { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--cc); display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; flex: none; }
.a-task.done .a-check { background: var(--cc); }
.a-task.done .a-title { text-decoration: line-through; opacity: .55; }
.a-title { flex: 1; font-weight: 500; }
.a-task i { font-style: normal; }
.a-late { font-size: 11px; font-weight: 700; color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); padding: 2px 8px; border-radius: 99px; }
.a-top3 .a-task { background: color-mix(in srgb, var(--cc) 12%, var(--surface-2)); padding: 16px; font-size: 16px; }
.a-open { align-self: flex-start; }
.a-empty { color: var(--muted); text-align: center; padding: 20px 10px; margin: 0; }
.a-hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 0; }
.req-form { display: flex; flex-direction: column; gap: 10px; }
.req-form textarea { width: 100%; resize: vertical; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface-2); padding: 12px 14px; font: inherit; color: inherit; }
.req-form textarea:focus { outline: none; border-color: transparent; background: var(--surface); }
.req-form .btn { align-self: flex-start; }
.reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.reqs li { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 18px; background: var(--surface-2); }
.reqs li span:first-child { flex: 1; }
.reqs li small { color: var(--muted); font-size: 11.5px; }
.reqs li.done span:first-child { text-decoration: line-through; opacity: .5; }
.r-btns { display: flex; }
@media (max-width: 820px) { .wb-pill span { display: none; } .wb-pill { padding: 12px 14px; } .asst-fab { bottom: 16px; } }

/* =========== حلقات اليوم =========== */
.hero .widgets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1250px) { .hero .widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero .widgets .rings { grid-column: 1 / -1; } }
@media (max-width: 900px) { .hero .widgets { grid-template-columns: 1fr; } }
.pomo-body { flex-wrap: wrap; justify-content: center; }
.rings { background: #14101F; color: #fff; }
:root[data-theme="dark"] .hero .rings { background: #1D1931; }
.rg-log { border: 0; border-radius: 99px; padding: 7px 14px; font-weight: 700; font-size: 13px; background: var(--lime); color: #14101F; cursor: pointer; transition: transform .4s var(--spring); }
.rg-log:hover { transform: translateY(-2px); }
.rg-body { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.rg-dial { position: relative; width: 150px; height: 150px; flex: none; cursor: pointer; transition: transform .5s var(--spring); }
.rg-dial:hover { transform: scale(1.04) rotate(-3deg); }
.rg-svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.rg-svg circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.rg-track { opacity: .16; }
.rg-prog { transition: stroke-dashoffset 1.2s var(--out); filter: drop-shadow(0 0 5px currentColor); }
.rg-center { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; font-weight: 900; }
.rg-legend { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 6px; }
.rg-item { display: flex; align-items: center; gap: 8px; border: 0; background: rgba(255, 255, 255, .06); color: #fff; padding: 7px 10px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 13.5px; transition: background .3s, transform .4s var(--spring); }
.rg-item:hover { background: rgba(255, 255, 255, .12); transform: translateX(-3px); }
.rg-item i { width: 10px; height: 10px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
.rg-item span { flex: 1; text-align: start; }
.rg-item b { font-weight: 900; color: var(--rc); }
.rg-wake { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .7); font-weight: 500; }
.rg-link { border: 0; background: none; color: var(--lime); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* لوحة التسجيل */
.rg-sheet-wrap { position: fixed; inset: 0; z-index: 55; background: rgba(14, 10, 30, .4); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 16px; animation: fade .3s ease both; }
.rg-sheet-wrap.out { animation: fade .3s ease reverse both; }
.rg-sheet { width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: 32px; padding: 24px; box-shadow: var(--shadow-lg); animation: modal-in .55s var(--spring) both; }
.rg-sheet header { display: flex; align-items: center; justify-content: space-between; }
.rg-sheet h3 { margin: 0; font-size: 28px; font-weight: 900; }
.rg-date { margin: 2px 0 16px; color: var(--muted); font-weight: 500; }
.rg-groups { display: flex; flex-direction: column; gap: 14px; }
.rg-group { border-radius: 24px; padding: 16px; background: color-mix(in srgb, var(--rc) 12%, var(--surface-2)); border: 2px solid transparent; transition: border-color .4s; }
.rg-group.focus { border-color: var(--rc); }
.rg-group h4 { margin: 0 0 12px; display: flex; justify-content: space-between; font-size: 18px; font-weight: 900; }
.rg-group h4 b { color: color-mix(in srgb, var(--rc) 75%, #14101F); }
:root[data-theme="dark"] .rg-group h4 b { color: var(--rc); }
.rg-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.rg-check { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 14px; text-align: start; transition: transform .4s var(--spring), background .25s, border-color .25s; }
.rg-check:hover:not(:disabled) { transform: translateY(-2px); }
.rg-check i { font-style: normal; font-size: 18px; }
.rg-check span { flex: 1; }
.rg-check em { font-style: normal; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.rg-check.on { background: var(--rc); border-color: var(--rc); color: #14101F; }
.rg-check.on em { background: #14101F; border-color: #14101F; color: var(--rc); animation: fx-pop .4s var(--spring); }
.rg-check.auto { cursor: default; opacity: .9; }
.rg-auto { margin: 0 0 10px; font-weight: 500; }

/* زر وضع الفجر */
.dawn-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 99px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; color: #14101F;
  background: linear-gradient(135deg, #FFD84A, #FF8A1F); box-shadow: 0 10px 24px -10px rgba(255, 138, 31, .8); transition: transform .45s var(--spring); }
.dawn-btn:hover { transform: translateY(-2px) rotate(-2deg); }

/* =========== شاشة الفجر =========== */
.dawn { position: fixed; inset: 0; z-index: 90; overflow: hidden; color: #fff; opacity: 0; transition: opacity .6s ease; }
.dawn.in { opacity: 1; }
.dawn.out { opacity: 0; }
.dawn-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #05041A 0%, #160F3D 40%, #3B1E5E 68%, #8A3B5E 86%, #E0744A 100%); transition: filter 2.5s ease; }
.dawn.awake .dawn-sky { filter: brightness(1.35) saturate(1.15) hue-rotate(-8deg); }
.dawn-sky .star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: twinkle 2.6s ease-in-out infinite; }
.dawn.awake .star { opacity: .25; transition: opacity 2s; }
.dawn-sky .sun { position: absolute; left: 50%; bottom: -170px; width: 300px; height: 300px; margin-left: -150px; border-radius: 50%;
  background: radial-gradient(circle, #FFF3B0 0%, #FFD84A 35%, #FF8A1F 70%, transparent 72%); box-shadow: 0 0 120px 60px rgba(255, 160, 60, .45); transition: transform 3s cubic-bezier(.2, .8, .2, 1); }
.dawn.awake .sun { transform: translateY(-150px); }
.hill { position: absolute; bottom: -40px; height: 220px; border-radius: 50% 50% 0 0; }
.hill.h1 { left: -10%; width: 70%; background: #1A0F2E; }
.hill.h2 { right: -15%; width: 75%; height: 180px; background: #22133A; }
.dawn-x { position: absolute; top: 20px; inset-inline-end: 20px; z-index: 3; background: rgba(255, 255, 255, .12); color: #fff; }
.dawn-main { position: relative; z-index: 2; height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 50px 20px 80px; text-align: center; gap: 6px; }
.dawn-chip { margin: 0; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .12); font-weight: 700; font-size: 13px; letter-spacing: .5px; animation: fx-rise .8s var(--out) backwards; }
.dawn-clock { font-size: clamp(72px, 13vw, 150px); font-weight: 900; line-height: 1; letter-spacing: -2px; direction: ltr; text-shadow: 0 0 40px rgba(255, 200, 120, .35); animation: fx-rise .9s var(--out) .1s backwards; }
.dawn-title { margin: 4px 0 6px; font-size: clamp(26px, 4vw, 44px); font-weight: 900; animation: fx-rise .9s var(--out) .2s backwards; }
.dawn-mascot { height: 150px; display: flex; align-items: flex-end; }
.dawn-wake { margin: 6px 0 14px; }
.dw-btn { position: relative; border: 0; border-radius: 99px; padding: 22px 54px; font: inherit; font-size: 26px; font-weight: 900; cursor: pointer; color: #14101F; background: #B4FF5C;
  box-shadow: 0 20px 50px -14px rgba(180, 255, 92, .8); transition: transform .45s var(--spring); }
.dw-btn:hover { transform: scale(1.05); }
.dw-btn:active { transform: scale(.96); }
.dw-ring { position: absolute; inset: -8px; border-radius: 99px; border: 3px solid rgba(180, 255, 92, .6); animation: dw-pulse 1.8s ease-out infinite; }
@keyframes dw-pulse { from { transform: scale(.95); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.dw-sub { margin: 12px 0 0; color: rgba(255, 255, 255, .75); font-weight: 500; }
.dw-done { display: flex; flex-direction: column; align-items: center; gap: 4px; animation: fx-pop .6s var(--spring); }
.dw-done b { font-size: 30px; font-weight: 900; direction: ltr; }
.dw-streak { padding: 6px 14px; border-radius: 99px; background: rgba(255, 138, 31, .25); color: #FFD84A; font-weight: 900; }
.dawn-steps { list-style: none; margin: 0; padding: 0; width: min(440px, 100%); display: flex; flex-direction: column; gap: 8px; }
.ds { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; color: #fff;
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); text-align: start; transition: background .3s, transform .4s var(--spring); animation: fx-rise .6s var(--out) backwards; animation-delay: calc(var(--i) * 90ms + 200ms); }
.ds:hover { background: rgba(255, 255, 255, .18); transform: translateX(-4px); }
.ds em { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; background: rgba(255, 255, 255, .15); flex: none; }
.ds i { font-style: normal; font-size: 20px; }
.ds span { flex: 1; }
.ds.on { background: rgba(180, 255, 92, .22); }
.ds.on em { background: #B4FF5C; color: #14101F; animation: fx-pop .4s var(--spring); }
.ds.on span { text-decoration: line-through; opacity: .75; }
.dawn-go { margin-top: 16px; border: 0; border-radius: 99px; padding: 15px 28px; font: inherit; font-weight: 900; font-size: 17px; cursor: pointer; color: #14101F; background: #fff; transition: transform .45s var(--spring); }
.dawn-go:hover { transform: translateY(-2px); }
.dawn:not(.awake) .dawn-go { display: none; }
[dir="ltr"] .dawn-go .arr { display: inline-block; transform: scaleX(-1); }
[dir="ltr"] .ds:hover, [dir="ltr"] .rg-item:hover { transform: translateX(4px); }

/* =========== أيقونات العوالم (رسم بخط) =========== */
.tab-ico { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -.18em; flex: none; }
.wb-pill i { display: grid; place-items: center; }
.wb-pill i .tab-ico { width: 22px; height: 22px; stroke-width: 2; }
.wb-pill.on i .tab-ico { stroke-width: 2.3; }
.th-icon { color: #14101F; }
.th-icon .tab-ico { width: 46px; height: 46px; stroke-width: 1.7; }
.w-icon { color: #14101F; }
.w-icon .tab-ico { width: 32px; height: 32px; stroke-width: 1.8; }
.tree-tab .tab-ico, .sb-label .tab-ico { width: 15px; height: 15px; stroke-width: 2.2; }
.sb-label { display: flex; align-items: center; gap: 6px; }

/* =========== عالم «عبدالله» =========== */
.tab-hub:empty { display: none; }
.tab-hub { margin-top: 18px; }
.fh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fh-card { background: var(--surface); border-radius: 32px; padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.fh-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 19px; font-weight: 900; }
.fh-city { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; opacity: .8; }
.fh-gear { font-size: 17px; }
.fh-pill { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, #2EC4B6 18%, transparent); color: #0B6E64; }
:root[data-theme="dark"] .fh-pill { color: #7FE6DB; }
.fh-hint { margin: 0; font-size: 12.5px; color: var(--muted); }

/* الصلاة الجاية */
.fh-next { grid-column: 1 / -1; background: radial-gradient(120% 120% at 90% 0%, #1B5C57, #0D2725 60%); color: #fff; position: relative; overflow: hidden; }
.fh-next::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(46, 196, 182, .45), transparent); top: -180px; inset-inline-start: -80px; animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.fh-next .fh-hint { color: rgba(255, 255, 255, .6); }
.fh-next .icon-btn { color: #fff; }
.fh-next-main { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; }
.fh-dial { position: relative; width: 170px; height: 170px; flex: none; }
.fh-dial > svg, .tb-ring > svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fh-dial > svg circle, .tb-ring > svg circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.fh-dial > svg .tr { stroke: rgba(255, 255, 255, .12); }
.fh-dial > svg { overflow: visible; }
.fh-dial > svg .pr { stroke: #2EC4B6; transition: stroke-dashoffset 1s linear, stroke .6s; }
.fh-dial-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.fh-dial-in i { font-style: normal; font-size: 30px; }
.fh-dial-in b { font-size: 24px; font-weight: 900; }
.fh-dial-in small { font-size: 15px; opacity: .75; direction: ltr; font-weight: 700; }
.fh-count { display: flex; flex-direction: column; gap: 2px; }
.fh-count small { font-size: 14px; opacity: .7; font-weight: 500; }
.fh-count b { font-size: clamp(44px, 6vw, 72px); font-weight: 900; line-height: 1; direction: ltr; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.fh-count span { color: #FFD84A; font-weight: 900; min-height: 1.2em; }
.fh-next.soon .fh-dial > svg .pr { stroke: #FFD84A; }
.fh-next.soon .fh-count b { animation: soon-pulse 1.2s ease-in-out infinite; }
@keyframes soon-pulse { 50% { color: #FFD84A; } }
.fh-times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; position: relative; }
.fh-t { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 20px; border: 0; background: rgba(255, 255, 255, .07);
  color: #fff; font: inherit; cursor: pointer; position: relative; transition: background .3s, transform .4s var(--spring); }
.fh-t.sun { cursor: default; opacity: .55; }
button.fh-t:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }
.fh-t i { font-style: normal; font-size: 20px; }
.fh-t span { font-size: 13px; font-weight: 700; opacity: .85; }
.fh-t b { font-size: 18px; font-weight: 900; direction: ltr; }
.fh-times li.next .fh-t { background: #2EC4B6; color: #0B2B28; box-shadow: 0 10px 24px -10px rgba(46, 196, 182, .9); }
.fh-times li.cur:not(.next) .fh-t { outline: 2px solid rgba(46, 196, 182, .7); }
.fh-times li.passed:not(.cur) .fh-t b { opacity: .6; }
.fh-st { position: absolute; top: -6px; inset-inline-end: -4px; min-width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px;
  background: var(--sc); box-shadow: 0 0 0 3px #0D2725; }
.fh-st:empty { display: none; }
.fh-menu { position: fixed; z-index: 70; background: var(--surface); border-radius: 18px; padding: 6px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; min-width: 170px; animation: menu-in .35s var(--spring) both; }
.fh-menu button { border: 0; background: transparent; text-align: start; padding: 10px 12px; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer; color: var(--fg); }
.fh-menu button:hover, .fh-menu button.on { background: var(--hover); }
.fh-menu button.clear { color: var(--danger); font-weight: 500; }

/* القرآن */
.fh-gauge { height: 54px; direction: ltr; }
.fh-kh-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.fh-kh-row b { color: var(--fg); font-size: 16px; }
.fh-wird { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fh-wird small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.fh-wird b { font-size: 40px; font-weight: 900; line-height: 1; }
.fh-wird b em { font-style: normal; font-size: 18px; color: var(--muted); }
.fh-add { display: flex; gap: 6px; flex-wrap: wrap; }
.fh-add button { border: 0; border-radius: 99px; padding: 9px 14px; font: inherit; font-weight: 900; cursor: pointer; background: #2EC4B6; color: #0B2B28; transition: transform .4s var(--spring); }
.fh-add button:hover { transform: translateY(-2px) scale(1.05); }
.fh-add button.minus { background: var(--surface-2); color: var(--muted); }
.fh-bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.fh-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2EC4B6, #B4FF5C); transition: width .8s var(--out); }

/* الأذكار والمسبحة */
.fh-ad-list { display: flex; flex-direction: column; gap: 8px; }
.fh-ad { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; color: var(--fg); transition: transform .4s var(--spring), background .25s; }
.fh-ad:hover { transform: translateY(-2px); }
.fh-ad i { font-style: normal; font-size: 18px; }
.fh-ad span { flex: 1; text-align: start; }
.fh-ad em { font-style: normal; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.fh-ad.on { background: #2EC4B6; border-color: #2EC4B6; color: #0B2B28; }
.fh-ad.on em { background: #0B2B28; color: #2EC4B6; border-color: #0B2B28; }
.fh-tasbih { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 24px; border: 0; cursor: pointer; font: inherit; color: #fff; background: #0D2725; transition: transform .25s var(--spring); user-select: none; }
.fh-tasbih:active { transform: scale(.96); }
.tb-ring { position: relative; width: 74px; height: 74px; flex: none; }
.tb-ring > svg .tr { stroke: rgba(255, 255, 255, .12); }
.tb-ring > svg .pr { stroke: #B4FF5C; transition: stroke-dashoffset .3s var(--out); }
.tb-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 900; }
.tb-txt { display: flex; flex-direction: column; text-align: start; }
.tb-txt b { font-size: 20px; font-weight: 900; }
.tb-txt small { font-size: 12px; opacity: .65; }

/* تحديث هادي: بدون ما الكروت ترجع تدخل */
.tab-hub.quiet .fx-pop, .tab-hub.quiet .fx-rise { animation: none !important; }
.fh-tasbih.done { background: #1E9E8F; }
.tb-ring.pulse { animation: tb-pulse .38s var(--spring); }
@keyframes tb-pulse { 40% { transform: scale(1.14); } }
.tb-ring.pulse > svg .pr { filter: drop-shadow(0 0 8px #B4FF5C); }

/* الأدعية */
.fh-pill-btn { border: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 900; }
.fh-dua-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.fh-dua-list li { display: flex; align-items: center; gap: 4px; }
.fh-dua { flex: 1; min-width: 0; text-align: start; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; cursor: pointer; transition: transform .4s var(--spring); }
.fh-dua span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fh-dua:hover { transform: translateY(-2px); border-color: #2EC4B6; }
.fh-dua-all { align-self: flex-start; }
.fh-field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.fh-field input, .fh-field textarea { font: inherit; font-weight: 500; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); color: inherit; resize: vertical; }
.fh-field textarea { font-family: "Geeza Pro", "Noto Naskh Arabic", var(--acc-font); font-size: 18px; line-height: 1.9; }
.fh-field-n input { width: 90px; }
.fh-del { color: var(--danger); }

/* قارئ الأذكار */
html.ad-lock { overflow: hidden; }
.ad-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(8, 24, 22, .55); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 16px; animation: fade .3s ease both; }
.ad-wrap.out { animation: fade .3s ease reverse both; }
.ad-reader { width: min(760px, 100%); height: min(92vh, 1000px); display: flex; flex-direction: column; background: var(--bg); border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-lg); animation: modal-in .55s var(--spring) both; }
.ad-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: radial-gradient(120% 140% at 90% 0%, #1B5C57, #0D2725 60%); color: #fff; }
.ad-top > div { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 900; }
.ad-top i { font-style: normal; }
.ad-prog { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.ad-prog em { font-style: normal; white-space: nowrap; opacity: .85; }
.ad-bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.ad-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #2EC4B6, #B4FF5C); transition: width .5s var(--out); }
.ad-x { color: #fff; font-size: 18px; }
.ad-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; overscroll-behavior: contain; position: relative; }
.ad-item { background: var(--surface); border-radius: 28px; padding: 20px 22px 16px; box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent; transition: opacity .4s, border-color .3s, background .3s; user-select: text; }
.ad-item h4 { margin: 0; font-size: 13px; font-weight: 900; color: #1E9E8F; }
.ad-text { margin: 0; font-family: "Geeza Pro", "Noto Naskh Arabic", var(--acc-font); font-size: 23px; line-height: 2.05; white-space: pre-line; color: var(--fg); }
.ad-count { align-self: center; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 99px; padding: 8px 8px 8px 18px; background: #0D2725; color: #fff; font: inherit; cursor: pointer; }
.ad-count b { min-width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #2EC4B6; color: #0B2B28; font-size: 18px; font-weight: 900; }
.ad-count small { font-size: 13px; font-weight: 700; opacity: .85; }
.ad-count.pulse b { animation: tb-pulse .38s var(--spring); }
.ad-item.done { opacity: .55; border-color: #2EC4B6; background: color-mix(in srgb, #2EC4B6 10%, var(--surface)); }
.ad-item.done .ad-count { background: #2EC4B6; color: #0B2B28; }
.ad-item.done .ad-count b { background: #0B2B28; color: #2EC4B6; }
.ad-end { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 0 30px; text-align: center; font-weight: 700; }
.ad-end p { margin: 0; color: #1E9E8F; }
.ad-finish { font-size: 18px; padding: 16px 34px; }
@media (max-width: 640px) { .ad-wrap { padding: 0; } .ad-reader { height: 100vh; border-radius: 0; } .ad-text { font-size: 21px; } .ad-prog em { display: none; } }


/* أيقونات عالم عبدالله */
.fh-head > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.fh-head > span:first-child .ai { color: #1E9E8F; font-size: 27px; }
:root[data-theme="dark"] .fh-head > span:first-child .ai { color: #5FD9CC; }
.fh-next .fh-head > span:first-child .ai { color: #7FE6DB; }
.fh-city .ai { font-size: 18px; }
.fh-gear .ai { font-size: 19px; }
.fh-dial-in i { display: grid; place-items: center; color: #7FE6DB; }
.fh-dial-in i .ai { font-size: 42px; stroke-width: 1.6; }
.fh-t i { display: grid; place-items: center; height: 30px; }
.fh-t i .ai { font-size: 28px; }
.fh-times li.next .fh-t i .ai { color: #0B2B28; }
.fh-st { color: #0B2B28; }
.fh-st .ai { font-size: 15px; stroke-width: 2.4; }
.fh-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.fh-legend span { display: inline-flex; align-items: center; gap: 5px; }
.fh-legend .ai { font-size: 17px; stroke-width: 2.2; }
.fh-menu button { display: flex; align-items: center; gap: 8px; }
.fh-menu i { display: grid; font-size: 18px; }
.fh-ad i { display: grid; color: #1E9E8F; }
.fh-ad i .ai { font-size: 26px; }
.fh-ad.on i { color: #0B2B28; }
.fh-ad em .ai { font-size: 14px; stroke-width: 2.6; }
.fh-pill-btn { display: inline-flex; align-items: center; gap: 4px; }
.fh-hint-ic { display: flex; align-items: flex-start; gap: 7px; }
.fh-hint-ic .ai { font-size: 16px; margin-top: 1px; }
.fh-dua-list .icon-btn .ai { font-size: 17px; }
.tb-ring b .ai { font-size: 30px; stroke-width: 2.4; color: #B4FF5C; }
.ad-top i { display: grid; }
.ad-top i .ai { font-size: 30px; color: #7FE6DB; }
.ad-x .ai { font-size: 20px; }
.ad-count b .ai { font-size: 22px; stroke-width: 2.6; }
.ad-end p { display: inline-flex; align-items: center; gap: 6px; }
.fh-dlg h3 { display: flex; align-items: center; gap: 10px; }
.fh-dlg h3 .ai { color: #1E9E8F; font-size: 26px; }
.fh-offsets .ai, .fh-row > span .ai { color: #1E9E8F; font-size: 17px; }
.fh-del, [data-notify] { display: inline-flex; align-items: center; gap: 6px; }
#prayerChip i .ai { font-size: 18px; }
.stat-chip i .ai { font-size: 20px; }
.idea i .ai { font-size: 21px; }

/* الإعدادات */
.fh-dlg .fh-offsets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.fh-offsets label, .fh-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.fh-offsets label span { flex: 1; }
.fh-offsets small { color: var(--muted); font-weight: 500; direction: ltr; }
.fh-dlg input[type="number"], .fh-dlg input[type="date"], .fh-dlg select { width: 74px; font: inherit; font-weight: 700; padding: 6px 8px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: inherit; }
.fh-dlg input[type="date"] { width: auto; }
.fh-row span { flex: 1; }
.fh-dlg em { font-style: normal; color: var(--muted); font-size: 12.5px; }

/* شريحة الصلاة بالرئيسية */
.prayer-chip { color: #14101F; }
.prayer-chip i { background: #2EC4B6 !important; }
.prayer-chip b { font-size: 15px !important; }
.prayer-chip span { direction: ltr; }

@media (min-width: 1101px) { .fh-quran, .fh-adhkar { grid-row: span 2; } .fh-duas, .fh-umrah { grid-column: 3; } }
@media (max-width: 1100px) { .fh-grid { grid-template-columns: 1fr 1fr; } .fh-times { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .fh-grid { grid-template-columns: 1fr; } }

/* أيقونات الواجهة العامة (بدل الإيموجي) */
.w-title, .ai-chip { display: inline-flex; align-items: center; gap: 8px; }
.w-title > i { display: grid; color: var(--purple, #5B45F5); font-size: 22px; }
:root[data-theme="dark"] .w-title > i { color: var(--lime); }
.ai-chip > i { display: grid; font-size: 1.15em; }
.nh-ic .ai { font-size: 17px; }
.nz-ic { display: grid; place-items: center; } .nz-ic .ai { font-size: 14px; }
.round-btn .ai { font-size: 18px; }
.t3-ic { color: var(--lime); } .t3-ic .ai { font-size: 20px; }
.dawn-btn > span:first-child { display: grid; font-size: 20px; }
.q-next { display: inline-grid; place-items: center; }
.pomo-go { display: inline-flex; align-items: center; gap: 8px; }
#pomoGoIc { display: grid; font-size: 15px; }
.pomo-mini i { display: inline-grid; vertical-align: -3px; font-size: 15px; }
.sec-emoji .ai, .t-emoji .ai { stroke-width: 1.7; }
.sym { display: inline-grid; place-items: center; vertical-align: -.15em; font-style: normal; }
.tree .ic .ai { font-size: 16px; }
.sym-preview { width: 54px; height: 54px; border-radius: 18px; background: var(--surface-2); display: grid; place-items: center; font-size: 28px; color: var(--purple, #5B45F5); }
.picks button .ai { font-size: 22px; }
.picks button.on { background: #14101F; color: var(--lime); }
.a-task i { display: grid; color: var(--cc); font-size: 18px; }
.a-check .ai { font-size: 14px; stroke-width: 3; }
.r-btns .ai { font-size: 17px; }
.ds i { display: grid; } .ds i .ai { font-size: 22px; }
.ds em .ai { font-size: 16px; stroke-width: 3; }
.dawn-chip, .dw-done b, .dw-streak { display: inline-flex; align-items: center; gap: 6px; }
.dw-sub { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.rg-sheet h4 > span, .rings-row span { display: inline-flex; align-items: center; gap: 6px; }
.rg-sheet h4 > span .ai { font-size: 22px; }
.rg-item span { display: inline-flex; align-items: center; gap: 6px; } .rg-item span .ai { color: var(--rc); font-size: 17px; }
.picks button { color: var(--fg); }

/* =========== عالم «شخصي» (app/life.js) =========== */
.lf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lf-grid .fh-head > span:first-child .ai { color: #5BA81E; }
:root[data-theme="dark"] .lf-grid .fh-head > span:first-child .ai { color: var(--lime); }
.lf-wake { grid-column: 1 / -1; background: radial-gradient(120% 140% at 85% 0%, #3B2F8F, #14101F 65%); color: #fff; position: relative; overflow: hidden; }
.lf-wake::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(180, 255, 92, .28), transparent); top: -170px; inset-inline-start: -60px; animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.lf-wake .fh-head > span:first-child .ai, .lf-wake .icon-btn { color: var(--lime); }
.lf-wake-main { display: grid; grid-template-columns: auto auto 1fr; gap: 28px; align-items: center; position: relative; }
.lf-now small, .lf-streak small { display: block; font-size: 13px; opacity: .7; font-weight: 500; }
.lf-now b { display: block; font-size: clamp(44px, 6vw, 68px); font-weight: 900; line-height: 1; direction: ltr; text-align: start; }
.lf-now em { font-style: normal; font-weight: 900; font-size: 13px; padding: 4px 12px; border-radius: 99px; display: inline-block; margin-top: 8px; }
.lf-now em.ok { background: var(--lime); color: #14101F; } .lf-now em.late { background: #FF8A1F; color: #14101F; }
.lf-btn-lime { margin-top: 8px; background: var(--lime); color: #14101F; display: inline-flex; align-items: center; gap: 8px; font-size: 17px; }
.lf-btn-lime .ai { font-size: 20px; }
.lf-streak { display: grid; justify-items: center; text-align: center; padding: 14px 20px; border-radius: 24px; background: rgba(255, 255, 255, .08); }
.lf-streak .ai { font-size: 30px; color: #FF8A1F; }
.lf-streak b { font-size: 40px; font-weight: 900; line-height: 1; }
.lf-chart { min-width: 0; }
.lf-bars { height: 96px; display: flex; align-items: flex-end; gap: 6px; }
.lf-bars i { flex: 1; height: calc(var(--h) * 100%); min-height: 6px; border-radius: 8px 8px 4px 4px; background: rgba(255, 255, 255, .12); transform-origin: bottom; animation: lf-grow .8s var(--spring) backwards; }
.lf-bars i:nth-child(n) { animation-delay: calc(var(--d, 0) * 1ms); }
.lf-bars i.ok { background: linear-gradient(180deg, var(--lime), #5BA81E); box-shadow: 0 0 12px rgba(180, 255, 92, .35); }
.lf-bars i.late { background: linear-gradient(180deg, #FFB13D, #FF8A1F); }
.lf-bars i.none { height: 6px; }
.lf-bars i.today { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.tab-hub.quiet .lf-bars i { animation: none; }
@keyframes lf-grow { from { transform: scaleY(0); } }
.lf-chart-foot { display: flex; justify-content: space-between; font-size: 12px; opacity: .6; margin-top: 8px; font-weight: 700; }
.lf-bed { position: relative; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; opacity: .9; }
.lf-bed .ai { color: var(--lime); font-size: 18px; }
.lf-bed b.soon { color: #FFD84A; }

.lf-sub { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lf-good { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: #14101F; display: grid; place-items: center; font-size: 13px; }
.lf-good .ai { stroke-width: 3; }
.lf-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.lf-week span { display: grid; justify-items: center; gap: 4px; }
.lf-week i { width: 100%; aspect-ratio: 1; max-width: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; color: #14101F; transition: background .3s; }
.lf-week span.on i { background: var(--lime); box-shadow: 0 6px 14px -6px rgba(124, 213, 63, .8); }
.lf-week span.today i { outline: 2px dashed #7CD53F; outline-offset: 2px; }
.lf-week small { font-size: 10.5px; color: var(--muted); font-weight: 700; }
.lf-gym { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lf-gym button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; cursor: pointer; transition: transform .4s var(--spring), background .25s; }
.lf-gym button .ai { font-size: 20px; }
.lf-gym button:hover { transform: translateY(-2px); }
.lf-gym button.on { background: #14101F; color: var(--lime); border-color: #14101F; }
.lf-water { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 20px; background: color-mix(in srgb, #2E9BFF 8%, var(--surface)); }
.lf-row-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.lf-row-head span { display: inline-flex; align-items: center; gap: 6px; } .lf-row-head .ai { color: #2E9BFF; font-size: 19px; }
.lf-row-head b { font-size: 22px; font-weight: 900; } .lf-row-head b em { font-style: normal; font-size: 14px; color: var(--muted); }
.lf-drops { display: flex; flex-wrap: wrap; gap: 5px; }
.lf-drops i { width: 16px; height: 22px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--surface-2); border: 1.5px solid color-mix(in srgb, #2E9BFF 40%, transparent); transition: background .3s, transform .4s var(--spring); }
.lf-drops i.on { background: linear-gradient(180deg, #9FD3FF, #2E9BFF); border-color: #2E9BFF; transform: scale(1.08); }
.lf-water .fh-add button { background: #2E9BFF; color: #fff; }
.lf-water .fh-add button.minus { background: var(--surface-2); color: var(--muted); }
.lf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lf-toggle, .lf-weight { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; cursor: pointer; text-align: start; position: relative; overflow: hidden; transition: transform .4s var(--spring), background .25s; }
.lf-toggle:hover, .lf-weight:hover { transform: translateY(-2px); }
.lf-toggle .ai, .lf-weight > .ai { font-size: 20px; flex: none; color: #5BA81E; }
.lf-toggle span, .lf-weight span { flex: 1; font-size: 13.5px; position: relative; }
.lf-toggle em { font-style: normal; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; }
.lf-toggle.on { background: var(--lime); border-color: var(--lime); color: #14101F; } .lf-toggle.on .ai { color: #14101F; }
.lf-toggle.on em { background: #14101F; color: var(--lime); border-color: #14101F; }
.lf-weight b { font-size: 18px; font-weight: 900; }
.lf-weight small { font-weight: 900; font-size: 11.5px; } .lf-weight small.down { color: #3E9A12; } .lf-weight small.up { color: #E5532B; }
.lf-spark { position: absolute; inset: auto 8px 4px 8px; width: calc(100% - 16px); height: 22px; opacity: .35; }
.lf-spark polyline { fill: none; stroke: #5BA81E; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

.lf-hlist, .lf-people, .lf-pack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lf-hlist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: var(--surface-2); transition: background .3s; }
.lf-hlist li.on { background: color-mix(in srgb, var(--lime) 35%, var(--surface)); }
.lf-hcheck { width: 30px; height: 30px; flex: none; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: #14101F; font-size: 17px; transition: transform .4s var(--spring), background .25s; }
.lf-hcheck .ai { stroke-width: 3; }
.lf-hlist li.on .lf-hcheck { background: var(--lime); border-color: #7CD53F; transform: rotate(-6deg); }
.lf-hname { flex: 1; font-weight: 700; font-size: 14px; }
.lf-hlist li.on .lf-hname { text-decoration: line-through; text-decoration-color: #5BA81E; text-decoration-thickness: 2px; }
.lf-hstreak { display: inline-flex; align-items: center; gap: 2px; font-weight: 900; font-size: 13px; color: #FF8A1F; } .lf-hstreak .ai { font-size: 15px; }
.lf-hlist .icon-btn .ai { font-size: 16px; }
.lf-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.lf-sugg button { display: inline-flex; align-items: center; gap: 4px; border: 1.5px dashed var(--line); background: transparent; color: var(--fg); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform .4s var(--spring), background .2s; }
.lf-sugg button:hover { background: var(--hover); transform: translateY(-2px); }
.lf-add { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }

.lf-people li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 18px; background: var(--surface-2); transition: background .3s; }
.lf-people li.due { background: color-mix(in srgb, #FF5FD2 12%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #FF5FD2 45%, transparent); }
.lf-people li.done { background: color-mix(in srgb, var(--lime) 30%, var(--surface)); }
.lf-av { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: #FF5FD2; color: #fff; font-size: 19px; cursor: pointer; transition: transform .4s var(--spring); }
.lf-av:hover { transform: rotate(-10deg) scale(1.08); }
.lf-pinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lf-pinfo b { font-size: 14.5px; } .lf-pinfo small { font-size: 12px; color: var(--muted); } .lf-pinfo em { font-style: normal; color: #D6309F; font-weight: 900; }
.lf-pbtns { display: flex; gap: 4px; }
.lf-pbtns button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface); color: var(--fg); display: grid; place-items: center; font-size: 17px; cursor: pointer; transition: transform .4s var(--spring), background .2s; }
.lf-pbtns button:hover { transform: scale(1.1); }
.lf-pbtns button.on { background: #14101F; color: var(--lime); }

.lf-travel { grid-column: 1 / -1; }
.lf-trip { display: flex; flex-direction: column; gap: 10px; }
.lf-trip-top { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 24px; background: linear-gradient(120deg, #2E9BFF, #5B45F5); color: #fff; }
.lf-trip-top > div:first-child { flex: 1; display: flex; flex-direction: column; }
.lf-trip-top small { opacity: .8; font-size: 12.5px; font-weight: 700; } .lf-trip-top b { font-size: 28px; font-weight: 900; } .lf-trip-top span { opacity: .85; font-size: 13px; direction: ltr; text-align: start; }
.lf-count { display: grid; justify-items: center; padding: 8px 18px; border-radius: 20px; background: rgba(255, 255, 255, .16); }
.lf-count b { font-size: 40px; font-weight: 900; line-height: 1; } .lf-count b .ai { font-size: 34px; }
.lf-trip-top .icon-btn { color: #fff; }
.lf-pack-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.lf-pack-head span { display: inline-flex; align-items: center; gap: 6px; } .lf-pack-head .ai { color: #2E9BFF; font-size: 18px; }
.lf-pack { flex-direction: row; flex-wrap: wrap; }
.lf-pack button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .25s, transform .4s var(--spring); }
.lf-pack button em { font-style: normal; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 10px; }
.lf-pack button.on { background: color-mix(in srgb, #2E9BFF 14%, var(--surface)); border-color: #2E9BFF; text-decoration: line-through; }
.lf-pack button.on em { background: #2E9BFF; border-color: #2E9BFF; color: #fff; }
.lf-more { display: flex; flex-wrap: wrap; gap: 6px; }
.lf-more button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: var(--surface-2); color: var(--fg); border-radius: 99px; padding: 7px 12px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.lf-more small { color: var(--muted); direction: ltr; }
.fh-dlg input[type="time"] { width: auto; font: inherit; font-weight: 700; padding: 6px 8px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: inherit; }
.fh-dlg .fh-row select { width: auto; }
@media (max-width: 1100px) { .lf-grid { grid-template-columns: 1fr 1fr; } .lf-wake-main { grid-template-columns: auto auto; } .lf-chart { grid-column: 1 / -1; } }
@media (max-width: 700px) { .lf-grid { grid-template-columns: 1fr; } .lf-two { grid-template-columns: 1fr; } }

/* ================= قفل اليوم (بالليل) ================= */
.rg-night { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rn-btn, .rn-week { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 99px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .35s var(--spring), background .2s; }
.rn-btn { background: #B9A8FF; color: #14101F; }
.rn-btn:hover, .rn-week:hover { transform: translateY(-2px); }
.rn-week { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); margin-inline-start: auto; }
.rn-week.due { background: var(--lime); color: #14101F; position: relative; }
.rn-week.due::after { content: ''; position: absolute; inset: -4px; border-radius: 99px; border: 2px solid rgba(180, 255, 92, .55); animation: dw-pulse 1.8s ease-out infinite; }
.rn-closed { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #B9A8FF; }

.night { position: fixed; inset: 0; z-index: 92; overflow: hidden; color: #fff; opacity: 0; transition: opacity .6s ease; }
.night.in { opacity: 1; } .night.out { opacity: 0; }
.night ~ .rg-sheet-wrap { z-index: 96; }
.night-sky { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 110%, #2B1B5E 0%, transparent 60%), linear-gradient(180deg, #03030F 0%, #0B0A26 45%, #1A1446 80%, #2A1D5C 100%); }
.night-sky .star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: twinkle 2.6s ease-in-out infinite; }
.night-sky .moon { position: absolute; top: 9%; inset-inline-start: 12%; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF8DC, #F3E3A6 60%, #D9C27A);
  box-shadow: 0 0 60px 18px rgba(255, 240, 180, .22), 0 0 140px 50px rgba(185, 168, 255, .15); animation: nt-moon 7s ease-in-out infinite; }
.night-sky .moon::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 70% 30%, rgba(0, 0, 0, .08) 0 9%, transparent 10%), radial-gradient(circle at 40% 70%, rgba(0, 0, 0, .07) 0 7%, transparent 8%), radial-gradient(circle at 62% 62%, rgba(0, 0, 0, .06) 0 5%, transparent 6%); }
@keyframes nt-moon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.night.locked .night-sky .star { animation-duration: 4s; }
.night-main { position: relative; z-index: 2; height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 46px 20px 80px; text-align: center; gap: 6px; }
.night-clock { font-size: clamp(56px, 10vw, 110px); font-weight: 900; line-height: 1; letter-spacing: -2px; direction: ltr; text-shadow: 0 0 40px rgba(185, 168, 255, .45); animation: fx-rise .9s var(--out) .1s backwards; }
.night-title { margin: 6px 0 0; font-size: clamp(24px, 3.6vw, 40px); font-weight: 900; animation: fx-rise .9s var(--out) .2s backwards; }
.night-date { margin: 0; color: rgba(255, 255, 255, .65); font-weight: 500; }
.night-mascot { height: 120px; display: flex; align-items: flex-end; }
.nt-body { width: min(560px, 100%); display: flex; flex-direction: column; gap: 12px; }
.nt-card { background: rgba(255, 255, 255, .08); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .08); border-radius: 28px; padding: 18px; text-align: start; animation: fx-rise .7s var(--out) backwards; }
.nt-card:nth-child(2) { animation-delay: .08s; } .nt-card:nth-child(3) { animation-delay: .16s; } .nt-card:nth-child(4) { animation-delay: .24s; }
.nt-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.nt-hint { margin: 0 0 10px; color: rgba(255, 255, 255, .6); font-size: 13px; }
.nt-rings { display: flex; align-items: center; gap: 18px; }
.nt-dial { position: relative; width: 128px; height: 128px; flex: none; }
.nt-svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.nt-svg .rg-track { fill: none; stroke-width: 9; opacity: .18; }
.nt-svg .rg-prog { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1s var(--out); }
.nt-dial b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 900; direction: ltr; }
.nt-legend { flex: 1; display: grid; gap: 6px; }
.nt-legend button { display: flex; align-items: center; gap: 8px; border: 0; background: rgba(255, 255, 255, .06); color: #fff; border-radius: 14px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s; }
.nt-legend button:hover { background: rgba(255, 255, 255, .14); }
.nt-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.nt-legend span { flex: 1; text-align: start; } .nt-legend b { direction: ltr; }
.nt-miss { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-miss button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); background: color-mix(in srgb, var(--rc) 14%, transparent); color: #fff; border-radius: 99px; padding: 8px 14px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .35s var(--spring), opacity .3s, background .2s; }
.nt-miss button:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--rc) 30%, transparent); }
.nt-miss button.gone { transform: scale(.6); opacity: 0; }
.nt-moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.nt-moods button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .8); border-radius: 18px; padding: 12px 4px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; transition: transform .35s var(--spring), background .2s; }
.nt-moods button i { width: 26px; height: 26px; border-radius: 50%; background: hsl(calc((var(--m) - 1) * 28 + 0) 90% 62%); opacity: .55; transition: opacity .2s, transform .35s var(--spring), box-shadow .2s; }
.nt-moods button:hover { transform: translateY(-2px); }
.nt-moods button.on { background: rgba(255, 255, 255, .16); color: #fff; }
.nt-moods button.on i { opacity: 1; transform: scale(1.2); box-shadow: 0 0 18px hsl(calc((var(--m) - 1) * 28) 90% 62%); }
.nt-fields { display: grid; gap: 12px; }
.nt-fields label, .wk-fields label { display: grid; gap: 6px; }
.nt-fields label > span { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, .85); }
.nt-fields textarea { width: 100%; resize: vertical; border: 1px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .22); color: #fff; border-radius: 16px; padding: 10px 14px; font: inherit; font-size: 15px; }
.nt-fields textarea::placeholder { color: rgba(255, 255, 255, .38); }
.nt-fields textarea:focus { outline: none; border-color: #B9A8FF; box-shadow: 0 0 0 3px rgba(185, 168, 255, .25); }
.nt-lock { align-self: center; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 99px; padding: 16px 30px; font: inherit; font-size: 18px; font-weight: 900; cursor: pointer; color: #14101F; background: linear-gradient(135deg, #DCD3FF, #B9A8FF); box-shadow: 0 10px 40px rgba(185, 168, 255, .35); transition: transform .45s var(--spring); }
.nt-lock:hover { transform: translateY(-2px) scale(1.03); }
.nt-done { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: fx-pop .6s var(--spring); }
.nt-done > b { font-size: 30px; font-weight: 900; }
.nt-done > span:not(.dw-streak) { color: rgba(255, 255, 255, .7); }
.nt-done .dw-streak { display: inline-flex; align-items: center; gap: 6px; }
.nt-tmr { margin: 6px 0 0; padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.nt-week { background: var(--lime); display: inline-flex; align-items: center; gap: 8px; }
.nt-done-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.nt-link { border: 0; background: none; color: rgba(255, 255, 255, .55); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; margin-top: 16px; }
.dw-note { margin: 12px auto 0; max-width: 440px; padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }

/* ================= مراجعة الأسبوع ================= */
.wk-wrap { position: fixed; inset: 0; z-index: 94; background: rgba(14, 10, 30, .45); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 16px; animation: fade .3s ease both; }
.wk-wrap.out { animation: fade .3s ease reverse both; }
.wk { width: min(920px, 100%); max-height: 92vh; overflow-y: auto; background: var(--bg); color: var(--fg); border-radius: 36px; padding: 26px; box-shadow: var(--shadow-lg); animation: modal-in .55s var(--spring) both; display: flex; flex-direction: column; gap: 16px; }
.wk > * { flex-shrink: 0; }
.wk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wk-head h2 { margin: 4px 0 0; font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.05; }
.wk-chip { margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--lime); color: #14101F; font-weight: 700; font-size: 12px; }
.wk-range { margin: 4px 0 0; color: var(--muted); font-weight: 500; }
.wk-nav { display: flex; gap: 6px; }
.wk-nav .round-btn[disabled] { opacity: .3; cursor: default; }
.wk-arr { font-size: 18px; font-weight: 900; }
.wk-goal { margin: 0; padding: 12px 16px; border-radius: 20px; background: var(--surface); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.wk-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: stretch; }
.wk-score { background: var(--purple); color: #fff; border-radius: 30px; padding: 20px 26px; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 150px; }
.wk-score b { font-size: 52px; font-weight: 900; line-height: 1; direction: ltr; }
.wk-score span { opacity: .8; font-weight: 500; font-size: 13px; margin-top: 6px; }
.wk-bars { background: var(--surface); border-radius: 30px; padding: 16px 20px; display: grid; gap: 10px; align-content: center; box-shadow: var(--shadow-sm); }
.wk-bar { display: grid; grid-template-columns: 90px 1fr 46px; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.wk-bar span { display: inline-flex; align-items: center; gap: 6px; }
.wk-bar em { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--rc) 18%, transparent); overflow: hidden; }
.wk-bar em i { display: block; height: 100%; border-radius: 99px; background: var(--rc); animation: wk-grow 1s var(--out) backwards; transform-origin: right; }
[dir="ltr"] .wk-bar em i { transform-origin: left; }
@keyframes wk-grow { from { transform: scaleX(0); } }
.wk-bar b { direction: ltr; text-align: end; }
.wk-best { background: var(--black); color: var(--on-black); border-radius: 30px; padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 150px; }
.wk-best > svg { font-size: 26px; color: #FFD84A; }
.wk-best span { font-size: 13px; opacity: .7; }
.wk-best b { font-size: 22px; font-weight: 900; }
.wk-best small { opacity: .7; direction: ltr; text-align: start; }
.wk-mood { margin-top: 8px; opacity: 1 !important; font-size: 13px; }
.wk-mood b { font-size: 15px; color: var(--lime); }
.wk-grid-wrap { background: var(--surface); border-radius: 30px; padding: 14px 16px; overflow-x: auto; box-shadow: var(--shadow-sm); }
.wk-grid { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.wk-grid thead th:first-child { width: 118px; }
.wk-grid th { font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.wk-grid thead th { text-align: center; }
.wk-grid thead th small { display: block; font-weight: 900; font-size: 15px; color: var(--fg); }
.wk-grid thead th.today small { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: #14101F; }
.wk-grid tbody th { text-align: start; color: var(--fg); padding-inline-end: 6px; }
.wk-grid tbody th svg { vertical-align: -2px; }
.wk-grid td { text-align: center; }
.wk-grid td i { display: grid; place-items: center; height: 34px; border-radius: 12px; background: color-mix(in srgb, var(--rc) calc(var(--v) * 100%), transparent); color: #14101F; font-size: 16px; animation: fx-pop .5s var(--spring) backwards; }
.wk-grid td.fut { background: repeating-linear-gradient(45deg, var(--line) 0 4px, transparent 4px 8px); border-radius: 12px; height: 34px; }
.wk-grid tr.dots td.fut { height: 20px; }
.wk-grid td b { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.wk-grid td b.on { background: var(--purple); box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 18%, transparent); }
.wk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wk-tile { background: var(--surface); border-radius: 24px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm); }
.wk-tile span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 700; }
.wk-tile span svg { color: var(--purple); font-size: 16px; }
.wk-tile b { font-size: 30px; font-weight: 900; line-height: 1.05; direction: ltr; text-align: start; }
[dir="rtl"] .wk-tile b { text-align: end; }
.wk-tile b small { font-size: 15px; color: var(--muted); font-weight: 700; }
.wk-tile > small { color: var(--muted); font-size: 12px; }
.wk-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.wk-lists > div { background: var(--surface); border-radius: 24px; padding: 14px 18px; box-shadow: var(--shadow-sm); }
.wk-lists h4 { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; font-weight: 900; }
.wk-lists ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.wk-lists li { display: flex; gap: 10px; align-items: baseline; }
.wk-lists li em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--purple); min-width: 48px; }
.wk-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.wk-fields label { background: var(--surface); border-radius: 24px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.wk-fields label > span { display: flex; align-items: center; gap: 6px; font-weight: 900; }
.wk-fields textarea { width: 100%; resize: vertical; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 14px; padding: 10px 12px; font: inherit; }
.wk-fields textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px color-mix(in srgb, var(--purple) 20%, transparent); }
.wk-foot { display: flex; justify-content: center; padding-top: 4px; }
.wk-done { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; background: var(--lime); color: #14101F; font-weight: 900; }
@media (max-width: 760px) {
  .wk { padding: 18px; border-radius: 28px; }
  .wk-hero { grid-template-columns: 1fr 1fr; }
  .wk-bars { grid-column: 1 / -1; order: 3; }
  .nt-rings { flex-direction: column; }
  .nt-moods span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .night-sky .moon, .rn-week.due::after { animation: none; }
}

/* ================= عالم الأصول ================= */
.wl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wl-grid .fh-head > span:first-child .ai { color: #E08A00; }
:root[data-theme="dark"] .wl-grid .fh-head > span:first-child .ai { color: #FFB13D; }
.wl-num { direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wl-hid { letter-spacing: 1px; opacity: .8; }
.pos { color: #3E9B16; } .neg { color: var(--danger); }
:root[data-theme="dark"] .pos { color: #9BE25F; }
.wl-tools { display: inline-flex; gap: 2px; }
.wl-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--purple); cursor: pointer; }
.wl-link:hover { text-decoration: underline; }

.wl-hero { grid-column: 1 / -1; background: radial-gradient(120% 160% at 90% 0%, #3A2A05 0%, #14101F 60%); color: #fff; position: relative; overflow: hidden; }
.wl-hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 177, 61, .32), transparent); top: -200px; inset-inline-start: -80px; animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.wl-hero > * { position: relative; }
.wl-hero .fh-head > span:first-child .ai, .wl-hero .icon-btn { color: #FFB13D; }
.wl-hero-main { display: grid; grid-template-columns: 1.3fr 1.4fr auto; gap: 22px; align-items: center; }
.wl-net { display: flex; flex-direction: column; gap: 6px; }
.wl-net > b { font-size: clamp(38px, 5vw, 62px); font-weight: 900; line-height: 1; background: linear-gradient(100deg, #FFE7B0, #FFB13D 55%, #FF8A1F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-net > b.neg { background: none; color: #FF7A90; }
.wl-net > em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.wl-net > em.up { color: #B4FF5C; } .wl-net > em.down { color: #FF7A90; } .wl-net > em.muted { color: rgba(255, 255, 255, .6); font-weight: 500; }
.wl-net > em small { color: rgba(255, 255, 255, .55); font-weight: 500; }
.wl-split { color: rgba(255, 255, 255, .6); font-size: 13px; }
.wl-month { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wl-month > div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.wl-month small { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .6); font-size: 12px; font-weight: 700; }
.wl-month b { font-size: 20px; font-weight: 900; }
.wl-quick { display: flex; flex-direction: column; gap: 8px; }
.wl-q { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 99px; padding: 12px 22px; font: inherit; font-weight: 900; font-size: 15px; cursor: pointer; transition: transform .4s var(--spring), box-shadow .3s; }
.wl-q.out { background: #FFB13D; color: #14101F; box-shadow: 0 8px 26px rgba(255, 177, 61, .35); }
.wl-q.in { background: rgba(255, 255, 255, .1); color: #fff; }
.wl-q:hover { transform: translateY(-2px) scale(1.03); }
.wl-alloc { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 3px; }
.wl-alloc i { background: var(--c); border-radius: 99px; min-width: 6px; animation: wk-grow 1s var(--out) backwards; }
.wl-alloc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.wl-alloc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wl-alloc-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.wl-alloc-legend b { color: #fff; }

.wl-spend { grid-column: span 2; }
.wl-seg { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--surface-2); gap: 2px; }
.wl-seg button { border: 0; background: transparent; border-radius: 99px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: background .2s, color .2s; }
.wl-seg button.on { background: var(--black); color: var(--on-black); }
.wl-mnav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.wl-mnav b { min-width: 150px; text-align: center; font-weight: 900; }
.wl-mnav .round-btn[disabled] { opacity: .3; cursor: default; }
.wl-mnav .round-btn { font-weight: 900; }
.wl-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wl-sum > div { background: var(--surface-2); border-radius: 20px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.wl-sum small { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.wl-sum b { font-size: 22px; font-weight: 900; }
.wl-budget { display: flex; flex-direction: column; gap: 6px; }
.wl-budget-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; flex-wrap: wrap; }
.wl-budget small { color: var(--muted); font-size: 12.5px; }
.wl-budget .fh-bar i { background: linear-gradient(90deg, #7CD53F, #FFB13D); }
.wl-budget.warn .fh-bar i { background: linear-gradient(90deg, #FFB13D, #FF8A1F); }
.wl-budget.over .fh-bar i { background: var(--danger); }
.wl-budget.over .wl-budget-top b { color: var(--danger); }
.wl-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wl-cats li { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.wl-cats li > span { display: inline-flex; align-items: center; gap: 6px; }
.wl-cats li > span .ai { color: var(--c); font-size: 17px; }
.wl-cats em { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); }
.wl-cats em i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 99px; background: var(--c); animation: wk-grow .9s var(--out) backwards; transform-origin: right; }
[dir="ltr"] .wl-cats em i { transform-origin: left; }
.wl-cats em u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--fg); opacity: .5; border-radius: 2px; }
.wl-cats li.over b { color: var(--danger); }
.wl-tx { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wl-tx button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; border-radius: 16px; padding: 8px 10px; font: inherit; color: inherit; cursor: pointer; text-align: start; transition: background .2s; }
.wl-tx button:hover { background: var(--hover); }
.wl-tx i, .wl-asset-list i { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); flex: none; }
.wl-tx span, .wl-asset-list span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wl-tx span b, .wl-asset-list span b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-tx span small, .wl-asset-list span small { color: var(--muted); font-size: 12px; }
.wl-tx em { font-style: normal; font-weight: 900; }
.wl-tx em.in { color: #3E9B16; }
:root[data-theme="dark"] .wl-tx em.in { color: #9BE25F; }

.wl-goal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wl-goal-list li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 22px; background: var(--surface-2); }
.wl-ring { width: 52px; height: 52px; flex: none; transform: rotate(-90deg); }
.wl-ring circle { fill: none; stroke: color-mix(in srgb, #FFB13D 22%, transparent); stroke-width: 5; }
.wl-ring circle.p { stroke: #FFB13D; stroke-linecap: round; transition: stroke-dashoffset 1s var(--out); }
.wl-goal-list li.done .wl-ring circle.p { stroke: #7CD53F; }
.wl-gic { position: absolute; inset-inline-start: 10px; width: 52px; height: 52px; display: grid; place-items: center; font-size: 20px; color: #E08A00; }
:root[data-theme="dark"] .wl-gic { color: #FFB13D; }
.wl-ginfo { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-ginfo b { font-weight: 900; }
.wl-ginfo small { color: var(--muted); font-size: 12px; }
.wl-ginfo small.ok { color: #3E9B16; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.wl-gbtns { display: flex; align-items: center; gap: 2px; }
.wl-dep { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #FFB13D; color: #14101F; display: grid; place-items: center; font-size: 18px; cursor: pointer; transition: transform .4s var(--spring); }
.wl-dep:hover { transform: scale(1.12) rotate(90deg); }

.wl-agency { grid-column: span 2; }
.wl-ag-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wl-ag-stats > div { background: var(--surface-2); border-radius: 20px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.wl-ag-stats > div.late { background: color-mix(in srgb, var(--danger) 12%, var(--surface-2)); }
.wl-ag-stats > div.late b { color: var(--danger); }
.wl-ag-stats small { color: var(--muted); font-size: 12px; font-weight: 700; }
.wl-ag-stats b { font-size: 20px; font-weight: 900; }
.wl-ag-stats em { font-style: normal; color: var(--muted); font-size: 12px; }
.wl-inv { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wl-inv li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 18px; border: 1.5px solid var(--line); }
.wl-inv li.late { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.wl-inv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: start; padding: 0; }
.wl-inv-main b { font-weight: 900; }
.wl-inv-main small { color: var(--muted); font-size: 12px; }
.wl-inv-amt { display: flex; flex-direction: column; align-items: flex-end; font-weight: 900; }
.wl-inv-amt em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.wl-inv-amt em.late { color: var(--danger); } .wl-inv-amt em.soon { color: #E08A00; }
.wl-paid { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 99px; padding: 8px 12px; background: var(--lime); color: #14101F; font: inherit; font-size: 12.5px; font-weight: 900; cursor: pointer; transition: transform .4s var(--spring); }
.wl-paid:hover { transform: translateY(-2px); }

.wl-asset-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wl-asset-list button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; border-radius: 16px; padding: 8px 6px; font: inherit; color: inherit; cursor: pointer; text-align: start; transition: background .2s; }
.wl-asset-list button:hover { background: var(--hover); }
.wl-asset-list em { font-style: normal; font-weight: 900; display: flex; flex-direction: column; align-items: flex-end; }
.wl-asset-list em small { font-size: 11.5px; } .wl-asset-list em small.up { color: #3E9B16; } .wl-asset-list em small.down { color: var(--danger); }
.wl-asset-list li.debt em { color: var(--danger); }

/* نوافذ المال */
.wl-dlg .wl-seg { margin-bottom: 10px; }
.wl-seg-big { display: flex; }
.wl-seg-big button { flex: 1; justify-content: center; padding: 10px; font-size: 15px; }
.wl-amt input[type="number"] { width: 130px !important; font-size: 18px !important; }
.wl-amt select { width: auto !important; }
.wl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wl-chip input { position: absolute; opacity: 0; pointer-events: none; }
.wl-chip span { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 99px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s, transform .3s var(--spring); }
.wl-chip span .ai { color: var(--c); }
.wl-chip span:hover { transform: translateY(-1px); }
.wl-chip input:checked + span { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: var(--c); }
.wl-chip input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.wl-icons { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.wl-icons input { position: absolute; opacity: 0; pointer-events: none; }
.wl-icons span { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; border: 1.5px solid var(--line); cursor: pointer; }
.wl-icons input:checked + span { background: #FFB13D; color: #14101F; border-color: #FFB13D; }
.wl-sub-h { margin: 14px 0 6px; font-weight: 900; }
.wl-rates, .wl-bcats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.wl-bcats .fh-row span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

@media (max-width: 1100px) {
  .wl-grid { grid-template-columns: 1fr 1fr; }
  .wl-hero-main { grid-template-columns: 1fr 1fr; }
  .wl-quick { grid-column: 1 / -1; flex-direction: row; }
  .wl-quick .wl-q { flex: 1; }
  .wl-ag-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .wl-grid, .wl-hero-main { grid-template-columns: 1fr; }
  .wl-spend, .wl-agency { grid-column: auto; }
  .wl-month, .wl-sum { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .wl-month b, .wl-sum b { font-size: 15px; }
  .wl-cats li { grid-template-columns: 110px 1fr auto; font-size: 13px; }
  .wl-rates, .wl-bcats { grid-template-columns: 1fr; }
  .wl-paid span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wl-hero::before { animation: none; } }
.tab-hub.quiet .wl-alloc i, .tab-hub.quiet .wl-cats em i { animation: none; }

.wl-goals, .wl-assets { align-self: start; }
.tab-empty.tab-more h2 { font-size: clamp(22px, 2.6vw, 30px); }

/* ================= عالم ألعاب (الشغل) ================= */
.wkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wkg-grid .fh-head > span:first-child .ai { color: #6C4DFF; }
:root[data-theme="dark"] .wkg-grid .fh-head > span:first-child .ai { color: #B9A8FF; }
.wk-vchip { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }

.wkg-today { grid-column: 1 / -1; background: radial-gradient(120% 160% at 90% 0%, #3B1E8F 0%, #14101F 62%); color: #fff; position: relative; overflow: hidden; }
.wkg-today::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(closest-side, rgba(138, 108, 255, .4), transparent); top: -190px; inset-inline-start: -70px; animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.wkg-today > * { position: relative; }
.wkg-today .fh-head > span:first-child .ai { color: #B9A8FF; }
.wkg-date { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); }
.wkg-today-main { display: grid; grid-template-columns: 1.2fr 1.5fr; gap: 18px; align-items: stretch; }
.wkg-top3 { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.wkg-top3-h { display: flex; justify-content: space-between; align-items: center; }
.wkg-top3-h b { font-weight: 900; } .wkg-top3-h span { font-weight: 900; color: var(--lime); direction: ltr; }
.wkg-top3 ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wkg-top3 li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.wkg-top3 li em { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); display: grid; place-items: center; flex: none; font-style: normal; font-size: 14px; }
.wkg-top3 li.on em { background: var(--lime); border-color: var(--lime); color: #14101F; }
.wkg-top3 li.on span { text-decoration: line-through; opacity: .6; }
.wkg-empty { margin: 0; color: rgba(255, 255, 255, .6); font-size: 13.5px; }
.wkg-open { align-self: flex-start; margin-top: auto; color: var(--lime); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.wkg-open:hover { text-decoration: underline; }
.wkg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wkg-stat { display: flex; flex-direction: column; gap: 4px; text-align: start; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .07); color: #fff; border-radius: 22px; padding: 14px; font: inherit; cursor: pointer; text-decoration: none; transition: transform .4s var(--spring), background .2s; }
.wkg-stat:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .12); }
.wkg-stat small { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .65); font-size: 12.5px; font-weight: 700; }
.wkg-stat b { font-size: 26px; font-weight: 900; line-height: 1.1; }
.wkg-stat em { font-style: normal; font-size: 12.5px; color: var(--lime); font-weight: 700; }
.wkg-stat.warn em { color: #FFB13D; } .wkg-stat.bad em { color: #FF7A90; }
.wkg-stat.bad { box-shadow: inset 0 0 0 1.5px rgba(255, 122, 144, .5); }

.wkg-ventures { grid-column: span 2; }
.wkg-vtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.wkg-vtabs button { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: transparent; color: var(--fg); border-radius: 99px; padding: 7px 14px; font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background .2s, border-color .2s, transform .3s var(--spring); }
.wkg-vtabs button .ai { color: var(--c); }
.wkg-vtabs button:hover { transform: translateY(-1px); }
.wkg-vtabs button.on { background: var(--c); border-color: var(--c); color: #fff; }
.wkg-vtabs button.on .ai { color: #fff; }
.wkg-vhead { display: flex; align-items: center; gap: 12px; }
.wkg-vic { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; color: #fff; background: var(--c); box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 40%, transparent); flex: none; }
.wkg-vhead > div { flex: 1; display: flex; flex-direction: column; }
.wkg-vhead b { font-size: 20px; font-weight: 900; } .wkg-vhead small { color: var(--muted); font-size: 13px; }
.wkg-focus { display: flex; align-items: center; gap: 10px; text-align: start; border: 0; border-radius: 18px; padding: 12px 14px; font: inherit; font-weight: 700; cursor: pointer; color: var(--fg); background: color-mix(in srgb, var(--c) 12%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 35%, transparent); }
.wkg-focus .ai { color: var(--c); font-size: 20px; flex: none; }
.wkg-focus span { display: flex; flex-direction: column; }
.wkg-focus small { color: var(--muted); font-size: 11.5px; }
.wkg-focus.empty { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border: 0; }
.wkg-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wkg-col { background: var(--surface-2); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 90px; }
.wkg-col h5 { margin: 0 0 2px; display: flex; justify-content: space-between; font-size: 13px; font-weight: 900; color: var(--muted); }
.wkg-col h5 span { min-width: 22px; text-align: center; padding: 0 6px; border-radius: 99px; background: var(--surface); }
.wkg-col[data-st="doing"] h5 { color: #6C4DFF; } .wkg-col[data-st="done"] h5 { color: #3E9B16; }
.wkg-proj { display: flex; align-items: stretch; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; animation: fx-pop .4s var(--spring) backwards; }
.wkg-proj.late { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 55%, transparent); }
.wkg-proj.done { opacity: .65; }
.wkg-proj.done b { text-decoration: line-through; }
.wkg-proj-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: start; border: 0; background: none; padding: 8px 10px; font: inherit; color: inherit; cursor: pointer; }
.wkg-proj-main b { font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.wkg-proj-main small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); }
.wkg-proj.late .wkg-proj-main small { color: var(--danger); }
.wkg-proj-main small.n { display: block; }
.wkg-next { border: 0; width: 28px; flex: none; background: color-mix(in srgb, #8A6CFF 12%, transparent); color: #6C4DFF; font-weight: 900; cursor: pointer; transition: background .2s; }
.wkg-next:hover { background: #8A6CFF; color: #fff; }

.wkg-fu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wkg-fu li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: var(--surface-2); }
.wkg-fu li.late { background: color-mix(in srgb, var(--danger) 10%, var(--surface-2)); }
.wkg-fu li.today { background: color-mix(in srgb, #FFB13D 14%, var(--surface-2)); }
.wkg-chk { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--muted); background: transparent; flex: none; cursor: pointer; transition: background .2s, transform .3s var(--spring); }
.wkg-chk:hover { background: var(--lime); border-color: var(--lime); transform: scale(1.1); }
.wkg-fu-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: start; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.wkg-fu-main b { font-weight: 700; font-size: 14px; }
.wkg-fu-main small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.wkg-fu-main em { font-style: normal; font-weight: 700; }
.wkg-fu-main em.late { color: var(--danger); } .wkg-fu-main em.today { color: #E08A00; }
.wkg-fu-done { display: flex; flex-direction: column; gap: 2px; }
.wkg-fu-done button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; text-align: start; }
.wkg-fu-done .ai { color: #3E9B16; }

.wkg-people { grid-column: span 2; }
.wkg-plist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
.wkg-plist .lf-av { background: color-mix(in srgb, currentColor 16%, var(--surface)); }
.wkg-plist li.due { background: color-mix(in srgb, #FF8A1F 12%, var(--surface)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #FF8A1F 45%, transparent); }
.wkg-plist li.due .lf-pinfo em { color: #E06A00; }
.wkg-plist .org { color: var(--muted); font-weight: 500; }

.wkg-dsum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wkg-dsum > div { background: var(--surface-2); border-radius: 18px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.wkg-dsum > div.won { background: color-mix(in srgb, #7CD53F 16%, var(--surface-2)); }
.wkg-dsum small { color: var(--muted); font-size: 12px; font-weight: 700; } .wkg-dsum b { font-size: 17px; font-weight: 900; } .wkg-dsum em { font-style: normal; color: var(--muted); font-size: 12px; }
.wkg-dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.wkg-dlist button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 14px; padding: 7px 6px; font: inherit; color: inherit; cursor: pointer; text-align: start; transition: background .2s; }
.wkg-dlist button:hover { background: var(--hover); }
.wkg-dlist b { flex: 1; font-weight: 700; font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wkg-dlist em { font-style: normal; font-weight: 900; font-size: 13px; }
.wkg-dst { font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); flex: none; }
.wkg-dlist .st-lead .wkg-dst { background: color-mix(in srgb, #FF8A1F 16%, transparent); color: #D06A00; }
.wkg-dlist .st-proposal .wkg-dst { background: color-mix(in srgb, #2E9BFF 16%, transparent); color: #1A73CC; }
.wkg-dlist .st-talk .wkg-dst { background: color-mix(in srgb, #8A6CFF 16%, transparent); color: #6C4DFF; }
.wkg-dlist .st-won .wkg-dst { background: color-mix(in srgb, #7CD53F 22%, transparent); color: #3E9B16; }
.wkg-dlist .st-lost { opacity: .5; }
.wkg-colors { display: flex; gap: 8px; margin-bottom: 12px; }
.wkg-colors input { position: absolute; opacity: 0; pointer-events: none; }
.wkg-colors span { display: block; width: 30px; height: 30px; border-radius: 50%; background: var(--c); cursor: pointer; transition: transform .3s var(--spring); }
.wkg-colors input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); transform: scale(1.08); }

@media (max-width: 1100px) {
  .wkg-grid { grid-template-columns: 1fr 1fr; }
  .wkg-today-main { grid-template-columns: 1fr; }
  .wkg-ventures, .wkg-people { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .wkg-grid { grid-template-columns: 1fr; }
  .wkg-stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .wkg-stat { padding: 10px; } .wkg-stat b { font-size: 18px; }
  .wkg-board { grid-template-columns: 1fr 1fr; }
  .wkg-plist { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .wkg-today::before { animation: none; } }
.tab-hub.quiet .wkg-proj { animation: none; }

/* ---------- الزكاة ---------- */
.wz-card { grid-column: 1 / -1; background: linear-gradient(135deg, color-mix(in srgb, #2EC4B6 10%, var(--surface)), var(--surface) 60%); }
.wz-card .fh-head > span:first-child .ai { color: #1E9E8F !important; }
.wz-main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.wz-due { display: flex; flex-direction: column; gap: 6px; }
.wz-due small { color: var(--muted); font-weight: 700; font-size: 13px; }
.wz-due > b { font-size: clamp(34px, 4.4vw, 52px); font-weight: 900; line-height: 1; color: #128074; }
:root[data-theme="dark"] .wz-due > b { color: #5FE0D2; }
.wz-due em { font-style: normal; color: var(--muted); font-size: 13px; font-weight: 700; }
.wz-bar { max-width: 420px; }
.wz-need, .wz-below { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; padding: 8px 12px; border-radius: 14px; }
.wz-need { background: color-mix(in srgb, #FFB13D 18%, transparent); color: #9A5C00; }
.wz-below { background: color-mix(in srgb, #7CD53F 16%, transparent); color: #3E7A16; }
:root[data-theme="dark"] .wz-need { color: #FFCB7A; } :root[data-theme="dark"] .wz-below { color: #B4FF5C; }
.wz-side { display: grid; gap: 8px; }
.wz-date, .wz-nisab { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border-radius: 18px; padding: 10px 14px; }
.wz-date > .ai, .wz-nisab > .ai { font-size: 22px; color: #1E9E8F; flex: none; }
.wz-date span, .wz-nisab span { display: flex; flex-direction: column; }
.wz-date small, .wz-nisab small { color: var(--muted); font-size: 12px; font-weight: 700; }
.wz-date b, .wz-nisab b { font-weight: 900; }
.wz-date em { font-style: normal; color: var(--muted); font-size: 12px; }
.wz-pay { justify-self: start; }
.wz-details summary { cursor: pointer; font-weight: 700; font-size: 14px; color: #1E9E8F; }
.wz-rows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.wz-rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 12px; background: var(--surface-2); }
.wz-rows li.off { opacity: .5; }
.wz-rows li.off b { text-decoration: line-through; }
.wz-rows label { display: flex; align-items: center; gap: 8px; cursor: pointer; flex: 1; min-width: 0; }
.wz-rows label span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; }
.wz-rows label small { color: var(--muted); font-weight: 500; }
.wz-rows input { accent-color: #1E9E8F; width: 17px; height: 17px; }
.wz-rows li.total { background: none; border-top: 1.5px solid var(--line); border-radius: 0; font-weight: 900; padding-top: 10px; }
.wz-paid { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.wz-paid span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.wz-paid .ai { color: #3E9B16; } .wz-paid small { color: var(--muted); font-weight: 500; }
.wz-note { display: flex; align-items: flex-start; gap: 6px; }
.wz-note .ai { flex: none; margin-top: 2px; }
.wz-also { justify-content: flex-start; gap: 8px; }
.wz-also span { flex: none !important; }
@media (max-width: 760px) { .wz-main { grid-template-columns: 1fr; } }

/* ---------- أعياد الميلاد والهدايا ---------- */
.bd-card { grid-column: 1 / -1; }
.bd-card .fh-head > span:first-child .ai { color: #D6309F !important; }
.bd-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.bd-empty { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 24px; background: color-mix(in srgb, #FF5FD2 10%, var(--surface-2)); }
.bd-empty .ai { font-size: 34px; color: #D6309F; flex: none; } .bd-empty p { margin: 0; font-weight: 700; font-size: 14px; }
.bd-hero { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 26px; background: linear-gradient(125deg, #FF5FD2, #FF8A1F); color: #fff; position: relative; overflow: hidden; }
.bd-hero.now { background: linear-gradient(125deg, #FF5FD2, #5B45F5 55%, #2E9BFF); box-shadow: 0 0 0 3px var(--lime); }
.bd-hero-top { display: flex; align-items: center; gap: 14px; }
.bd-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bd-who small { opacity: .85; font-size: 12.5px; font-weight: 700; } .bd-who b { font-size: 28px; font-weight: 900; line-height: 1.15; } .bd-who span { opacity: .9; font-size: 13.5px; font-weight: 700; }
.bd-count { display: grid; justify-items: center; padding: 8px 18px; border-radius: 20px; background: rgba(255, 255, 255, .18); }
.bd-count b { font-size: 40px; font-weight: 900; line-height: 1; } .bd-count b .ai { font-size: 36px; } .bd-count small { font-weight: 700; font-size: 12px; }
.bd-gifts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bd-gl { display: inline-flex; align-items: center; gap: 5px; font-weight: 900; font-size: 13px; margin-inline-end: 4px; }
.bd-gift { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .92); color: #14101F; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform .4s var(--spring), background .2s; }
.bd-gift:hover { transform: translateY(-2px); }
.bd-gift em { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #D6309F; display: grid; place-items: center; font-size: 11px; font-style: normal; }
.bd-gift.on { background: var(--lime); text-decoration: line-through; } .bd-gift.on em { background: #14101F; border-color: #14101F; color: var(--lime); }
.bd-gift small { opacity: .6; font-weight: 500; }
.bd-gift.add { background: rgba(255, 255, 255, .2); color: #fff; border: 1.5px dashed rgba(255, 255, 255, .7); }
.bd-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.bd-list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 18px; border: 0; background: var(--surface-2); color: var(--fg); font: inherit; text-align: start; cursor: pointer; transition: transform .4s var(--spring), background .2s; }
.bd-list button:hover { background: var(--hover); transform: translateX(-2px); }
.bd-date { width: 44px; flex: none; display: grid; justify-items: center; padding: 4px 0; border-radius: 14px; background: color-mix(in srgb, #FF5FD2 16%, var(--surface)); }
.bd-date b { font-size: 18px; font-weight: 900; line-height: 1.1; color: #C0268C; } .bd-date small { font-size: 10px; font-weight: 700; color: var(--muted); }
:root[data-theme="dark"] .bd-date b { color: #FF8FE0; }
.bd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; } .bd-info b { font-size: 14.5px; } .bd-info small { font-size: 12px; color: var(--muted); }
.bd-hasgift { color: #D6309F; font-size: 17px; font-style: normal; }
.bd-missing small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.bd-missing div { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-missing button { display: inline-flex; align-items: center; gap: 4px; border: 1.5px dashed var(--line); background: transparent; color: var(--fg); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform .4s var(--spring), background .2s; }
.bd-missing button:hover { background: var(--hover); transform: translateY(-2px); }
.bd-topedit { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; }
.lf-cake { font-style: normal; color: #D6309F; font-size: 15px; vertical-align: -2px; } .lf-cake.now { color: #FF8A1F; }
.bd-dsel { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.bd-past { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; }
.bd-past small { width: 100%; color: var(--muted); font-weight: 700; }
.bd-past span { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; } .bd-past .ai { color: #3E9B16; } .bd-past em { font-style: normal; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .bd-main { grid-template-columns: 1fr; } .bd-who b { font-size: 23px; } }

/* ---------- Raxi ثابتة بالزاوية (جنب كبسة المهام) ---------- */
.raxi-dock { position: fixed; bottom: 8px; inset-inline-end: 92px; z-index: 44; line-height: 0; animation: raxi-in .8s cubic-bezier(.34,1.56,.64,1) .5s backwards; }
.raxi-dock .acc-mascot { width: 100px !important; height: 122px !important; }
.raxi-dock { touch-action: none; cursor: grab; }
.raxi-dock.dragging { cursor: grabbing; animation: none; filter: drop-shadow(0 18px 18px rgba(20, 10, 60, .28)); }
.raxi-dock.dragging .acc-mascot { transform: scale(1.08) rotate(-4deg); transition: transform .2s; }
.raxi-dock.low-bubble .m-bubble { bottom: auto; top: calc(100% - 4px); }
.raxi-dock.low-bubble .m-bubble::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #111; }
@keyframes raxi-in { from { transform: translateY(120%) scale(.5); opacity: 0; } }
@media (max-width: 820px) { .raxi-dock { inset-inline-end: 80px; bottom: 4px; } .raxi-dock .acc-mascot { width: 80px !important; height: 98px !important; } }
@media (prefers-reduced-motion: reduce) { .raxi-dock { animation: none; } }
body.raxi-dragging, body.raxi-dragging * { user-select: none !important; -webkit-user-select: none !important; cursor: grabbing !important; }

/* ---------- خط يومك (الشريط الرئيسي) ---------- */
.tl { position: relative; margin: 0 0 18px; padding: 18px 20px 14px; border-radius: 32px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 160% at 90% -10%, #3B2F8F, #14101F 60%); box-shadow: 0 24px 50px -28px rgba(20, 10, 60, .7); }
.tl::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; top: -220px; inset-inline-start: -80px; background: radial-gradient(closest-side, rgba(180, 255, 92, .18), transparent); pointer-events: none; }
.tl-head { position: relative; display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.tl-next { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.tl-next-ic { width: 54px; height: 54px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 28px; color: #14101F; background: var(--c); box-shadow: 0 0 24px -4px var(--c); animation: tl-pulse 2.4s ease-in-out infinite; }
.tl-next > div { min-width: 0; display: flex; flex-direction: column; }
.tl-next small { font-size: 12.5px; opacity: .7; font-weight: 700; }
.tl-next b { font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-next em { font-style: normal; font-weight: 900; font-size: 13px; color: var(--lime); }
.tl-next-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--lime); color: #14101F; font: inherit; font-weight: 900; cursor: pointer; transition: transform .4s var(--spring); }
.tl-next-btn:hover { transform: translateY(-2px) scale(1.04); }
.tl-next-btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; }
.tl-meta { flex: none; display: grid; justify-items: center; padding: 6px 14px; border-radius: 18px; background: rgba(255, 255, 255, .08); }
.tl-meta b { font-size: 22px; font-weight: 900; line-height: 1.1; } .tl-meta small { font-size: 11px; opacity: .7; font-weight: 700; } .tl-meta em { font-style: normal; font-size: 11px; font-weight: 900; color: #FFB13D; }
.tl-track { position: relative; height: 34px; margin: 4px 14px 12px; }
.tl-track::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.tl-fill { position: absolute; inset-inline-start: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: linear-gradient(90deg, #2EC4B6, #B4FF5C); }
[dir="rtl"] .tl-fill { background: linear-gradient(270deg, #2EC4B6, #B4FF5C); }
.tl-dot { position: absolute; top: 50%; width: 24px; height: 24px; margin: -12px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: #14101F; color: var(--c); box-shadow: inset 0 0 0 2px var(--c); transition: transform .3s; }
.tl-dot.done { background: var(--c); color: #14101F; }
.tl-dot.next { transform: scale(1.3); box-shadow: inset 0 0 0 2px var(--c), 0 0 14px var(--c); }
.tl-now { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-inline-start: -1px; background: #fff; border-radius: 2px; box-shadow: 0 0 10px #fff; }
.tl-now b { position: absolute; bottom: 100%; inset-inline-start: 50%; transform: translateX(50%); font-size: 10.5px; font-weight: 900; background: #fff; color: #14101F; padding: 1px 6px; border-radius: 99px; white-space: nowrap; }
[dir="ltr"] .tl-now b { transform: translateX(-50%); }
.tl-list { list-style: none; margin: 0; padding: 4px 2px 8px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.tl-step { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1.5px solid transparent; transition: background .25s, border-color .25s, opacity .25s; }
.tl-step.next { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.tl-step.done { opacity: .5; }
.tl-step.done b { text-decoration: line-through; }
.tl-step.missed { border-color: rgba(255, 138, 31, .55); }
.tl-go { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: start; padding: 0; }
.tl-ic { width: 32px; height: 32px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 17px; color: var(--c); background: rgba(255, 255, 255, .08); }
.tl-txt { display: flex; flex-direction: column; max-width: 170px; }
.tl-txt small { font-size: 11px; opacity: .65; font-weight: 700; direction: ltr; text-align: start; }
.tl-txt b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-txt em { font-style: normal; font-size: 10.5px; opacity: .6; }
.tl-check { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); background: transparent; color: #14101F; display: grid; place-items: center; font-size: 15px; cursor: pointer; transition: transform .35s var(--spring), background .2s; }
.tl-check:hover { transform: scale(1.12); border-color: var(--c); }
.tl-step.done .tl-check, .tl-check.on { background: var(--c); border-color: var(--c); }
.tl-free { display: flex; align-items: center; gap: 10px; border-top: 1px dashed rgba(255, 255, 255, .14); padding-top: 10px; }
.tl-free-h { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 900; opacity: .8; }
.tl-free .tl-list { flex: 1; min-width: 0; padding-bottom: 4px; }
@keyframes tl-pulse { 0%, 100% { box-shadow: 0 0 16px -6px var(--c); } 50% { box-shadow: 0 0 28px 0 var(--c); } }
@media (max-width: 700px) {
  .tl { padding: 14px 14px 10px; border-radius: 26px; }
  .tl-head { flex-wrap: wrap; }
  .tl-next { flex-basis: 100%; }
  .tl-next-ic { width: 44px; height: 44px; font-size: 22px; }
  .tl-meta { display: none; }
  .tl-free { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .tl-next-ic { animation: none; } }

/* ---------- الالتزامات الشهرية ---------- */
.wl-bills { grid-column: 1 / -1; }
.wl-bills-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wl-bills-sum > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 18px; background: var(--surface-2); }
.wl-bills-sum small { color: var(--muted); font-weight: 700; font-size: 12.5px; }
.wl-bills-sum b { font-size: 22px; font-weight: 900; }
.wl-bills-sum b.pos { color: #3E9B16; }
.wl-bills-sum .late { background: color-mix(in srgb, var(--danger, #FF3B5C) 10%, var(--surface-2)); }
.wl-bills-sum em { font-style: normal; color: var(--danger, #FF3B5C); font-weight: 900; font-size: 12px; }
.wl-bills-sum .wl-bills-bar { grid-column: 1 / -1; padding: 0 4px; background: none; }
.wl-bill-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wl-bill-list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 18px; border: 1.5px solid var(--line); transition: background .25s, opacity .25s; }
.wl-bill-list li.paid { background: color-mix(in srgb, var(--lime) 18%, transparent); border-color: transparent; }
.wl-bill-list li.late { border-color: color-mix(in srgb, var(--danger, #FF3B5C) 45%, transparent); }
.wl-bill-list li.finished { opacity: .55; }
.wl-bill-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: start; padding: 0; }
.wl-bill-main > i { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--c); font-style: normal; }
.wl-bill-main > span { min-width: 0; display: flex; flex-direction: column; }
.wl-bill-main b { font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-bill-main small { color: var(--muted); font-size: 12px; }
.wl-bill-list em.ok { color: #3E9B16; display: inline-flex; align-items: center; gap: 3px; }
.wl-paid.on { background: var(--lime) !important; color: #14101F !important; }
@media (max-width: 900px) { .wl-bill-list { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .wl-bills-sum { grid-template-columns: 1fr 1fr; } .wl-bills-sum b { font-size: 18px; } }

/* ---------- الفواتير ---------- */
.wl-q.rc { background: #14101F; color: #B4FF5C; }
.rc-wait { align-items: center; text-align: center; gap: 8px; }
.rc-wait h3 { margin: 6px 0 0; }
.rc-scan { position: relative; width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; font-size: 44px; color: #E08A00; background: color-mix(in srgb, #FFB13D 16%, var(--surface)); overflow: hidden; margin: 6px auto 0; }
.rc-scan i { position: absolute; inset-inline: 8px; height: 3px; top: 10px; border-radius: 3px; background: #B4FF5C; box-shadow: 0 0 12px #7CD53F; animation: rc-scan 1.3s ease-in-out infinite alternate; }
@keyframes rc-scan { to { top: 70px; } }
.rc-top { display: grid; grid-template-columns: 1.4fr 1fr .9fr; gap: 8px; }
.rc-top select, .rc-top input { width: 100%; }
.rc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 42vh; overflow: auto; }
.rc-row { display: grid; grid-template-columns: 1fr 86px 150px 30px; gap: 6px; align-items: center; }
.rc-row input, .rc-row select { min-width: 0; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-size: 14px; }
.rc-row .rc-a { direction: ltr; text-align: start; }
.rc-x { width: 30px; height: 30px; }
.rc-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; }
.rc-sum b { font-weight: 900; }
.rc-diff { font-style: normal; color: #D6309F; font-weight: 700; font-size: 13px; }
.rc-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-groups span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, var(--c) 16%, transparent); }
.rc-groups span .ai { color: var(--c); }
.wl-grid.rc-drop, .tab-hub.rc-drop { outline: 3px dashed #FFB13D; outline-offset: 8px; border-radius: 30px; }
.rc-drop::after { content: ""; }
@media (max-width: 640px) { .rc-top { grid-template-columns: 1fr 1fr; } .rc-row { grid-template-columns: 1fr 80px 30px; } .rc-row .rc-c { grid-column: 1 / 3; grid-row: 2; } .rc-row .rc-x { grid-row: 1; grid-column: 3; } }

/* ---------- البيت: الأولاد والمطبخ ---------- */
.hm-slot { grid-column: 1 / -1; }
.hm-slot:empty { display: none; }
.hm-card { background: linear-gradient(160deg, color-mix(in srgb, #FF5FD2 8%, var(--surface)), var(--surface) 55%); }
.hm-card .fh-head > span:first-child .ai { color: #D6309F !important; }
.hm-tabs { margin: 0; }
.hm-value { display: grid; grid-template-columns: auto 1fr minmax(200px, .8fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 24px; background: linear-gradient(120deg, #2EC4B6, #5B45F5); color: #fff; }
.hm-value-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: rgba(255, 255, 255, .18); color: #FFD84A; }
.hm-value > div { display: flex; flex-direction: column; min-width: 0; }
.hm-value small { opacity: .8; font-weight: 700; font-size: 12px; }
.hm-value b { font-size: 22px; font-weight: 900; }
.hm-value q { font-size: 14px; opacity: .95; quotes: "«" "»"; }
.hm-mission { padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, .16); }
.hm-mission b { font-size: 15px; }
.hm-kids { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hm-kid { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--fg); font: inherit; font-weight: 700; cursor: pointer; position: relative; transition: transform .4s var(--spring), border-color .2s; }
.hm-kid.on { border-color: var(--c, #14101F); background: color-mix(in srgb, var(--c, #14101F) 12%, var(--surface)); }
.hm-kid:hover { transform: translateY(-2px); }
.hm-stars { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; color: #E0A400; font-weight: 900; }
.hm-kbar { position: absolute; inset-inline: 14px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hm-kbar > i { display: block; height: 100%; background: var(--c); border-radius: 3px; transition: width .5s var(--spring); }
.hm-daytype { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.hm-routine { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 560px; overflow: auto; }
.hm-routine li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 16px; transition: background .25s, opacity .25s; }
.hm-routine li:nth-child(odd) { background: var(--surface-2); }
.hm-routine li.now { background: color-mix(in srgb, var(--c) 18%, var(--surface)); box-shadow: inset 0 0 0 2px var(--c); }
.hm-routine li.done { opacity: .55; }
.hm-routine li.done .hm-txt b { text-decoration: line-through; }
.hm-routine li.past .hm-time { color: #FF8A1F; }
.hm-time { width: 46px; flex: none; font-weight: 900; font-size: 13.5px; direction: ltr; }
.hm-ic { width: 32px; height: 32px; flex: none; border-radius: 11px; display: grid; place-items: center; font-size: 17px; color: #fff; background: var(--c); }
.hm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-txt b { font-size: 14px; font-weight: 700; }
.hm-txt small { font-size: 11.5px; color: var(--muted); }
.hm-checks { display: flex; gap: 4px; flex: none; }
.hm-check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--c); background: transparent; color: var(--c); font: inherit; font-weight: 900; font-size: 12px; display: grid; place-items: center; cursor: pointer; transition: transform .35s var(--spring), background .2s; }
.hm-check.on { background: var(--c); color: #fff; }
.hm-check:hover { transform: scale(1.12); }
.hm-edit { opacity: .45; } .hm-routine li:hover .hm-edit { opacity: 1; }
.hm-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hm-foot .fh-hint { margin: 0; flex: 1; }
.hm-today { display: flex; flex-direction: column; gap: 10px; }
.hm-today > small, .hm-week > small { font-weight: 900; color: var(--muted); font-size: 13px; }
.hm-dish { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 20px; background: var(--surface-2); }
.hm-dish.big { padding: 16px 18px; background: linear-gradient(120deg, #FF8A1F, #FF5FD2); color: #fff; }
.hm-dish-ic { width: 44px; height: 44px; flex: none; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, #FF8A1F 18%, var(--surface)); color: #E06A00; }
.hm-dish.big .hm-dish-ic { width: 56px; height: 56px; font-size: 30px; background: rgba(255, 255, 255, .2); color: #fff; }
.hm-dish > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-dish b { font-weight: 900; font-size: 16px; } .hm-dish.big b { font-size: 26px; }
.hm-dish small { font-size: 12px; color: var(--muted); } .hm-dish.big small { color: rgba(255, 255, 255, .85); }
.hm-dish-act { display: flex; gap: 2px; }
.hm-dish-act .icon-btn.on { color: #FF3B7C; }
.hm-dish.big .icon-btn { color: #fff; }
.hm-sugg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hm-sugg-item { display: flex; flex-direction: column; gap: 6px; }
.hm-sugg-item .btn { align-self: flex-start; }
.hm-row-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hm-week ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.hm-week li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; border: 1.5px dashed var(--line); }
.hm-week li.set { border-style: solid; border-color: #FF8A1F; }
.hm-week li span { font-size: 12px; color: var(--muted); font-weight: 700; width: 56px; flex: none; }
.hm-week li b { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-set-kid { padding: 10px 12px; border-radius: 18px; border: 2px solid color-mix(in srgb, var(--c) 50%, transparent); display: grid; gap: 6px; }
@media (max-width: 820px) { .hm-value { grid-template-columns: auto 1fr; } .hm-mission { grid-column: 1 / -1; } .hm-sugg { grid-template-columns: 1fr; } .hm-daytype { margin-inline-start: 0; } }
.acc-cloud [data-act="password"] { display: none; }
