﻿/* ==========================================================================
   ط¬ظ„ظٹط³ | ظ…ط³ط§ط­ط© ط§ظ„ط£ط¹ط¶ط§ط، â€” ظ‡ظˆظٹط© ط¨طµط±ظٹط© ظ…ط³طھظ…ط¯ط© ظ…ظ† ط´ط¹ط§ط± ط§ظ„ظ†ط§ط¯ظٹ
   ط£ط®ط¶ط± ط§ظ„ط؛ط§ط¨ط© آ· ظˆط±ظ‚ ط¯ط§ظپط¦ آ· ط°ظ‡ط¨ ط§ظ„ظƒطھط¨ آ· ط®ط· IBM Plex Sans Arabic + Amiri
   ========================================================================== */

:root {
  --green-900: #0F1F17;
  --green-800: #162C21;
  --green-700: #1E3A2B;
  --green-600: #2A4F3B;
  --green-500: #3B6A51;
  --green-100: #DCE7DE;
  --green-50: #EDF3ED;

  --paper: #F8F5EE;
  --paper-2: #F1EBDD;
  --paper-3: #E7DDC9;
  --white: #FFFFFF;

  --gold: #C59B63;
  --gold-600: #B1834A;
  --gold-700: #8C6531;
  --gold-soft: #F0E2CB;
  --gold-glow: rgba(197, 155, 99, 0.22);

  --wood: #8C532D;
  --clay: #A3503B;

  --ink: #1D2420;
  --muted: #5F6B64;
  --muted-2: #8B958F;
  --line: rgba(30, 58, 43, 0.11);
  --line-strong: rgba(30, 58, 43, 0.2);

  --font: 'IBM Plex Sans Arabic', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  --serif: 'Amiri', 'Traditional Arabic', 'Times New Roman', serif;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --r-full: 999px;

  --shadow-xs: 0 2px 8px rgba(30, 58, 43, 0.05);
  --shadow-sm: 0 6px 18px rgba(30, 58, 43, 0.07);
  --shadow-md: 0 14px 34px rgba(30, 58, 43, 0.11);
  --shadow-lg: 0 30px 60px rgba(9, 20, 14, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: var(--font);
  color: var(--ink);
  direction: rtl;
  text-align: right;
  background:
    radial-gradient(900px 560px at 82% -8%, rgba(197, 155, 99, 0.2), transparent 70%),
    radial-gradient(700px 500px at 10% 110%, rgba(42, 79, 59, 0.55), transparent 70%),
    linear-gradient(160deg, #0B1711 0%, #102319 55%, #0A1510 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(197, 155, 99, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 155, 99, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 10%, transparent 72%);
  pointer-events: none;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- ط´ط§ط´ط© ط§ظ„طھط­ظ…ظٹظ„ (Splash) ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 380px at 50% 0%, rgba(197, 155, 99, 0.22), transparent 65%),
    radial-gradient(500px 420px at 50% 100%, rgba(42, 79, 59, 0.6), transparent 70%),
    linear-gradient(155deg, #152C21 0%, #1E3A2B 48%, #102118 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-logo {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
  animation: splash-in 0.7s var(--ease) both;
}
@keyframes splash-in {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

/* ---------- ظ…ط³ط±ط­ ط§ظ„ط¹ط±ط¶ ---------- */
.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 7vw, 110px);
  width: 100%;
  max-width: 1360px;
}

.stage-brand {
  display: none;
  width: 350px;
  color: var(--paper);
}

.stage-logo {
  width: 240px;
  height: auto;
  margin-bottom: 26px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-lockup-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-logo { display: block; object-fit: contain; border: 0; max-width: 100%; height: auto; }
.brand-logo-lg { width: 160px; }
.brand-logo-md { width: 120px; }
.brand-logo-sm { width: 72px; }
.brand-lockup-text strong { font-weight: 800; letter-spacing: 0.3px; }
.brand-lockup-text small { color: var(--gold); letter-spacing: 1.1px; font-weight: 500; }
.brand-emblem { display: grid; place-items: center; color: var(--paper); flex: none; }
.brand-emblem svg { width: 24px; height: 22px; }
.brand-lockup-lg { margin-bottom: 24px; }
.brand-lockup-lg .brand-emblem {
  width: 62px; height: 62px;
  border: 1px solid rgba(197, 155, 99, 0.32);
  border-radius: 18px;
  background: rgba(197, 155, 99, 0.08);
  box-shadow: inset 0 0 24px rgba(197, 155, 99, 0.06);
}
.brand-lockup-lg .brand-emblem svg { width: 40px; height: 36px; }
.brand-lockup-lg .brand-lockup-text strong { font-size: 40px; line-height: 1; }
.brand-lockup-lg .brand-lockup-text small { font-size: 10px; margin-top: 5px; }
.brand-lockup-gate .brand-emblem {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(197, 155, 99, 0.12);
  border: 1px solid rgba(197, 155, 99, 0.28);
}
.brand-lockup-gate .brand-emblem svg { width: 31px; height: 28px; }
.brand-lockup-gate .brand-lockup-text strong { font-size: 25px; line-height: 1; }
.brand-lockup-gate .brand-lockup-text small { font-size: 8px; margin-top: 3px; }
.brand-mark .brand-emblem svg { width: 25px; height: 23px; }

.stage-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(197, 155, 99, 0.35);
  border-radius: var(--r-full);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 22px;
}

.stage-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 155, 99, 0.16);
}

.stage-brand h2 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stage-brand h2 span {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  margin-top: 8px;
}

.stage-text {
  color: rgba(248, 245, 238, 0.66);
  font-size: 14.5px;
  line-height: 2;
  margin: 22px 0 28px;
}

.stage-list { display: grid; gap: 13px; }

.stage-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(248, 245, 238, 0.82);
  font-size: 13.5px;
}

.stage-list li span {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 15px;
  min-width: 28px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(197, 155, 99, 0.35);
}

.stage-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(248, 245, 238, 0.12);
  color: rgba(248, 245, 238, 0.4);
  font-size: 11.5px;
}

/* ---------- ط¥ط·ط§ط± ط§ظ„ظ‡ط§طھظپ ---------- */
.phone {
  position: relative;
  width: 420px;
  height: min(884px, calc(100dvh - 48px));
  min-height: 620px;
  padding: 9px;
  border-radius: 56px;
  background: linear-gradient(150deg, #2B332E 0%, #101512 45%, #252C27 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 7px #0A0E0B,
    0 0 0 8px rgba(197, 155, 99, 0.28),
    0 44px 90px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone::before,
.phone::after {
  content: '';
  position: absolute;
  left: -11px;
  width: 3px;
  border-radius: 3px;
  background: #232A25;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone::before { top: 158px; height: 34px; }
.phone::after { top: 210px; height: 62px; }

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 28px;
  border-radius: var(--r-full);
  background: #060907;
  z-index: 70;
  display: grid;
  place-items: center;
}

.phone-notch span {
  width: 38px;
  height: 5px;
  border-radius: var(--r-full);
  background: #1B211D;
}

.app {
  position: relative;
  height: 100%;
  border-radius: 47px;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

/* ---------- ط´ط±ظٹط· ط§ظ„ط­ط§ظ„ط© ---------- */
.status-bar {
  flex: none;
  height: 30px;
  padding: 9px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.status-icons { display: inline-flex; align-items: center; gap: 6px; }
.status-icons .sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.status-icons .sig b { width: 2.5px; background: currentColor; border-radius: 1px; }
.status-icons .sig b:nth-child(1) { height: 3px; }
.status-icons .sig b:nth-child(2) { height: 5px; }
.status-icons .sig b:nth-child(3) { height: 7px; }
.status-icons .sig b:nth-child(4) { height: 9px; opacity: 0.35; }
.status-icons .wifi {
  width: 11px; height: 8px;
  border-top: 2px solid currentColor;
  border-radius: 50% 50% 0 0;
  position: relative;
}
.status-icons .wifi::after {
  content: '';
  position: absolute;
  inset: 3px 2.5px auto;
  height: 2px;
  border-top: 2px solid currentColor;
  border-radius: 50%;
}
.status-icons .battery {
  width: 18px; height: 9px;
  border: 1.3px solid currentColor;
  border-radius: 3px;
  padding: 1.5px;
  position: relative;
}
.status-icons .battery::after {
  content: '';
  position: absolute;
  left: -3.5px;
  top: 2px;
  width: 2px; height: 4px;
  background: currentColor;
  border-radius: 1px;
}
.status-icons .battery b { display: block; width: 68%; height: 100%; background: currentColor; border-radius: 1px; }

/* ---------- ط§ظ„ظ‡ظٹظƒظ„ ---------- */
.shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background:
    radial-gradient(420px 240px at 100% -6%, rgba(197, 155, 99, 0.13), transparent 70%),
    var(--paper);
}

.app-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-align: right;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--green-700);
  box-shadow: 0 4px 10px rgba(30, 58, 43, 0.22);
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-size: 16px; font-weight: 800; color: var(--green-700); }
.brand-text small { font-size: 9.5px; color: var(--muted); font-weight: 500; letter-spacing: 0.2px; }

.header-actions { display: inline-flex; align-items: center; gap: 8px; }
.consultation-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 7px 9px;
  border: 1px solid rgba(197, 155, 99, 0.42);
  border-radius: 999px;
  background: rgba(197, 155, 99, 0.12);
  color: var(--green-700);
  font: inherit;
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
}
.consultation-header-btn .ic { width: 14px; height: 14px; color: var(--gold-700); }

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-700);
  background: rgba(30, 58, 43, 0.06);
  transition: background 0.2s, transform 0.2s;
}
.icon-btn:hover { background: rgba(30, 58, 43, 0.11); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.light { background: rgba(248, 245, 238, 0.14); color: var(--paper); }

.notif-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 2px var(--paper);
}

.avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--paper);
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  border: 2px solid var(--gold);
  box-shadow: 0 3px 10px rgba(30, 58, 43, 0.22);
  overflow: hidden;
}
.avatar-photo-image { display:block; width:100%; height:100%; border-radius:inherit; object-fit:cover; }

.app-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 18px 28px;
  scrollbar-width: none;
}
.app-main::-webkit-scrollbar { display: none; }

/* ---------- ط§ظ„ط´ط§ط´ط§طھ ---------- */
.screen { display: none; }
.screen.active { display: block; animation: screen-in 0.42s var(--ease) both; }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 14px;
}

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--gold-700);
  margin-bottom: 3px;
}
.eyebrow.light { color: var(--gold); }

.screen-head h1 {
  font-size: 25px;
  font-weight: 800;
  color: var(--green-700);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.week-badge {
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--green-50);
  color: var(--green-600);
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid rgba(30, 58, 43, 0.08);
}

.muted { color: var(--muted); }
.sm { font-size: 11.5px; }

/* ---------- ط£ط²ط±ط§ط± ظˆط´ط±ط§ط¦ط­ ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 17px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.18s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.975); }
.btn .ic { width: 17px; height: 17px; }

.btn-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-700));
  color: var(--paper);
  box-shadow: 0 6px 16px rgba(30, 58, 43, 0.2);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--green-500), var(--green-600)); }

.btn-gold {
  background: linear-gradient(135deg, #D6AF79, #BE8B4C);
  color: #261B0C;
  box-shadow: 0 6px 16px rgba(197, 155, 99, 0.32);
}
.btn-gold:hover { background: linear-gradient(135deg, #E0BC89, #C99A5D); }

.btn-on-dark {
  background: rgba(248, 245, 238, 0.1);
  color: var(--paper);
  border: 1px solid rgba(248, 245, 238, 0.2);
}
.btn-on-dark:hover { background: rgba(248, 245, 238, 0.17); }

.btn-ghost { background: rgba(30, 58, 43, 0.07); color: var(--green-700); }
.btn-paper { background: var(--white); border: 1px solid var(--line); color: var(--green-700); }
.btn-danger { background: rgba(163, 80, 59, 0.1); color: var(--clay); }
.btn-sm { padding: 8px 13px; border-radius: 11px; font-size: 11.5px; gap: 5px; }
.btn-sm .ic { width: 14px; height: 14px; }
.btn-block { width: 100%; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-700);
  padding: 4px 2px;
}
.link-btn .ic { width: 13px; height: 13px; transition: transform 0.2s; }
.link-btn:hover .ic { transform: translateX(-3px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
}
.chip .ic { width: 13px; height: 13px; }
.chip-on-dark { background: rgba(197, 155, 99, 0.18); color: #E7C89A; border: 1px solid rgba(197, 155, 99, 0.3); }
.chip-soft { background: rgba(30, 58, 43, 0.07); color: var(--green-600); }
.chip-gold { background: var(--gold-soft); color: var(--gold-700); }

.chips-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 10px;
  scrollbar-width: none;
}
.chips-row::-webkit-scrollbar { display: none; }
.chips-row.wrap { flex-wrap: wrap; overflow: visible; }

.chip-filter {
  flex: none;
  padding: 7px 13px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.2s;
}
.chip-filter:hover { border-color: var(--line-strong); }
.chip-filter.active {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--paper);
  box-shadow: 0 4px 12px rgba(30, 58, 43, 0.2);
}

.chip-filter.cat-empty {
  opacity: 0.55;
  border-style: dashed;
}

.category-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 1px 12px;
  scrollbar-width: none;
}
.category-list::-webkit-scrollbar { display: none; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.card-head h3 { font-size: 13.5px; font-weight: 800; color: var(--green-700); }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 22px 2px 10px;
}
.sec-head h3 {
  position: relative;
  font-size: 15px;
  font-weight: 800;
  color: var(--green-700);
  padding-right: 13px;
}
.sec-head h3::before {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  width: 3px;
  height: 14px;
  border-radius: 3px;
  background: var(--gold);
}
.sec-head p { font-size: 10.5px; color: var(--muted-2); margin-top: 1px; padding-right: 13px; }

/* ---------- ط¨ظˆط§ط¨ط© ط§ظ„ط¯ط®ظˆظ„ ---------- */
.gate {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 46px 22px 22px;
  background:
    radial-gradient(600px 380px at 85% -8%, rgba(197, 155, 99, 0.3), transparent 65%),
    radial-gradient(500px 420px at 0% 100%, rgba(42, 79, 59, 0.75), transparent 70%),
    linear-gradient(155deg, #152C21 0%, #1E3A2B 48%, #102118 100%);
  color: var(--paper);
  z-index: 40;
  scrollbar-width: none;
}
.gate::-webkit-scrollbar { display: none; }

.gate-home {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid rgba(248, 245, 238, 0.24);
  border-radius: 999px;
  background: rgba(248, 245, 238, 0.08);
  color: var(--paper);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.gate-home:hover { background: rgba(248, 245, 238, 0.16); border-color: rgba(248, 245, 238, 0.45); }
.gate-home .ic { width: 14px; height: 14px; }
.gate-whatsapp { margin: 12px 0 0; }
.gate-whatsapp .whatsapp-body strong { color: var(--green-700); }
.gate-pending-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(197, 155, 99, 0.28);
  background: rgba(197, 155, 99, 0.10);
}
.gate-pending-note .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold-700); }
.gate-pending-note p { font-size: 10.5px; line-height: 1.85; color: var(--green-700); }
.gate-pending-note strong { color: var(--green-800); font-weight: 800; }

