/* MIRROR | مرآة — styles.css
 * هوية ليلية فاخرة: #0B0816 / #1D1530 / #4B2D6B / #D9C6FF + لمسات ذهبية محدودة.
 * RTL أولًا. لا أحمر عدواني. حركة هادئة تحترم تفضيل تقليل الحركة.
 */
:root {
  --bg: #0B0816; --bg-2: #120C22;
  --surface: #1D1530; --surface-2: #261A3F; --surface-3: #2F2150;
  --violet: #4B2D6B; --violet-hi: #6A44A0;
  --lilac: #D9C6FF; --lilac-dim: #B3A1D9;
  --gold: #F0D9B5; --rose: #F2C9D3;
  --text: #F5EFFF; --muted: #A99DC6; --faint: #7F7399;
  --line: rgba(217, 198, 255, .13); --line-2: rgba(217, 198, 255, .24);
  --glass: rgba(29, 21, 48, .66);
  --r-lg: 24px; --r-md: 18px; --r-sm: 14px;
  --font: "Tajawal", "Cairo", "Noto Sans Arabic", "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: "Cairo", "Tajawal", "Noto Sans Arabic", "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html[data-text="large"] { font-size: 18.5px; }
html.modal-open, html.modal-open body { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1rem; line-height: 1.6; font-weight: 500;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 10px; }
#title:focus, #screen:focus { outline: none; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
::selection { background: rgba(217, 198, 255, .3); }

/* ───── الخلفية الليلية ───── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(130% 70% at 50% -8%, #2b1b4d 0%, #170e2b 38%, #0B0816 72%); }
.stars { position: absolute; inset: 0; background-repeat: repeat; }
.s1 { background-image: radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.85), transparent), radial-gradient(1px 1px at 120px 84px, rgba(217,198,255,.8), transparent), radial-gradient(1.5px 1.5px at 205px 152px, rgba(240,217,181,.85), transparent), radial-gradient(1px 1px at 64px 184px, rgba(255,255,255,.7), transparent); background-size: 240px 220px; opacity: .5; }
.s2 { background-image: radial-gradient(1px 1px at 70px 40px, rgba(255,255,255,.8), transparent), radial-gradient(1.4px 1.4px at 250px 120px, rgba(217,198,255,.9), transparent), radial-gradient(1px 1px at 150px 230px, rgba(255,255,255,.7), transparent); background-size: 330px 290px; opacity: .45; animation: twinkle 6s ease-in-out infinite; }
.s3 { background-image: radial-gradient(1.6px 1.6px at 90px 110px, rgba(240,217,181,.95), transparent), radial-gradient(1px 1px at 300px 60px, rgba(255,255,255,.8), transparent); background-size: 410px 360px; opacity: .4; animation: twinkle 8s ease-in-out -3s infinite; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.g1 { top: -140px; inset-inline-end: -100px; width: 400px; height: 400px; background: rgba(112, 70, 180, .32); }
.g2 { bottom: -180px; inset-inline-start: -140px; width: 440px; height: 440px; background: rgba(75, 45, 107, .34); }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .6; } }

/* ───── الإطار والشاشات ───── */
.frame { position: relative; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
@media (min-width: 720px) {
  .frame { background: linear-gradient(180deg, rgba(11, 8, 22, .55), rgba(11, 8, 22, .72)); border-inline: 1px solid var(--line); box-shadow: 0 0 140px rgba(75, 45, 107, .35); backdrop-filter: blur(3px); }
}
.screen { flex: 1; padding: calc(var(--safe-t) + 14px) 20px 32px; }
.screen.has-nav { padding-bottom: calc(104px + var(--safe-b)); }
.screen.enter { animation: screenIn .42s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.screen.enter .stagger > * { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.screen > * + * { margin-top: 16px; }

/* ───── الكتابة ───── */
h1 { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.35; font-weight: 800; letter-spacing: -.005em; }
h2 { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.muted { color: var(--muted); }
.sm { font-size: .88rem; }
.center { text-align: center; }
.fineprint { font-size: .8rem; color: var(--faint); line-height: 1.7; }
.sec { font-size: 1.1rem; font-weight: 700; color: var(--lilac); display: flex; align-items: center; gap: 8px; }
.sec-sm { font-size: .95rem; font-weight: 700; color: var(--lilac); display: flex; align-items: center; gap: 8px; }
.count { font-size: .78rem; background: rgba(217,198,255,.14); color: var(--lilac); border-radius: 99px; padding: 1px 9px; font-weight: 700; }
.step { font-size: .8rem; color: var(--gold); font-weight: 700; letter-spacing: .02em; }
.date, .date-sub { font-size: .92rem; }
.hint { color: var(--muted); font-size: .86rem; }
.h-center { text-align: center; }
.page-head { padding-top: 6px; }
.page-head p { margin-top: 2px; }

/* ───── الأزرار والتحكم ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px 24px;
  border-radius: 16px; font-weight: 700; font-size: 1rem; line-height: 1.3; text-align: center; transition: transform .16s var(--ease), box-shadow .2s, background .2s, opacity .2s;
  border: 1px solid transparent; width: 100%;
}
.btn:active { transform: scale(.975); }
.btn.lg { min-height: 58px; font-size: 1.08rem; border-radius: 18px; }
.btn.sm { min-height: 42px; padding: 8px 16px; font-size: .9rem; border-radius: 13px; width: auto; }
.btn.sq { width: 52px; padding: 0; flex: none; }
.btn.primary { background: linear-gradient(135deg, #EEE4FF 0%, #CDB5F8 55%, #B79BF0 100%); color: #1A1030; box-shadow: 0 10px 34px rgba(160, 120, 235, .34), inset 0 1px 0 rgba(255,255,255,.7); }
.btn.primary:disabled { opacity: .4; box-shadow: none; }
.btn.secondary { background: rgba(75, 45, 107, .55); border-color: var(--line-2); color: var(--lilac); }
.btn.secondary:hover { background: rgba(75, 45, 107, .75); }
.btn.ghost { color: var(--lilac-dim); background: transparent; }
.btn.ghost:hover { background: rgba(217,198,255,.07); }
.btn.soft-danger { background: rgba(242, 201, 211, .1); border-color: rgba(242, 201, 211, .35); color: var(--rose); }
.btn.provider { justify-content: space-between; background: rgba(29, 21, 48, .8); border-color: var(--line-2); color: var(--text); font-weight: 600; }
.btn.provider[aria-disabled="true"] { opacity: .7; }
.tag { font-size: .72rem; font-weight: 700; color: var(--gold); border: 1px solid rgba(240,217,181,.4); border-radius: 99px; padding: 1px 10px; }
.btn-col { display: flex; flex-direction: column; gap: 10px; }
.btn-col.end { margin-top: 22px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; width: auto; }
.link-btn { color: var(--lilac); font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(217,198,255,.4); padding: 4px 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center; color: var(--lilac); transition: background .2s, transform .15s; flex: none; }
.icon-btn:hover { background: rgba(217,198,255,.09); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.sm { width: 38px; height: 38px; border-radius: 12px; color: var(--lilac-dim); }
.icon-btn:disabled { opacity: .28; }

.input { width: 100%; min-height: 52px; border-radius: 16px; background: rgba(11, 8, 22, .6); border: 1px solid var(--line-2); padding: 12px 16px; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--faint); }
.input:focus, .input:focus-visible { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(217,198,255,.12); }
.input.area { min-height: 120px; resize: vertical; line-height: 1.8; }
.input.time { width: auto; min-width: 118px; min-height: 46px; text-align: center; color-scheme: dark; }
.input.flat { border: 0; background: transparent; min-height: 46px; padding: 0 4px; box-shadow: none; }
.input.flat:focus, .input.flat:focus-visible { box-shadow: none; border: 0; }
.search:focus-within { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(217,198,255,.12); }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: .94rem; }
.field em { font-style: normal; font-weight: 500; color: var(--faint); font-size: .8rem; margin-inline-start: 6px; }
.field-err { color: var(--rose); font-size: .88rem; min-height: 0; }
.field-err:empty { display: none; }
.add-row { display: flex; gap: 10px; align-items: stretch; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 16px; padding: 0 14px; background: rgba(11,8,22,.5); color: var(--muted); }

.seg { display: flex; background: rgba(11, 8, 22, .55); border: 1px solid var(--line); border-radius: 16px; padding: 4px; gap: 4px; }
.seg-b { flex: 1; min-height: 42px; border-radius: 12px; font-weight: 700; font-size: .92rem; color: var(--muted); transition: background .2s, color .2s; padding: 0 8px; }
.seg-b.on { background: linear-gradient(135deg, rgba(106,68,160,.9), rgba(75,45,107,.95)); color: #fff; box-shadow: 0 4px 16px rgba(75,45,107,.5); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--lilac-dim); font-weight: 600; font-size: .92rem; background: rgba(29,21,48,.55); transition: all .2s; }
.chip.on { background: rgba(217, 198, 255, .16); border-color: var(--lilac); color: var(--lilac); }
.chip:active { transform: scale(.96); }

.switch { position: relative; width: 52px; height: 30px; border-radius: 99px; background: rgba(217,198,255,.14); border: 1px solid var(--line-2); flex: none; transition: background .25s; }
.switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--lilac-dim); transition: inset-inline-start .25s var(--ease), background .25s; }
.switch[aria-checked="true"] { background: linear-gradient(135deg, var(--violet-hi), var(--violet)); border-color: var(--lilac-dim); }
.switch[aria-checked="true"] i { inset-inline-start: 25px; background: #fff; }

/* ───── البطاقات والقوائم ───── */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 40px rgba(5, 3, 12, .35); display: flex; flex-direction: column; gap: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card.list { gap: 4px; padding: 16px 16px 10px; }
.card.list > .sec-sm { margin-bottom: 8px; }
.stack { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.stack-sm { display: flex; flex-direction: column; gap: 14px; }
.badge-ic { width: 64px; height: 64px; border-radius: 22px; margin: 4px auto 0; display: grid; place-items: center; color: var(--lilac); background: linear-gradient(145deg, rgba(106,68,160,.55), rgba(75,45,107,.35)); border: 1px solid var(--line-2); box-shadow: 0 0 40px rgba(138, 96, 208, .3); }
.note-card { display: flex; gap: 10px; background: rgba(75,45,107,.28); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; color: var(--lilac-dim); font-size: .9rem; line-height: 1.8; }
.note-card.flat { align-items: flex-start; }
.note-card .ic { margin-top: 5px; color: var(--gold); }
.empty-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 26px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty-card .ic { color: var(--lilac-dim); }
.empty-line { color: var(--muted); padding: 10px 2px; font-size: .95rem; }
.row-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 54px; padding: 4px 2px; border-top: 1px solid var(--line); color: var(--text); font-weight: 600; text-align: start; }
.row-link > span:first-child { display: flex; align-items: center; gap: 10px; }
.row-link .ic { color: var(--lilac-dim); }
.row-link:first-of-type { border-top: 0; }
.row-link.danger { color: var(--rose); }
.row-link.danger .ic { color: var(--rose); }
.rl-end { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .86rem; font-weight: 500; }
.row-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-top: 1px solid var(--line); }
.row-line.col { flex-direction: column; align-items: stretch; gap: 10px; }
.row-line:first-of-type { border-top: 0; }
.rl-title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rl-sub { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-top: 2px; }
.time-pair { display: flex; gap: 12px; flex-wrap: wrap; }
.time-pair label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }

/* ───── الشريط العلوي ───── */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px -6px 0; }
.topbar-title { font-size: 1.1rem; font-weight: 700; text-align: center; flex: 1; font-family: var(--font); }
.topbar-sp { width: 44px; flex: none; }
.home-top { display: flex; align-items: center; justify-content: space-between; margin-top: -2px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--lilac); }
.logo { filter: drop-shadow(0 0 10px rgba(160,120,235,.5)); }

/* ───── الترحيب ───── */
.welcome { min-height: calc(100dvh - 60px); display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; gap: 14px; padding: 8px 0; }
.welcome > * { margin-top: 0 !important; }
.welcome-art { width: 210px; margin-bottom: -4px; }
.hero-mirror { width: 100%; height: auto; display: block; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(90, 55, 150, .5)); }
.hero-mirror.big { }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.wm-ar { font-family: var(--font-display); font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, #fff, #D9C6FF 60%, #F0D9B5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm-en { letter-spacing: .5em; font-size: .78rem; color: var(--lilac-dim); font-weight: 700; margin-top: 4px; padding-inline-start: .5em; }
.wordmark.sm .wm-ar { font-size: 2.1rem; }
.slogan { color: var(--gold); font-size: 1.02rem; font-weight: 600; line-height: 1.7; max-width: 300px; }
.welcome-text { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; max-width: 360px; }
.welcome-text h1 { font-size: 1.35rem; margin-bottom: 6px; }
.welcome-text p { color: var(--muted); line-height: 1.8; }
.welcome-text .note { color: var(--lilac); margin-top: 8px; font-weight: 700; }
.welcome .btn { max-width: 360px; margin-top: 6px !important; }

/* ───── الإعداد ───── */
.setup { display: flex; flex-direction: column; gap: 16px; }
.setup > * + * { margin-top: 0; }
.chosen { display: flex; flex-direction: column; gap: 8px; }
.chosen li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 16px; background: rgba(75,45,107,.3); border: 1px solid var(--line); border-radius: 14px; font-weight: 600; }
.lib-cat + .lib-cat, .picker > * + * { margin-top: 14px; }
.picker { display: flex; flex-direction: column; }
.sticky-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 16px 0 calc(14px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 62%, rgba(11,8,22,0)); margin-top: 18px; }
.sticky-bar .btn { flex: 1; width: auto; }
.sticky-bar .hint { flex: 1; }
.sticky-bar .btn.ghost { flex: 0 0 auto; }

