/* موميديا — واجهة بنسق السوشيال ميديا، والهوية من ملفات momedia/: التدرّج، الخط، اللوغو، الشريط */
@font-face { font-family: "Thmanyah Sans"; src: url("assets/thmanyahsans-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("assets/thmanyahsans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("assets/thmanyahsans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("assets/thmanyahsans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("assets/thmanyahsans-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --navy: #302d75;
  --navy-deep: #221f5c;
  --indigo: #47327c;
  --violet: #6f428b;
  --orchid: #955fa3;
  --lilac: #e7def0;
  --paper: #f7f4fb;
  --white: #fff;
  --ink: #221f5c;
  --muted: #5c5784;
  --line: rgba(48, 45, 117, 0.14);
  --on-dark-muted: rgba(255, 255, 255, 0.82);
  --gradient: linear-gradient(135deg, #302d75 0%, #5b3a84 52%, #955fa3 100%);
  --ring: linear-gradient(135deg, #302d75, #955fa3);
  /* زاوية فقاعة الكلام من اللوغو: كل الزوايا مدوّرة إلا تحت يسار */
  --bubble: 26px 26px 26px 6px;
  --bubble-sm: 16px 16px 16px 4px;
  --gutter: 16px;
  --side: 244px;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  font-family: "Thmanyah Sans", "Segoe UI", Tahoma, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
:focus-visible { outline: 3px solid var(--orchid); outline-offset: 2px; border-radius: 6px; }
.side :focus-visible, .topbar-m :focus-visible { outline-color: #fff; }

.skip {
  position: fixed; top: 8px; right: 8px; z-index: 100; padding: 8px 16px;
  background: #fff; color: var(--navy); border-radius: var(--bubble-sm); transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* انتقال ناعم بين الصفحات متل التطبيقات */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 6px 20px; font-weight: 700;
  border-radius: 22px 22px 22px 5px;
  background: var(--navy); color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--violet); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--lilac); }
.btn-soft { background: var(--lilac); color: var(--navy); }
.btn-soft:hover { background: #dacdea; }
.icon-action {
  width: 44px; height: 44px; display: grid; place-items: center; flex: none; color: var(--navy);
  border-radius: 22px 22px 22px 5px; transition: background .2s ease;
}
.icon-action:hover { background: var(--lilac); }
.icon-action svg { width: 24px; height: 24px; }

/* ---------- الهيكل: شريط جانبي + عمود المحتوى ---------- */
.side {
  position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 30; width: var(--side);
  display: flex; flex-direction: column; gap: 4px; padding: 22px 14px;
  background: linear-gradient(170deg, #302d75 0%, #47327c 55%, #6f428b 100%); color: #fff;
}
.side-logo { display: block; padding: 0 12px 20px; }
.side-logo img { height: 60px; width: auto; }
.side a.side-link {
  display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 6px 12px; font-weight: 500;
  border-radius: 18px 18px 18px 4px; transition: background .2s ease;
}
.side a.side-link:hover { background: rgba(255, 255, 255, .12); }
.side a.side-link[aria-current="page"] { background: #fff; color: var(--navy); font-weight: 700; }
.side svg { width: 25px; height: 25px; flex: none; }
.side-cta { margin-top: auto; }
.side-cta .btn { width: 100%; }
.app { margin-inline-start: var(--side); min-height: 100vh; }

.topbar-m, .tabbar { display: none; }

@media (max-width: 1180px) and (min-width: 821px) {
  :root { --side: 84px; }
  .side { align-items: center; padding-inline: 10px; }
  .side-logo { padding: 0 0 18px; }
  .side-logo img { height: 34px; }
  .side a.side-link { justify-content: center; width: 54px; padding: 0; }
  .side a.side-link span, .side-cta .btn span { display: none; }
  .side-cta .btn { width: 54px; padding: 0; }
}

@media (max-width: 820px) {
  .side { display: none; }
  .app { margin-inline-start: 0; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .topbar-m {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
    min-height: 56px; padding: 6px var(--gutter); background: linear-gradient(90deg, #302d75, #5b3a84 60%, #955fa3); color: #fff;
  }
  .topbar-m img { height: 38px; width: auto; }
  .topbar-m .icon-action { color: #fff; }
  .topbar-m .icon-action:hover { background: rgba(255, 255, 255, .15); }
  .tabbar {
    position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 24px rgba(34, 31, 92, .14);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; min-width: 0;
    color: var(--muted); font-size: 12px; line-height: 1.2; font-weight: 500; border-radius: 14px 14px 14px 4px;
  }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar a[aria-current="page"] { color: var(--navy); background: var(--lilac); font-weight: 700; }
}

/* ---------- الرئيسية: تعريف + فيديو + خدمات ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
.home-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 3vw, 40px); }
.home-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--gradient); padding-block: clamp(36px, 6vw, 72px); }
.home-hero > .ribbon { height: 130%; top: -15%; left: 38%; opacity: .1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.eyebrow { font-weight: 500; color: var(--on-dark-muted); margin-bottom: 8px; }
.hero-text h1 { font-size: clamp(30px, 3.9vw, 50px); font-weight: 900; line-height: 1.15; text-wrap: balance; }
.hero-about { margin-top: 14px; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions .btn { min-height: 50px; padding-inline: 26px; }
.btn-line { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btn-line:hover { background: rgba(255, 255, 255, .14); }
.intro-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1e1b55; border-radius: 30px 30px 30px 8px;
  box-shadow: 0 24px 60px rgba(26, 23, 72, .4);
}
.intro-frame .player, .intro-frame .player > div { height: 100%; }
.intro-frame .player-h { aspect-ratio: auto; }
.intro-empty, .intro-play { position: relative; isolation: isolate; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; }
.intro-empty > img, .intro-logo { width: 42%; height: auto; }
.intro-play > img:not(.intro-logo) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro-play:hover .play { transform: scale(1.08); }
.intro-frame .ribbon { height: 120%; top: -10%; left: 8%; opacity: .12; }

.home-section { padding-block: clamp(36px, 5vw, 64px); }
.home-title { font-size: clamp(25px, 2.8vw, 36px); font-weight: 900; }
.home-sub { margin-top: 4px; color: var(--muted); }
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; margin-top: 22px; }
.service-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--bubble); padding: 22px; transition: box-shadow .2s ease, transform .2s ease; }
.service-card:hover { box-shadow: 0 16px 40px rgba(48, 45, 117, .13); transform: translateY(-3px); }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; }
.service-count { font-size: 14px; font-weight: 500; color: var(--violet); }
.service-card h3 { margin-top: 12px; font-size: 23px; font-weight: 900; }
.service-card p { margin-top: 6px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 4px; font-weight: 500; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks svg { width: 18px; height: 18px; flex: none; color: var(--orchid); stroke-width: 3; }
.ticks-row { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.service-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.service-actions .btn { flex: 1 1 auto; }

.home-steps { background: #fff; }
.steps-row { list-style: none; padding: 0; counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-top: 20px; }
.steps-row li { counter-increment: st; color: var(--muted); }
.steps-row li::before {
  content: counter(st, arabic-indic); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 10px;
  background: var(--ring); color: #fff; font-weight: 900; font-size: 20px; border-radius: 23px 23px 23px 5px;
}
.steps-row b { display: block; color: var(--navy); font-size: 18px; font-weight: 700; }
.home-grid { margin-top: 18px; border-radius: 22px 22px 22px 6px; overflow: hidden; }

.home-contact { padding-block: 0; }
.contact-band { padding-block: clamp(30px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.home-contact { background: var(--navy-deep); color: #fff; }
.contact-band h2 { font-size: clamp(23px, 2.6vw, 32px); font-weight: 900; }
.contact-band p { color: var(--on-dark-muted); }
.band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.band-actions .btn-white { direction: ltr; }
.icon-action.on-band { color: #fff; }
.icon-action.on-band:hover { background: rgba(255, 255, 255, .16); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero > .ribbon { left: -6%; }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 66px; }
}

.ring { display: block; width: 72px; height: 72px; padding: 3px; border-radius: 50%; background: var(--ring); }
.ring > * {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; overflow: hidden;
  object-fit: cover; background: var(--navy); color: #fff;
}
.ring svg { width: 26px; height: 26px; }

/* ---------- المنشور ---------- */
.post { background: #fff; border-radius: var(--bubble); overflow: hidden; margin-bottom: 18px; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-width: 0; }
.post-avatar { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ring); color: #fff; }
.post-avatar svg { width: 21px; height: 21px; }
.post-who { min-width: 0; line-height: 1.3; }
.post-who b { display: block; font-weight: 700; }
.post-who small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-media { position: relative; display: block; width: 100%; background: #efeaf6; overflow: hidden; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; display: grid; place-items: center; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--navy); border-radius: 50%; box-shadow: 0 4px 14px rgba(34, 31, 92, .25);
}
.car-btn svg { width: 18px; height: 18px; }
.car-next { left: 10px; }
.car-prev { right: 10px; }
.car-prev svg { transform: rotate(180deg); }
.car-count {
  position: absolute; top: 10px; left: 10px; padding: 0 10px; font-size: 13px; font-weight: 500; direction: ltr;
  background: rgba(34, 31, 92, .8); color: #fff; border-radius: 12px 12px 12px 3px;
}
.poster { position: relative; display: block; width: 100%; background: var(--gradient); overflow: hidden; isolation: isolate; }
.poster.h { aspect-ratio: 16 / 9; }
.poster.v { aspect-ratio: 4 / 5; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; display: grid; place-items: center;
  background: #fff; color: var(--navy); border-radius: 50% 50% 50% 8%; box-shadow: 0 10px 30px rgba(34, 31, 92, .35);
  transition: transform .2s ease;
}
.play svg { width: 26px; height: 26px; margin-inline-start: -3px; }
.poster:hover .play { transform: scale(1.08); }
.post-body { padding: 10px 14px 16px; }
.post-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.post-actions .btn { min-height: 40px; padding: 4px 18px; font-size: 15px; }
.post-title { font-size: 17px; font-weight: 700; line-height: 1.4; }
.post-text { margin-top: 2px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .post { border-radius: 0; margin-bottom: 10px; }
}

.ribbon {
  position: absolute; z-index: -1; aspect-ratio: 480 / 828; background: url("assets/ribbon.png") center / contain no-repeat;
  pointer-events: none; opacity: .13;
}

/* ---------- البروفايل ---------- */
.profile-wrap { max-width: 935px; margin-inline: auto; padding: 32px 24px 64px; }
.profile { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 32px; align-items: center; }
.profile .ring { width: 150px; height: 150px; padding: 4px; grid-row: span 2; }
.profile .ring > * { border-width: 4px; }
.profile .ring svg { width: 58px; height: 58px; }
.profile h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; }
.stats { display: flex; gap: 22px; margin-top: 8px; list-style: none; padding: 0; }
.stats b { font-weight: 900; font-size: 19px; margin-inline-end: 5px; }
.profile-info { min-width: 0; }
.bio { color: var(--muted); max-width: 34em; margin-top: 8px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-actions .btn { min-height: 42px; }
@media (max-width: 820px) {
  .profile-wrap { padding: 16px 0 24px; }
  .profile { grid-template-columns: 88px minmax(0, 1fr); gap: 0 14px; padding-inline: var(--gutter); align-items: start; }
  .profile .ring { width: 88px; height: 88px; padding: 3px; grid-row: auto; }
  .profile .ring > * { border-width: 3px; }
  .profile .ring svg { width: 34px; height: 34px; }
  .profile-info { display: contents; }
  .profile-top { min-width: 0; align-self: center; }
  .bio, .profile-actions, .ticks-row { grid-column: 1 / -1; }
  .bio { margin-top: 12px; }
  .profile-actions .btn { flex: 1 1 auto; white-space: nowrap; padding-inline: 14px; }
}

/* الهايلايت = التصنيفات */
.highlights { display: flex; gap: 14px; margin-top: 26px; padding-block: 4px; overflow-x: auto; scrollbar-width: none; }
.highlights::-webkit-scrollbar { display: none; }
.hl { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 13px; line-height: 1.25; font-weight: 500; color: var(--muted); }
.hl .ring { width: 62px; height: 62px; background: var(--line); padding: 2px; }
.hl .ring > * { background: var(--lilac); color: var(--navy); border-width: 2px; }
.hl .ring svg { width: 22px; height: 22px; }
.hl[aria-pressed="true"] { color: var(--navy); font-weight: 700; }
.hl[aria-pressed="true"] .ring { background: var(--ring); padding: 3px; }
@media (max-width: 820px) { .highlights { padding-inline: var(--gutter); margin-top: 16px; } }

/* تبويبات البروفايل */
.view-tabs { position: sticky; top: 0; z-index: 20; display: flex; margin-top: 24px; background: var(--paper); border-top: 1px solid var(--line); }
.view-tab {
  flex: 1 1 0; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  color: var(--muted); font-weight: 500; border-top: 2px solid transparent; margin-top: -1px;
}
.view-tab svg { width: 20px; height: 20px; }
.view-tab:hover { color: var(--navy); }
.view-tab[aria-current="page"] { color: var(--navy); font-weight: 700; border-top-color: var(--navy); }
@media (max-width: 820px) { .view-tabs { top: 56px; margin-top: 14px; } }

/* شبكة الأعمال */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tile { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--gradient); color: #fff; isolation: isolate; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile-mark {
  position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; display: grid; place-items: center;
  background: rgba(34, 31, 92, .72); border-radius: 14px 14px 14px 3px;
}
.tile-mark svg { width: 15px; height: 15px; }
.tile-over {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; text-align: right; font-weight: 700; font-size: 15px; line-height: 1.35;
  background: linear-gradient(to top, rgba(26, 23, 72, .82), transparent 60%); opacity: 0; transition: opacity .2s ease;
}
.tile:hover .tile-over, .tile:focus-visible .tile-over, .tile.bare .tile-over { opacity: 1; }
.tile:focus-visible { outline-offset: -3px; }
.tile .ribbon { height: 90%; top: 0; left: 10%; }
@media (max-width: 560px) {
  .tile-over { font-size: 13px; padding: 8px; }
  .tile:not(.bare) .tile-over { display: none; }
}

.empty { margin: 20px 0 0; padding: clamp(36px, 6vw, 64px) 20px; text-align: center; background: #fff; border-radius: var(--bubble); color: var(--muted); }
.empty strong { display: block; color: var(--navy); font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }
@media (max-width: 820px) { .empty { margin: 12px var(--gutter) 0; } }

/* صفحات السوشيال: حسابات */
.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 16px; }
.account { background: #fff; border-radius: var(--bubble); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.account-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account .ring { flex: none; width: 66px; height: 66px; }
.account .ring > * { background: var(--lilac); color: var(--navy); font-size: 22px; font-weight: 700; }
.account-id { flex: 1; min-width: 0; line-height: 1.35; }
.account-id h3 { font-size: 17px; }
.account-id .handle { display: block; color: var(--violet); font-size: 14px; direction: ltr; text-align: right; overflow-wrap: anywhere; }
.account-id .field { display: block; color: var(--muted); font-size: 14px; }
.account-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 12px; overflow: hidden; }
.account-thumbs button { aspect-ratio: 1; background: var(--lilac); }
.account-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.account .btn { min-height: 42px; }
@media (max-width: 820px) { .accounts { padding-inline: var(--gutter); } }

/* ---------- البريف ---------- */
.brief { max-width: 640px; margin: 20px auto 0; }
.brief-intro { margin-bottom: 14px; }
.brief-intro h2 { font-size: 24px; font-weight: 900; }
.brief-intro p { color: var(--muted); margin-top: 4px; }
.direct { display: block; margin-top: 14px; text-align: center; color: var(--violet); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.form-card { background: #fff; border-radius: var(--bubble); padding: clamp(18px, 3vw, 28px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-end { align-items: end; }
.field { display: block; margin-bottom: 18px; min-width: 0; border: 0; padding: 0; }
.field > label, .field > legend, .field-label { display: block; padding: 0; margin-bottom: 6px; font-size: 15px; font-weight: 500; color: var(--navy); }
.opt { color: var(--muted); font-size: 13px; font-weight: 400; margin-inline-start: 4px; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--paper);
  border: 2px solid transparent; border-radius: 14px 14px 14px 4px; transition: border-color .2s ease, background .2s ease;
}
.input:hover { border-color: var(--line); }
.input:focus { outline: 0; border-color: var(--violet); background: #fff; }
.input::placeholder { color: #77739b; }
textarea.input { min-height: 120px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chip span {
  display: block; min-height: 42px; padding: 7px 16px; font-weight: 500; border-radius: 20px 20px 20px 4px; background: var(--paper);
  transition: background .2s ease, color .2s ease;
}
.chip input:hover + span { background: var(--lilac); }
.chip input:checked + span { background: var(--navy); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--orchid); outline-offset: 2px; }
.err { display: none; margin-top: 5px; color: #a3214f; font-size: 14px; }
.invalid .err { display: block; }
.invalid .input { border-color: #a3214f; }
.ref-note {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 18px;
  background: var(--lilac); border-radius: 14px 14px 14px 4px; color: var(--navy); font-size: 15px; font-weight: 500;
}
.ref-note b { font-weight: 700; }
.ref-note button { text-decoration: underline; flex: none; }
.btn-wa { width: 100%; min-height: 54px; font-size: 18px; }
.form-note { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }
.sent { margin-top: 12px; padding: 12px 14px; background: var(--lilac); color: var(--navy); font-weight: 500; border-radius: 14px 14px 14px 4px; }
.sent a { text-decoration: underline; }
@media (max-width: 820px) { .brief { margin-top: 12px; padding-inline: var(--gutter); } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- عارض المنشور ---------- */
.viewer {
  width: min(1080px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0;
  background: #fff; color: var(--ink); border-radius: var(--bubble); overflow: hidden;
}
.viewer::backdrop { background: rgba(26, 23, 72, .8); backdrop-filter: blur(6px); }
.viewer-scroll { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.viewer-close {
  position: absolute; top: 10px; left: 10px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--navy); color: #fff; border-radius: 21px 21px 21px 4px;
}
.viewer-close svg { width: 20px; height: 20px; }
.viewer .post { margin: 0; border-radius: 0; }
.player { background: #14123a; }
.player-h { aspect-ratio: 16 / 9; }
.player-v { display: flex; justify-content: center; }
.player-v > div { height: min(78dvh, 760px); aspect-ratio: 9 / 16; max-width: 100%; }
.player iframe, .player video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
@media (min-width: 900px) {
  .viewer .post { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); grid-template-rows: auto 1fr; }
  .viewer .post-media { grid-column: 1; grid-row: 1 / span 2; order: -1; background: #14123a; display: flex; align-items: center; }
  .viewer .post-media.images { background: #efeaf6; }
  .viewer .post-media > * { width: 100%; }
  .viewer .post-head { grid-column: 2; grid-row: 1; padding-inline-end: 60px; }
  .viewer .post-body { grid-column: 2; grid-row: 2; }
  .viewer .slide { aspect-ratio: auto; height: min(84dvh, 760px); }
}

.toast {
  position: fixed; bottom: 86px; left: 50%; transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); padding: 8px 20px;
  background: var(--navy-deep); color: #fff; font-weight: 500; border-radius: 20px 20px 20px 5px; box-shadow: 0 10px 30px rgba(34, 31, 92, .35);
}

/* ---------- تواصل معنا ---------- */
.contact-h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; }
.contact-title { margin-top: 28px; font-size: 21px; }
.contact-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 12px; }
.contact-link {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #fff; border-radius: 22px 22px 22px 5px;
  transition: background .2s ease;
}
.contact-link:hover { background: var(--lilac); }
.contact-link svg { width: 28px; height: 28px; flex: none; color: var(--violet); }
.contact-link b { display: block; font-weight: 700; line-height: 1.3; }
.contact-link small { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; text-align: right; }
.copyright { margin-top: 32px; color: var(--muted); font-size: 13px; font-weight: 300; }
.about-section { margin-top: 14px; }
@media (max-width: 820px) { .about-section { padding-inline: var(--gutter); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