.gate-glow {
  position: absolute;
  top: -80px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 155, 99, 0.22), transparent 68%);
  pointer-events: none;
}

.gate-ornament {
  position: absolute;
  right: -70px;
  bottom: 60px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(197, 155, 99, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.gate-ornament::before,
.gate-ornament::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(197, 155, 99, 0.14);
  border-radius: 50%;
}
.gate-ornament::before { inset: 24px; }
.gate-ornament::after { inset: 52px; }

.gate-head { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.gate-logo {
  width: 176px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

.gate-head .brand-lockup { margin-bottom: 2px; }

.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  border-radius: var(--r-full);
  border: 1px solid rgba(197, 155, 99, 0.35);
  background: rgba(197, 155, 99, 0.1);
  color: #E4C79B;
  font-size: 9.5px;
  font-weight: 600;
}
.gate-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

.gate-body { position: relative; margin-top: 32px; }

.gate-salaam {
  font-size: 11px;
  color: rgba(248, 245, 238, 0.55);
  letter-spacing: 0.5px;
  margin-bottom: 7px;
}

.gate-body h1 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.gate-body h1 span {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
  margin-top: 3px;
}

.gate-sub {
  max-width: 310px;
  margin-top: 13px;
  color: rgba(248, 245, 238, 0.66);
  font-size: 12.5px;
  line-height: 1.95;
}

.gate-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--r-xl);
  background: rgba(248, 245, 238, 0.97);
  color: var(--ink);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.gate-card form[hidden] { display: none; }
.gate-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.gate-link {
  background: none;
  border: 0;
  padding: 4px 2px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.gate-link:hover { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.gate-link-strong { color: var(--gold-700); font-weight: 800; }

.gate-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.gate-card-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-600);
}
.gate-card-head h2 { font-size: 15px; font-weight: 800; color: var(--green-700); }
.gate-card-head p { font-size: 10.5px; color: var(--muted); margin-top: 1px; }

.gate-foot {
  position: relative;
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
  color: rgba(248, 245, 238, 0.35);
  font-size: 9.5px;
}

.gate-demo {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  color: var(--gold-700);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gate-proof {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 10px 3px;
  color: rgba(248, 245, 238, 0.62);
  font-size: 10px;
}
.gate-proof strong { color: var(--gold); }

.avatar-stack { display: inline-flex; flex-direction: row-reverse; }
.avatar-stack span {
  width: 27px; height: 27px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid #1B3326;
  margin-left: -8px;
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
}
.avatar-stack span:last-child { margin-left: 0; }

/* ---------- ط§ظ„ط­ظ‚ظˆظ„ ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label,
.field-label { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.label-opt { font-size: 8.5px; font-weight: 600; color: var(--gold-700); background: rgba(197, 155, 99, 0.12); border: 1px solid rgba(197, 155, 99, 0.28); border-radius: 999px; padding: 1px 7px; margin-inline-start: 4px; vertical-align: 1px; }
.field-hint { font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }
.field-hint strong { color: var(--gold-700); letter-spacing: 0.5px; }

/* ط§ظ„طھط§ط±ظٹط® ظˆط§ظ„ظˆظ‚طھ ط§ظ„طھظ„ظ‚ط§ط¦ظٹ */
.auto-stamp {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 12px;
  border: 1px dashed rgba(197, 155, 99, 0.55);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(197, 155, 99, 0.1), rgba(197, 155, 99, 0.02));
  color: var(--green-700);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}
.auto-stamp .ic { width: 14px; height: 14px; color: var(--gold-700); flex: none; }
.auto-stamp-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(30, 58, 43, 0.3); }
.auto-badge {
  margin-inline-start: auto;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--gold-700);
  background: rgba(197, 155, 99, 0.14);
  border: 1px solid rgba(197, 155, 99, 0.32);
  border-radius: 999px;
  padding: 2px 8px;
}

