/* ============================================================
   دورتي — ستايل التطبيق
   عربي RTL • Cairo للواجهة • Amiri للعناوين
   لوحة الألوان: وردي ترابي هادي + تدرجات وردي فاتح + كروت بيضاء
   + خلفية كريمي دافية. لون مساعد واحد هادي (أخضر مزّيت) للتمييز بس.
   ============================================================ */

:root {
  /* الباليتة المعتمدة: وردي ورد أعمق */
  --bg: #FFF5F8;
  --bg-2: #FFEFF4;
  --card: #FFFFFF;
  --ink: #7A2E44;
  --ink-2: #9A5568;
  --ink-3: #BC8C9A;
  --line: #F7DCE5;
  --line-2: #FBEAF0;

  --rose: #E75480;
  --rose-deep: #B02B52;
  --rose-soft: #FCE1EA;
  --rose-mist: #FEF3F7;
  --blush: #FBE3EC;
  --blush-deep: #D9608A;

  /* لون مساعد هادي للتبويض */
  --sage: #6E9B7F;
  --sage-deep: #3F6B4F;
  --sage-soft: #E7F1EA;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 8px 24px rgba(176, 43, 82, 0.08);
  --shadow-sm: 0 2px 8px rgba(176, 43, 82, 0.06);
  --tabbar-h: 66px;

  /* ألوان إضافية قابلة للتغيير مع الباليتة */
  --exp-bg: #FFFFFF;
  --ovu: #6E9B7F;
  --ovu-deep: #3F6B4F;
  --ovu-soft: #E7F1EA;
  --btn-ink: #FFFFFF;
  --grad-a: rgba(252, 225, 234, 0.95);
  --grad-b: rgba(248, 198, 213, 0.5);

  /* الخطوط: مكان واحد للتغيير */
  --font-ui: 'El Messiri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'El Messiri', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(120% 60% at 100% 0%, var(--grad-a) 0%, rgba(252, 247, 242, 0) 62%),
    radial-gradient(100% 50% at 0% 4%, var(--grad-b) 0%, rgba(252, 247, 242, 0) 58%);
  background-attachment: fixed;
  min-height: 100%;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0; line-height: 1.35; }
p { margin: 0; }
button { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- layout ---------- */
.app.app--embed { padding-top: 30px; }
.app {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px calc(var(--tabbar-h) + 28px);
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 2px 10px;
}
.topbar__brand { display: flex; align-items: baseline; gap: 8px; }
.topbar__title { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--rose-deep); }
.topbar__sub { font-size: 12px; color: var(--ink-3); }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.icon-btn:active { transform: scale(.95); }
.icon-btn svg { width: 20px; height: 20px; }

.view { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card--hero {
  background:
    radial-gradient(120% 90% at 92% 0%, var(--grad-a) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(90% 80% at 0% 100%, var(--grad-b) 0%, rgba(255, 255, 255, 0) 70%),
    #FFFFFF;
  padding: 22px 18px 20px;
}
.card--rose { background: linear-gradient(180deg, var(--rose-mist) 0%, #FFFFFF 72%); }

.section-title { font-size: 19px; color: var(--rose-deep); margin-bottom: 10px; }
.muted { color: var(--ink-2); font-size: 14px; }
.tiny { font-size: 12px; color: var(--ink-3); line-height: 1.7; }
/* الخط الرفيع تحت أي عنوان: مسافة أوسع شوية عشان يتنفّس */
.section-title + .tiny, .section-title + p.tiny { margin-top: 2px; }
.row .tiny { display: block; margin-top: 5px; line-height: 1.65; }
.view > .tiny:first-child { margin-top: 6px; }
.card > .tiny + .tiny { margin-top: 6px; }
.item__sub, .row__s { margin-top: 4px; }

/* ---------- hero ---------- */
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.hero__day { display: flex; align-items: baseline; gap: 6px; }
.hero__num { font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--rose-deep); line-height: 1; }
.hero__of { font-size: 15px; color: var(--ink-2); }
.hero__label { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--rose-soft); color: var(--rose-deep);
  border: 1px solid rgba(172, 96, 109, 0.18);
  white-space: nowrap;
}
.pill--blush { background: var(--rose-mist); color: var(--blush-deep); border-color: rgba(201, 141, 138, 0.28); }
.pill--sage { background: var(--ovu-soft); color: var(--ovu-deep); border-color: rgba(126, 156, 134, 0.3); }
.pill--ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.stat {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 12px 11px;
}
.stat__label { font-size: 12px; color: var(--ink-3); display: block; margin-bottom: 2px; }
.stat__value { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.stat__value small { font-size: 13px; font-weight: 400; color: var(--ink-2); }

.fertile-row { display: flex; align-items: center; gap: 10px; }
.fertile-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blush-deep); flex: none; }

/* ---------- banner ---------- */
.banner {
  display: flex; gap: 10px; align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--rose-soft);
  border: 1px solid rgba(172, 96, 109, 0.2);
  color: var(--rose-deep);
  font-size: 14px;
}
.banner--warn { background: #FDF4E7; border-color: #F2DFC4; color: #8A6234; }

/* ---------- chips / fields ---------- */
.field { margin-top: 13px; }
.field:first-child { margin-top: 0; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  min-height: 37px;
}
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] {
  background: var(--rose-soft);
  border-color: rgba(172, 96, 109, 0.45);
  color: var(--rose-deep);
  font-weight: 600;
}
.chip--rose[aria-pressed="true"] {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--btn-ink);
}