/* ───── الرئيسية ───── */
.greet h1 { font-size: 1.6rem; }
.hero-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 22px 20px 22px; border-radius: 30px; background: linear-gradient(170deg, rgba(60, 38, 98, .7), rgba(29, 21, 48, .6) 60%); border: 1px solid var(--line-2); box-shadow: 0 24px 60px rgba(5,3,12,.5), inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: -40% -10% auto; height: 70%; background: radial-gradient(closest-side, rgba(160,120,235,.28), transparent); pointer-events: none; }
.hero-card > * { position: relative; margin-top: 0 !important; }
.hero-art { width: 170px; }
.hero-card h2.ask { font-size: 1.55rem; }
.hero-card .btn { margin-top: 6px !important; }
.hero-card.done { gap: 12px; }
.vac-badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle, rgba(240,217,181,.16), rgba(75,45,107,.2)); border: 1px solid rgba(240,217,181,.35); }
.vac-badge.big { width: 110px; height: 110px; margin: 10px auto 0; box-shadow: 0 0 60px rgba(240,217,181,.18); }

.ring-wrap { position: relative; width: 220px; height: 220px; margin: 4px auto 0; display: grid; place-items: center; }
.ring-wrap.sm { width: 150px; height: 150px; }
.ring-wrap .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-track { fill: none; stroke: rgba(217,198,255,.11); stroke-width: 11; }
.ring-bar { fill: none; stroke-width: 11; stroke-linecap: round; filter: drop-shadow(0 0 12px rgba(217,198,255,.4)); animation: ringIn 1.4s var(--ease) both; }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
.ring-center { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.ring-label { font-size: .88rem; color: var(--lilac-dim); font-weight: 700; margin-bottom: 4px; }
.ring-num { font-family: var(--font-display); font-weight: 800; font-size: 4.4rem; font-variant-numeric: tabular-nums; background: linear-gradient(160deg, #fff, #D9C6FF 70%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 4px 0; }
.ring-wrap.sm .ring-num { font-size: 3rem; }
.ring-wrap.sm .ring-label { font-size: .78rem; }

.habit-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 99px; font-weight: 700; font-size: .95rem; border: 1px solid var(--line-2); background: rgba(217,198,255,.08); color: var(--lilac); }
.habit-chip.h-allResisted { border-color: rgba(240,217,181,.45); color: var(--gold); background: rgba(240,217,181,.08); }
.habit-chip.h-one, .habit-chip.h-many, .habit-chip.h-all { color: var(--lilac-dim); }

.notices { display: flex; flex-direction: column; gap: 10px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 10px; border-radius: var(--r-md); background: rgba(75,45,107,.35); border: 1px solid var(--line-2); }
.notice.warn { background: linear-gradient(135deg, rgba(240,217,181,.13), rgba(75,45,107,.4)); border-color: rgba(240,217,181,.4); }
.n-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(217,198,255,.12); color: var(--lilac); flex: none; }
.notice.warn .n-ic { color: var(--gold); background: rgba(240,217,181,.14); }
.n-body { flex: 1; min-width: 0; }
.n-body strong { display: block; font-weight: 800; margin-bottom: 1px; }
.n-body p { color: var(--lilac-dim); font-size: .92rem; line-height: 1.75; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); text-align: start; min-width: 0; }
.t-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(217,198,255,.1); color: var(--lilac); flex: none; }
.t-ic.gold { background: rgba(240,217,181,.12); color: var(--gold); }
.t-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.t-label { font-size: .76rem; color: var(--muted); }
.t-val { font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-list li { display: flex; align-items: center; gap: 10px; color: var(--text); }
.mini-list .ic { color: var(--lilac-dim); opacity: .7; }
.mini-list .more { color: var(--muted); font-size: .88rem; padding-inline-start: 26px; }
.signature { text-align: center; color: var(--gold); font-weight: 700; font-size: 1.02rem; padding: 14px 8px 4px; opacity: .92; }
.signature.small { font-size: .88rem; color: var(--lilac-dim); font-weight: 600; }

/* ───── التقييم ───── */
.progress { height: 6px; border-radius: 99px; background: rgba(217,198,255,.1); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #B79BF0, #F0D9B5); transition: width .4s var(--ease); }
.eval-sec { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.eval-sec > * + * { margin-top: 0; }
.rlist { display: flex; flex-direction: column; gap: 12px; }
.rcard { padding: 16px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.rcard h3 { margin-bottom: 12px; font-size: 1.05rem; }
.rcard.rated { border-color: var(--line-2); }
.rcard.attn { border-color: rgba(240,217,181,.7); box-shadow: 0 0 0 3px rgba(240,217,181,.14); animation: nudge .5s var(--ease); }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(5px); } 60% { transform: translateX(-4px); } }
.opts { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 8px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px 4px; border-radius: 16px; border: 1px solid var(--line); background: rgba(11,8,22,.45); color: var(--muted); font-size: .78rem; font-weight: 700; line-height: 1.25; text-align: center; transition: all .2s var(--ease); }
.opt.wide { flex-direction: row; min-height: 56px; font-size: .95rem; gap: 8px; }
.opt:active { transform: scale(.96); }
.opt.sel { color: #fff; border-color: var(--lilac); background: linear-gradient(150deg, rgba(120,80,185,.85), rgba(75,45,107,.9)); box-shadow: 0 6px 24px rgba(106,68,160,.5), inset 0 1px 0 rgba(255,255,255,.18); }
.opt.sel.v100 .ic { color: var(--gold); }
.opt.sel.v0 { background: rgba(217,198,255,.1); border-color: var(--lilac-dim); box-shadow: none; color: var(--lilac); }
.opt.sel.voff { background: linear-gradient(150deg, rgba(240,217,181,.16), rgba(75,45,107,.5)); border-color: rgba(240,217,181,.55); color: var(--gold); box-shadow: none; }
.opt.sel.hv-resisted .ic { color: var(--gold); }
.opt.sel.hv-slipped { background: rgba(217,198,255,.1); border-color: var(--lilac-dim); color: var(--lilac); box-shadow: none; }
.eval-bar { }
#eval-err { margin-top: 4px; }

/* ───── النتيجة ───── */
.result { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.result > * { margin-top: 0 !important; }
.msg-card { width: 100%; text-align: center; padding: 18px 20px; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(60,38,98,.6), rgba(29,21,48,.55)); border: 1px solid var(--line-2); font-size: 1.05rem; line-height: 1.9; font-weight: 600; box-shadow: 0 12px 36px rgba(5,3,12,.4); }
.msg-card.habits { text-align: start; background: rgba(29,21,48,.55); font-size: .96rem; font-weight: 500; color: var(--lilac-dim); border-color: var(--line); box-shadow: none; }
.mc-label { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; color: var(--gold); margin-bottom: 4px; }
.streak-line { width: 100%; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: rgba(240,217,181,.08); border: 1px solid rgba(240,217,181,.28); color: var(--gold); }
.streak-line strong { display: block; font-weight: 800; }
.streak-line p { color: var(--lilac-dim); font-size: .9rem; line-height: 1.7; }
.ach-toast { width: 100%; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-md); background: linear-gradient(135deg, rgba(240,217,181,.14), rgba(106,68,160,.3)); border: 1px solid rgba(240,217,181,.4); }
.ach-toast small { color: var(--gold); font-weight: 800; font-size: .74rem; }
.ach-toast strong { display: block; }
.ach-toast p { color: var(--lilac-dim); font-size: .86rem; line-height: 1.6; }
.ach-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--gold); background: rgba(240,217,181,.14); flex: none; }
.athar-text { white-space: pre-wrap; line-height: 1.9; color: var(--text); word-break: break-word; }
.athar.card .btn-row { margin-top: 2px; }