.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.input::placeholder { color: #A9B1AC; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
select.input {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(0% + 14px) 50%, calc(0% + 19px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-left: 32px;
}
textarea.input { resize: vertical; min-height: 66px; line-height: 1.7; }

/* ط²ط± ط¥ط¸ظ‡ط§ط±/ط¥ط®ظپط§ط، ط§ظ„ط±ظ…ط² ط§ظ„ط³ط±ظٹ */
.password-wrap { position: relative; display: flex; }
.password-wrap .input { padding-right: 42px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.password-toggle:hover { color: var(--green-700); background: var(--green-50); }
.password-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.password-toggle.is-on { color: var(--gold-700); }
.password-toggle .ic { width: 16px; height: 16px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.form-error {
  margin-bottom: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(163, 80, 59, 0.09);
  color: var(--clay);
  font-size: 11px;
  font-weight: 600;
}

/* ---------- ط¢ط®ط± 3 ط§ظ‚طھط¨ط§ط³ط§طھ (ط§ظ„طµظپط­ط© ط§ظ„ط±ط¦ظٹط³ظٹط©) ---------- */
.home-latest-quotes {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
}
.home-quotes-head { padding-top: 2px; }
.home-latest-quotes .quote-card {
  padding: 10px 12px 9px;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff 55%, rgba(246, 241, 231, .66));
  box-shadow: 0 3px 12px rgba(30, 58, 43, .055);
}
.home-latest-quotes .quote-card::before {
  display:none;
}
.quote-card-numbered::before { display:none; }
.home-quote-eyebrow {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 2px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
}
.quote-number-stamp { display:flex; flex:none; flex-direction:column; align-items:center; gap:0; }
.quote-number-badge {
  display:grid;
  place-items:center;
  min-width:40px;
  min-height:21px;
  padding:2px 7px 3px;
  border-radius:999px;
  background:transparent;
  border:0;
  color:var(--green-700);
  font-size:13px;
  font-weight:800;
  line-height:1;
  letter-spacing:.2px;
}
.quote-number-image { display:block; flex:none; width:20px; height:12px; object-fit:contain; opacity:.18; }
.quote-serial {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: fit-content;
  margin: 0 0 7px auto;
  padding: 0;
}
.quote-serial .quote-number-badge { min-width:36px; min-height:19px; font-size:11px; }
.quote-serial .quote-number-image { width:17px; height:10px; }
.home-latest-quotes .quote-card-compact .quote-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0;
}
.home-latest-quotes .quote-card-compact .quote-source {
  margin-top: 5px;
  font-size: 8px;
}
.home-latest-quotes .quote-card-compact .quote-foot {
  margin-top: 7px;
  padding-top: 6px;
  border-top-color: rgba(30, 58, 43, .08);
}
.home-latest-quotes .quote-card-compact .quote-author { gap: 5px; }
.home-latest-quotes .quote-card-compact .quote-author .avatar-mini { width: 23px; height: 23px; font-size: 8px; }
.home-latest-quotes .quote-card-compact .quote-author strong { font-size: 8.5px; }
.home-latest-quotes .quote-card-compact .quote-author small { font-size: 7px; }
.home-latest-quotes .quote-card-compact .quote-actions { gap: 0; }
.home-latest-quotes .quote-card-compact .quote-actions button { padding: 4px 5px; font-size: 7.5px; }
.home-latest-quotes .quote-card-compact .quote-actions .ic { width: 12px; height: 12px; }
.quote-latest { border-color: rgba(197, 155, 99, .36) !important; }
.quote-new-badge {
  position: static;
  margin-right: auto;
  padding: 3px 7px;
  border-radius: var(--r-full);
  background: rgba(197, 155, 99, .17);
  color: var(--gold-700);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0;
}
.greeting-title-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.greeting-title-row h1 { min-width:0; }
.greeting-title-row .consultation-header-btn { padding:6px 9px; }
.greeting { padding: 12px 2px 16px; }
.date-label { font-size: 10.5px; color: var(--muted-2); font-weight: 600; margin-bottom: 2px; }
.greeting h1 { font-size: 24px; font-weight: 800; color: var(--green-700); letter-spacing: -0.4px; }
.greeting h1 span { color: var(--gold-700); }
.greeting-title-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.greeting-title-row h1 { min-width:0; }
.greeting-title-row .consultation-header-btn { padding:6px 9px; }
.greeting-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ط¥ط¬ط±ط§ط،ط§طھ ط§ظ„ط±ط¦ظٹط³ظٹط© â€” ط§ظ„ط²ط±ظ‘ط§ظ† ظپظ‚ط·طŒ ط¨ظ„ط§ ط¨ط·ط§ظ‚ط© */
.home-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8px;
  margin: 0 0 4px;
}
.home-actions .btn {
  padding: 13px 14px;
  font-size: 12px;
  border-radius: 16px;
}
.home-actions .btn-gold {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: var(--paper);
  border: 1px solid rgba(30, 58, 43, 0.45);
  box-shadow: 0 10px 22px rgba(30, 58, 43, 0.22);
}
.home-actions .btn-gold:hover { background: linear-gradient(135deg, #35604A, var(--green-600)); }
.home-actions .btn-gold .ic { color: var(--gold); }

.home-actions .btn-on-dark {
  background: linear-gradient(135deg, #25452F, #14291D);
  color: var(--paper);
  border: 1px solid rgba(197, 155, 99, 0.4);
  box-shadow: 0 10px 22px rgba(30, 58, 43, 0.18);
}
.home-actions .btn-on-dark:hover { background: linear-gradient(135deg, #2F5541, #183122); }
.home-actions .btn-on-dark .ic { color: var(--gold); }

/* ظ„ظˆط­ط© ظ…طµط؛ط±ط© */
.home-board { display: grid; gap: 7px; }
.board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}
.board-row.is-me { background: var(--green-50); border-color: rgba(30, 58, 43, 0.18); }
.board-rank {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--paper-2);
  color: var(--gold-700);
  font-size: 10px;
  font-weight: 800;
  font-family: var(--serif);
}
.board-row.is-top .board-rank { background: var(--gold-soft); color: var(--gold-700); }
.board-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  flex: none;
}
.board-info { flex: 1; min-width: 0; }
.board-info strong { display: block; font-size: 11.5px; font-weight: 700; color: var(--green-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-info span { font-size: 9px; color: var(--muted-2); }
.board-pages { text-align: left; flex: none; }
.board-pages strong { display: block; font-size: 13px; font-weight: 800; color: var(--green-700); }
.board-pages span { font-size: 8px; color: var(--muted-2); }

/* ط¬ظ„ط³ط© ط§ظ„ط£ط³ط¨ظˆط¹ */
.meeting-card {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid rgba(197, 155, 99, 0.34);
  box-shadow: 0 12px 28px rgba(30, 58, 43, 0.11);
}
.meeting-poster-wrap {
  height: clamp(210px, 70vw, 290px);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 30%, #f8f4e9, #dcebe2 70%, #cadfd4);
}
.meeting-poster { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: center center; }
.meeting-poster-placeholder {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 700;
  width: 100%;
  height: 100%;
  align-content: center;
  background: radial-gradient(circle at 30% 25%, #3f7664, transparent 45%), linear-gradient(145deg, #173e31, #286657);
}
.meeting-poster-placeholder .ic { width: 36px; height: 36px; color: var(--gold); }
.meeting-card-content { padding: 15px 16px 16px; }
.meeting-card-kicker { display:flex; align-items:center; gap:7px; color:var(--gold-700); font-size:10px; font-weight:800; }
.meeting-pulse { width:7px; height:7px; border-radius:50%; background:#4e9b73; box-shadow:0 0 0 4px rgba(78,155,115,.13); }
.meeting-card-content h3 { margin:8px 0 5px; color:var(--green-700); font-size:17px; line-height:1.45; font-weight:850; }
.meeting-description { margin:0; color:var(--muted); font-size:11px; line-height:1.85; white-space:pre-line; }
.meeting-details-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:13px; }
.meeting-detail { min-width:0; display:flex; align-items:center; gap:8px; padding:9px; border-radius:12px; background:var(--paper-2); }
.meeting-detail.meeting-location { grid-column:1 / -1; }
.meeting-detail-link { color:inherit; text-decoration:none; }
.meeting-detail-link:hover b,.meeting-sheet-location-link:hover b { text-decoration:underline; text-underline-offset:2px; }
.meeting-detail-icon { flex:none; display:grid; place-items:center; width:30px; height:30px; border-radius:10px; color:var(--green-700); background:rgba(197,155,99,.19); }
.meeting-detail-icon .ic { width:15px; height:15px; }
.meeting-detail small,.meeting-detail b { display:block; }
.meeting-detail small { color:var(--muted-2); font-size:8px; margin-bottom:2px; }
.meeting-detail b { color:var(--green-700); font-size:9.5px; line-height:1.5; overflow-wrap:anywhere; }
.meeting-card-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:13px; }
.meeting-card-actions .btn { flex:1; justify-content:center; }
.btn-meeting-add { color:var(--green-700); background:var(--paper-2); border:1px solid var(--line); }
.btn-meeting-add:hover { background:#f1e9da; }
.meeting-sheet-poster { display:block; width:100%; max-height:300px; object-fit:cover; transform-origin:center center; background:var(--paper-2); border-radius:16px; margin:2px 0 14px; }
.meeting-sheet-heading h2 { color:var(--green-700); font-size:19px; margin:9px 0 5px; }
.meeting-sheet-heading p { color:var(--muted); font-size:11px; line-height:1.9; white-space:pre-line; }
.meeting-sheet-details { display:grid; gap:8px; margin:14px 0; }
.meeting-sheet-details > div { display:flex; align-items:center; gap:9px; padding:10px 12px; border-radius:12px; background:var(--paper-2); color:var(--green-700); }
.meeting-sheet-location-link { display:flex; align-items:center; gap:9px; padding:10px 12px; border-radius:12px; background:var(--paper-2); color:var(--green-700); text-decoration:none; }
.meeting-sheet-details > div > .ic { flex:none; width:17px; height:17px; color:var(--gold-700); }
.meeting-sheet-location-link > .ic { flex:none; width:17px; height:17px; color:var(--gold-700); }
.meeting-sheet-details small,.meeting-sheet-details b { display:block; }
.meeting-sheet-details small { color:var(--muted-2); font-size:8px; }
.meeting-sheet-details b { font-size:10px; margin-top:2px; }
.meeting-attendance-note { display:flex; align-items:center; gap:7px; margin:12px 0; color:var(--muted); font-size:10px; }
.meeting-attendance-note .ic { width:15px; height:15px; color:var(--gold-700); }
.meeting-form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.meeting-upload { display:grid; justify-items:center; gap:5px; padding:16px 12px; border:1px dashed rgba(30,58,43,.28); border-radius:14px; color:var(--green-700); background:var(--paper-2); cursor:pointer; }
.meeting-upload .ic { width:23px; height:23px; color:var(--gold-700); }
.meeting-upload span { font-size:11px; font-weight:800; }
.meeting-upload small,.meeting-image-status { color:var(--muted-2); font-size:9px; }
.meeting-file-input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.meeting-image-preview-wrap { position:relative; margin-top:10px; padding:8px; background:var(--paper-2); border-radius:14px; text-align:center; }
.meeting-image-preview-wrap img { max-width:100%; max-height:230px; object-fit:cover; border-radius:8px; }
.meeting-image-preview-wrap[hidden] { display:none; }
.meeting-crop-controls { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border-radius: 12px; background: #fff; border: 1px dashed rgba(30,58,43,.25); text-align: right; }
.meeting-crop-controls label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 8.5px; font-weight: 800; color: var(--green-700); }
.meeting-crop-controls input[type="range"] { flex: 1; max-width: 180px; accent-color: var(--green-600); }
.meeting-image-remove { position:absolute; top:12px; left:12px; width:28px; height:28px; border:0; border-radius:50%; background:#8e403a; color:white; font-size:20px; cursor:pointer; }
.meeting-image-status { display:block; margin-top:5px; }
.recorded-meetings-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; }
.recorded-meetings-toolbar p { color:var(--muted); font-size:9px; line-height:1.7; }
.recorded-meetings-toolbar .btn { flex:none; }
.recorded-meetings-list { display:grid; gap:11px; }
.recorded-meetings-loading { padding:20px 10px; text-align:center; color:var(--muted-2); font-size:10px; }
.recorded-meeting-card {
  display:grid;
  grid-template-columns:minmax(0,1fr) 112px;
  gap:12px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--white);
  box-shadow:0 5px 15px rgba(30,58,43,.06);
}
.recorded-meeting-media { position:relative; min-height:94px; overflow:hidden; align-self:start; border-radius:12px; background:#172820; }
.recorded-meeting-media > img { display:block; width:100%; height:94px; object-fit:cover; }
.recorded-meeting-placeholder { display:grid; place-items:center; height:94px; color:#e7d09a; background:linear-gradient(145deg,#19392c,#315b49); }
.recorded-meeting-placeholder .ic { width:26px; height:26px; }
.recorded-meeting-play { position:absolute; inset:0; display:grid; place-items:center; text-decoration:none; }
.recorded-meeting-play .ic { display:grid; place-items:center; width:35px; height:35px; padding:7px; border-radius:50%; color:var(--green-800); background:rgba(226,190,117,.94); box-shadow:0 3px 12px rgba(0,0,0,.24); }
.recorded-meeting-duration { position:absolute; right:6px; bottom:6px; padding:2px 5px; border-radius:5px; color:#fff; background:rgba(12,22,17,.8); font-size:7px; font-weight:700; direction:ltr; }
.recorded-meeting-content { min-width:0; display:flex; flex-direction:column; align-items:flex-start; }
.recorded-meeting-meta { display:flex; flex-wrap:wrap; gap:7px; color:var(--muted-2); font-size:7px; }
.recorded-meeting-meta span { display:inline-flex; align-items:center; gap:3px; }
.recorded-meeting-meta .ic { width:10px; height:10px; color:var(--gold-700); }
.recorded-meeting-content h3 { margin:6px 0 4px; color:var(--green-800); font:700 12px/1.5 var(--serif); }
.recorded-meeting-description { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; color:var(--muted); font-size:8px; line-height:1.65; }
.recorded-meeting-speaker { display:flex; align-items:center; gap:4px; margin-top:6px; color:var(--muted-2); font-size:7.5px; }
.recorded-meeting-speaker .ic { width:11px; height:11px; color:var(--gold-700); }
.recorded-meeting-actions { display:flex; align-items:center; gap:5px; margin-top:auto; padding-top:7px; }
.recorded-meeting-actions .btn { min-height:26px; padding:5px 8px; font-size:8px; }
.recorded-meeting-actions .ic { width:12px; height:12px; }
.recorded-meeting-delete { width:26px; height:26px; color:var(--clay); }
.recorded-meeting-unavailable { color:var(--muted-2); font-size:7px; }
.deleted-items-list { display:grid; gap:8px; }
.trash-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:2px 1px 8px; color:var(--muted-2); font-size:8px; }
.trash-toolbar .icon-btn { width:30px; height:30px; color:var(--green-700); background:var(--green-50); }
.trash-toolbar .icon-btn .ic { width:14px; height:14px; }
.deleted-items-loading { padding:18px 8px; text-align:center; color:var(--muted-2); font-size:10px; }
.deleted-item-card { display:flex; align-items:center; gap:9px; padding:10px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.deleted-item-icon { display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:10px; color:var(--clay); background:rgba(163,80,59,.08); }
.deleted-item-icon .ic { width:15px; height:15px; }
.deleted-item-body { flex:1; min-width:0; }
.deleted-item-body small { display:block; color:var(--gold-700); font-size:7px; font-weight:800; }
.deleted-item-body strong { display:block; overflow:hidden; color:var(--green-800); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.deleted-item-body p { margin-top:2px; overflow:hidden; color:var(--muted); font-size:7.5px; text-overflow:ellipsis; white-space:nowrap; }
.deleted-item-body > span { display:block; margin-top:3px; color:var(--muted-2); font-size:6.5px; }
.deleted-item-restore { flex:none; min-height:27px; padding:5px 8px; color:var(--green-700); background:var(--green-50); font-size:8px; }

/* ط§ظ‚طھط¨ط§ط³ ط§ظ„ظٹظˆظ… */
.daily-quote {
  position: relative;
  padding: 18px 17px 15px;
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(240, 226, 203, 0.55)),
    var(--paper-2);
  border: 1px solid rgba(197, 155, 99, 0.32);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.daily-quote::before {
  content: 'â€‌';
  position: absolute;
  top: -18px;
  right: 8px;
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  color: rgba(197, 155, 99, 0.2);
}
.dq-text {
  position: relative;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.85;
  color: var(--green-700);
}
.dq-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-size: 9.5px;
  color: var(--gold-700);
}
.dq-source::before { content: ''; width: 14px; height: 1px; background: var(--gold); }
.dq-author { margin-top: 10px; display: flex; align-items: center; gap: 7px; }
.dq-author .avatar-mini {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper); font-size: 9px; font-weight: 700;
}
.dq-author span { font-size: 9px; color: var(--muted); }

/* ط£ط؛ظ„ظپط© ط§ظ„ظƒطھط¨ */
.library-intro { margin:-7px 0 13px; color:var(--muted); font-size:10px; line-height:1.75; }
.library-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:10px; }
.library-tools .btn { margin:0; }
.library-category-manager { color:var(--green-700); border:1px solid var(--line); background:rgba(255,255,255,.7); }
.library-category-manager-list { display:grid; gap:7px; margin-top:12px; }
.library-category-manager-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--green-800); font-size:11px; font-weight:700; }
.library-category-manager-actions { display:flex; align-items:center; gap:5px; }
.library-category-manager-row .icon-btn { width:32px; height:32px; }
.library-category-manager-row .library-shelf-delete { color:var(--clay); background:rgba(163,80,59,.08); }
.library-category-add { margin-bottom:10px; }
.book-shelf-empty { padding:12px 10px; border-radius:12px; background:rgba(255,255,255,.55); color:var(--muted-2); font-size:9px; }
.book-shelves { display:grid; gap:15px; margin-top:5px; }
.book-shelf-section { min-width:0; }
.book-shelf-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:2px 0 7px; padding:0 2px; }
.book-shelf-heading h3 { color:var(--green-800); font:700 15px/1.45 var(--serif); }
.book-shelf-heading p { margin-top:2px; color:var(--muted-2); font-size:8px; }
.book-shelf-heading-actions { display:flex; align-items:center; gap:5px; }
.book-shelf-more { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--paper-2); color:var(--green-700); }
.book-shelf-edit-category { color:var(--gold-700); background:rgba(197,155,99,.14); }
.book-shelf-more .ic { width:14px; height:14px; }
.book-rail {
  display: flex;
  gap: 11px;
  overflow-x: auto;
  padding: 2px 2px 9px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.book-rail::-webkit-scrollbar { display: none; }
.book-shelf-card { flex:0 0 96px; min-width:0; scroll-snap-align:start; }
.book-shelf-card .book-mini { display:block; width:100%; padding:0; text-align:right; }
.book-shelf-card .book-mini .cover { width:100%; }
.book-shelf-card .book-mini h4 { display:-webkit-box; white-space:normal; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; min-height:29px; margin-top:6px; font-size:9px; line-height:1.55; }
.book-shelf-card .book-mini p { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:7.5px; }
.book-shelf-meta { display:flex; align-items:center; justify-content:space-between; gap:3px; min-height:18px; margin-top:4px; }
.book-shelf-rating { display:inline-flex; align-items:center; gap:2px; color:var(--gold-700); font-size:7.5px; white-space:nowrap; }
.book-shelf-rating .ic { width:10px; height:10px; fill:rgba(197,155,99,.25); }
.book-shelf-rating span { color:var(--muted-2); font-size:7px; }
.book-in-my-library { color:var(--green-600); font-size:6.5px; white-space:nowrap; }
.book-shelf-actions { display:flex; align-items:center; justify-content:space-between; gap:3px; margin-top:4px; }
.book-shelf-rate { padding:3px 6px; border-radius:7px; background:var(--paper-2); color:var(--green-700); font-size:7px; }
.book-shelf-edit,.book-shelf-delete { display:grid; place-items:center; width:21px; height:21px; border-radius:6px; }
.book-shelf-edit { background:var(--green-50); color:var(--green-700); }
.book-shelf-delete { display:grid; place-items:center; width:21px; height:21px; border-radius:6px; background:rgba(163,80,59,.09); color:var(--clay); }
.book-shelf-edit .ic,.book-shelf-delete .ic { width:11px; height:11px; }

.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 5px 12px 12px 5px;
  padding: 13px 12px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--paper);
  box-shadow: 0 8px 18px rgba(30, 58, 43, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  isolation: isolate;
  text-align: center;
}
.cover-image { padding: 0; }
.cover-image::before,
.cover-image::after { display: none; }
.cover-image-source {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.cover-image .cover-frame { z-index: 1; }
.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(248, 245, 238, 0.13) 1px, transparent 0);
  background-size: 12px 12px;
  opacity: 0.55;
}
.cover::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 8px;
  width: 1px;
  background: rgba(248, 245, 238, 0.22);
  box-shadow: -4px 0 9px rgba(0, 0, 0, 0.22);
}
.cover-frame {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(197, 155, 99, 0.42);
  border-radius: 2px 8px 8px 2px;
  pointer-events: none;
}
.cover-frame::before,
.cover-frame::after {
  content: '';
  position: absolute;
  width: 7px; height: 7px;
  border: 1px solid rgba(197, 155, 99, 0.6);
}
.cover-frame::before { top: 3px; right: 3px; border-left: 0; border-bottom: 0; }
.cover-frame::after { bottom: 3px; left: 3px; border-right: 0; border-top: 0; }
.cover-kicker { font-size: 6px; letter-spacing: 1.2px; color: rgba(248, 245, 238, 0.55); }
.cover-title {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.cover-author { font-size: 7.5px; color: rgba(248, 245, 238, 0.65); margin-top: 4px; }
.cover-mark {
  width: 18px; height: 18px;
  margin: 0 auto 2px;
  border: 1px solid rgba(197, 155, 99, 0.65);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 7px;
  color: var(--gold);
  font-family: var(--serif);
}

.book-mini { text-align: right; }
.book-mini .cover-title { font-size: 14px; }
.book-mini h4 {
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-mini p { font-size: 8.5px; color: var(--muted-2); margin-top: 1px; }

/* ظ…ظ‚ط§ظ„ ط§ظ„ط±ط¦ظٹط³ظٹط© */
.home-article {
  display: flex;
  gap: 13px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.home-article:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ha-thumb {
  flex: none;
  width: 62px;
  height: 78px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background:
    radial-gradient(circle at 1px 1px, rgba(197, 155, 99, 0.25) 1px, transparent 0),
    linear-gradient(150deg, #2A4F3B, #152C21);
  background-size: 11px 11px, auto;
}
.ha-thumb svg { width: 23px; height: 23px; }
.ha-body { min-width: 0; }
.ha-body .chip { margin-bottom: 4px; }
.ha-body h4 { font-size: 12.5px; line-height: 1.55; font-weight: 800; color: var(--green-700); }
.ha-meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 9px; color: var(--muted-2); }
.ha-meta b { color: var(--green-600); font-weight: 700; }

.whatsapp-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
}
.whatsapp-contact svg { width: 24px; height: 24px; color: #25D366; flex: none; }
.whatsapp-body { flex: 1; min-width: 0; }
.whatsapp-body strong { display: block; font-size: 10.5px; font-weight: 700; color: var(--green-700); }
.whatsapp-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #25D366;
  direction: ltr;
  margin-top: 2px;
}
.whatsapp-link:hover { text-decoration: underline; }

.lib-rating-opinions {
  font-size: 9px;
  color: var(--gold-700);
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lib-rating-opinions:hover { color: var(--gold); }
.nav-badge {
  position: absolute;
  top: 2px;
  left: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--clay);
  color: var(--paper);
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(163, 80, 59, 0.4);
  pointer-events: none;
}
.tab { position: relative; }
.tab .nav-badge { display: block; }
.tab .nav-badge[hidden] { display: none; }
.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(30, 58, 43, 0.05);
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 2px 5px;
  color: var(--muted-2);
  border-radius: 10px;
  transition: color 0.2s;
}
.tab .ic { width: 21px; height: 21px; stroke-width: 1.65; }
.tab span { font-size: 8.5px; font-weight: 600; }
.tab:hover { color: var(--green-600); }
.tab.active { color: var(--green-700); }
.tab.active .ic { stroke-width: 2; }
.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 99, 0.15);
}