textarea.note {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
}
textarea.note:focus, input.date:focus, .stepper__btn:focus-visible, .chip:focus-visible,
.btn:focus-visible, .icon-btn:focus-visible, .tab:focus-visible, .day:focus-visible, .switch:focus-visible {
  outline: 2px solid rgba(172, 96, 109, 0.5);
  outline-offset: 2px;
}

input.date {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
}

/* ---------- stepper ---------- */
.stepper {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 8px 10px;
}
.stepper__btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--rose-mist);
  color: var(--rose-deep);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.stepper__btn:disabled { opacity: .4; cursor: default; }
.stepper__value { font-size: 18px; font-weight: 700; }
.stepper__value small { font-size: 12px; font-weight: 400; color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  min-height: 50px;
}
.btn--primary { background: var(--rose); color: var(--btn-ink); box-shadow: 0 6px 18px rgba(172, 96, 109, .22); font-size: 17px; font-weight: 700; }
.btn--primary:active { background: var(--rose-deep); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink-2); font-weight: 500; }
.btn--danger { background: #fff; border-color: #EFD0CB; color: #A65348; font-weight: 500; }

/* ---------- calendar ---------- */
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__month { font-family: var(--font-head); font-size: 20px; color: var(--rose-deep); }
.cal__nav { display: flex; gap: 6px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: 11px; color: var(--ink-3); padding-bottom: 4px; }
.day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.day--empty { visibility: hidden; }
.day--muted { color: var(--ink-3); }
.day--period { background: var(--rose); color: #fff; font-weight: 700; }
.day--expected { background: var(--exp-bg); color: var(--rose-deep); border: 2px dashed rgba(231, 84, 128, .75); }
.day--fertile { background: var(--blush); color: #7E4750; }
.day--ovu { background: var(--ovu); color: #fff; font-weight: 700; }
.day--today { box-shadow: inset 0 0 0 2px var(--rose-deep); }
.day--today.day--period, .day--today.day--ovu { box-shadow: inset 0 0 0 2px #fff; }
.day--has-log::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rose-deep);
}
.day--period.day--has-log::after, .day--ovu.day--has-log::after { background: #fff; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 14px; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.swatch { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.swatch--period { background: var(--rose); }
.swatch--expected { background: var(--exp-bg); border: 2px dashed rgba(231, 84, 128, .8); }
.swatch--fertile { background: var(--blush); }
.swatch--ovu { background: var(--ovu); }
.swatch--log { background: var(--rose-deep); border-radius: 50%; width: 8px; height: 8px; }

/* ---------- info ---------- */
.info__item + .info__item { margin-top: 10px; }
.info__item h3 { font-size: 17px; color: var(--rose-deep); margin-bottom: 6px; }
.info__item p { font-size: 14.5px; color: var(--ink); }
.info__item ul { margin: 8px 0 0; padding-inline-start: 18px; }
.info__item li { font-size: 14.5px; color: var(--ink); margin-bottom: 6px; }
.src { font-size: 11.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.7; }
.src a { color: var(--rose); text-decoration: none; border-bottom: 1px dotted rgba(172, 96, 109, .5); }

details.info__item { border-top: 1px solid var(--line-2); padding-top: 12px; }
details.info__item:first-of-type { border-top: none; padding-top: 0; }
details.info__item > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--rose-deep);
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  min-height: 40px;
}
details.info__item > summary::-webkit-details-marker { display: none; }
details.info__item > summary::after {
  content: '+';
  font-family: var(--font-ui);
  color: var(--rose);
  font-size: 18px;
  line-height: 1;
}
details.info__item[open] > summary::after { content: '–'; }

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tabbar__inner {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--tabbar-h);
}
.tab {
  border: 0;
  background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--ink-3);
  font-size: 11.5px;
  cursor: pointer;
  padding: 6px 2px;
}
.tab svg { width: 22px; height: 22px; }
.tab--active { color: var(--rose-deep); font-weight: 600; }
.tab--active svg { color: var(--rose); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--tabbar-h) + 18px);
  inset-inline: 0;
  margin: 0 auto;
  width: max-content;
  max-width: 88%;
  background: var(--rose-deep);
  color: #fff;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(142, 75, 87, .28);
  z-index: 60;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.toast--show { opacity: 1; transform: translateY(0); }