/* التذكيرات */
.rem-list { display: flex; flex-direction: column; }
.rem-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.rem-list li:first-child { border-top: 0; }
.rem-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; margin-inline: 6px; }
.rem-t { flex: 1; font-weight: 600; word-break: break-word; }
.sug-list { display: flex; flex-direction: column; gap: 8px; }
.sug { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 16px; text-align: start; width: 100%; transition: background .2s; }
.sug:hover { background: rgba(217,198,255,.06); }
.sug-plus { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--lilac); background: rgba(217,198,255,.12); flex: none; }
.sug-body { display: flex; flex-direction: column; line-height: 1.4; }
.sug-body small { color: var(--muted); font-size: .82rem; }

/* ───── مساحتي ───── */
.tab-body { display: flex; flex-direction: column; gap: 14px; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row-card { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 8px 8px 6px; padding-inline-start: 16px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); }
.row-title { font-weight: 700; flex: 1; min-width: 0; word-break: break-word; padding: 6px 0; }
.row-actions { display: flex; flex: none; }
.row-actions .icon-btn.sm { width: 36px; }

/* ───── رحلتي ───── */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 8px; }
.summary > div { display: flex; flex-direction: column; align-items: center; gap: 2px; border-inline-start: 1px solid var(--line); }
.summary > div:first-child { border-inline-start: 0; }
.s-val { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--lilac); font-variant-numeric: tabular-nums; line-height: 1.2; }
.s-lab { font-size: .76rem; color: var(--muted); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; }
.cal-title { font-size: 1.15rem; }
.cal { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 10px; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-week span { text-align: center; font-size: .72rem; color: var(--faint); font-weight: 700; padding-bottom: 6px; }
.day { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: var(--muted); border: 1px solid transparent; background: rgba(217,198,255,.04); font-variant-numeric: tabular-nums; transition: transform .15s; min-width: 0; }
.day:active { transform: scale(.92); }
.day.has { background: rgba(217,198,255, var(--a, .4)); color: #fff; border-color: transparent; }
.day.has.dark-ink { color: #1A1030; }
.day.vac { color: var(--gold); border: 1px dashed rgba(240,217,181,.5); background: rgba(240,217,181,.07); }
.day.today { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(240,217,181,.22); }
.day.future { opacity: .25; }
.year-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ymonth { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); }
.ymonth.future { opacity: .3; }
.ym-name { font-size: .85rem; font-weight: 700; color: var(--lilac); }
.mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; width: 100%; padding: 0 6px; }
.mini i { aspect-ratio: 1; border-radius: 50%; background: rgba(217,198,255,.08); display: block; }
.mini i.pad { background: transparent; }
.mini i.on { background: rgba(217,198,255,var(--a, .5)); }
.mini i.v { background: transparent; border: 1px solid rgba(240,217,181,.6); }
.all-list { display: flex; flex-direction: column; gap: 8px; }
.all-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); text-align: start; }
.ar-date { flex: 1; font-weight: 600; font-size: .94rem; }
.ar-h { font-size: .76rem; color: var(--muted); }
.ar-score { min-width: 44px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(217,198,255,.12); color: var(--lilac); font-weight: 800; font-variant-numeric: tabular-nums; }
.ar-score.vac { color: var(--gold); background: rgba(240,217,181,.1); }
.athar-list { display: flex; flex-direction: column; gap: 10px; }
.athar-item { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px 16px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); text-align: start; }
.ai-date { font-size: .8rem; color: var(--gold); font-weight: 700; }
.ai-text { color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.8; }
.cal-foot { display: flex; justify-content: center; }

