/* مُخطِّط الزواج: الواجهة */
@font-face { font-family: 'GE'; src: url(/fonts/ge-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'GE'; src: url(/fonts/ge-Medium.woff2) format('woff2'); font-weight: 400 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'GE'; src: url(/fonts/ge-Bold.woff2) format('woff2'); font-weight: 600 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'FT'; src: url(/fonts/futura-Book.woff2) format('woff2'); font-weight: 300 400; font-display: swap; }
@font-face { font-family: 'FT'; src: url(/fonts/futura-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'FT'; src: url(/fonts/futura-Demi.woff2) format('woff2'); font-weight: 600 800; font-display: swap; }

:root {
  --bg: #f7f1eb; --bg2: #f1e8df; --card: #fffcf9; --line: #ebe0d5; --line2: #dccdbf;
  --ink: #2f241c; --ink2: #6f5f52; --ink3: #9a8a7c;
  --brown: #4b3a2e; --brown2: #6b5444; --accent: #8a6a52; --accent-soft: #efe4d8;
  --ok: #4e7a4b; --ok-soft: #e6efe1; --warn: #a2643a; --warn-soft: #f6e6d9; --bad: #a34a3f;
  --side: #4b3a2e; --side-ink: #f3e9df; --side-ink2: #cbb9a8; --side-act: rgba(255, 244, 232, .14);
  --shadow: 0 1px 2px rgba(75, 58, 46, .05), 0 6px 18px -10px rgba(75, 58, 46, .18);
  --r: 14px; --r2: 10px;
  --font: 'GE', 'FT', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #1c1612; --bg2: #241c17; --card: #2a211b; --line: #3a2e26; --line2: #4a3b31;
  --ink: #f2e8de; --ink2: #c4b3a4; --ink3: #8f7f72;
  --brown: #e6d3c1; --brown2: #d6c0ab; --accent: #d3b496; --accent-soft: #3a2d24;
  --ok: #9cc597; --ok-soft: #2b3a29; --warn: #e3a77c; --warn-soft: #3d2b20; --bad: #e08b80;
  --side: #15100d; --side-ink: #f0e5da; --side-ink2: #a8978a; --side-act: rgba(255, 244, 232, .08);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; }
p { margin: 0; }
.num, .money { font-family: 'FT', var(--font); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.lat { font-family: 'FT', var(--font); }
.muted { color: var(--ink3); }
.small { font-size: 13px; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 16px; height: 16px; }
[hidden] { display: none !important; }

/* ---------- الهيكل ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.side { display: none; }
.main { min-width: 0; padding: 0 16px 104px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; height: 60px; margin: 0 -16px; padding: 0 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand b { font-size: 24px; font-weight: 700; letter-spacing: 0; color: var(--brown); }
.brand i { font-style: normal; font-family: 'FT'; font-size: 10px; letter-spacing: .32em; color: var(--ink3); }
.brand .pearl { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #e8dccf 60%, #c9b5a2); box-shadow: 0 0 0 1px rgba(0,0,0,.06); align-self: center; }
.topbar .sp { flex: 1; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--ink2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--brown); font-weight: 700; font-size: 14px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* الشريط السفلي للجوال */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; color: var(--ink3); border-radius: 10px; }
.tabbar .on { color: var(--brown); }
.tabbar .on svg { stroke-width: 2; }

@media (min-width: 1024px) {
  .shell { grid-template-columns: 252px 1fr; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-ink); overflow: hidden; }
  .side .brand { padding: 30px 28px 26px; flex-direction: column; align-items: center; gap: 2px; }
  .side .brand b { color: var(--side-ink); font-size: 34px; }
  .side .brand i { color: var(--side-ink2); }
  .side nav { display: flex; flex-direction: column; gap: 2px; padding: 0 14px; position: relative; z-index: 1; }
  .side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--side-ink2); font-size: 15px; }
  .side nav a.on { background: var(--side-act); color: var(--side-ink); }
  .side .deco { margin-top: auto; height: 38%; min-height: 160px; background-size: cover; background-position: center; opacity: .55; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%); }
  .side .me { position: absolute; bottom: 16px; inset-inline: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(40, 30, 24, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--side-ink); font-size: 13px; }
  .side .me .avatar { width: 32px; height: 32px; }
  .main { padding: 0 32px 48px; }
  .topbar { display: none; }
  .tabbar { display: none; }
}
@media (hover: hover) {
  .side nav a:hover { background: var(--side-act); color: var(--side-ink); }
  .iconbtn:hover { background: var(--bg2); }
}