/* ---------- ط§ظ„ظ‚ط±ط§ط،ط§طھ ---------- */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: var(--r-full);
  background: rgba(30, 58, 43, 0.06);
  border: 1px solid rgba(30, 58, 43, 0.05);
}
.segmented button {
  padding: 8px 10px;
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.25s var(--ease);
}
.segmented button.active {
  background: var(--white);
  color: var(--green-700);
  box-shadow: 0 3px 10px rgba(30, 58, 43, 0.1);
}
.segmented-sm { margin-bottom: 12px; }
.segmented-sm button { padding: 6px 8px; font-size: 10.5px; }

.pane { display: none; }
.pane.active { display: block; animation: screen-in 0.35s var(--ease) both; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.mini-stat {
  padding: 10px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
}
.mini-stat strong { display: block; font-size: 17px; font-weight: 800; color: var(--green-700); line-height: 1.3; }
.mini-stat span { font-size: 8.5px; color: var(--muted-2); }
.mini-stat small { display: block; font-size: 8px; color: var(--gold-700); font-weight: 700; margin-top: 1px; }

.form-card { padding: 16px; margin-bottom: 12px; }
.form-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.form-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--green-50);
  color: var(--green-600);
  flex: none;
}
.form-icon .ic { width: 18px; height: 18px; }
.form-head h3 { font-size: 14px; font-weight: 800; color: var(--green-700); }
.form-head p { font-size: 10px; color: var(--muted-2); }

.chart-card { padding: 15px 16px 13px; margin-bottom: 6px; }
.chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 112px;
  padding-top: 6px;
}
.chart-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
}
.chart-bar {
  width: 100%;
  max-width: 22px;
  min-height: 6px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(197, 155, 99, 0.55), rgba(197, 155, 99, 0.18));
  position: relative;
  transition: height 0.6s var(--ease);
}
.chart-day.has-value .chart-bar {
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
  box-shadow: 0 3px 8px rgba(30, 58, 43, 0.18);
}
.chart-day.is-today .chart-bar {
  background: linear-gradient(180deg, #D8B27C, var(--gold-600));
  box-shadow: 0 4px 10px rgba(197, 155, 99, 0.35);
}
.chart-value {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 800;
  color: var(--green-600);
  white-space: nowrap;
}
.chart-day.is-today .chart-value { color: var(--gold-700); }
.chart-label { font-size: 7.5px; color: var(--muted-2); }
.chart-day.is-today .chart-label { color: var(--gold-700); font-weight: 800; }

.entries { display: grid; gap: 8px; }
.entry {
  display: flex;
  gap: 10px;
  padding: 11px;
  border-radius: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
}
.entry-cover {
  flex: none;
  width: 38px;
  height: 54px;
  border-radius: 3px 7px 7px 3px;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.entry-body { flex: 1; min-width: 0; }
.entry-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.entry-top h4 {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.entry-top span { flex: none; font-size: 8.5px; color: var(--muted-2); }
.entry-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 9px; color: var(--muted); }
.entry-meta b { color: var(--gold-700); font-weight: 800; }
.entry-free {
  padding: 1px 7px;
  border: 1px solid rgba(197, 155, 99, 0.28);
  border-radius: 999px;
  background: rgba(197, 155, 99, 0.12);
  color: var(--gold-700);
  font-size: 8px;
  font-weight: 600;
}
.entry-note {
  margin-top: 5px;
  font-size: 9px;
  color: var(--muted-2);
  line-height: 1.65;
  padding-right: 7px;
  border-right: 2px solid var(--paper-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.entry-del {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--muted-2);
  opacity: 0.55;
  transition: all 0.2s;
}
.entry-del .ic { width: 13px; height: 13px; }
.entry-del:hover { background: rgba(163, 80, 59, 0.09); color: var(--clay); opacity: 1; }

.empty {
  padding: 30px 18px;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.45);
}
.empty .ic { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--gold); opacity: 0.9; }
.empty h4 { font-size: 12.5px; font-weight: 800; color: var(--green-700); }
.empty p { font-size: 10px; color: var(--muted); line-height: 1.8; margin-top: 3px; }

/* ---------- ظ„ظˆط­ط© ط§ظ„ط£ط¹ط¶ط§ط، ---------- */
.board-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-radius: var(--r-xl);
  color: var(--paper);
  background:
    radial-gradient(260px 180px at 0% 100%, rgba(197, 155, 99, 0.25), transparent 65%),
    linear-gradient(140deg, #1E3A2B, #12261B);
  box-shadow: 0 14px 30px rgba(20, 41, 29, 0.25);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.board-hero::after {
  content: '';
  position: absolute;
  top: -60px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(197, 155, 99, 0.2);
}
.board-copy { position: relative; z-index: 1; }
.board-copy h2 { font-size: 17px; font-weight: 800; line-height: 1.5; margin-top: 3px; }
.board-copy p { font-size: 9.5px; color: rgba(248, 245, 238, 0.55); margin-top: 3px; }
.board-total {
  position: relative;
  z-index: 1;
  flex: none;
  text-align: center;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(197, 155, 99, 0.13);
  border: 1px solid rgba(197, 155, 99, 0.25);
}
.board-total strong { display: block; font-family: var(--serif); font-size: 23px; font-weight: 700; color: var(--gold); line-height: 1.2; }
.board-total span { font-size: 7.5px; color: rgba(248, 245, 238, 0.55); }

.podium {
  display: grid;
  grid-template-columns: 1fr 1.16fr 1fr;
  align-items: end;
  gap: 6px;
  padding: 18px 4px 0;
  margin-bottom: 8px;
}
.podium-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 13px 6px 11px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.podium-col.is-first {
  padding-top: 20px;
  padding-bottom: 15px;
  background:
    linear-gradient(180deg, #FFFDF8, #FBF5E9);
  border-color: rgba(197, 155, 99, 0.4);
  box-shadow: 0 12px 26px rgba(197, 155, 99, 0.18);
}
.podium-col.is-me { outline: 2px solid rgba(30, 58, 43, 0.15); outline-offset: 2px; }
.podium-crown {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
}
.podium-crown .ic { width: 22px; height: 22px; fill: rgba(197, 155, 99, 0.15); }
.podium-medal {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 9px;
  font-weight: 700;
  background: var(--paper-2);
  color: var(--gold-700);
}
.podium-col.is-first .podium-medal { background: var(--gold); color: #2A1C08; }
.podium-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper);
  font-size: 15px;
  font-weight: 800;
  border: 2px solid var(--paper);
  box-shadow: 0 4px 12px rgba(30, 58, 43, 0.18);
  margin-bottom: 6px;
}
.podium-col.is-first .podium-avatar { width: 58px; height: 58px; border-color: var(--gold); font-size: 17px; }
.podium-name { font-size: 10.5px; font-weight: 700; color: var(--green-700); max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-pages { font-size: 15px; font-weight: 800; color: var(--green-700); margin-top: 2px; line-height: 1.2; }
.podium-pages span { font-size: 7.5px; color: var(--muted-2); font-weight: 500; }
.podium-col.is-first .podium-pages { color: var(--gold-700); }
.podium-you {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  border-radius: var(--r-full);
  background: var(--green-50);
  color: var(--green-600);
  font-size: 7px;
  font-weight: 700;
}

.board-list { display: grid; gap: 6px; }
.board-line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}
.board-line.is-me { background: var(--green-50); border-color: rgba(30, 58, 43, 0.2); }
.board-line .board-rank { background: transparent; width: 18px; }
.board-line .board-avatar { width: 29px; height: 29px; font-size: 10px; }
.board-line .board-info strong { font-size: 10.5px; }
.board-line .board-info span { font-size: 8px; }
.board-line .board-pages strong { font-size: 11.5px; }

.board-bar { height: 4px;
}
.board-member-name, .podium-name { background:none; border:0; padding:0; font:inherit; color:inherit; cursor:pointer; }
.board-member-name:hover, .podium-name:hover { text-decoration:underline; text-underline-offset:3px; }
  border-radius: var(--r-full);
  background: var(--paper-3);
  margin-top: 4px;
  overflow: hidden;
}
.board-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green-500));
  transition: width 0.7s var(--ease);
}

.club-goal { margin-top: 14px; }
.progress {
  height: 7px;
  border-radius: var(--r-full);
  background: var(--paper-2);
  overflow: hidden;
  margin: 4px 0 8px;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-500), var(--gold));
  transition: width 0.8s var(--ease);
}

/* ---------- طھظ‚ظٹظٹظ… ط§ظ„ظ†ط¬ظˆظ… ---------- */
.star-rating {
  display: flex;
  gap: 4px;
  direction: ltr;
  justify-content: center;
  margin: 8px 0;
}
.star-btn {
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--paper-3);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  padding: 2px;
}
.star-btn:hover, .star-btn.hover { color: var(--gold); transform: scale(1.15); }
.star-btn.active { color: var(--gold); }

/* ---------- ظ‚ط§ط¦ظ…ط© آ«ط§ظ„ظ…ط²ظٹط¯آ» ---------- */
.more-list { display: grid; gap: 8px; }
.more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  text-align: right;
  transition: background 0.2s, transform 0.15s;
}
.more-item:active { transform: scale(0.985); }
.more-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--green-50);
  color: var(--green-600);
  flex: none;
}
.more-icon .ic { width: 18px; height: 18px; }
.more-body { flex: 1; min-width: 0; }
.more-body strong { display: block; font-size: 12.5px; font-weight: 800; color: var(--green-700); }
.more-body p { font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }
.more-item .chev { width: 14px; height: 14px; color: var(--muted-2); flex: none; }