/* ───── نافذة التفاصيل ───── */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(5, 3, 12, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .25s; }
.overlay.on { background: rgba(5, 3, 12, .66); backdrop-filter: blur(4px); }
.sheet { width: 100%; max-width: 480px; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(180deg, #231845, #17102B); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + var(--safe-b)); transform: translateY(40px); opacity: 0; transition: transform .32s var(--ease), opacity .25s; box-shadow: 0 -20px 60px rgba(5,3,12,.6); display: flex; flex-direction: column; gap: 14px; }
.overlay.on .sheet { transform: none; opacity: 1; }
.sheet > * + * { margin-top: 0; }
.grab { width: 44px; height: 5px; border-radius: 99px; background: rgba(217,198,255,.25); margin: 0 auto 4px; flex: none; }
.sheet-title { font-size: 1.2rem; font-weight: 800; font-family: var(--font-display); }
.confirm { display: flex; flex-direction: column; gap: 14px; }
.confirm-msg { color: var(--lilac-dim); line-height: 1.85; }
.text-sheet { display: flex; flex-direction: column; gap: 14px; }
.day-sheet { display: flex; flex-direction: column; gap: 12px; }
.ds-top { display: flex; align-items: baseline; gap: 12px; }
.ds-score { font-family: var(--font-display); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--lilac); font-variant-numeric: tabular-nums; }
.ds-score.vac { color: var(--gold); }
.ds-lab { color: var(--muted); font-weight: 600; }
.ds-list { display: flex; flex-direction: column; }
.ds-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ds-list li:first-child { border-top: 0; }
.r-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; padding: 3px 11px; border-radius: 99px; background: rgba(217,198,255,.1); color: var(--lilac-dim); white-space: nowrap; }
.r-badge.r100, .r-badge.ok { color: var(--gold); background: rgba(240,217,181,.1); }
.r-badge.roff { color: var(--gold); }
.about { padding-top: 4px; }
.about-art { width: 130px; margin: 0 auto; }