/* ---------- sheet (settings) ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(67, 52, 58, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet__panel {
  background: var(--bg);
  width: 100%;
  max-width: 520px;
  border-radius: 24px 24px 0 0;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0));
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 -10px 30px rgba(67, 52, 58, .18);
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet__title { font-family: var(--font-head); font-size: 21px; color: var(--rose-deep); }
.sheet__body { display: flex; flex-direction: column; gap: 14px; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px;
}
.switch-row__text { font-size: 14px; }
.switch-row__text small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.switch {
  position: relative; width: 50px; height: 30px; flex: none;
  border-radius: 999px; border: 1px solid var(--line);
  background: #F0E5E3; cursor: pointer; padding: 0;
  transition: background .18s ease;
}
.switch::after {
  content: ''; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .18s ease;
}
.switch[aria-checked="true"] { background: var(--rose); border-color: var(--rose); }
.switch[aria-checked="true"]::after { transform: translateX(-20px); }

/* ---------- lock ---------- */
.lock { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.lock__card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow); padding: 26px 20px; width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 12px;
}
.lock__icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  margin: 0 auto 2px; background: var(--rose-soft); color: var(--rose-deep);
}
.lock__icon svg { width: 26px; height: 26px; }
.lock__title { font-size: 23px; text-align: center; color: var(--rose-deep); }
.lock__err { color: #B4584D; font-size: 13px; text-align: center; }
.pin {
  width: 100%; text-align: center; letter-spacing: 6px; font-size: 22px;
  padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-head); background: #fff; color: var(--ink);
}
.pin:focus { outline: 2px solid rgba(231, 84, 128, 0.45); outline-offset: 2px; }

/* ---------- setup ---------- */
.setup { padding-top: 26px; }
.setup__title { font-size: 30px; color: var(--rose-deep); margin-bottom: 6px; }
.setup__lead { color: var(--ink-2); font-size: 14.5px; margin-bottom: 20px; }
.setup__card { display: flex; flex-direction: column; gap: 16px; }

.privacy {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; color: var(--ink-2);
  background: rgba(255, 255, 255, 0.62);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  line-height: 1.75;
}
.privacy svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--rose); }

.divider { height: 1px; background: var(--line-2); margin: 4px 0; }

@media (min-width: 700px) {
  .app { padding-bottom: 40px; }
  .tabbar { position: sticky; bottom: 16px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 18px; }
  .tabbar__inner { height: 62px; }
  .toast { bottom: 90px; }
}

/* إعدادات كشاشة كاملة بدل الشيت */
.settings-body { display: flex; flex-direction: column; gap: 14px; }
.settings-title { font-family: var(--font-head); font-size: 19px; color: var(--rose-deep); margin: 0 0 2px; }
.card--settings { padding: 16px 15px 18px; }
.tab span { font-size: 10.5px; }

/* منتقي تاريخ بأرقام عربية-هندية */
.datefield { display: flex; gap: 8px; }
.datefield__sel {
  flex: 1 1 0; min-width: 0; text-align: center; text-align-last: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 14px; padding: 12px 6px; font-family: var(--font-ui); font-size: 15px;
  -webkit-appearance: none; appearance: none;
}

/* ============================================================
   الشاشة الرئيسية: كروت الأقسام + رسالة اليوم + إنجازاتي
   ============================================================ */
:root {
  --c1-bg: #FCE1EA; --c1-ink: #B02B52;
  --c2-bg: #F8E9EF; --c2-ink: #9A5568;
  --c3-bg: #E7F1EA; --c3-ink: #3F6B4F;
  --c4-bg: #FBEADF; --c4-ink: #A25E3E;
  --daily-a: #FEF3F7;
}
/* الثيم البديل: موف وردي + أوف وايت + لمسات سماوي، ونص غامق دافي */
[data-theme="b"] {
  --bg: #FAF6F3;
  --bg-2: #F4EDEA;
  --card: #FFFFFF;
  --ink: #46383A;
  --ink-2: #7A6265;
  --ink-3: #A69193;
  --line: #EADFDA;
  --line-2: #F3EBE7;

  --rose: #B9808C;
  --rose-deep: #8C5560;
  --rose-soft: #F3E3E6;
  --rose-mist: #FAF0F1;
  --blush: #EEDCE0;
  --blush-deep: #B9808C;

  --sage: #8FB6C6;
  --sage-deep: #4E7C8C;
  --sage-soft: #E9F2F6;

  --ovu: #8FB6C6;
  --ovu-deep: #4E7C8C;
  --ovu-soft: #E9F2F6;

  --shadow: 0 8px 24px rgba(140, 85, 96, 0.08);
  --shadow-sm: 0 2px 8px rgba(140, 85, 96, 0.06);

  --grad-a: rgba(243, 227, 230, 0.9);
  --grad-b: rgba(233, 242, 246, 0.7);

  --c1-bg: #F3E3E6; --c1-ink: #8C5560;
  --c2-bg: #E9F2F6; --c2-ink: #4E7C8C;
  --c3-bg: #EDF2E9; --c3-ink: #5A7355;
  --c4-bg: #FAEDE6; --c4-ink: #96603F;
  --daily-a: #F7EEEF;
}