.club-programs-list { display:grid; gap:9px; }
.club-program-group-label { margin-top: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(30,58,43,.06); color: var(--green-700); font-size: 9px; font-weight: 800; text-align: center; }
.club-program-card { display:flex; align-items:center; gap:10px; padding:11px; border:1px solid var(--line); border-radius:14px; background:linear-gradient(135deg,#fff 0%,#f8f5ee 100%); cursor:pointer; }
.club-program-card:hover { background:linear-gradient(135deg,#f0e6d2 0%,#e5d5c1 100%); transition:background 0.2s; }
.club-program-index { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:11px; color:var(--gold-700); background:rgba(197,155,99,.15); font-size:13px; font-weight:800; }
.club-program-card > div { flex:1; min-width:0; }
.club-program-card small { display:block; color:var(--gold-700); font-size:7.5px; font-weight:800; }
.club-program-card h3 { margin-top:2px; color:var(--green-800); font-size:10px; font-weight:800; }
.club-program-card p { margin-top:3px; color:var(--muted); font-size:8px; line-height:1.7; }
.club-program-card > .ic { flex:none; width:18px; height:18px; color:var(--green-600); }

/* ---------- نافذة قرائية ---------- */
.reading-window { display: grid; gap: 12px; }
.reading-window-hero { padding: 16px 14px; border-radius: 16px; background: linear-gradient(160deg, #1E3A2B, #2A5240); color: #F8F5EE; text-align: center; }
.reading-window-hero h3 { font-size: 14px; font-weight: 800; color: #fff; margin: 6px 0 4px; }
.reading-window-hero p { font-size: 8.5px; line-height: 1.8; color: rgba(248,245,238,.82); }
.reading-window-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reading-window-stats > div { padding: 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); text-align: center; }
.reading-window-stats strong { display: block; font-size: 15px; font-weight: 800; color: var(--green-700); }
.reading-window-stats span { display: block; font-size: 8px; color: var(--muted); margin-top: 2px; }
.reading-window-stats small { display: block; font-size: 7px; color: var(--muted-2); }
.reading-window-progress { height: 8px; border-radius: 999px; background: rgba(30,58,43,.08); overflow: hidden; }
.reading-window-progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #C59B63, #9A7440); transition: width .3s; }
.reading-window-current { padding: 12px; border-radius: 14px; background: #F8F5EE; border: 1px solid rgba(197,155,99,.3); text-align: center; display: grid; gap: 6px; justify-items: center; }
.reading-window-current h4 { font-size: 10px; font-weight: 800; color: var(--green-700); }
.reading-window-current p { font-size: 9px; color: var(--text); line-height: 1.8; }
.reading-window-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.reading-window-grid > div { padding: 10px 4px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); text-align: center; }
.reading-window-grid strong { display: block; font-size: 13px; font-weight: 800; color: var(--green-700); }
.reading-window-grid span { display: block; font-size: 7px; color: var(--muted); margin-top: 2px; }
.reading-tip-empty { padding: 12px; border-radius: 12px; background: #F8F5EE; border: 1px dashed rgba(30,58,43,.25); text-align: center; color: var(--muted); font-size: 9px; }
.reading-tip-card { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 10px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); align-items: start; }
.reading-tip-image { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.reading-tip-body { display: grid; gap: 4px; }
.reading-tip-body h5 { font-size: 10px; font-weight: 800; color: var(--green-700); }
.reading-tip-body p { font-size: 8.5px; line-height: 1.8; color: var(--text); }
.reading-tip-delete { justify-self: start; }

/* ---------- الدليل التعريفي ---------- */
.guide-sheet { padding-bottom: 8px; }
.guide-hero { text-align: center; padding: 18px 14px; margin: 4px 0 14px; border: 1px solid rgba(197,155,99,.35); border-radius: 18px; background: linear-gradient(160deg, #1E3A2B 0%, #2A5240 100%); color: #F4E6CE; }
.guide-hero-logo { width: 74px; height: 74px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 22px; background: rgba(197,155,99,.18); border: 1px solid rgba(197,155,99,.45); overflow: hidden; }
.guide-hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.guide-hero h3 { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.guide-hero p { font-size: 9px; line-height: 1.8; color: rgba(248,245,238,.85); }
.guide-hero p small { display: block; margin-top: 4px; font-size: 7.5px; color: rgba(178,190,181,.9); }
.guide-hero-contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.guide-hero-contacts a { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font-size: 7.5px; font-weight: 700; text-decoration: none; }
.guide-hero-contacts a:hover { background: rgba(197,155,99,.2); }
.guide-section { padding: 12px; margin-bottom: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); }
.guide-section h4 { font-size: 11px; font-weight: 800; color: var(--green-800); margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px dashed rgba(30,58,43,.18); }
.guide-section p { font-size: 9px; line-height: 1.9; color: var(--text); margin-bottom: 6px; }
.guide-section > p:last-child { margin-bottom: 0; }
.guide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guide-cols > div { padding: 10px; border-radius: 12px; background: #F8F5EE; border: 1px solid rgba(197,155,99,.25); }
.guide-sub { padding: 10px; margin-top: 8px; border-radius: 12px; background: #F8F5EE; border: 1px solid rgba(30,58,43,.08); }
.guide-sub > strong { display: block; font-size: 9px; font-weight: 800; color: var(--green-700); margin-bottom: 6px; }
.guide-list { margin: 4px 0 0 0; padding-right: 14px; font-size: 9px; line-height: 1.9; color: var(--text); }
.guide-list li { margin-bottom: 3px; }
.guide-list ul { padding-right: 12px; margin-top: 4px; }
.guide-diagram { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(30,58,43,.12); background: linear-gradient(180deg, #fff, #F8F5EE); text-align: center; }
.guide-diagram-root { display: inline-block; padding: 6px 14px; border-radius: 12px; border: 1.5px solid var(--green-600); background: #fff; font-size: 10px; font-weight: 800; color: var(--green-800); }
.guide-diagram-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; position: relative; }
.guide-diagram-branches::before { content: ''; position: absolute; top: -10px; right: 25%; left: 25%; height: 10px; border-top: 1.5px solid var(--green-600); border-right: 1.5px solid var(--green-600); border-left: 1.5px solid var(--green-600); }
.guide-diagram-node { padding: 6px 8px; border-radius: 10px; background: rgba(30,58,43,.07); font-size: 8px; font-weight: 800; color: var(--green-800); }
.guide-diagram-leaves { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.guide-diagram-leaves span { padding: 6px 8px; border-radius: 10px; border: 1px dashed rgba(30,58,43,.3); font-size: 7.5px; font-weight: 700; color: var(--green-700); background: #fff; }
.guide-table-wrap { overflow-x: auto; margin-top: 8px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 7.5px; }
.guide-table th { padding: 6px; background: var(--green-700); color: #fff; font-weight: 800; }
.guide-table td { padding: 6px; border: 1px solid var(--line); color: var(--text); text-align: center; vertical-align: middle; }
.guide-table tr:nth-child(even) td { background: #F8F5EE; }
.guide-cta { margin-top: 10px; }
.guide-cta .btn { width: 100%; text-align: center; justify-content: center; }

/* ظ‚ط§ط¦ظ…ط© ط£ط¹ط¶ط§ط، ط¬ظ„ظٹط³ */
.members-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 8px; }
.members-head .icon-btn { width: 32px; height: 32px; color: var(--green-700); background: var(--paper-2); }
.members-head .icon-btn .ic { width: 15px; height: 15px; }
.members-list { display: grid; gap: 8px; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 13px; border: 1px solid var(--line); background: var(--white); }
.member-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--paper); font-size: 11px; font-weight: 800; }
.member-main { flex: 1; min-width: 0; }
.member-main strong { display: block; font-size: 11px; font-weight: 800; color: var(--green-700); }
.member-name-trigger, .member-profile-trigger { background:none; border:0; padding:0; font:inherit; color:inherit; cursor:pointer; text-align:right; }
.member-name-trigger { font-weight:800; color:var(--green-700); }
.member-name-trigger:hover, .member-profile-trigger:hover { text-decoration:underline; text-underline-offset:3px; }
.quote-author-link { display:flex; align-items:center; gap:8px; background:none; border:0; padding:0; font:inherit; color:inherit; cursor:pointer; text-align:right; }
.quote-author-link:hover strong { text-decoration:underline; text-underline-offset:3px; }
.book-review-author { background:none; border:0; padding:0; font:inherit; color:var(--green-700); cursor:pointer; font-weight:700; }
.book-review-author:hover { text-decoration:underline; text-underline-offset:3px; }
.ha-author { background:none; border:0; padding:0; font:inherit; color:var(--gold-700); cursor:pointer; font-weight:700; }
.ha-author:hover { text-decoration:underline; text-underline-offset:3px; }
.member-main small { display: block; margin-top: 1px; font-size: 8.5px; color: var(--muted-2); }
.member-role { flex: none; padding: 3px 9px; border-radius: 999px; background: rgba(197,155,99,.16); color: var(--gold-700); font-size: 8.5px; font-weight: 800; }
.member-role.friend { background: rgba(76,175,80,.16); color: #2E7D32; }
.quote-promo {
  position: relative;
  padding: 18px 16px 15px;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  color: var(--paper);
  background:
    radial-gradient(220px 160px at 100% 0%, rgba(197, 155, 99, 0.28), transparent 70%),
    linear-gradient(140deg, #1E3A2B, #142A1E);
  box-shadow: 0 14px 30px rgba(20, 41, 29, 0.24);
  margin-bottom: 14px;
  transition: transform 0.25s var(--ease);
}
.quote-promo:hover { transform: translateY(-2px); }
.quote-promo-mark {
  position: absolute;
  top: -34px;
  right: 12px;
  font-family: var(--serif);
  font-size: 130px;
  line-height: 1;
  color: rgba(197, 155, 99, 0.16);
}
.quote-promo p {
  position: relative;
  max-width: 250px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
}
.quote-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
}
.quote-promo-link .ic { width: 13px; height: 13px; }

.quotes-feed { display: grid; gap: 11px; }
.quotes-stats-bar { display: flex; justify-content: flex-start; margin: 0 0 10px; }
.btn-member-stats { background: linear-gradient(135deg, #C59B63 0%, #9A7440 100%); color: #fff; border: none; box-shadow: 0 6px 16px rgba(154,116,64,.35); padding: 8px 14px; font-size: 10px; font-weight: 800; }
.btn-member-stats:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(154,116,64,.4); }
.member-stats-list { display: grid; gap: 9px; }
.member-stat-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.member-stat-main { flex: 1; min-width: 0; }
.member-stat-main small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.member-stat-total { text-align: center; padding: 6px 10px; border-radius: 12px; background: rgba(197,155,99,.14); min-width: 56px; }
.member-stat-total strong { display: block; font-size: 13px; font-weight: 800; color: var(--green-700); }
.member-stat-total span { display: block; font-size: 7px; color: var(--muted-2); }
.crop-controls-universal { display: grid; gap: 6px; margin-top: 10px; padding: 10px; border-radius: 12px; background: #fff; border: 1px dashed rgba(30,58,43,.25); text-align: right; }
.crop-controls-universal label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 8.5px; font-weight: 800; color: var(--green-700); }
.crop-controls-universal input[type="range"] { flex: 1; max-width: 170px; accent-color: var(--green-600); }
.crop-preview-wrap { position: relative; }
.crop-preview-wrap img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
.reading-windows-gallery { display: grid; gap: 12px; }
.reading-window .reading-tip-card { grid-template-columns: 1fr; }
.reading-window .reading-tip-image { width: 100%; height: 180px; object-fit: cover; }
.member-role.consultant { background: rgba(30,58,43,.12); color: var(--green-700); }
.quote-card {
  position: relative;
  padding: 17px 16px 14px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.quote-card::before {
  content: 'â€‌';
  position: absolute;
  top: -16px;
  right: 9px;
  font-family: var(--serif);
  font-size: 82px;
  line-height: 1;
  color: rgba(197, 155, 99, 0.15);
}
.quote-card .quote-text {
  position: relative;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.9;
  color: var(--green-700);
}
.quote-source {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  font-size: 9.5px;
  color: var(--gold-700);
}
.quote-source::before { content: ''; width: 12px; height: 1px; background: var(--gold); }
.quote-source span { color: var(--muted-2); }

.quote-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.quote-author { display: flex; align-items: center; gap: 7px; min-width: 0; }
.quote-author .avatar-mini {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  flex: none;
}
.quote-author strong { display: block; font-size: 10px; font-weight: 700; color: var(--green-700); }
.quote-author small { display: block; font-size: 8px; color: var(--muted-2); }

.quote-actions { display: flex; align-items: center; gap: 2px; }
.quote-actions button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 6px;
  border-radius: 8px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 600;
  transition: all 0.2s;
}
.quote-actions .ic { width: 14px; height: 14px; }
.quote-actions button:hover { background: var(--paper); color: var(--green-600); }
.quote-actions button.active { color: var(--clay); }
.quote-actions button.active .ic { fill: rgba(163, 80, 59, 0.16); }
.quote-actions button.saved { color: var(--gold-700); }
.quote-actions button.saved .ic { fill: rgba(197, 155, 99, 0.2); }

/* ---------- ط§ظ„ظ…ظƒطھط¨ط© ---------- */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.search-box .ic { width: 17px; height: 17px; color: var(--muted-2); flex: none; }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 11px 0;
  font-size: 12px;
}
.search-box input::placeholder { color: #A9B1AC; }
.search-box input::-webkit-search-cancel-button { display: none; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}
.lib-card { position: relative; cursor: pointer; }
.lib-cover-wrap { position: relative; }
.lib-card .cover { transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.lib-card:hover .cover { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 16px 26px rgba(30, 58, 43, 0.28); }
.lib-add {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(248, 245, 238, 0.92);
  color: var(--green-700);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: transform 0.2s, background 0.2s;
}
.lib-add .ic { width: 14px; height: 14px; }
.lib-add:hover { transform: scale(1.08); background: var(--white); }
.lib-add.added { background: var(--green-700); color: var(--gold); }
.lib-more {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: var(--r-full);
  background: rgba(248, 245, 238, 0.95);
  color: var(--green-700);
  font-size: 7px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, color 0.2s;
}
.lib-more:hover { background: var(--white); }
.lib-more.added { background: var(--green-700); color: var(--gold); }
.report-toggle {
  display: inline-block;
  margin-top: 3px;
  cursor: pointer;
  color: var(--gold-700);
  font-size: 8px;
  font-weight: 800;
}
.report-toggle:hover { text-decoration: underline; }
.lib-info { padding: 7px 2px 0; }
.lib-info h4 { font-size: 11.5px; font-weight: 700; color: var(--green-700); line-height: 1.45; }
.lib-info p { font-size: 9px; color: var(--muted-2); margin-top: 1px; }
.lib-meta { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 4px; }
.lib-rating { display: inline-flex; align-items: center; gap: 2px; font-size: 8.5px; color: var(--gold-700); font-weight: 700; }
.lib-rating .ic { width: 10px; height: 10px; fill: rgba(197, 155, 99, 0.25); }
.lib-avail { display: inline-flex; align-items: center; gap: 3px; font-size: 7.5px; color: var(--muted-2); }
.lib-avail i { width: 4px; height: 4px; border-radius: 50%; background: var(--green-500); }
.lib-avail.out i { background: var(--clay); }
.lib-flag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 6px;
  border-radius: var(--r-full);
  background: rgba(197, 155, 99, 0.92);
  color: #2B1E0B;
  font-size: 6.5px;
  font-weight: 800;
  z-index: 2;
  letter-spacing: 0.3px;
}

.lib-cover {
  width: 100%;
  height: 95px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(30, 58, 43, 0.15);
}

.lib-cover-img {
  width: 100%;
  height: 95px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--paper-2);
}

.lib-added-by {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 7px;
  color: var(--gold-700);
  font-weight: 700;
  margin-bottom: 3px;
}
.lib-added-by .ic { width: 9px; height: 9px; fill: rgba(197, 155, 99, 0.3); }

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 8px;
  border: 2px dashed rgba(30, 58, 43, 0.2);
}

.lib-report {
  font-size: 8.5px;
  color: var(--muted-2);
  line-height: 1.5;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(30, 58, 43, 0.08);
  white-space:pre-line;
}

/* ظ…ظƒطھط¨طھظٹ */
.reading-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}
.rs-item {
  padding: 10px 6px;
  border-radius: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
}
.rs-item strong { display: block; font-size: 16px; font-weight: 800; color: var(--green-700); line-height: 1.25; }
.rs-item span { font-size: 8px; color: var(--muted-2); }

.my-books { display: grid; gap: 10px; }
.my-book {
  display: flex;
  gap: 11px;
  padding: 11px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.my-book-cover {
  flex: none;
  width: 54px;
  height: 80px;
  border-radius: 3px 8px 8px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  color: var(--paper);
  text-align: center;
  font-family: var(--serif);
  font-size: 9px;
  line-height: 1.3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 4px 10px rgba(30, 58, 43, 0.18);
}
.my-book-body { flex: 1; min-width: 0; }
.my-book-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.my-book-top h4 { font-size: 11.5px; font-weight: 700; color: var(--green-700); line-height: 1.45; }
.my-book-top span { flex: none; font-size: 8px; color: var(--muted-2); }
.my-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-size: 7.5px;
  font-weight: 700;
}
.my-status.reading { background: var(--green-50); color: var(--green-600); }
.my-status.want { background: var(--gold-soft); color: var(--gold-700); }
.my-status.finished { background: rgba(30, 58, 43, 0.08); color: var(--muted); }
.my-progress { margin-top: 8px; }
.my-progress-head { display: flex; justify-content: space-between; font-size: 8px; color: var(--muted-2); margin-bottom: 4px; }
.my-progress-head b { color: var(--green-700); font-size: 8.5px; }
.my-progress input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--gold) var(--p, 0%), var(--paper-3) var(--p, 0%));
  outline: none;
  cursor: pointer;
}
.my-progress input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green-700);
  border: 2px solid var(--paper);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.my-progress input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--green-700);
  border: 2px solid var(--paper);
}
.page-entry { margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); }
.page-entry label { display: block; font-size: 8.5px; color: var(--muted-2); font-weight: 600; margin-bottom: 5px; }
.page-entry-row { display: flex; align-items: center; gap: 6px; }
.page-input {
  width: 72px;
  padding: 6px 8px;
  font-size: 11px;
  text-align: center;
  border-radius: 9px;
  -moz-appearance: textfield;
}
.page-input::-webkit-outer-spin-button,
.page-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.page-total { font-size: 8.5px; color: var(--muted-2); }
.page-save { padding: 7px 12px; font-size: 10px; border-radius: 9px; gap: 4px; }
.my-finished-note { margin-top: 7px; font-size: 8.5px; color: var(--gold-700); font-weight: 600; }

/* ---------- ط§ظ„ظ…ظ‚ط§ظ„ط§طھ ---------- */
.featured-article {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: 20px 17px 16px;
  color: var(--paper);
  background:
    radial-gradient(240px 170px at 100% 0%, rgba(197, 155, 99, 0.3), transparent 65%),
    linear-gradient(145deg, #2A4F3B, #14291D);
  box-shadow: 0 16px 32px rgba(20, 41, 29, 0.26);
  margin-bottom: 4px;
  cursor: pointer;
}
.featured-article::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(197, 155, 99, 0.16) 1px, transparent 0);
  background-size: 16px 16px;
  mask-image: linear-gradient(140deg, #000, transparent 70%);
  pointer-events: none;
}
.fa-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fa-cat { background: rgba(197, 155, 99, 0.16); border: 1px solid rgba(197, 155, 99, 0.3); color: #E7C89A; }
.fa-read { font-size: 8.5px; color: rgba(248, 245, 238, 0.5); }
.featured-article h3 {
  position: relative;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.55;
  font-weight: 700;
  max-width: 290px;
}
.featured-article p {
  position: relative;
  margin-top: 7px;
  font-size: 10px;
  line-height: 1.85;
  color: rgba(248, 245, 238, 0.62);
  max-width: 290px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fa-foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(248, 245, 238, 0.14);
}
.fa-author { display: flex; align-items: center; gap: 7px; }
.fa-author .avatar-mini {
  width: 27px; height: 27px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
}
.fa-author strong { display: block; font-size: 9.5px; }
.fa-author small { display: block; font-size: 7.5px; color: rgba(248, 245, 238, 0.45); }
.fa-more { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); font-size: 9px; font-weight: 700; }
.fa-more .ic { width: 12px; height: 12px; }

.articles-list { display: grid; gap: 9px; }
.article-row {
  display: flex;
  gap: 10px;
  padding: 11px;
  border-radius: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-row:hover { transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.ar-num {
  flex: none;
  width: 30px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  padding-top: 3px;
}
.ar-body { flex: 1; min-width: 0; }
.ar-body .chip { margin-bottom: 4px; }
.ar-body h4 { font-size: 11.5px; font-weight: 700; color: var(--green-700); line-height: 1.55; }
.ar-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 8.5px; color: var(--muted-2); }
.ar-meta b { color: var(--green-600); font-weight: 700; }
.ar-actions { flex: none; display: flex; align-items: flex-start; }
.ar-save {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--muted-2);
  transition: all 0.2s;
}
.ar-save .ic { width: 15px; height: 15px; }
.ar-save:hover { background: var(--paper); color: var(--gold-700); }
.ar-save.saved { color: var(--gold-700); }
.ar-save.saved .ic { fill: rgba(197, 155, 99, 0.22); }

/* ظ…ط¬ظ„ط© ط§ظ„ظ…ظ‚ط§ظ„ط§طھ â€” ظˆط§ط¬ظ‡ط© طھط­ط±ظٹط±ظٹط© ط£ظ†ظٹظ‚ط© */
.articles-note {
  display:flex;
  align-items:center;
  gap:8px;
  margin:2px 0 12px;
  padding:9px 12px;
  border:1px solid rgba(30,58,43,.08);
  border-right:3px solid var(--gold);
  border-radius:12px;
  background:linear-gradient(90deg,rgba(197,155,99,.10),rgba(255,255,255,.5));
  color:var(--green-700);
  font-size:9.5px;
  font-weight:600;
  line-height:1.7;
}
.articles-note .ic { flex:none; width:14px; height:14px; color:var(--gold-700); }
.article-font-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:7px; }
.article-font-row label { margin:0; }
.article-font-controls { display:flex; align-items:center; gap:4px; }
.font-size-btn { width:30px; height:28px; border-radius:8px; border:1px solid var(--line); background:var(--paper-2); color:var(--green-700); font-size:11px; font-weight:800; line-height:1; }
.font-size-btn:active { background:var(--green-50); }
.font-size-value { min-width:24px; text-align:center; font-size:9.5px; color:var(--muted); }
.articles-list { display:grid; gap:10px; }
.article-row {
  display:block;
  padding:14px 15px 11px;
  border:1px solid rgba(30,58,43,.09);
  border-radius:17px;
  background:linear-gradient(160deg,#fff 65%,#faf7ef);
  box-shadow:0 4px 14px rgba(30,58,43,.055);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.article-row:hover { transform:translateY(-2px); border-color:rgba(197,155,99,.35); box-shadow:0 10px 22px rgba(30,58,43,.09); }
.ar-topline { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.ar-topline .chip { margin:0; }
.ar-reading-time { display:inline-flex; align-items:center; gap:4px; color:var(--muted-2); font-size:8px; }
.ar-reading-time .ic { width:12px; height:12px; color:var(--gold-700); }
.ar-title { margin:9px 0 5px; color:var(--green-800); font:700 16px/1.55 var(--serif); }
.ar-excerpt { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; color:var(--muted); font-size:10px; line-height:1.9; }
.ar-bottomline { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px; padding-top:8px; border-top:1px solid rgba(30,58,43,.08); }
.ar-meta { display:flex; align-items:center; flex-wrap:wrap; gap:5px; min-width:0; margin:0; color:var(--muted-2); font-size:8px; }
.ar-meta b { color:var(--green-700); font-weight:800; }
.ar-actions { display:flex; align-items:center; gap:2px; flex:none; }
.ar-save { width:27px; height:27px; border-radius:9px; }

/* ---------- ط§ظ„ظ…ظ„ظپ ط§ظ„ط´ط®طµظٹ ---------- */
.profile-screen {
  margin: -2px -18px -28px;
  padding: 0 18px 30px;
  background: var(--paper);
  min-height: 100%;
}
.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px 12px;
  margin: 0 -18px;
  color: var(--paper);
  background: linear-gradient(160deg, #1E3A2B, #152C21);
  font-size: 11px;
  font-weight: 700;
}
.profile-top-ghost { width: 32px; height: 32px; }
.profile-hero {
  position: relative;
  margin: 0 -18px;
  padding: 0 18px 26px;
  text-align: center;
  color: var(--paper);
  background:
    radial-gradient(300px 180px at 50% 0%, rgba(197, 155, 99, 0.22), transparent 70%),
    linear-gradient(160deg, #1E3A2B, #152C21);
  overflow: hidden;
}
.profile-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(197, 155, 99, 0.14) 1px, transparent 0);
  background-size: 17px 17px;
  mask-image: radial-gradient(circle at 50% 20%, #000, transparent 75%);
  pointer-events: none;
}
.profile-avatar {
  position: relative;
  width: 78px; height: 78px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--paper);
  background: linear-gradient(135deg, var(--green-500), #14291D);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(197, 155, 99, 0.12), 0 10px 26px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.profile-photo-change { position:relative; display:inline-flex; align-items:center; gap:5px; margin:-1px auto 8px; padding:5px 10px; border:1px solid rgba(197,155,99,.42); border-radius:999px; background:rgba(197,155,99,.12); color:#E7C89A; font:inherit; font-size:8px; font-weight:700; }
.profile-photo-change .ic { width:12px; height:12px; }
#profile-photo-input { display:none !important; }
.profile-hero h2 { position: relative; font-size: 20px; font-weight: 800; }
.profile-hero p { position: relative; font-size: 9.5px; color: rgba(248, 245, 238, 0.55); margin-top: 2px; }
.profile-badges { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 11px; }
.profile-badges span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--r-full);
  background: rgba(197, 155, 99, 0.13);
  border: 1px solid rgba(197, 155, 99, 0.28);
  color: #E7C89A;
  font-size: 7.5px;
  font-weight: 600;
}
.profile-badges .ic { width: 10px; height: 10px; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.ps-item {
  padding: 11px 4px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: center;
}
.ps-item strong { display: block; font-size: 16px; font-weight: 800; color: var(--green-700); line-height: 1.2; }
.ps-item span { display: block; font-size: 7.5px; color: var(--muted-2); margin-top: 2px; }

.goal-card { margin-top: 12px; }
.goal-form { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.goal-form input[type="range"] {
  flex: 1;
  height: 5px;
  appearance: none;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--gold) var(--p, 40%), var(--paper-3) var(--p, 40%));
  cursor: pointer;
}
.goal-form input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-700);
  border: 2px solid var(--paper);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.goal-form input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-700); border: 2px solid var(--paper);
}
.goal-form output {
  min-width: 44px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--green-700);
  padding: 4px 7px;
  border-radius: 9px;
  background: var(--green-50);
}

.settings-card { margin-top: 12px; padding: 0; overflow: hidden; }
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.switch-row:last-child { border-bottom: 0; }
.switch-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: var(--green-700); }
.switch-label .ic { width: 16px; height: 16px; color: var(--muted); }
.switch-row.danger .switch-label { color: var(--clay); }
.switch-row.danger .switch-label .ic { color: var(--clay); }
.switch-row .chev { width: 14px; height: 14px; color: var(--muted-2); }
.switch-row input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  width: 36px; height: 20px;
  border-radius: var(--r-full);
  background: var(--paper-3);
  position: relative;
  transition: background 0.25s;
  flex: none;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease);
}
.switch-row input:checked + .switch { background: var(--green-600); }
.switch-row input:checked + .switch::after { transform: translateX(-16px); }
.as-btn { width: 100%; text-align: right; background: none; }
.as-btn:hover { background: rgba(30, 58, 43, 0.03); }
.profile-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 8.5px;
  line-height: 1.9;
  color: var(--muted-2);
}