/* ───── الإحصائيات ───── */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-md); }
.stat-val { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1.2; color: var(--lilac); font-variant-numeric: tabular-nums; }
.stat-lab { font-size: .82rem; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; margin-top: 6px; }
.chart .bar { fill: url(#g-bar); }
.chart .bar-val { fill: var(--lilac); font-size: 11px; font-weight: 700; font-family: var(--font); }
.chart .bar-lab { fill: var(--faint); font-size: 10px; font-family: var(--font); }
.chart .axis { stroke: var(--line-2); stroke-width: 1; }
.chart .vdot { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.chart .edot { fill: rgba(217,198,255,.25); }

/* ───── الإنجازات ───── */
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ach { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--line); }
.ach h3 { font-size: .98rem; }
.ach p { font-size: .8rem; color: var(--muted); line-height: 1.65; }
.ach small { font-size: .74rem; color: var(--faint); font-weight: 600; }
.ach-badge { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; color: var(--faint); background: rgba(217,198,255,.06); border: 1px dashed var(--line-2); margin-bottom: 4px; }
.ach.done { background: linear-gradient(165deg, rgba(240,217,181,.1), rgba(75,45,107,.4)); border-color: rgba(240,217,181,.35); }
.ach.done .ach-badge { color: var(--gold); background: rgba(240,217,181,.14); border: 1px solid rgba(240,217,181,.4); box-shadow: 0 0 28px rgba(240,217,181,.2); }
.ach.done .ach-date { color: var(--gold); }
.ach:not(.done) h3 { color: var(--lilac-dim); }
.ach-prog { width: 100%; height: 5px; border-radius: 99px; background: rgba(217,198,255,.1); overflow: hidden; margin-top: 4px; }
.ach-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet-hi), var(--lilac)); border-radius: 99px; }