/* ---------- عناصر عامة ---------- */
.page { max-width: 1240px; margin: 0 auto; padding-top: 14px; }
@media (min-width: 1024px) { .page { padding-top: 32px; } }
.phead { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.phead h1 { font-size: 24px; }
.phead p { color: var(--ink3); font-size: 14px; }
.phead .grow { flex: 1; min-width: 180px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink3); font-size: 14px; margin-bottom: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card.pad { padding: 18px; }
.sec-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sec-title h2 { font-size: 18px; }
.sec-title .grow { flex: 1; }
.sec-title p { font-size: 12.5px; color: var(--ink3); }
.link { color: var(--accent); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 12px; background: var(--brown); color: var(--card); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
[data-theme='dark'] .btn { color: #1c1612; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.btn.soft { background: var(--accent-soft); color: var(--brown); }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }
.btn:disabled { opacity: .5; cursor: default; }
@media (hover: hover) { .btn:hover { filter: brightness(1.08); } .btn.ghost:hover { background: var(--bg2); } }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 13.5px; color: var(--ink2); white-space: nowrap; }
.chip.on { background: var(--brown); border-color: var(--brown); color: var(--card); }
[data-theme='dark'] .chip.on { color: #1c1612; }
.chip .n { font-family: 'FT'; font-size: 12px; opacity: .75; }
.empty { padding: 28px 16px; text-align: center; color: var(--ink3); font-size: 14px; }
.empty .btn { margin-top: 12px; }
.bar { height: 6px; border-radius: 6px; background: var(--bg2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--brown2); }
.bar.ok > i { background: var(--ok); }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list > * + * { border-top: 1px solid var(--line); }

/* شارة الحالة */
.st { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--bg2); color: var(--ink2); }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.st.considering { background: var(--bg2); color: var(--ink3); }
.st.shortlisted { background: #f4ead9; color: #8a6a3a; }
.st.selected { background: #efe3d8; color: #7b5a45; }
.st.confirmed { background: var(--ok-soft); color: var(--ok); }
.st.paid { background: #e3ebf0; color: #3f6377; }
.st.completed { background: var(--ok); color: #fff; }
.st.unpaid { background: var(--warn-soft); color: var(--warn); }
[data-theme='dark'] .st.shortlisted { background: #3b3020; color: #e3c48c; }
[data-theme='dark'] .st.selected { background: #3a2c22; color: #e0bfa5; }
[data-theme='dark'] .st.paid { background: #22323b; color: #9cc3d8; }
[data-theme='dark'] .st.completed { color: #1c1612; }

/* ---------- لوحة التحكم ---------- */
.hero { position: relative; display: grid; gap: 16px; margin-bottom: 18px; }
.hello { display: flex; align-items: center; gap: 14px; }
.hello .ph { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; background: var(--bg2); border: 3px solid var(--card); box-shadow: var(--shadow); }
.hello .ph img { width: 100%; height: 100%; object-fit: cover; }
.hello h1 { font-size: 22px; }
.hello p { color: var(--ink2); font-size: 14px; }
.hero .deco { display: none; }
.ring { position: relative; width: 104px; height: 104px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .t { stroke: var(--bg2); }
.ring .v { stroke: var(--brown2); stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.ring .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .c b { font-family: 'FT'; font-size: 26px; font-weight: 600; line-height: 1; color: var(--ink); }
.ring .c span { font-size: 11px; color: var(--ink2); margin-top: 4px; }
.countdown { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; }
.countdown .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.fact > span { display: block; font-size: 12px; color: var(--ink3); }
.fact b { font-size: 17px; font-weight: 700; }
.fact b .num { font-size: 19px; }
.five { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.five a { display: block; padding: 14px 14px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.five a .k { font-size: 12.5px; color: var(--ink3); display: flex; align-items: center; gap: 6px; }
.five a .v { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.five a .v b { font-family: 'FT'; font-size: 26px; font-weight: 600; line-height: 1.1; }
.five a .v span { font-size: 12.5px; color: var(--ink2); }
.five a.on { border-color: var(--brown2); box-shadow: 0 0 0 1px var(--brown2) inset; }
.five a:last-child { grid-column: 1 / -1; }
.dash { display: grid; gap: 18px; }
.dash .side-col { display: grid; gap: 18px; align-content: start; }
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.tabs button { height: 42px; border-radius: 10px; font-size: 14px; color: var(--ink2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tabs button.on { background: var(--brown); color: var(--card); font-weight: 600; }
[data-theme='dark'] .tabs button.on { color: #1c1612; }
.tabs .n { font-family: 'FT'; font-size: 13px; opacity: .8; }
.grid-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.itile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.itile .im { aspect-ratio: 5 / 4; background: var(--bg2); }
.itile .im img { width: 100%; height: 100%; object-fit: cover; }
.itile .tx { padding: 9px 8px 10px; display: grid; gap: 2px; justify-items: center; }
.itile h4 { font-size: 14px; }
.itile .by { font-size: 12px; color: var(--ink3); max-width: 100%; }
.itile .st { margin-top: 5px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 12px; }
.prow .thumbs { display: flex; gap: 6px; flex: none; }
.prow .thumbs img, .prow .thumbs i { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--bg2); display: block; }
.prow h4 { font-size: 14.5px; }
.prow .sub { font-size: 12.5px; color: var(--ink3); }
.chev { color: var(--ink3); flex: none; }
.arow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.arow .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; display: grid; place-items: center; color: transparent; }
.arow .tick.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.arow h4 { font-size: 14px; font-weight: 600; }
.arow .sub { font-size: 12.5px; color: var(--ink3); }
.arow .tag { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.arow .tag.pay { background: var(--warn-soft); color: var(--warn); }
.arow .tag.urg { background: #f7e1dc; color: var(--bad); }
[data-theme='dark'] .arow .tag.urg { background: #3d2320; }
.appt { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--bg); }
.appt + .appt { margin-top: 8px; }
.appt img, .appt .dt { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.appt .dt { display: grid; place-content: center; text-align: center; background: var(--accent-soft); color: var(--brown); line-height: 1.1; }
.appt .dt b { font-family: 'FT'; font-size: 20px; }
.appt .dt span { font-size: 11px; }
.appt h4 { font-size: 14.5px; }
.appt .sub { font-size: 12.5px; color: var(--ink2); }
.tip { position: relative; display: flex; gap: 12px; padding: 16px; border-radius: var(--r); background: linear-gradient(to left, var(--accent-soft), var(--bg2)); border: 1px solid var(--line); overflow: hidden; }
.tip h4 { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.tip p { font-size: 13.5px; color: var(--ink2); margin-top: 2px; }
.tip button { margin-inline-start: auto; align-self: flex-start; color: var(--ink3); }

@media (min-width: 700px) {
  .five { grid-template-columns: repeat(5, 1fr); }
  .five a:last-child { grid-column: auto; }
  .grid-items { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1fr auto; min-height: 150px; align-items: center; }
  .hero .deco { display: block; position: absolute; inset-inline-end: -32px; top: -32px; width: 52%; height: 230px; background-size: cover; background-position: right center; -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 45%); mask-image: linear-gradient(to left, transparent 0%, #000 45%); opacity: .9; pointer-events: none; border-radius: 0 0 0 0; }
  [data-theme='dark'] .hero .deco { opacity: .35; }
  .hero > * { position: relative; }
  .hello .ph { width: 92px; height: 92px; }
  .hello h1 { font-size: 28px; }
  .countdown { background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); grid-template-columns: 1fr auto; padding: 18px 22px; gap: 26px; }
  .countdown .ring { order: 2; width: 128px; height: 128px; }
  .countdown .facts { grid-template-columns: auto auto; gap: 12px 30px; }
  .dash { grid-template-columns: 1fr 340px; align-items: start; }
  .grid-items { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

/* ---------- رحلتي ---------- */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ccard { position: relative; display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ccard .im { aspect-ratio: 4 / 3; background: var(--bg2); }
.ccard .im img { width: 100%; height: 100%; object-fit: cover; }
.ccard .tx { padding: 10px 12px 12px; }
.ccard h3 { font-size: 15px; }
.ccard .sub { font-size: 12px; color: var(--ink3); margin: 2px 0 8px; }
.ccard.add { align-items: center; justify-content: center; min-height: 180px; color: var(--ink3); border-style: dashed; box-shadow: none; background: transparent; gap: 6px; font-size: 14px; }
@media (min-width: 700px) { .cats { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.irow { display: flex; align-items: center; gap: 12px; padding: 12px; }
.irow .ph { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--bg2); flex: none; }
.irow .ph img { width: 100%; height: 100%; object-fit: cover; }
.irow h4 { font-size: 15px; }
.irow .sub { font-size: 12.5px; color: var(--ink3); }
.irow .meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }

/* صفحة العنصر */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 4px 0 18px; }
.steps button { position: relative; display: grid; justify-items: center; gap: 6px; padding-top: 2px; font-size: 11.5px; color: var(--ink3); text-align: center; line-height: 1.3; }
.steps button::before { content: ''; position: absolute; top: 12px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line2); z-index: 0; }
.steps button:last-child::before { display: none; }
.steps button.done::before { background: var(--brown2); }
.steps .dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line2); color: transparent; }
.steps .done .dot { background: var(--brown2); border-color: var(--brown2); color: #fff; }
.steps .cur .dot { border-color: var(--brown); background: var(--brown); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.steps .cur { color: var(--ink); font-weight: 700; }
.steps button:disabled { cursor: default; }
.idet { display: grid; gap: 16px; }
.idet .hero-im { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg2); }
.idet .hero-im img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: grid; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv > div > span { color: var(--ink3); }
.kv > div > b { font-weight: 600; text-align: start; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opt { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.opt.chosen { border-color: var(--brown); box-shadow: 0 0 0 1px var(--brown) inset; }
.opt .im { aspect-ratio: 1; background: var(--bg2); }
.opt .im img { width: 100%; height: 100%; object-fit: cover; }
.opt .tx { padding: 10px; display: grid; gap: 2px; flex: 1; }
.opt h4 { font-size: 14px; }
.opt .by { font-size: 12px; color: var(--ink3); }
.opt .pr { font-size: 14px; font-weight: 600; }
.opt .note { font-size: 12px; color: var(--ink2); }
.opt .acts { display: flex; gap: 6px; padding: 0 10px 10px; }
.opt .acts .btn { flex: 1; }
.opt .fav { position: absolute; top: 8px; inset-inline-start: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 252, 249, .92); display: grid; place-items: center; color: var(--ink3); }
.opt .fav.on { color: #b5564b; }
.opt .fav.on svg { fill: currentColor; }
.opt .badge { position: absolute; top: 8px; inset-inline-end: 8px; background: var(--brown); color: #fff; border-radius: 999px; font-size: 11.5px; padding: 3px 9px; }
.opt.add { align-items: center; justify-content: center; min-height: 200px; border-style: dashed; color: var(--ink3); gap: 6px; font-size: 14px; background: transparent; }
@media (min-width: 700px) { .opts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .idet { grid-template-columns: 380px 1fr; align-items: start; }
  .opts { grid-template-columns: repeat(4, 1fr); }
}
.paybox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.paybox div { padding: 10px; border-radius: 10px; background: var(--bg); }
.paybox div > span { display: block; font-size: 12px; color: var(--ink3); }
.paybox b { font-size: 15px; }

/* ---------- الميزانية ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { padding: 14px; }
.stat > span { display: block; font-size: 12.5px; color: var(--ink3); }
.stat b { display: block; font-size: 20px; font-weight: 600; margin-top: 2px; }
.stat small { font-size: 12px; color: var(--ink2); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.brow { padding: 12px 0; }
.brow + .brow { border-top: 1px solid var(--line); }
.brow .top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.brow .top h4 { font-size: 14.5px; flex: 1; }
.brow .top .money { font-size: 13px; color: var(--ink2); }
.stack { position: relative; height: 10px; border-radius: 6px; background: var(--bg2); overflow: hidden; }
.stack i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 6px; }
.stack .c { background: #d8c3ad; }
.stack .p { background: var(--brown2); }
.stack.over .c { background: #d99a8a; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink3); margin-bottom: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-inline-end: 5px; }
.two { display: grid; gap: 18px; }
@media (min-width: 1024px) { .two { grid-template-columns: 1.3fr 1fr; align-items: start; } }

/* ---------- المهام ---------- */
.trow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.trow .tick { margin-top: 1px; }
.trow.done h4 { color: var(--ink3); text-decoration: line-through; text-decoration-color: var(--line2); }
.tprog { display: grid; gap: 12px; }
.tprog .r { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 4px 10px; font-size: 13.5px; }
.tprog .r .bar { grid-column: 1 / -1; }
.tprog .r .num { color: var(--ink3); font-size: 12.5px; text-align: end; }

/* ---------- الضيوف ---------- */
.grow-search { position: relative; margin-bottom: 12px; }
.grow-search input { width: 100%; height: 44px; padding: 0 40px 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); font-size: 16px; }
.grow-search svg { position: absolute; top: 12px; inset-inline-start: 12px; color: var(--ink3); }
.grow-search input { padding-inline: 40px 14px; }
.grow2 { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.grow2 h4 { font-size: 14.5px; }
.grow2 .sub { font-size: 12.5px; color: var(--ink3); }
.rsvp { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.rsvp.yes { background: var(--ok-soft); color: var(--ok); }
.rsvp.no { background: #f5e1dd; color: var(--bad); }
[data-theme='dark'] .rsvp.no { background: #3d2320; }

/* ---------- التقويم ---------- */
.cal { padding: 14px; }
.cal .mhead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal .mhead h3 { flex: 1; font-size: 17px; }
.cal .wd, .cal .days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal .wd span { font-size: 11.5px; color: var(--ink3); padding: 4px 0; }
.cal .days button { position: relative; aspect-ratio: 1; max-height: 64px; display: grid; place-items: center; border-radius: 10px; font-family: 'FT'; font-size: 14.5px; color: var(--ink); }
.cal .days button.out { color: var(--line2); }
.cal .days button.today { box-shadow: 0 0 0 1px var(--brown2) inset; }
.cal .days button.sel { background: var(--brown); color: var(--card); }
.cal .days button.wed { background: var(--accent-soft); color: var(--brown); font-weight: 600; }
.cal .days button.wed.sel { background: var(--brown); color: var(--card); }
.cal .days button .dots { position: absolute; bottom: 5px; display: flex; gap: 3px; }
.cal .days button .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal .days button.sel .dots i { background: var(--card); }

/* ---------- الملفات ---------- */
.frow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.frow .fi { width: 46px; height: 46px; border-radius: 10px; background: var(--bg2); display: grid; place-items: center; color: var(--ink2); flex: none; overflow: hidden; }
.frow .fi img { width: 100%; height: 100%; object-fit: cover; }
.frow h4 { font-size: 14px; font-weight: 600; }
.frow .sub { font-size: 12px; color: var(--ink3); }
.drop { border: 1.5px dashed var(--line2); border-radius: var(--r); padding: 22px; text-align: center; color: var(--ink3); font-size: 14px; margin-bottom: 16px; display: block; cursor: pointer; }
.drop.over { border-color: var(--brown2); background: var(--accent-soft); }

/* ---------- الموردون ---------- */
.vgrid { display: grid; gap: 10px; }
@media (min-width: 800px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }
.vcard { padding: 14px 16px; display: grid; gap: 8px; }
.vcard h3 { font-size: 15.5px; }
.vcard .kind { font-size: 12px; color: var(--ink3); }
.vcard .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.vcard .items { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- الإعدادات ---------- */
.perm-grid { display: grid; gap: 0; }
.perm-grid .pr { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.perm-grid .pr:last-child { border-bottom: 0; }
.perm-grid .pr span { flex: 1; font-size: 14px; }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--bg2); border-radius: 10px; padding: 3px; border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.mrow h4 { font-size: 14.5px; }
.mrow .sub { font-size: 12.5px; color: var(--ink3); }
.perm-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.perm-pills span { font-size: 11px; padding: 1px 7px; border-radius: 6px; background: var(--bg2); color: var(--ink2); }
.perm-pills span.e { background: var(--accent-soft); color: var(--brown); }
.catrow { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.catrow img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }

/* ---------- النوافذ ---------- */
.ov { position: fixed; inset: 0; z-index: 60; background: rgba(35, 26, 20, .38); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet { width: 100%; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 20px 20px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .24s cubic-bezier(.2, .8, .2, 1); overscroll-behavior: contain; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line2); margin: 4px auto 10px; }
.sheet h3 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sheet h3 .grow { flex: 1; }
@media (min-width: 700px) {
  .ov { align-items: center; }
  .sheet { width: min(560px, 92vw); border-radius: 18px; padding: 20px 22px; }
  .sheet .grab { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
.f { display: grid; gap: 6px; margin-bottom: 12px; }
.f > span { font-size: 13px; color: var(--ink2); }
.f input, .f select, .f textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 11px; background: var(--bg); font-size: 16px; outline: none; }
.f textarea { min-height: 84px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--brown2); box-shadow: 0 0 0 3px var(--accent-soft); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.factions { display: flex; gap: 8px; margin-top: 6px; }
.factions .btn { flex: 1; }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 280px; overflow: auto; }
.pick button { aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid transparent; }
.pick button.on { border-color: var(--brown); }
.pick img { width: 100%; height: 100%; object-fit: cover; }
.phpick { display: flex; align-items: center; gap: 10px; }
.phpick .pv { width: 64px; height: 64px; border-radius: 10px; background: var(--bg2); overflow: hidden; flex: none; display: grid; place-items: center; color: var(--ink3); }
.phpick .pv img { width: 100%; height: 100%; object-fit: cover; }
.toast { position: fixed; bottom: calc(84px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 80; background: var(--brown); color: var(--card); padding: 10px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); animation: fade .2s; max-width: 90vw; }
[data-theme='dark'] .toast { color: #1c1612; }
@media (min-width: 1024px) { .toast { bottom: 28px; } }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; font-size: 15px; border-bottom: 1px solid var(--line); text-align: start; }
.menu-list > :last-child { border-bottom: 0; }

/* ---------- الدخول ---------- */
.login { min-height: 100vh; display: grid; }
.login .art { display: none; background-size: cover; background-position: center; }
.login .box { display: grid; place-content: center; padding: 32px 24px; text-align: center; gap: 14px; max-width: 440px; margin: 0 auto; }
.login .brand { justify-content: center; }
.login .brand b { font-size: 40px; }
.login h1 { font-size: 20px; }
.login p { color: var(--ink2); font-size: 14.5px; }
@media (min-width: 900px) { .login { grid-template-columns: 1fr 1fr; } .login .art { display: block; } }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--ink3); }

/* ---------- تصحيحات بعد المراجعة البصرية ---------- */
.countdown .pct { display: none; grid-column: 1 / -1; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.im { overflow: hidden; }
.itile .im img, .ccard .im img, .opt .im img, .idet .hero-im img { height: auto; aspect-ratio: inherit; }
.itile .im img { aspect-ratio: 5 / 4; }
.ccard .im img { aspect-ratio: 4 / 3; }
.opt .im img { aspect-ratio: 1; }
.idet .hero-im img { aspect-ratio: 4 / 3; }
.fact b { white-space: nowrap; font-size: 15.5px; }
.fact b .num { font-size: 17px; }
.itile .chipsrow { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin-top: 5px; }
.itile .chipsrow .st { margin: 0; height: 22px; padding: 0 8px; font-size: 11.5px; }
@media (max-width: 699px) {
  .tabs button { font-size: 13px; gap: 4px; padding: 0 4px; }
  .tabs button svg { display: none; }
  .five { gap: 8px; }
  .five a { padding: 11px 12px 10px; }
  .five a .v b { font-size: 22px; }
  .countdown { grid-template-columns: 1fr; justify-items: stretch; }
  .countdown .ring { display: none; }
  .countdown .facts { grid-template-columns: 1fr 1fr; }
  .countdown .pct { display: flex; }
}
.countdown .pct .bar { flex: 1; height: 8px; }
.countdown .pct b { font-family: 'FT'; font-size: 16px; color: var(--ink); }
@media (min-width: 1024px) {
  .countdown { min-width: 560px; }
  .countdown .facts { grid-template-columns: repeat(2, auto); }
}

.mrow { flex-wrap: wrap; }
.mrow .perm-pills { flex-basis: 100%; padding-inline-start: 48px; margin-top: 0; }
.perm-pills span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; font-size: 11.5px; }
.perm-pills svg.i.s { width: 12px; height: 12px; }
.five, .dash { position: relative; z-index: 1; }
@media (min-width: 1024px) { .hero .deco { height: calc(100% + 32px); } .hero { margin-bottom: 22px; } }
[data-theme='dark'] .hero .deco { opacity: .18 !important; }