.hero--compact .hero__num { font-size: 40px; }
.hero__hint { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.6; }
.hero__foot { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; line-height: 1.6; }

.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat {
  position: relative; text-align: start; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 7px;
  box-shadow: var(--shadow-sm); font-family: inherit; color: var(--ink);
  transition: transform .12s ease;
}
.cat:active { transform: scale(.985); }
.cat__icon {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cat-bg); color: var(--cat-ink); margin-bottom: 2px;
}
.cat__icon svg { width: 21px; height: 21px; }
.cat__t { font-family: var(--font-head); font-size: 15.5px; font-weight: 700; color: var(--rose-deep); line-height: 1.35; }
.cat__s { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.cat--c1 { --cat-bg: var(--c1-bg); --cat-ink: var(--c1-ink); }
.cat--c2 { --cat-bg: var(--c2-bg); --cat-ink: var(--c2-ink); }
.cat--c3 { --cat-bg: var(--c3-bg); --cat-ink: var(--c3-ink); }
.cat--c4 { --cat-bg: var(--c4-bg); --cat-ink: var(--c4-ink); }

.card--daily { background: linear-gradient(180deg, var(--daily-a) 0%, var(--card) 82%); }
.daily__badge {
  display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600;
  color: var(--rose-deep); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px;
}
.daily__text {
  font-family: var(--font-head); font-size: 19px; line-height: 1.8;
  color: var(--ink); margin-top: 12px; text-align: center;
}
.daily__src { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 6px; }

.ach__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ach__pts {
  font-family: var(--font-head); font-size: 13.5px; font-weight: 700; color: var(--btn-ink);
  background: var(--rose); border-radius: 999px; padding: 3px 12px;
}
.ach__badges { display: flex; gap: 10px; margin-top: 14px; }
.badge {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 11px 6px; border-radius: 16px; border: 1px dashed var(--line); background: var(--card);
}
.badge--on { border-style: solid; border-color: var(--rose-soft); background: var(--rose-mist); }
.badge__dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--line-2); color: var(--ink-3);
}
.badge--on .badge__dot { background: var(--rose); color: #fff; }
.badge__dot svg { width: 16px; height: 16px; }
.badge__t { font-size: 10.5px; color: var(--ink-2); text-align: center; line-height: 1.4; }

/* ================= اتجاهات الشاشة الرئيسية (معاينة تصميم) ================= */
.art { width: 100%; height: 100%; display: block; }

/* ١) هيرو */
.hero2 {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(160deg, #FFF1F6 0%, #FFFFFF 78%);
  border: 1px solid var(--line-2); border-radius: 26px; padding: 18px 16px;
  box-shadow: var(--shadow);
}
.hero2__ring { position: relative; flex: none; width: 132px; height: 132px; }
.hero2__ring .ring { display: block; }
.hero2__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.hero2__n { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--rose-deep); line-height: 1; }
.hero2__u { font-size: 11.5px; color: var(--ink-3); }
.hero2__side { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hero2__big { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--ink); }
.hero2__sub { font-size: 12.5px; color: var(--ink-2); }
.hero2__sub2 { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }

.tiles { display: flex; flex-direction: column; gap: 12px; }
.tile {
  display: flex; align-items: stretch; gap: 0; padding: 0; overflow: hidden; cursor: pointer;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 22px;
  box-shadow: var(--shadow-sm); font-family: inherit; color: var(--ink); text-align: start;
}
.tile:active { transform: scale(.99); }
.tile__art { flex: none; width: 104px; min-height: 92px; }
.tile__body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 14px 14px 14px 12px; justify-content: center; }
.tile__t { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--rose-deep); }
.tile__s { font-size: 12px; color: var(--ink-3); line-height: 1.6; }