/* ───── التنقل السفلي ───── */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(480px, 100%); z-index: 20; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 10px calc(8px + var(--safe-b)); background: rgba(16, 10, 30, .82); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); border-top: 1px solid var(--line-2); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 16px; color: var(--faint); font-size: .72rem; font-weight: 700; transition: color .2s; position: relative; }
.nav-item.on { color: var(--lilac); }
.nav-item.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--lilac), var(--gold)); box-shadow: 0 0 14px rgba(217,198,255,.6); }
.nav-item.on .ic { filter: drop-shadow(0 0 8px rgba(217,198,255,.55)); }

/* ───── الإشعارات المؤقتة والشرائح ───── */
.toasts { position: fixed; bottom: calc(96px + var(--safe-b)); left: 0; right: 0; z-index: 90; display: flex; justify-content: center; pointer-events: none; padding: 0 20px; }
.toast { max-width: 420px; background: rgba(38, 26, 63, .96); color: var(--text); border: 1px solid var(--line-2); padding: 13px 20px; border-radius: 16px; font-weight: 600; font-size: .94rem; line-height: 1.6; text-align: center; box-shadow: 0 16px 40px rgba(5,3,12,.6); opacity: 0; transform: translateY(12px); transition: all .3s var(--ease); backdrop-filter: blur(12px); }
.toast.on { opacity: 1; transform: none; }
.chip-bar { max-width: 480px; margin: 0 auto; padding: calc(var(--safe-t) + 8px) 16px 8px; text-align: center; font-size: .84rem; font-weight: 600; color: var(--gold); background: rgba(240,217,181,.08); border-bottom: 1px solid rgba(240,217,181,.2); }
.chip-bar.warn { color: var(--rose); background: rgba(242,201,211,.08); }

/* ───── الحركة المخففة ───── */
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  html[data-motion="auto"] *, html[data-motion="auto"] *::before, html[data-motion="auto"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 359px) {
  .screen { padding-inline: 14px; }
  .opts { gap: 5px; }
  .opt { font-size: .7rem; }
  .tiles, .stat-grid, .ach-grid { gap: 8px; }
}
@media (min-height: 760px) and (max-width: 480px) { .welcome-art { width: 230px; } }
@media print { .bg, .nav { display: none; } }