/* ---------- طھظˆط§طµظ„ ظ…ط¹ظ†ط§ ظˆط§ظ„ط¯ظ„ظٹظ„ ط§ظ„طھط¹ط±ظٹظپظٹ ---------- */
.app-footer {
  margin: 30px -18px -28px;
  padding: 20px 16px 0;
  border-top: 1px solid rgba(197, 155, 99, 0.3);
  background: linear-gradient(180deg, #0d1a14 0%, #14281E 100%);
  color: #DFE5DE;
}
.app-footer-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.app-footer-heading strong { color: #fff; font-size: 12px; font-weight: 800; }
.app-footer-heading > span { color: #B2BEB5; font-size: 8px; }
.app-footer-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.app-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #DFE5DE;
  font-size: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.app-footer-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.app-footer-link:hover::before { transform: translateX(100%); }
.app-footer-link:hover { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.app-footer-link:active { transform: translateY(1px) scale(0.98); }
.app-footer-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.app-footer-link .ic { width: 18px; height: 18px; flex: none; filter: brightness(0) invert(1); }
.app-footer-link.whatsapp { color: #7CE0A6; }
.app-footer-link.whatsapp:hover { color: #25D366; box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.15); }
.app-footer-link.twitter { color: #E0E7FF; }
.app-footer-link.twitter:hover { color: #FF8C42; box-shadow: 0 0 0 2px rgba(255, 140, 66, 0.15); }
.app-footer-link.youtube { color: #FF0000; }
.app-footer-link.youtube:hover { color: #FF6B6B; box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.15); }
.app-footer-link.community { color: #4CAF50; }
.app-footer-link.community:hover { color: #45a049; box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15); }
.app-footer-link.community span { display: grid; gap: 1px; }
.app-footer-link.community small { color: #B2BEB5; font-size: 6.5px; font-weight: 500; }
.app-footer-x { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.08); background: transparent; padding: 0; }
.app-footer-x:hover { background: rgba(255, 255, 255, 0.08); color: #FF8C42; }
.app-footer-guide {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 10px 18px;
  width: 100%;
  font: inherit;
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(197, 155, 99, 0.35);
  border-radius: 14px;
  background: rgba(197, 155, 99, 0.08);
  color: #F4E6CE;
  text-decoration: none;
  text-align: right;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-footer-guide:hover { background: rgba(197, 155, 99, 0.14); border-color: #C9A965; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(197, 155, 99, 0.2); }
.app-footer-guide:active { transform: translateY(1px); }
.app-footer-guide-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: rgba(197,155,99,.12); color: var(--gold-700); }
.app-footer-guide-icon .ic { width: 18px; height: 18px; }
.app-footer-guide > span:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.app-footer-guide strong { font-size: 9px; font-weight: 800; }
.app-footer-guide small { color: #B2BEB5; font-size: 7.5px; }
.app-footer-guide-arrow { width: 14px; height: 14px; color: var(--gold-700); }
.app-footer-copy { margin: 14px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); background: #0A1511; text-align: center; color: #8C9990; font-size: 7px; letter-spacing: 0.5px; }

/* ---------- ط§ظ„ظ†ظˆط§ظپط° ط§ظ„ط³ظپظ„ظٹط© ---------- */
.sheet-root {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 20, 14, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s;
}
.sheet.sheet-full {
  max-height: 100%;
  height: 100%;
  border-radius: 0;
  padding-bottom: 0;
}
.sheet.sheet-full .sheet-grabber { display: none; }
.article-reader-full { min-height: 100%; }
.sheet {
  position: relative;
  max-height: 90%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px 18px calc(22px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.36s var(--ease);
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet-root.open .sheet-backdrop { opacity: 1; }
.sheet-root.open .sheet { transform: translateY(0); }

.sheet-grabber {
  width: 38px; height: 4px;
  border-radius: var(--r-full);
  background: var(--paper-3);
  margin: 2px auto 13px;
}
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.sheet-head h2 { font-size: 17px; font-weight: 800; color: var(--green-700); line-height: 1.4; }
.sheet-head p { font-size: 10px; color: var(--muted); margin-top: 2px; }
.sheet-close {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(30, 58, 43, 0.06);
  color: var(--green-700);
}
.sheet-close .ic { width: 15px; height: 15px; }

.book-sheet-top { display: flex; gap: 14px; }
.book-sheet-cover { flex: none; width: 98px; }
.book-sheet-cover .cover { box-shadow: 0 12px 24px rgba(30, 58, 43, 0.25); }
.book-sheet-info { flex: 1; min-width: 0; padding-top: 2px; }
.book-sheet-info .chip { margin-bottom: 6px; }
.book-sheet-info h2 { font-size: 18px; font-weight: 800; color: var(--green-700); line-height: 1.5; }
.book-sheet-info .author { font-size: 11px; color: var(--muted); margin-top: 2px; }
.book-sheet-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.book-sheet-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 8px;
  color: var(--muted);
}
.book-sheet-meta .ic { width: 10px; height: 10px; color: var(--gold-700); fill: rgba(197, 155, 99, 0.18); }
.book-desc {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.95;
  color: var(--muted);
}
.book-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.book-sheet-actions .btn-block { grid-column: 1 / -1; }

/* طµظپط­ط© طھظپط§طµظٹظ„ ط§ظ„ظƒطھط§ط¨ */
.book-detail-hero { display:grid; grid-template-columns:106px minmax(0,1fr); align-items:center; gap:15px; padding:4px 2px 14px; }
.book-sheet-cover { width:100%; }
.book-sheet-cover .cover { width:100%; box-shadow:0 12px 24px rgba(30,58,43,.2); }
.book-detail-hero-info { min-width:0; }
.book-detail-hero-info > .chip { margin-bottom:7px; }
.book-detail-hero-info h2 { color:var(--green-800); font:700 21px/1.45 var(--serif); }
.book-detail-author { margin-top:4px; color:var(--muted); font-size:11px; }
.book-detail-rating { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin-top:10px; color:var(--green-700); text-align:right; }
.book-detail-rating strong { font-size:15px; font-weight:800; }
.book-detail-stars { color:#e5aa00; font-size:13px; letter-spacing:1px; white-space:nowrap; }
.book-detail-rating small { width:100%; color:var(--muted-2); font-size:8px; }
.book-detail-progress { margin:2px 0 12px; padding:10px 12px; border-radius:13px; background:var(--green-50); color:var(--green-700); font-size:9px; }
.book-detail-progress > div { display:flex; justify-content:space-between; margin-bottom:7px; }
.book-detail-progress .progress { display:block; height:5px; overflow:hidden; border-radius:99px; background:rgba(30,58,43,.1); }
.book-detail-progress .progress > span { display:block; height:100%; border-radius:inherit; background:var(--gold); }
.book-detail-actions { display:grid; gap:7px; margin:4px 0 15px; }
.book-detail-actions .btn { min-height:42px; }
.book-detail-secondary-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.book-detail-tabs { display:flex; gap:5px; overflow-x:auto; padding:0 0 8px; border-bottom:1px solid var(--line); scrollbar-width:none; }
.book-detail-tabs::-webkit-scrollbar { display:none; }
.book-detail-tabs button { flex:none; display:flex; align-items:center; gap:4px; padding:8px 10px; border-radius:10px 10px 0 0; color:var(--muted-2); font-size:9px; font-weight:700; }
.book-detail-tabs button.active { color:var(--green-700); background:var(--green-50); box-shadow:inset 0 -2px var(--gold); }
.book-detail-tabs button span { display:grid; place-items:center; min-width:17px; height:17px; padding:0 4px; border-radius:99px; background:rgba(30,58,43,.07); font-size:7px; }
.book-detail-panel { padding:13px 0 2px; }
.book-detail-description { padding:13px 14px; border-radius:15px; background:#f8f9fa; }
.book-detail-description > span { color:var(--muted-2); font-size:9px; font-weight:700; }
.book-detail-description p { margin-top:7px; color:var(--ink); font-size:11px; line-height:1.9; white-space:pre-line; }
.book-detail-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-bottom:8px; }
.book-detail-facts div { display:flex; flex-direction:column; gap:2px; min-width:0; padding:6px 9px; border-radius:9px; background:#f4f7f5; }
.book-detail-facts .book-fact-wide { grid-column:1 / -1; }
.book-detail-facts span { color:var(--muted-2); font-size:7px; font-weight:700; letter-spacing:.2px; }
.book-detail-facts b { color:var(--green-800); font-size:9px; font-weight:700; line-height:1.45; overflow-wrap:anywhere; }
.book-review-summary { display:grid; grid-template-columns:96px minmax(0,1fr); gap:14px; padding:13px; border-radius:15px; background:#f8f9fa; }
.book-review-summary > div:first-child { display:grid; align-content:center; justify-items:center; gap:4px; border-left:1px solid var(--line); }
.book-review-summary > div:first-child strong { color:var(--green-800); font-size:24px; line-height:1; }
.book-review-summary > div:first-child span { color:#e5aa00; font-size:11px; letter-spacing:1px; }
.book-review-summary > div:first-child small { color:var(--muted-2); font-size:7px; }
.book-rating-bars { display:grid; gap:5px; align-content:center; }
.book-rating-bars > div { display:grid; grid-template-columns:30px minmax(0,1fr) 18px; align-items:center; gap:5px; color:var(--muted-2); font-size:7px; }
.book-rating-bars i { display:block; height:5px; overflow:hidden; border-radius:99px; background:rgba(30,58,43,.1); }
.book-rating-bars i b { display:block; height:100%; border-radius:inherit; background:#e5aa00; }
.book-review-add { margin:10px 0; }
.book-reviews-list,.book-related-quotes { display:grid; gap:8px; margin-top:10px; }
.book-review-card { padding:12px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.book-review-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.book-review-head strong { color:var(--green-800); font-size:9px; }
.book-review-stars { color:#e5aa00; font-size:10px; letter-spacing:1px; }
.book-review-card p { margin-top:7px; color:var(--muted); font-size:9px; line-height:1.8; white-space:pre-line; }
.book-review-card .book-review-empty { color:var(--muted-2); font-size:8px; }
.book-related-quote { padding:12px 14px; border-right:3px solid var(--gold); border-radius:0 12px 12px 0; background:#f8f5ed; }
.book-related-quote p { color:var(--green-800); font:14px/1.8 var(--serif); }
.book-related-quote footer { margin-top:5px; color:var(--muted-2); font-size:8px; }

.quote-preview-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 7px;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted-2);
}
.quote-preview-label .ic { width: 12px; height: 12px; color: var(--gold); }
.quote-preview {
  padding: 14px;
  border-radius: 15px;
  background: linear-gradient(140deg, #FCFAF5, #F4EDDF);
  border: 1px solid rgba(197, 155, 99, 0.3);
  margin-bottom: 14px;
}
.quote-preview p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
  color: var(--green-700);
  min-height: 42px;
  white-space: pre-wrap;
  word-break: break-word;
}
.quote-preview p.is-empty { color: var(--muted-2); font-size: 14px; }
.quote-preview span { display: block; margin-top: 7px; font-size: 8.5px; color: var(--gold-700); }

.article-reader .sheet-head { margin-bottom: 8px; }
.reader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 14px; }
.reader-meta span { display: inline-flex; align-items: center; gap: 3px; font-size: 8.5px; color: var(--muted-2); }
.reader-meta .ic { width: 11px; height: 11px; }
.reader-title { font-family: var(--serif); font-size: 25px; line-height: 1.55; color: var(--green-700); margin-bottom: 12px; }
.reader-author { display: flex; align-items: center; gap: 9px; padding: 9px 0 13px; margin-bottom: 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reader-author .avatar-mini { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); font-size: 11px; font-weight: 700; }
.reader-author strong { display: block; font-size: 10.5px; color: var(--green-700); }
.reader-author-name { background:none; border:0; padding:0; font:inherit; color:var(--green-700); cursor:pointer; text-align:right; }
.reader-author-name:hover { text-decoration:underline; text-underline-offset:3px; }
.ar-author { background:none; border:0; padding:0; font:inherit; color:var(--green-700); cursor:pointer; font-weight:700; }
.ar-author:hover { text-decoration:underline; text-underline-offset:3px; }
.member-profile-sheet { display:grid; gap:12px; }
.member-profile-hero { display:grid; place-items:center; gap:6px; padding:14px; border-radius:16px; background:linear-gradient(160deg,#1E3A2B,#152C21); color:var(--paper); text-align:center; }
.member-profile-avatar { width:72px; height:72px; border-radius:50%; display:grid; place-items:center; font-size:24px; font-weight:800; color:var(--paper); background:linear-gradient(135deg,var(--green-500),#14291D); border:3px solid var(--gold); overflow:hidden; }
.member-profile-hero h2 { font-size:16px; font-weight:800; }
.member-profile-hero p { font-size:8.5px; color:rgba(248,245,238,.6); }
.member-profile-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.member-profile-stats > div { padding:10px 4px; border-radius:12px; background:var(--white); border:1px solid var(--line); text-align:center; }
.member-profile-stats strong { display:block; font-size:15px; font-weight:800; color:var(--green-700); }
.member-profile-stats span { display:block; font-size:7.5px; color:var(--muted-2); margin-top:2px; }
.member-contributions { display: grid; gap: 10px; margin-top: 4px; }
.member-contributions h4 { font-size: 10px; font-weight: 800; color: var(--green-700); padding-bottom: 4px; border-bottom: 1px dashed var(--line); }
.member-contribution-quote { margin: 0; padding: 10px 12px; border-radius: 12px; background: #F8F5EE; border-right: 3px solid var(--gold); }
.member-contribution-quote p { font-size: 9px; line-height: 1.8; color: var(--text); }
.member-contribution-quote footer { font-size: 7.5px; color: var(--muted-2); margin-top: 4px; }
.member-contribution-article { padding: 10px 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); cursor: pointer; }
.member-contribution-article h5 { font-size: 10px; font-weight: 800; color: var(--green-800); margin: 4px 0; }
.member-contribution-article p { font-size: 8.5px; line-height: 1.8; color: var(--muted); }
.member-contribution-article small { font-size: 7.5px; color: var(--muted-2); }
.member-contribution-empty { font-size: 8.5px; color: var(--muted-2); text-align: center; padding: 8px; }
.drag-crop-box { position: relative; margin-top: 10px; }
.drag-crop-frame { position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; border: 2px solid #fff; box-shadow: 0 0 0 999px rgba(0,0,0,.45); border-radius: 4px; cursor: move; touch-action: none; z-index: 3; }
.drag-crop-frame::before { content: ''; position: absolute; inset: 0; background:
  linear-gradient(to right, transparent 33.33%, rgba(255,255,255,.6) 33.33%, rgba(255,255,255,.6) 33.66%, transparent 33.66%),
  linear-gradient(to right, transparent 66.66%, rgba(255,255,255,.6) 66.66%, rgba(255,255,255,.6) 66.99%, transparent 66.99%),
  linear-gradient(to bottom, transparent 33.33%, rgba(255,255,255,.6) 33.33%, rgba(255,255,255,.6) 33.66%, transparent 33.66%),
  linear-gradient(to bottom, transparent 66.66%, rgba(255,255,255,.6) 66.66%, rgba(255,255,255,.6) 66.99%, transparent 66.99%);
  pointer-events: none; }
.drag-crop-handle { position: absolute; width: 22px; height: 22px; background: transparent; border: 3px solid #fff; cursor: nwse-resize; touch-action: none; }
.drag-crop-handle.tl { left: -11px; top: -11px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; }
.drag-crop-handle.tr { right: -11px; top: -11px; border-left: 0; border-bottom: 0; border-top-right-radius: 4px; cursor: nesw-resize; }
.drag-crop-handle.bl { left: -11px; bottom: -11px; border-right: 0; border-top: 0; border-bottom-left-radius: 4px; cursor: nesw-resize; }
.drag-crop-handle.br { right: -11px; bottom: -11px; border-left: 0; border-top: 0; border-bottom-right-radius: 4px; }
.drag-crop-handle.tm { left: 50%; top: -8px; margin-left: -11px; width: 14px; height: 14px; border-radius: 50%; border-width: 2px; cursor: ns-resize; }
.drag-crop-handle.bm { left: 50%; bottom: -8px; margin-left: -11px; width: 14px; height: 14px; border-radius: 50%; border-width: 2px; cursor: ns-resize; }
.drag-crop-handle.lm { left: -8px; top: 50%; margin-top: -11px; width: 14px; height: 14px; border-radius: 50%; border-width: 2px; cursor: ew-resize; }
.drag-crop-handle.rm { right: -8px; top: 50%; margin-top: -11px; width: 14px; height: 14px; border-radius: 50%; border-width: 2px; cursor: ew-resize; }
.drag-crop-hint { font-size: 7.5px; color: var(--muted-2); text-align: center; margin-top: 6px; }
.ymd-group { display: flex; gap: 6px; }
.ymd-group label { flex: 1; display: grid; gap: 4px; font-size: 8px; font-weight: 700; color: var(--muted); }
.ymd-group select { width: 100%; }
.reader-author small { display: block; font-size: 8px; color: var(--muted-2); }
.reader-body p { font-size: 12px; line-height: 2.05; color: #39453F; margin-bottom: 12px; }
.reader-actions { display: flex; gap: 7px; margin-top: 8px; padding-top: 13px; border-top: 1px solid var(--line); }

.notif-list { display: grid; gap: 7px; }
.notif-item { display: flex; gap: 10px; padding: 11px; border-radius: 13px; background: var(--white); border: 1px solid var(--line); }
.notif-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--green-50); color: var(--green-600); }
.notif-icon .ic { width: 16px; height: 16px; }
.notif-body strong { display: block; font-size: 10.5px; color: var(--green-700); }
.notif-body p { font-size: 9.5px; color: var(--muted); line-height: 1.7; margin-top: 1px; }
.notif-body small { font-size: 8px; color: var(--muted-2); }

/* ط·ظ„ط¨ط§طھ ط§ظ„ط§ظ†ط¶ظ…ط§ظ… â€” ط­ط§ظ„ط© ط§ظ„ط·ظ„ط¨ */
.join-request-card { display: flex; gap: 10px; padding: 11px; border-radius: 13px; border: 1px solid var(--line); background: var(--white); transition: background .2s ease; }
.join-request-card.pending { background: #f3f3f3; border-color: #e2e2e2; }
.join-request-card.accepted { background: #e7f3e3; border-color: #c3ddb8; }
.join-request-card.rejected { background: #fbe9e9; border-color: #eec4c4; }
.join-request-card.busy { opacity: .6; }
.join-request-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.join-status { flex: none; font-size: 8.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.join-status.pending { background: #e4e4e4; color: #5a5a5a; }
.join-status.accepted { background: #cfe8c8; color: #245c1f; }
.join-status.rejected { background: #f3c9c9; color: #96201f; }
.join-request-actions { display: flex; gap: 6px; margin-top: 8px; }
.join-decision { flex: 1; padding: 6px 10px; border-radius: 9px; border: 1px solid transparent; font-size: 9.5px; font-weight: 800; }
.join-decision.accept { background: #e7f3e3; color: #245c1f; border-color: #c3ddb8; }
.join-decision.reject { background: #fbe9e9; color: #96201f; border-color: #eec4c4; }
.join-decision.accept:not(:disabled):active { background: #cfe8c8; }
.join-decision.reject:not(:disabled):active { background: #f3c9c9; }
.join-decision:disabled { opacity: .55; }
.join-section { margin-bottom: 14px; }
.join-section:last-child { margin-bottom: 0; }
.join-section-title { margin: 0 2px 7px; font-size: 10px; font-weight: 800; color: var(--green-700); }
.join-status { white-space: nowrap; }

/* ط§ط³طھط´ط§ط±ط§طھ ط§ظ„ط£ط¹ط¶ط§ط، ظˆط¥ط¬ط§ط¨ط§طھ ط§ظ„ظ…ط³طھط´ط§ط±ظٹظ† */
.consultation-question-form, .consultation-signin { display:grid; gap:8px; margin-bottom:14px; padding:12px; border:1px solid rgba(197,155,99,.28); border-radius:14px; background:#fbf8f1; }
.consultation-question-form > label { color:var(--green-800); font-size:10px; font-weight:800; }
.consultation-question-form textarea, .consultation-answer-form textarea { resize:vertical; min-height:72px; line-height:1.8; }
.consultation-question-form .btn .ic { width:15px; height:15px; }
.consultation-signin p { color:var(--muted); font-size:9px; line-height:1.8; }
.consultations-section-head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin:0 2px 8px; }
.consultations-section-head h3 { color:var(--green-800); font-size:11px; font-weight:800; }
.consultations-section-head span { color:var(--muted-2); font-size:7px; }
.consultations-list { display:grid; gap:9px; }
.consultation-card { padding:11px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.consultation-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted-2); font-size:7.5px; }
.consultation-meta strong { color:var(--gold-700); font-size:8px; font-weight:800; }
.consultation-question { margin-top:7px; color:var(--green-800); font-size:10px; font-weight:700; line-height:1.9; white-space:pre-wrap; overflow-wrap:anywhere; }
.consultation-answer { margin-top:9px; padding:9px; border-right:2px solid var(--gold); border-radius:0 9px 9px 0; background:#f6f4ed; }
.consultation-answer small { color:var(--gold-700); font-size:7.5px; font-weight:800; }
.consultation-answer p { margin-top:4px; color:var(--ink); font-size:9px; line-height:1.9; white-space:pre-wrap; overflow-wrap:anywhere; }
.consultation-answer time { display:block; margin-top:4px; color:var(--muted-2); font-size:7px; }
.consultation-awaiting { display:flex; align-items:center; gap:5px; margin-top:8px; color:var(--muted-2); font-size:7.5px; }
.consultation-awaiting .ic { width:12px; height:12px; }
.consultation-answer-form { display:grid; gap:7px; margin-top:9px; }
.consultation-answer-form label { color:var(--green-700); font-size:8px; font-weight:800; }
.consultation-answer-form .btn { justify-self:start; }

.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

/* ---------- ط§ظ„طھظ†ط¨ظٹظ‡ط§طھ ظˆط§ظ„ط§ط­طھظپط§ظ„ ---------- */
.toast {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translate(-50%, 18px);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 86%;
  padding: 10px 16px;
  border-radius: var(--r-full);
  background: rgba(20, 41, 29, 0.96);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { width: 15px; height: 15px; color: var(--gold); flex: none; }

.confetti-layer {
  position: absolute;
  inset: 0;
  z-index: 130;
  pointer-events: none;
  overflow: hidden;
}
.confetti-bit {
  position: absolute;
  top: 18%;
  width: 6px;
  height: 10px;
  border-radius: 1px;
  animation: confetti-fall 1.7s ease-in forwards;
}
@keyframes confetti-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; }
  100% { transform: translate3d(var(--dx), 560px, 0) rotate(var(--rot)); opacity: 0; }
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  padding: 14px;
  border-radius: 14px;
  background: var(--clay);
  color: #fff;
  text-align: center;
  z-index: 200;
}

[hidden] { display: none !important; }

/* ---------- ط§ط³طھط¬ط§ط¨ط© ط§ظ„ط´ط§ط´ط§طھ ---------- */
@media (min-width: 1180px) {
  .stage-brand { display: block; }
}

@media (max-width: 900px) {
  body { padding: 14px; }
  .phone { width: min(420px, 100%); height: calc(100dvh - 28px); }
}

@media (max-width: 640px) {
  body {
    display: block;
    padding: 0;
    background: linear-gradient(155deg, #152C21 0%, #1E3A2B 48%, #102118 100%);
  }
  body::before { display: none; }
  .stage { display: block; }
  .stage-brand { display: none; }
  .phone {
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: #1E3A2B;
    box-shadow: none;
  }
  .phone::before, .phone::after, .phone-notch, .status-bar { display: none; }
  .app { border-radius: 0; }
  .app-header { padding-top: calc(10px + env(safe-area-inset-top)); }
  .gate { padding-top: calc(26px + env(safe-area-inset-top)); }
  .sheet-root { position: fixed; }
  .toast { position: fixed; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .confetti-layer { position: fixed; }
}

@media (max-height: 720px) and (min-width: 641px) {
  .phone { height: calc(100dvh - 20px); }
  .status-bar { display: none; }
  .phone-notch { top: 12px; height: 24px; width: 100px; }
  .app { border-radius: 40px; }
  .app-header { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