.qband {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: linear-gradient(180deg, var(--rose-mist) 0%, #fff 85%);
  border: 1px solid var(--line-2); border-radius: 22px; padding: 16px 18px;
}
.qband__k { font-size: 11.5px; font-weight: 600; color: var(--rose-deep); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.qband__t { font-family: var(--font-head); font-size: 18px; line-height: 1.8; color: var(--ink); margin-top: 4px; }
.qband__s { font-size: 11px; color: var(--ink-3); }

.achline {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.achline__l { display: flex; align-items: baseline; gap: 4px; }
.achline__n { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--rose-deep); }
.achline__u { font-size: 11.5px; color: var(--ink-3); }
.achline__b { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ٢) مجلة */
.band {
  display: block; width: 100%; text-align: start; font-family: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; padding: 0;
}
.band--hero { display: flex; align-items: center; gap: 10px; padding: 18px 16px; background: linear-gradient(150deg, #FFF0F5, #FFFFFF 70%); }
.band__txt { flex: 1; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.band__num { font-family: var(--font-head); font-size: 46px; font-weight: 700; color: var(--rose-deep); line-height: 1; }
.band__cap { font-size: 13px; color: var(--ink-2); }
.band__cap2 { font-size: 11.5px; color: var(--ink-3); }
.band__art { flex: none; }
.band--cat { display: flex; flex-direction: column; }
.band__img { display: block; width: 100%; height: 118px; }
.band__row { display: flex; flex-direction: column; gap: 4px; padding: 13px 16px 15px; }
.band__t { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--rose-deep); }
.band__s { font-size: 12.5px; color: var(--ink-3); }
.band--quote { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 20px 18px; background: linear-gradient(180deg, #FFF4F8, #FFFFFF 80%); }
.band__quote { font-family: var(--font-head); font-size: 20px; line-height: 1.8; color: var(--ink); margin-top: 4px; }

/* ٣) عجلة */
.dial { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 10px 4px; }
.dial svg { display: block; }
.dial__in { position: absolute; top: 0; left: 0; right: 0; height: 244px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.dial__n { font-family: var(--font-head); font-size: 52px; font-weight: 700; color: var(--rose-deep); line-height: 1; }
.dial__u { font-size: 12px; color: var(--ink-3); }
.dial__pill { margin-top: 6px; }
.dial__cap { font-size: 12px; color: var(--ink-2); text-align: center; margin-top: 2px; }

.ring-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ringcat { display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: inherit; color: var(--ink); }
.ringcat__i {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--rose-deep); box-shadow: var(--shadow-sm);
}
.ringcat__i svg { width: 22px; height: 22px; }
.ringcat__t { font-size: 10.5px; color: var(--ink-2); text-align: center; line-height: 1.35; }

/* ================= الشاشة الرئيسية — نسخة المرجع ================= */
.hdr { position: relative; padding: 6px 0 2px; text-align: start; }
.hdr__bell {
  position: absolute; inset-inline-start: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2);
  color: var(--rose-deep); box-shadow: var(--shadow-sm); cursor: pointer;
}
.hdr__bell svg { width: 20px; height: 20px; }
.hdr { padding-top: 4px; }
.hdr__name { padding-top: 46px; font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--rose-deep); display: flex; align-items: center; gap: 8px; }
.hdr__heart { color: var(--rose); display: inline-flex; }
.hdr__heart svg { width: 20px; height: 20px; }
.hdr__sub { font-size: 12.5px; font-weight: 400; color: var(--ink-3); margin-top: 4px; line-height: 1.65; max-width: 20em; }
.hdr__flower { color: var(--rose); display: inline-flex; vertical-align: -2px; margin-inline-start: 2px; }
.hdr__flower svg { width: 13px; height: 13px; }

.view--ref { gap: 16px; padding-top: 10px; }

.hello { background: #FBE3EC; border-radius: 24px; padding: 18px 18px 20px; }
.hello__t { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 19px; font-weight: 700; color: #8E3B58; }
.hello__h { color: #E75480; display: inline-flex; }
.hello__h svg { width: 18px; height: 18px; }
.hello__s { font-size: 13.5px; color: #A86279; margin-top: 4px; }

.secs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sec {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; cursor: pointer;
  border: 0; border-radius: 22px; padding: 16px 16px 18px; font-family: inherit; text-align: start;
  box-shadow: 0 6px 18px rgba(140, 100, 110, .06);
}
.sec:active { transform: scale(.985); }
.sec__i { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.72); }
.sec__i svg { width: 21px; height: 21px; }
.sec__t { font-family: var(--font-head); font-size: 15.5px; font-weight: 700; line-height: 1.35; }
.sec__s { font-size: 11.5px; line-height: 1.5; opacity: .72; margin-top: -6px; }
.sec--pink { background: #FBE4EC; color: #A6405F; }
.sec--mint { background: #E4F1E8; color: #47765B; }
.sec--cream { background: #FBF0DC; color: #8E6A34; }
.sec--sky { background: #E3EEF7; color: #3F6E8E; }

.pcard { background: #EFE9F7; border-radius: 24px; padding: 16px 18px 18px; }
.pcard__r1 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard__pillwrap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pcard__sub { font-size: 11px; color: #8E7FA8; }
.pcard__pill { font-size: 11.5px; font-weight: 600; color: #5F4A86; background: #fff; border-radius: 999px; padding: 3px 12px; }
.pcard__day { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: #5F4A86; }
.pcard__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pcard__cell { background: #fff; border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.pcard__k { font-size: 11px; color: #8E7FA8; }
.pcard__v { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: #4A3A63; }

.msgcard { background: #FCE7EF; border-radius: 24px; padding: 18px; text-align: center; }
.msgcard__k { font-size: 11.5px; font-weight: 600; color: #8E3B58; background: #fff; border-radius: 999px; padding: 3px 12px; display: inline-block; }
.msgcard__t { font-family: var(--font-head); font-size: 18px; line-height: 1.8; color: #6E2A41; margin-top: 10px; }
.msgcard__s { font-size: 11px; color: #A86279; display: block; margin-top: 6px; }

/* ================= الشاشات الداخلية ================= */
.sechdr { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 0 4px; }
.sechdr__sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.sechdr__back {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: #fff; border: 1px solid var(--line-2); color: var(--rose-deep); cursor: pointer; box-shadow: var(--shadow-sm);
}
.sechdr__back svg { width: 18px; height: 18px; }
.sechdr__t { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--rose-deep); }

.secs--1 { grid-template-columns: 1fr; }
.scard {
  display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: start;
  border: 1px solid rgba(255,255,255,.85); border-radius: 22px; padding: 15px 16px; font-family: inherit;
  background-image: linear-gradient(158deg, rgba(255,255,255,.78), rgba(255,255,255,0) 62%);
  box-shadow: 0 8px 20px rgba(176, 43, 82, .07);
}
.scard:active { transform: scale(.99); }
.scard__i { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: 0 3px 9px rgba(176,43,82,.09); flex: none; }
.scard__i svg { width: 21px; height: 21px; }
.scard__b { display: flex; flex-direction: column; gap: 3px; }
.scard__t { font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.scard__s { font-size: 12px; opacity: .8; }
.scard--pink { background: #FBE4EC; color: #A6405F; }
.scard--mint { background: #E4F1E8; color: #47765B; }
.scard--cream { background: #FBF0DC; color: #8E6A34; }
.scard--sky { background: #E3EEF7; color: #3F6E8E; }
.scard--peach { background: #FCE9DF; color: #9B5F3E; }
.scard--lav { background: #EFE9F7; color: #5F4A86; }

.row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.row:last-child { border-bottom: 0; }
.row__t { flex: 1; font-size: 14.5px; color: var(--ink); }
.row__t--on { color: var(--ink-3); text-decoration: line-through; }
.row__x { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-3); cursor: pointer; font-size: 15px; line-height: 1; flex: none; }
.checkbtn {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff;
  display: grid; place-items: center; color: #fff; cursor: pointer; flex: none;
}
.checkbtn svg { width: 15px; height: 15px; }
.checkbtn--on { background: var(--rose); border-color: var(--rose); }

.inline-add { display: flex; gap: 8px; align-items: center; }
.input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
}
.btn--sm { padding: 9px 14px; font-size: 13.5px; box-shadow: none; border-radius: 14px; }
.tips { margin: 0; padding-inline-start: 18px; }
.tips li { font-size: 14.5px; color: var(--ink); margin-bottom: 10px; line-height: 1.75; }
.recipe { padding: 4px 0 12px; border-bottom: 1px solid var(--line-2); }
.recipe:last-child { border-bottom: 0; padding-bottom: 2px; }
.recipe__t { font-family: var(--font-head); font-size: 15.5px; font-weight: 700; color: var(--rose-deep); }
.recipe__s { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin: 4px 0 8px; }
.empty { font-size: 13.5px; color: var(--ink-3); line-height: 1.8; }
.tracker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; }
.tracker__col { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.tracker__bar { width: 100%; height: 86px; background: var(--rose-mist); border-radius: 10px; display: flex; align-items: flex-end; overflow: hidden; }
.tracker__bar span { display: block; width: 100%; background: var(--rose); border-radius: 10px; min-height: 3px; }
.tracker__d { font-size: 11px; color: var(--ink-2); }
.tracker__n { font-size: 10px; color: var(--ink-3); }

.inline-add .btn { width: auto; flex: none; padding: 10px 14px; }
.inline-add .input { min-width: 110px; }
.inline-add .datefield__sel { flex: none; width: 96px; }

/* قسم دراستي ومستقبلي */
.linkbtn {
  display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--rose-deep);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  text-decoration: none;
}
.word { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--rose-deep); text-align: center; margin-top: 6px; }
.word__a { font-size: 15px; color: var(--ink-2); text-align: center; margin-top: 2px; }
.word__e { font-size: 12.5px; color: var(--ink-3); text-align: center; margin: 8px 0 14px; }
.chalrow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.chalday {
  height: 34px; border-radius: 12px; border: 1px dashed var(--line); background: #fff;
  color: var(--ink-3); font-family: inherit; font-size: 12px; cursor: pointer;
}
.chalday--on { background: var(--rose); border: 1px solid var(--rose); color: #fff; font-weight: 700; }

/* قسم ديني وقربي من ربنا */
.chaldot {
  height: 30px; border-radius: 10px; border: 1px dashed var(--line); background: #fff;
  color: var(--ink-3); font-size: 11px; display: grid; place-items: center;
}
.chaldot--on { background: var(--rose); border: 1px solid var(--rose); color: #fff; font-weight: 700; }

/* كارت الترحيب أول مرة */
.welcome { background: #F7EDF3; border-radius: 24px; padding: 16px 18px; }
.welcome__t { font-family: var(--font-head); font-size: 16px; line-height: 1.8; color: #7A2E44; }
.welcome__b {
  margin-top: 10px; font-family: inherit; font-size: 13px; font-weight: 600; color: #fff;
  background: var(--rose); border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer;
}
/* ملخص جدول المذاكرة */
.card--sum { background: linear-gradient(180deg, #E9F4EC 0%, #FFFFFF 85%); }
.sum__r { display: flex; align-items: baseline; gap: 6px; }
.sum__n { font-family: var(--font-head); font-size: 38px; font-weight: 700; color: #3F6B4F; line-height: 1; }
.sum__u { font-size: 12.5px; color: #47765B; }
.sum__bar { height: 9px; background: #DCEBE1; border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.sum__bar span { display: block; height: 100%; background: #6E9B7F; border-radius: 999px; }

/* مؤقت المذاكرة */
.card--timer { background: linear-gradient(180deg, #EEF4FA 0%, #FFFFFF 85%); }
.tm__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tm__label { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: #3F6E8E; }
.tm__min { font-size: 11.5px; color: #6E93AB; background: #fff; border-radius: 999px; padding: 3px 10px; }
.tm__left { font-family: var(--font-head); font-size: 46px; font-weight: 700; color: #2F5C78; text-align: center; margin: 10px 0 12px; letter-spacing: 1px; }
.tm__row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tm__row .btn { width: auto; flex: none; }
.sum__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.card--exam { background: linear-gradient(180deg, #F3ECF8 0%, #FFFFFF 88%); }
.ex__r { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ex__t { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: #5F4A86; }
.ex__d { font-size: 12px; font-weight: 700; color: #fff; background: #8E7BA8; border-radius: 999px; padding: 3px 12px; }

/* ---- شريط إنجازاتي في الرئيسية ---- */
.achbar {
  width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 12px;
  background: linear-gradient(180deg, #FDF2E3 0%, #FFFFFF 92%);
  border: 1px solid #F3E3CB; border-radius: 18px; padding: 11px 14px;
  font-family: inherit; cursor: pointer; text-align: right;
}
.achbar__l { display: flex; align-items: baseline; gap: 4px; flex: none; }
.achbar__n { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: #8E6A34; line-height: 1; }
.achbar__u { font-size: 11px; color: #A98450; }
.achbar__b { display: flex; gap: 6px; flex: 1; min-width: 0; overflow: hidden; }
.achbar__chip { font-size: 11px; color: #8E6A34; background: #fff; border: 1px solid #F0E0C6; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.achbar__chip--off { color: var(--ink-3); border-color: var(--line); }
.achbar__go { color: #B08A55; flex: none; display: flex; }
.achbar__go svg { width: 15px; height: 15px; }

/* ---- شاشة إنجازاتي ---- */
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.badge2 { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 11px 12px; opacity: .5; }
.badge2--on { opacity: 1; background: linear-gradient(180deg, #FDF3E6 0%, #FFFFFF 92%); border-color: #F3E3CB; }
.badge2__dot { width: 22px; height: 22px; border-radius: 999px; background: #F3E7D4; color: #8E6A34; display: flex; align-items: center; justify-content: center; }
.badge2__dot svg { width: 13px; height: 13px; }
.badge2--on .badge2__dot { background: #E9D6B6; }
.badge2__t { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 7px; }
.badge2__s { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }

/* ---- تذكيرات وشاشة التنبيهات ---- */
.duecard { background: linear-gradient(180deg, #FDF1F5 0%, #FFFFFF 92%); border: 1px solid #F3D3DF; border-radius: 18px; padding: 12px 14px; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.duecard__k { font-size: 11px; color: #A6405F; background: #fff; border-radius: 999px; padding: 3px 9px; }
.duecard__t { flex: 1; min-width: 120px; font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* رسالة اليوم لما تكون طويلة */
.msgcard__t--long { font-size: 14.5px; line-height: 1.95; }

/* كارت دليل المنتجات */
.qacard { width: 100%; display: flex; align-items: center; gap: 11px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; font-family: inherit; cursor: pointer; text-align: right; }
.qacard__i { width: 34px; height: 34px; border-radius: 12px; background: #EFE9F7; color: #5F4A86; display: flex; align-items: center; justify-content: center; flex: none; }
.qacard__i svg { width: 18px; height: 18px; }
.qacard__b { flex: 1; min-width: 0; display: block; }
.qacard__t { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.qacard__s { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.6; }
.qacard__go { color: var(--ink-3); flex: none; display: flex; }
.qacard__go svg { width: 15px; height: 15px; }

/* رسالة اليوم كصورة */
.msgcard__save { margin-top: 12px; border: 0; background: #fff; color: #A6405F; font-family: inherit; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 9px 18px; cursor: pointer; box-shadow: 0 4px 12px rgba(140,100,110,.08); }
.msgcard__save:active { transform: scale(.98); }
.imgview { position: fixed; inset: 0; background: rgba(60,20,35,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.imgview__box { background: #FFF5F8; border-radius: 24px; padding: 14px; width: 100%; max-width: 420px; max-height: 92vh; overflow: auto; text-align: center; }
.imgview__img { width: 100%; height: auto; border-radius: 16px; display: block; }
.imgview__row { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.imgview__row .btn, .imgview__row .chip { text-decoration: none; }
.imgview__hint { font-size: 11px; color: #A86279; margin-top: 8px; line-height: 1.6; }

/* ---------- كارت «تألقي» ---------- */
.qbox { background: linear-gradient(160deg, #FDE7EF, #FCF1F6); border: 1px solid rgba(255,255,255,.9); border-radius: 18px; padding: 14px 16px; margin-top: 10px; }
.qbox__q { font-family: var(--font-head); font-size: 18px; line-height: 1.95; color: #8E3B58; }
.takerow { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 16px; background: #FFF8FB; border: 1px solid var(--line-2); }
.takerow--on { background: #FCE1EA; border-color: #F6C7D8; }
.takerow__t { flex: 1; font-size: 14px; color: var(--ink); }
.takerow__t--on { color: var(--rose-deep); font-weight: 600; }
.streak { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.streak svg { width: 14px; height: 14px; flex: none; color: var(--rose); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.idea { font-family: inherit; font-size: 11.5px; color: var(--ink-2); background: #FFF7FA; border: 1px dashed #F3CFDC; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.idea:active { transform: scale(.97); }
.profcard { display: flex; align-items: center; gap: 12px; }
.profcard__i { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #FCE1EA; color: var(--rose-deep); flex: none; }
.profcard__i svg { width: 21px; height: 21px; }
.profcard__n { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--rose-deep); }
.profcard__s { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.profcard__edit { font-family: inherit; font-size: 11.5px; color: var(--rose-deep); background: #FFF7FA; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; flex: none; }
.btn--ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); }
.about__t { font-size: 12.5px; color: var(--ink-2); line-height: 1.85; margin-top: 2px; }
.about__d { font-family: var(--font-head); font-size: 14px; color: var(--rose-deep); margin-top: 10px; }
.about__l { margin-top: 10px; }
.about__a { font-size: 12px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.about__row { display: flex; gap: 10px; margin-top: 14px; }
.about__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #FFF7FA; border: 1px solid var(--line-2); color: var(--rose-deep); }
.about__ic svg { width: 21px; height: 21px; }
.about__ic--off { opacity: .55; }
.about__quote { font-family: var(--font-head); font-size: 14.5px; line-height: 2; color: var(--rose-deep); margin-top: 10px; }
.about__grp { margin-top: 10px; }
.about__grp a { display: inline-block; font-size: 12px; color: var(--rose-deep); background: #FFF7FA; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; text-decoration: none; }

/* ---------- بطاقة الجروب وبطاقة التقييم ---------- */
.qcard { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.qcard--rate { display: block; }
.qcard__b { flex: 1 1 auto; min-width: 0; }
.qcard__t { display: block; font-family: var(--font-head); font-size: 15px; color: var(--rose-deep); }
.qcard__s { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; margin-top: 5px; }
.qcard__arrow { flex: 0 0 auto; width: 20px; height: 20px; color: var(--ink-3); line-height: 0; }
.qcard__arrow svg { width: 20px; height: 20px; }
.stars { display: flex; gap: 9px; justify-content: center; margin: 12px 0 10px; }
.star { background: none; border: 0; padding: 0; width: 29px; height: 29px; line-height: 0; cursor: pointer; color: #E6D2D9; }
.star svg { width: 29px; height: 29px; fill: none; stroke: currentColor; }
.star--on { color: var(--rose); }
.star--on svg { fill: var(--rose-soft); stroke: var(--rose); }

/* ---------- مودال أول فتح ---------- */
.smodal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(122,46,68,0.26); backdrop-filter: blur(2px); }
.smodal__sheet { position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: 26px; padding: 26px 20px 18px; box-shadow: 0 22px 60px rgba(120,40,70,0.26); display: flex; flex-direction: column; gap: 14px; }
.smodal__x { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: grid; place-items: center; padding: 0; }
.smodal__x svg { width: 16px; height: 16px; }
.smodal__t { font-family: var(--font-head); font-size: 21px; color: var(--rose-deep); line-height: 1.5; }
.smodal__s { font-size: 13px; color: var(--ink-2); line-height: 1.85; margin-top: -6px; }
.smodal__skip { align-self: center; background: none; border: 0; padding: 4px 0; font-family: var(--font-head); font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.bk__ta { width: 100%; height: 150px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; font-size: 11px; line-height: 1.6; color: var(--ink); background: #FFF9FB; direction: ltr; text-align: left; resize: vertical; }