/* ───── مكتبة الأهداف: المجالات ───── */
.domain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.domain { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 14px 14px; min-height: 124px; text-align: start; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(47,33,80,.75), rgba(29,21,48,.7)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.domain:hover { border-color: var(--line-2); }
.domain:active { transform: scale(.97); }
.d-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at 30% 25%, rgba(240,217,181,.22), rgba(75,45,107,.5)); border: 1px solid rgba(240,217,181,.22); }
.d-ic.inline { display: inline-grid; width: 36px; height: 36px; border-radius: 12px; vertical-align: middle; }
.d-name { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.d-blurb { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.d-count { position: absolute; top: 12px; inset-inline-end: 12px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #1A1030; background: linear-gradient(135deg, #EEE4FF, #CDB5F8); }
.lib .btn.block { margin-top: 14px; }
.lib-rows { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.lib-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: start; border-radius: 16px; border: 1px solid var(--line); background: rgba(29,21,48,.6); transition: background .2s, border-color .2s; }
.lib-row:hover { background: rgba(217,198,255,.07); }
.lib-row.on { border-color: var(--lilac); background: rgba(217,198,255,.12); }
.lib-row[aria-disabled="true"] { opacity: .75; cursor: default; }
.lr-mark { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--lilac); background: rgba(217,198,255,.12); }
.lib-row.on .lr-mark { background: var(--lilac); color: #1A1030; }
.lr-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lr-body strong { font-size: 1rem; }
.lr-body small, .ch-body small, .row-sub { color: var(--muted); font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.lr-tag { font-size: .75rem; color: var(--gold); font-weight: 700; flex: none; }
.ch-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; padding: 4px 0; }
.row-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }

/* ───── بطاقات التقييم المتقدمة ───── */
.rc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rc-head h3 { margin: 0; }
.rc-prog { flex: none; font-weight: 800; font-size: .95rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.chk-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; transition: opacity .2s; }
.chk-list.dim, .cnt.dim { opacity: .45; }
.chk { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(11,8,22,.45); color: var(--muted); font-weight: 700; font-size: 1rem; text-align: start; transition: all .2s var(--ease); }
.chk:active { transform: scale(.98); }
.chk .ic { flex: none; }
.chk.on { color: #fff; border-color: var(--lilac); background: linear-gradient(150deg, rgba(120,80,185,.8), rgba(75,45,107,.9)); box-shadow: 0 6px 22px rgba(106,68,160,.42), inset 0 1px 0 rgba(255,255,255,.16); }
.chk.on .ic { color: var(--gold); }
.chips.tight { gap: 8px; }
.chip.sm { min-height: 38px; padding: 0 13px; font-size: .86rem; }
.chip.vac.on { color: var(--gold); border-color: rgba(240,217,181,.55); background: rgba(240,217,181,.12); }
.cnt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; transition: opacity .2s; }
.cnt-btn { width: 58px; height: 58px; flex: none; border-radius: 20px; display: grid; place-items: center; color: var(--lilac); border: 1px solid var(--line-2); background: rgba(75,45,107,.55); transition: transform .15s, background .2s; }
.cnt-btn:active { transform: scale(.92); }
.cnt-btn:disabled { opacity: .35; }
.cnt-val { display: flex; flex-direction: column; align-items: center; line-height: 1.2; min-width: 0; }
.cnt-val strong { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.cnt-val small { color: var(--muted); font-size: .84rem; }
.cnt-bar { height: 7px; border-radius: 99px; background: rgba(217,198,255,.12); overflow: hidden; margin-bottom: 14px; }
.cnt-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #B79BF0, #E6D9FF); transition: width .3s var(--ease); }
.cnt-bar.full i { background: linear-gradient(90deg, #E6D9FF, var(--gold)); }

/* ───── رسالة مرآة والتفاصيل ───── */
.msg-card.voice { display: flex; flex-direction: column; gap: 12px; text-align: start; }
.msg-card.voice p { margin: 0; line-height: 1.95; }
.msg-card.voice .lead { font-size: 1.12rem; font-weight: 800; color: var(--text); }
.msg-card.voice .ctx { color: var(--gold); font-size: .95rem; }
.msg-card.voice .tip { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--lilac); background: rgba(217,198,255,.08); border-radius: 14px; padding: 10px 12px; }
.msg-card.voice .tip .ic { margin-top: 5px; flex: none; color: var(--gold); }
.msg-card.voice .close { color: var(--muted); font-size: .92rem; }
.gd-list { display: flex; flex-direction: column; gap: 14px; }
.gd-row { display: flex; flex-direction: column; gap: 6px; }
.gd-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gd-title { font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.gd-detail { flex: none; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.gd-bar { height: 6px; border-radius: 99px; background: rgba(217,198,255,.12); overflow: hidden; }
.gd-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8E6CD0, #D9C6FF); }
.gd-row.st-full .gd-bar i { background: linear-gradient(90deg, #D9C6FF, var(--gold)); }
.gd-row.st-full .gd-detail { color: var(--gold); }
.gd-row.st-off .gd-detail { color: var(--gold); }
.gd-row.st-none .gd-bar i { width: 0 !important; }

/* ───── نماذج الأهداف ───── */
.goal-form { display: flex; flex-direction: column; gap: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kp { position: relative; }
.kp input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.kp span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 6px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(11,8,22,.45); color: var(--muted); font-size: .84rem; font-weight: 700; line-height: 1.4; transition: all .2s; }
.kp input:checked + span { color: var(--lilac); border-color: var(--lilac); background: rgba(217,198,255,.14); }
.kp input:focus-visible + span { outline: 2px solid var(--lilac); outline-offset: 2px; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; color: var(--lilac-dim); }
.check-row input { width: 20px; height: 20px; accent-color: #B79BF0; flex: none; }
.lib-sheet, .domain-sheet, .variant-sheet { display: flex; flex-direction: column; gap: 6px; }
[hidden] { display: none !important; }
@media (max-width: 360px) { .domain-grid { gap: 8px; } .domain { padding: 14px 12px; } .cnt-btn { width: 50px; height: 50px; } .kind-pick { grid-template-columns: 1fr; } }
.result > .card.gd { align-self: stretch; }
.msg-card.voice p:not(.lead):not(.ctx):not(.close):not(.tip) { font-weight: 500; font-size: 1rem; }

/* ───── الأهداف الذهبية ───── */
.gold-badge{display:inline-flex;align-items:center;gap:3px;margin-inline-start:6px;padding:1px 8px 1px 6px;border-radius:999px;font-size:11px;font-weight:600;vertical-align:middle;color:var(--gold,#d9b36c);background:color-mix(in srgb,var(--gold,#d9b36c) 14%,transparent);border:1px solid color-mix(in srgb,var(--gold,#d9b36c) 35%,transparent)}
.gold-badge svg{fill:currentColor}
.gold-btn{color:var(--muted,#8b93a7)}
.gold-btn.on{color:var(--gold,#d9b36c)}
.gold-btn.on svg{fill:currentColor}
.gold-note{border-color:color-mix(in srgb,var(--gold,#d9b36c) 30%,transparent)}
.gold-note svg{color:var(--gold,#d9b36c);flex:none}
.gd-row.gold .gd-bar i{background:var(--gold,#d9b36c)}
.gd-note{margin:6px 0 0;font-size:13px;color:var(--muted,#8b93a7)}
.gold-ask{border-color:color-mix(in srgb,var(--gold,#d9b36c) 35%,transparent)}
.gold-ask .chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.gold-ask .chip{min-height:40px}
.gold-ask .chip.sel{border-color:var(--gold,#d9b36c);color:var(--gold,#d9b36c)}
.gold-ask .gold-text{width:100%;box-sizing:border-box;margin-bottom:10px}

/* ───── الحساب والمزامنة ───── */
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;border-radius:14px;background:rgba(29,21,48,.6);border:1px solid var(--line-2)}
.auth-tab{min-height:44px;border-radius:10px;font-weight:700;color:var(--lilac-dim)}
.auth-tab.on{background:rgba(217,198,255,.16);color:var(--lilac)}
.auth-form{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.auth-form .input[dir=ltr]{text-align:left}
.link-btn{align-self:center;min-height:44px;color:var(--lilac);text-decoration:underline;text-underline-offset:4px}
.acct-card{display:flex;flex-direction:column;gap:4px;padding:14px;border-radius:16px;border:1px solid var(--line-2);background:rgba(29,21,48,.55);word-break:break-all}
.sync-line{margin:6px 0 0;font-size:.9rem;font-weight:600}
.sync-line.ph-offline,.sync-line.ph-error,.sync-line.ph-expired{color:var(--gold)}
.note-card.ok{border-color:rgba(160,220,190,.4)}
.note-card.warn{border-color:rgba(240,217,181,.45)}
.badge-ic.ok{color:#a8e0c4}
.mig-counts{font-weight:700;color:var(--gold)}
.conf-card{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;border:1px solid var(--line-2)}
.conf-cols{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.conf-cols small{display:block;color:var(--lilac-dim)}
button.chip-bar{width:100%;text-align:center}
.btn.danger,.btn.ghost.danger{color:#f0a9b5}

/* ───── MIRROR PLUS ───── */
html[data-theme="ocean"] { --bg:#070D1A; --bg-2:#0B1526; --surface:#12203A; --surface-2:#192B4B; --surface-3:#21386070; --violet:#2D4A6B; --violet-hi:#4474A8; --lilac:#BFD6FF; --lilac-dim:#93B1DC; --gold:#E8E0C4; --rose:#C9DDF2; --text:#EEF4FF; --muted:#98A9C6; --faint:#6F7F99; --line:rgba(191,214,255,.13); --line-2:rgba(191,214,255,.24); --glass:rgba(18,32,58,.66); }
html[data-theme="forest"] { --bg:#07120E; --bg-2:#0B1B15; --surface:#12281F; --surface-2:#193629; --surface-3:#21463570; --violet:#2D6B4B; --violet-hi:#44A070; --lilac:#BFE8D0; --lilac-dim:#93C9AB; --gold:#EBDDB0; --rose:#D2EBC9; --text:#EFFFF6; --muted:#98C6AE; --faint:#6F9983; --line:rgba(191,232,208,.13); --line-2:rgba(191,232,208,.24); --glass:rgba(18,40,31,.66); }
html[data-theme="ember"] { --bg:#140A08; --bg-2:#1E100C; --surface:#301B14; --surface-2:#3F251B; --surface-3:#5A352770; --violet:#6B3A2D; --violet-hi:#A56444; --lilac:#FFD2B8; --lilac-dim:#DBAB92; --gold:#F5DFAE; --rose:#F5C9B8; --text:#FFF3EC; --muted:#C6A798; --faint:#997D6F; --line:rgba(255,210,184,.13); --line-2:rgba(255,210,184,.24); --glass:rgba(48,27,20,.66); }
html[data-theme="blossom"] { --bg:#150A12; --bg-2:#1F0F1A; --surface:#321B2B; --surface-2:#412539; --surface-3:#5A354F70; --violet:#6B2D58; --violet-hi:#A04485; --lilac:#FFC9E0; --lilac-dim:#DBA0BE; --gold:#F5DCC0; --rose:#FFD6E4; --text:#FFF0F7; --muted:#C698B3; --faint:#996F89; --line:rgba(255,201,224,.13); --line-2:rgba(255,201,224,.24); --glass:rgba(50,27,43,.66); }
html[data-theme="graphite"] { --bg:#0E0E10; --bg-2:#151518; --surface:#202024; --surface-2:#2A2A30; --surface-3:#38383F70; --violet:#46465A; --violet-hi:#6A6A88; --lilac:#D8D8E6; --lilac-dim:#A9A9BD; --gold:#E6DCC4; --rose:#DCD2D8; --text:#F4F4FA; --muted:#A3A3B5; --faint:#7A7A8C; --line:rgba(216,216,230,.13); --line-2:rgba(216,216,230,.24); --glass:rgba(32,32,36,.66); }

.plus-badge { display:inline-flex; align-items:center; gap:4px; font-size:.68rem; font-weight:800; font-style:normal; color:var(--bg); background:linear-gradient(135deg,var(--gold),var(--lilac)); border-radius:99px; padding:1px 9px; vertical-align:middle; }
.plus-hero { text-align:center; display:grid; gap:10px; justify-items:center; }
.plus-hero h2 { margin:0; font-family:var(--font-display); font-size:1.4rem; }
.plus-hero-ic { width:58px; height:58px; border-radius:50%; display:grid; place-items:center; color:var(--gold); background:radial-gradient(circle,rgba(240,217,181,.2),transparent 70%); border:1px solid rgba(240,217,181,.35); }
.plus-on { color:var(--gold); font-weight:700; display:flex; gap:6px; align-items:center; margin:0; }
.plus-f { display:flex; gap:12px; align-items:center; text-align:start; }
.plus-f b { display:block; }
.plus-f small { display:block; color:var(--muted); font-size:.8rem; line-height:1.6; margin-top:2px; }
.plus-fi { flex:none; width:38px; height:38px; border-radius:12px; display:grid; place-items:center; color:var(--gold); background:var(--surface-2); }
.plus-price { display:flex; align-items:baseline; justify-content:center; gap:8px; padding:14px 0 4px; }
.pp-num { font-family:var(--font-display); font-size:2.6rem; font-weight:800; color:var(--gold); }
.pp-unit { color:var(--muted); }
.plus-cta { width:100%; margin-top:10px; }
.plus-demo { margin-bottom:6px; }
.plus-list { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.plus-list li { line-height:1.9; padding:12px 14px; background:var(--surface-2); border-radius:var(--r-sm); }
.plus-list li .btn { margin-top:8px; }
.plus-note { color:var(--lilac); line-height:1.9; margin:10px 0 0; }
.plus-big { font-family:var(--font-display); font-size:1.35rem; font-weight:800; color:var(--gold); margin:0 0 6px; }
.wd-bars { display:grid; gap:10px; }
.wd-row { display:grid; grid-template-columns:76px 1fr 34px; align-items:center; gap:10px; }
.wd-n { font-size:.88rem; color:var(--muted); }
.wd-track { height:10px; background:var(--surface-2); border-radius:99px; overflow:hidden; }
.wd-track i { display:block; height:100%; background:linear-gradient(90deg,var(--violet-hi),var(--lilac)); border-radius:99px; }
.wd-v { font-variant-numeric:tabular-nums; font-weight:700; text-align:end; }
.theme-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.theme-b { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:var(--r-sm); border:1px solid var(--line); background:var(--surface-2); color:var(--text); font:inherit; cursor:pointer; }
.theme-b.on { border-color:var(--gold); }
.theme-sw { width:34px; height:34px; border-radius:50%; border:2px solid; display:grid; place-items:center; flex:none; }
.theme-sw i { width:14px; height:14px; border-radius:50%; display:block; }
.plus-sheet { display:grid; gap:14px; justify-items:center; text-align:center; }
.share-img { width:100%; max-width:340px; border-radius:var(--r-md); }
.btn-row.wrap { flex-wrap:wrap; }
