:root {
  --forest: #0F2A21; --forest-2: #163C2F; --green: #0E6B4E; --green-ink: #0A5A41; --green-tint: #E6F2ED;
  --gold: #D9B45A; --gold-2: #F0D58C; --gold-ink: #2A1E00;
  --ground: #F6F5F1; --surface: #fff; --ink: #15211C; --muted: #5B6660; --line: #E3E1DA;
  --soft: #EEE9DD; --cream: #FDF1D6; --cream-ink: #8A5300; --mint: #E7F2EC; --mint-ink: #0B5A42; --body2: #33403A;
  --glass: rgba(255,255,255,.92); --sk1: #ECEAE4; --sk2: #F7F6F2; --pop: #fff; --pop-ink: #13231C;
  color-scheme: light;
  --r: 18px; --bar: 64px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; background: var(--ground); color: var(--ink); line-height: 1.5; overflow-x: hidden; }
body.mk-lock { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #8FC7B2; outline-offset: 2px; }

/* ---------- الشريط العلوي ---------- */
.mk-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: calc(10px + env(safe-area-inset-top)) 24px 10px; background: rgba(15, 42, 33, .96); backdrop-filter: blur(10px); color: #fff; }
.mk-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.mk-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.mk-brand small { color: var(--gold-2); font-size: 12px; }
.mk-search { flex: 1; max-width: 520px; }
.mk-search input { width: 100%; height: 42px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.1); color: #fff; padding: 0 18px; font: inherit; }
.mk-search input::placeholder { color: #B9CBC3; }
.mk-tabs { display: flex; gap: 4px; margin-inline-start: auto; }
.mk-tabs button, .mk-tabs a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 0; background: none; color: #D5E2DC; cursor: pointer; text-decoration: none; font-weight: 600; font-size: 15px; }
.mk-tabs [aria-current] { background: var(--gold); color: var(--gold-ink); }

@media (max-width: 760px) {
  /* backdrop-filter يخلي الشريط السفلي الثابت يلتصق بالهيدر، فنشيله في الجوال */
  .mk-top { flex-wrap: wrap; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; gap: 10px; backdrop-filter: none; background: var(--forest); }
  .mk-search { flex-basis: 100%; max-width: none; order: 3; }
  .mk-tabs { position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--bar) + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); background: var(--forest); justify-content: space-around; margin: 0; box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
  .mk-tabs button, .mk-tabs a { flex-direction: column; gap: 2px; font-size: 12px; padding: 6px 10px; border-radius: 14px; }
  .mk-tabs span { font-size: 20px; }
  .mk-view { padding-bottom: calc(var(--bar) + 24px); }
  body[data-view="reels"] .mk-search { display: none; }
}

/* ---------- العام ---------- */
.mk-view { max-width: 1180px; margin: 0 auto; padding: 20px 24px 48px; outline: none; }
@media (max-width: 760px) { .mk-view { padding-inline: 16px; } }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; text-decoration: none; background: var(--green); color: #fff; transition: transform .15s, box-shadow .15s; }
.mk-btn:hover { transform: translateY(-1px); }
.mk-btn.gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 6px 18px rgba(217,180,90,.35); }
.mk-btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.mk-btn.ghost-d { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.mk-btn.big { min-height: 54px; font-size: 17px; flex: 1; }
.mk-link { background: none; border: 0; color: var(--green); font-weight: 700; cursor: pointer; }
.mk-muted { color: var(--muted); font-size: 14px; }
.mk-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--green-ink); background: var(--green-tint); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

.mk-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; border-radius: 26px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #1E5A45 0%, var(--forest) 55%), var(--forest); overflow: hidden; position: relative; }
.mk-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 5vw, 40px); line-height: 1.2; }
.mk-hero em { font-style: normal; color: var(--gold); }
.mk-hero p { margin: 0; color: #D5E2DC; max-width: 520px; }
.mk-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.mk-hero-shield { font-size: 96px; filter: drop-shadow(0 10px 30px rgba(217,180,90,.4)); animation: mk-float 4s ease-in-out infinite; }
@keyframes mk-float { 50% { transform: translateY(-8px) rotate(-4deg); } }
@media (max-width: 760px) { .mk-hero { padding: 24px 20px; } .mk-hero-shield { display: none; } }

.mk-sec { margin-top: 28px; }
.mk-sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.mk-sec-h h2 { margin: 0; font-size: 20px; }
.mk-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.mk-row::-webkit-scrollbar { display: none; }
.mk-row > * { scroll-snap-align: start; flex: none; }
.mk-row.cards > * { width: 170px; }

.mk-store { width: 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: center; }
.mk-store b { font-size: 14px; line-height: 1.3; }
.mk-store small { color: var(--muted); font-size: 12px; }
.mk-logo { border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex: none; }
.mk-logo-t { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 20px; }

.mk-reel-tile { width: 132px; aspect-ratio: 9/16; border-radius: var(--r); overflow: hidden; position: relative; border: 0; padding: 0; cursor: pointer; background: var(--forest); color: #fff; text-align: start; }
.mk-reel-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mk-reel-tile:hover img { transform: scale(1.05); }
.mk-reel-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.75)); }
.mk-play { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.25); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; font-size: 11px; }
.mk-reel-cap { position: absolute; bottom: 8px; inset-inline: 8px; z-index: 1; display: flex; flex-direction: column; line-height: 1.3; }
.mk-reel-cap b { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-reel-cap small { font-size: 11px; color: var(--gold-2); }

.mk-chips { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.mk-chip { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px; }
.mk-chip[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }

.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.mk-card { background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); cursor: pointer; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; min-width: 0; }
.mk-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,42,33,.12); }
.mk-card-img { aspect-ratio: 1; background: var(--ground); position: relative; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.mk-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-off { position: absolute; top: 8px; inset-inline-start: 8px; background: #B42318; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.mk-off.inline { position: static; display: inline-block; vertical-align: middle; }
.mk-card-b { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mk-card-m { font-size: 12px; color: var(--green); font-weight: 600; }
.mk-card-t { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-price { font-weight: 700; margin-top: 4px; }
.mk-price s, .mk-p-price s { color: var(--muted); font-weight: 400; font-size: .8em; }

.mk-empty { text-align: center; padding: 32px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mk-empty b { color: var(--ink); }
.mk-empty.big { padding: 64px 16px; }
.mk-empty.big h1 { color: var(--ink); margin: 0; }
.mk-empty-art { font-size: 64px; width: 120px; height: 120px; border-radius: 36px; background: var(--green-tint); display: flex; align-items: center; justify-content: center; }
.mk-skel { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.mk-skel-card { aspect-ratio: 3/4; border-radius: var(--r); background: linear-gradient(90deg, var(--sk1), var(--sk2), var(--sk1)); background-size: 200% 100%; animation: mk-sk 1.2s linear infinite; }
.mk-skel-card.tall { aspect-ratio: auto; height: 60vh; }
@keyframes mk-sk { to { background-position: -200% 0; } }

.mk-merchant { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.mk-merchant h1 { margin: 0; font-size: 26px; }
.mk-merchant p { margin: 4px 0 0; color: var(--muted); }

/* ---------- صفحة المنتج ---------- */
.mk-sheet { position: fixed; inset: 0; z-index: 40; }
.mk-sheet-bg { position: absolute; inset: 0; background: rgba(15,42,33,.55); opacity: 0; transition: opacity .25s; }
.mk-sheet-in { position: absolute; inset-inline: 0; bottom: 0; margin: 0 auto; max-width: 980px; max-height: calc(100dvh - env(safe-area-inset-top) - 24px); overflow-y: auto; background: var(--surface); border-radius: 26px 26px 0 0; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: grid; grid-template-columns: 1fr 1fr; overscroll-behavior: contain; }
.mk-sheet.open .mk-sheet-bg { opacity: 1; }
.mk-sheet.open .mk-sheet-in { transform: none; }
.mk-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--glass); color: var(--ink); font-size: 24px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.mk-p-img { position: relative; overflow: hidden; background: var(--ground); display: flex; align-items: center; justify-content: center; font-size: 80px; min-height: 420px; }
.mk-p-blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(24px) saturate(1.2); opacity: .55; }
.mk-p-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mk-p-b { padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mk-p-b h1 { margin: 0; font-size: 26px; line-height: 1.3; }
.mk-p-b h2 { margin: 16px 0 0; font-size: 18px; }
.mk-p-m { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--green); font-weight: 700; cursor: pointer; }
.mk-p-price { font-size: 26px; font-weight: 700; color: var(--green-ink); }
.mk-trust { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 10px 12px; background: var(--ground); border-radius: 12px; }
.mk-p-desc { margin: 0; white-space: pre-line; color: var(--body2); line-height: 1.8; }
.mk-buy-bar { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--surface) 30%); }
.mk-buy-bar .mk-btn.big { flex-direction: column; gap: 0; line-height: 1.25; padding: 6px 16px; min-width: 0; }
.mk-buy-bar .mk-btn.big small { font-size: 12px; font-weight: 600; opacity: .8; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-icon-btn { width: 54px; height: 54px; min-height: 54px; padding: 0; font-size: 20px; }
@media (max-width: 760px) {
  .mk-sheet-in { grid-template-columns: 1fr; max-height: 94vh; }
  .mk-p-img { min-height: 0; aspect-ratio: 1; max-height: 58vh; width: 100%; }
  .mk-p-b h1 { font-size: 22px; }
  .mk-p-price { font-size: 24px; }
  .mk-p-b { padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
}

/* ---------- الريلز ---------- */
body[data-view="reels"] { background: #000; }
body[data-view="reels"] .mk-view { max-width: none; padding: 0; }
.mk-reels { height: calc(100dvh - 62px); overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.mk-reels::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .mk-reels { height: calc(100dvh - 58px - var(--bar) - env(safe-area-inset-bottom)); } }
.mk-reel { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; display: flex; justify-content: center; background: #000; }
.mk-reel video { height: 100%; width: 100%; max-width: calc((100dvh - 62px) * 9 / 16); object-fit: cover; background: #000; }
.mk-sound { position: absolute; top: 14px; inset-inline-end: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 18px; cursor: pointer; }
.mk-reel-info { position: absolute; bottom: 0; inset-inline: 0; margin: 0 auto; max-width: calc((100dvh - 62px) * 9 / 16); padding: 60px 16px 18px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.mk-reel-info > * { pointer-events: auto; }
.mk-reel-info p { margin: 0; font-weight: 600; font-size: 16px; }
.mk-reel-m { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; padding: 0; cursor: pointer; align-self: flex-start; }
.mk-reel-m .mk-logo { width: 36px; height: 36px; font-size: 15px; }
.mk-reel-p { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: rgba(255,255,255,.14); backdrop-filter: blur(12px); cursor: pointer; }
.mk-reel-p img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.mk-reel-p span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mk-reel-p b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-reel-p small { color: var(--gold-2); font-weight: 700; }
.mk-reel-p .mk-btn { min-height: 38px; padding: 0 16px; }
.mk-reels-load { color: #fff; text-align: center; padding: 40vh 0; }

/* ---------- المساعد ---------- */
.mk-chat { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 150px; }
.mk-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: radial-gradient(120% 160% at 100% 0%, #1E5A45 0%, var(--forest) 60%); color: #fff; }
.mk-chat-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.mk-chat-head small { color: #CFE0D8; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.mk-chat-head .mk-link { color: var(--gold-2); font-size: 13px; }
.mk-ai-av { width: 44px; height: 44px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: conic-gradient(from 200deg, var(--gold), #7ED6B0, var(--gold-2), var(--gold)); box-shadow: 0 0 0 3px rgba(217,180,90,.25); animation: mk-glow 3s ease-in-out infinite; }
@keyframes mk-glow { 50% { box-shadow: 0 0 0 7px rgba(217,180,90,.12); } }
.mk-live { width: 7px; height: 7px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 3px rgba(61,220,151,.2); }
.mk-chat-log { display: flex; flex-direction: column; gap: 10px; }
.mk-msg { max-width: 88%; padding: 12px 16px; border-radius: 20px; line-height: 1.7; white-space: pre-line; animation: mk-in .25s ease-out; }
@keyframes mk-in { from { opacity: 0; transform: translateY(6px); } }
.mk-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-end-start-radius: 6px; }
.mk-msg.me { align-self: flex-end; background: var(--forest); color: #fff; border-end-end-radius: 6px; }
.mk-msg:has(.mk-ai-cards) { max-width: 100%; width: 100%; }
.mk-msg-img { width: 120px; border-radius: 12px; margin-bottom: 6px; }
.mk-msg.typing { display: flex; align-items: center; gap: 4px; }
.mk-msg.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: mk-b 1s infinite; }
.mk-msg.typing i:nth-child(2) { animation-delay: .15s; } .mk-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mk-b { 50% { transform: translateY(-4px); opacity: .5; } }
.mk-msg.typing small { margin-inline-start: 6px; color: var(--muted); font-size: 13px; }
.mk-ai-cards { display: flex; gap: 10px; overflow-x: auto; margin: 10px -6px 0; padding: 4px 6px 6px; white-space: normal; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mk-ai-card { flex: 0 0 168px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; }
.mk-ai-card .mk-card { flex: 1; }
.mk-why { font-size: 12px; font-weight: 600; color: var(--cream-ink); background: var(--cream); border-radius: 10px; padding: 4px 8px; line-height: 1.5; }
.mk-chat-dock { position: fixed; z-index: 15; inset-inline: 0; bottom: 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--ground) 28%); }
.mk-chat-dock > * { max-width: 760px; margin-inline: auto; }
@media (max-width: 760px) { .mk-chat-dock { bottom: calc(var(--bar) + env(safe-area-inset-bottom)); padding-bottom: 10px; } }
.mk-chat-sug { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.mk-chat-sug::-webkit-scrollbar, .mk-ai-cards::-webkit-scrollbar { display: none; }
.mk-chat-sug .mk-chip { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.mk-chat-pic { display: flex; align-items: center; gap: 10px; padding: 6px 10px; margin-bottom: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.mk-chat-pic img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.mk-chat-pic span { flex: 1; }
.mk-chat-form { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.mk-chat-form input[name="q"] { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); padding: 0 6px; font: inherit; font-size: 16px; outline: none; }
.mk-chat-form .mk-btn { width: 46px; padding: 0; flex: none; }
.mk-chat-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--soft); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; }
.mk-chat-ic.on { background: #E5484D; animation: mk-glow 1s infinite; }
.mk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) { body[data-view="chat"] .mk-search { display: none; } }
.mk-toast { position: fixed; bottom: calc(var(--bar) + 24px); left: 50%; transform: translateX(-50%); z-index: 60; background: var(--forest); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- اللغة والمفضلة واللايكات والكوبون ---------- */
.mk-lang { order: 2; flex: none; height: 36px; min-width: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: none; color: #fff; font-weight: 700; cursor: pointer; }
@media (min-width: 761px) { .mk-lang { order: 5; } }
@media (max-width: 760px) { .mk-brand { flex: 1; } }
.mk-heart { position: absolute; top: 8px; inset-inline-end: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--glass); color: #E5484D; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .15s; }
.mk-heart:active, .mk-side-btn:active { transform: scale(.85); }
.mk-fav-btn.on { color: #B42318; border-color: #F3B8B1; }
.mk-coupon { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--gold); background: var(--cream); }
.mk-coupon-ic { font-size: 26px; }
.mk-coupon div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.mk-coupon small { color: #5A4300; }
.mk-coupon b { font-size: 20px; letter-spacing: 2px; color: var(--gold-ink); }
.mk-coupon .mk-btn { min-height: 38px; padding: 0 16px; }
.mk-views { position: absolute; top: 12px; inset-inline-end: 10px; z-index: 1; font-size: 11px; background: rgba(0,0,0,.45); padding: 1px 8px; border-radius: 999px; }
.mk-reels-wrap { position: relative; }
.mk-reel-sort { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.4); backdrop-filter: blur(8px); }
.mk-reel-sort button { white-space: nowrap; border: 0; background: none; color: #ddd; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.mk-reel-sort [aria-selected="true"] { background: #fff; color: var(--ink); }
.mk-reel-side { position: absolute; inset-inline-end: max(10px, calc(50% - (100dvh - 62px) * 9 / 32 + 10px)); bottom: 150px; z-index: 3; display: flex; flex-direction: column; gap: 14px; }
.mk-side-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; color: #fff; cursor: pointer; text-shadow: 0 1px 4px rgba(0,0,0,.6); transition: transform .15s; }
.mk-side-btn span { width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.mk-side-btn small { font-size: 12px; font-weight: 600; }
.mk-side-btn.static { cursor: default; }
.mk-side-btn.on span { background: rgba(255,255,255,.2); }
.mk-reel-info { padding-inline-end: 76px; }
.mk-burst { position: absolute; top: 45%; left: 50%; z-index: 4; font-size: 96px; transform: translate(-50%, -50%) scale(.4); animation: mk-burst .8s ease-out forwards; pointer-events: none; }
@keyframes mk-burst { 30% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; } 100% { transform: translate(-50%, -70%) scale(1); opacity: 0; } }
[dir="ltr"] .mk-p-m::after { content: ""; }

.mk-demo-card { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px dashed var(--gold); color: var(--ink); text-decoration: none; }
.mk-demo-card > span:first-child { font-size: 28px; }
.mk-demo-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mk-demo-card small { color: var(--muted, #667); }
[dir=ltr] .mk-demo-card > span:last-child { transform: scaleX(-1); }
.mk-clip { position: relative; overflow: hidden; height: 100%; width: 100%; max-width: calc((100dvh - 62px) * 9 / 16); background: #000; }
.mk-clip video { max-width: none; }

/* ---------- تصفّح ---------- */
@media (max-width: 760px) { .mk-tabs .mk-home-link { display: none; } .mk-tabs button { padding: 6px 6px; } }
.mk-stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.mk-story { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; color: var(--ink); width: 76px; flex: none; }
.mk-story small { font-size: 12px; font-weight: 600; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-ring { padding: 3px; border-radius: 50%; background: conic-gradient(var(--gold), var(--green), var(--gold-2), var(--gold)); display: flex; }
.mk-ring > * { border: 3px solid var(--ground); border-radius: 50%; }
.mk-ring.seen { background: var(--line); }
.mk-browse-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 24px; }
@media (max-width: 600px) { .mk-browse-cards { grid-template-columns: 1fr; } }
.mk-discover { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; border: 0; cursor: pointer; text-align: start; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #1E5A45 0%, var(--forest) 60%); font: inherit; }
.mk-discover.fam { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); }
.mk-discover > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.mk-discover b { font-size: 18px; }
.mk-discover small { opacity: .85; font-size: 13px; line-height: 1.4; }
.mk-disc-ic { width: 48px; height: 48px; flex: none; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mk-budget { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.mk-budget-h { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.mk-budget-h b { font-size: 30px; color: var(--green); }
.mk-budget input[type=range] { width: 100%; accent-color: var(--green); }
.mk-sec-h.small { margin: 14px 0 8px; } .mk-sec-h.small h3 { margin: 0; font-size: 16px; }
.mk-sortbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 10px 0 14px; }
.mk-sortbar select { font: inherit; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* شاشة كاملة: الحالات واكتشف */
.mk-full { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; display: flex; flex-direction: column; }
.mk-full-top { position: absolute; top: calc(18px + env(safe-area-inset-top)); inset-inline: 14px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-full-top.over b { font-size: 18px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.mk-full-top .mk-reel-m { pointer-events: auto; }
.mk-round { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); flex: none; }
.mk-round.on { color: #ff6b81; }
.mk-bars { position: absolute; top: calc(8px + env(safe-area-inset-top)); inset-inline: 12px; z-index: 3; display: flex; gap: 4px; }
.mk-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.mk-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.mk-bars i.done b { width: 100%; }
.mk-full-img { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mk-full-img img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; }
.mk-full-img .mk-p-blur { opacity: .5; }
.mk-full-emoji { font-size: 120px; }
.mk-tap { position: absolute; top: 80px; bottom: 220px; width: 35%; z-index: 2; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mk-tap.prev { inset-inline-start: 0; } .mk-tap.next { inset-inline-end: 0; }
.mk-full-info { position: absolute; bottom: 0; inset-inline: 0; z-index: 3; padding: 70px 18px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.85) 45%); display: flex; flex-direction: column; gap: 6px; max-width: 640px; margin: 0 auto; }
.mk-full-info > b { font-size: 20px; line-height: 1.35; }
.mk-full-info .mk-price { color: var(--gold-2); font-size: 20px; }
.mk-full-info .mk-price s { color: rgba(255,255,255,.6); }
.mk-full-acts { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.mk-full-acts .mk-btn.gold { flex: 1; justify-content: center; }
.mk-new { align-self: flex-start; background: var(--gold); color: var(--gold-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.mk-card-m.light { color: #D5E2DC; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; display: flex; align-items: center; gap: 8px; cursor: pointer; align-self: flex-start; }
.mk-feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.mk-slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }

/* سلة العائلة */
.mk-fam { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.mk-fam-form { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.mk-fam-form label, .mk-fam-who label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.mk-fam input { font: inherit; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); }
.mk-fam-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.mk-fam-head h1 { margin: 0; font-size: 24px; }
.mk-fam-share { display: flex; gap: 8px; }
.mk-fam-g { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px 10px; }
.mk-fam-it { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mk-fam-g .mk-fam-it:nth-child(2) { border-top: 0; }
.mk-fam-it.done { opacity: .6; } .mk-fam-it.done b { text-decoration: line-through; }
.mk-fam-img { width: 72px; height: 72px; flex: none; border-radius: 14px; overflow: hidden; border: 0; padding: 0; background: var(--ground); cursor: pointer; font-size: 28px; }
.mk-fam-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-fam-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.mk-fam-b small { color: var(--muted); }
.mk-fam-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.mk-btn.sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.mk-fam-done { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px 14px; }
.mk-fam-done summary { cursor: pointer; font-weight: 700; }
.mk-fam-add { width: 100%; justify-content: center; margin-top: 4px; }
[data-fam-leave] { align-self: center; }

/* ---------- ريلز بشكل تيك توك ---------- */
.mk-reels-wrap { position: relative; }
.mk-reel { justify-content: center; overflow: hidden; }
.mk-reel-stage { position: relative; height: 100%; width: 100%; max-width: calc((100dvh - 62px) * 9 / 16); display: flex; justify-content: center; cursor: pointer; }
.mk-reel-stage > video { max-width: none; }
.mk-paused { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; z-index: 2; color: rgba(255,255,255,.85); opacity: 0; transform: scale(1.3); transition: opacity .15s, transform .15s; pointer-events: none; filter: drop-shadow(0 2px 10px rgba(0,0,0,.4)); }
.mk-paused svg { width: 100%; height: 100%; fill: currentColor; }
.mk-reel.paused .mk-paused { opacity: 1; transform: scale(1); }
.mk-reel-progress { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: calc((100dvh - 62px) * 9 / 16); height: 3px; background: rgba(255,255,255,.2); z-index: 4; }
.mk-reel-progress i { display: block; height: 100%; width: 0; background: #fff; }
[dir=rtl] .mk-reel-progress i { margin-inline-start: auto; margin-inline-end: 0; }
.mk-reel-top { position: absolute; top: calc(10px + env(safe-area-inset-top)); inset-inline: 0; z-index: 6; display: flex; justify-content: center; pointer-events: none; }
.mk-reel-top > * { pointer-events: auto; }
.mk-reel-sort { position: static; transform: none; background: none; backdrop-filter: none; gap: 18px; padding: 6px 0; }
.mk-reel-sort button { padding: 4px 0; border-radius: 0; font-size: 16px; font-weight: 700; color: rgba(255,255,255,.65); text-shadow: 0 1px 6px rgba(0,0,0,.5); border-bottom: 2px solid transparent; }
.mk-reel-sort [aria-selected="true"] { background: none; color: #fff; border-bottom-color: #fff; }
.mk-sound { position: absolute; top: 0; inset-inline-end: 14px; display: flex; align-items: center; justify-content: center; padding: 9px; backdrop-filter: blur(6px); }
.mk-sound svg { width: 22px; height: 22px; fill: currentColor; }
.mk-reel-side { gap: 18px; bottom: 120px; align-items: center; }
.mk-side-btn { gap: 4px; }
.mk-side-btn svg { width: 34px; height: 34px; fill: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.45)); transition: transform .2s, fill .2s; }
.mk-side-btn small { font-size: 13px; font-weight: 700; }
.mk-side-btn.like.on svg { fill: #FE2C55; animation: mk-pop .35s ease; }
.mk-side-btn.save.on svg { fill: var(--gold); animation: mk-pop .35s ease; }
@keyframes mk-pop { 50% { transform: scale(1.3); } }
.mk-side-av { position: relative; border: 0; background: none; padding: 0; cursor: pointer; margin-bottom: 6px; }
.mk-side-av .mk-logo { width: 48px; height: 48px; border: 2px solid #fff; }
.mk-side-av span { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #000; }
.mk-disc { width: 46px; height: 46px; border-radius: 50%; padding: 8px; border: 0; cursor: pointer; background: conic-gradient(#222, #555, #222, #555, #222); animation: mk-spin 5s linear infinite; }
.mk-disc img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.mk-reel.paused .mk-disc { animation-play-state: paused; }
@keyframes mk-spin { to { transform: rotate(360deg); } }
.mk-reel-info { padding: 80px 76px 18px 16px; }
[dir=rtl] .mk-reel-info { padding: 80px 16px 18px 76px; }
.mk-reel-info p { font-weight: 500; font-size: 15px; line-height: 1.5; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.mk-reel-m b { font-size: 17px; }
.mk-reel-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.85); }
.mk-stars { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; color: inherit; padding: 0; font: inherit; cursor: pointer; }
.mk-stars i { width: 15px; height: 15px; display: inline-flex; }
.mk-stars i svg { width: 100%; height: 100%; fill: rgba(255,255,255,.35); }
.mk-stars i.on svg { fill: #FFC233; }
.mk-stars b { margin-inline-start: 4px; } .mk-stars small { opacity: .8; margin-inline-start: 2px; }
.mk-stars.sm i { width: 12px; height: 12px; }
@media (max-width: 760px) {
  body[data-view="reels"] .mk-top { position: static; padding: 0; height: 0; background: none; }
  body[data-view="reels"] .mk-brand, body[data-view="reels"] #lang, body[data-view="reels"] .mk-search { display: none; }
  body[data-view="reels"] .mk-reels { height: calc(100dvh - var(--bar) - env(safe-area-inset-bottom)); }
  .mk-reel-stage, .mk-reel-progress { max-width: none; }
  .mk-reel-side { inset-inline-end: 8px; bottom: 110px; }
}

/* نافذة التعليقات */
.mk-cm { position: fixed; inset: 0; z-index: 70; }
.mk-cm-bg { position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s; }
.mk-cm-in { position: absolute; bottom: 0; inset-inline: 0; margin: 0 auto; max-width: 560px; height: min(72dvh, 640px); background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .22s ease; }
.mk-cm.open .mk-cm-bg { opacity: 1; } .mk-cm.open .mk-cm-in { transform: none; }
.mk-cm-load { margin: auto; }
.mk-cm-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mk-cm-h > div { display: flex; flex-direction: column; gap: 2px; }
.mk-cm-h .mk-stars i svg { fill: #ddd; } .mk-cm-h .mk-stars i.on svg, .mk-cm-c .mk-stars i.on svg { fill: #F5A623; }
.mk-cm-c .mk-stars i svg { fill: #ddd; }
.mk-round.dark { background: var(--ground); color: var(--ink); width: 40px; height: 40px; }
.mk-cm-list { flex: 1; overflow-y: auto; padding: 8px 16px; display: flex; flex-direction: column; gap: 14px; }
.mk-cm-c { display: flex; gap: 10px; }
.mk-cm-av { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mk-cm-n { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.mk-cm-n small { color: var(--muted); }
.mk-cm-c p { margin: 2px 0 0; line-height: 1.6; }
.mk-cm-f { border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.mk-cm-rate { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.mk-cm-rate span { margin-inline-end: 6px; }
.mk-cm-rate button { width: 32px; height: 32px; padding: 2px; border: 0; background: none; cursor: pointer; }
.mk-cm-rate svg { width: 100%; height: 100%; fill: #ddd; transition: fill .15s, transform .15s; }
.mk-cm-rate button.on svg { fill: #F5A623; }
.mk-cm-rate button:active svg { transform: scale(1.25); }
.mk-cm-row { display: grid; grid-template-columns: 30% 1fr auto; gap: 6px; }
.mk-cm-row input { font: inherit; min-width: 0; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); }
.mk-cm-row .mk-btn { min-height: 0; padding: 0 16px; }

/* منشورات مثل انستقرام */
.mk-full.light { background: var(--surface); color: var(--ink); }
.mk-posts-top { display: flex; align-items: center; justify-content: space-between; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; border-bottom: 1px solid var(--line); }
.mk-posts-top b { font-size: 17px; }
.mk-posts-top span { width: 40px; }
.mk-posts { flex: 1; overflow-y: auto; }
.mk-post { max-width: 560px; margin: 0 auto; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mk-post header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.mk-post-m { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); text-align: start; }
.mk-post-m .mk-logo { width: 36px; height: 36px; font-size: 14px; }
.mk-post-m span { display: flex; flex-direction: column; line-height: 1.25; }
.mk-post-m small { color: var(--green); font-size: 12px; font-weight: 600; }
.mk-post-img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--ground); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mk-post-img img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.mk-post-img .mk-p-blur { opacity: .45; }
.mk-post-img .mk-off { position: absolute; top: 12px; inset-inline-start: 12px; }
.mk-post-acts { display: flex; align-items: center; gap: 6px; padding: 8px 8px 0; }
.mk-pa { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 8px; transition: transform .15s; }
.mk-pa svg { width: 100%; height: 100%; }
.mk-pa.fav.on { color: #FE2C55; } .mk-pa.fav.on svg { fill: #FE2C55; animation: mk-pop .35s ease; }
.mk-pa:active { transform: scale(.85); }
.mk-pa.end { margin-inline-start: auto; }
.mk-post-cap { padding: 0 14px; display: flex; flex-direction: column; gap: 4px; }
.mk-post-cap p { margin: 0; line-height: 1.6; }
.mk-post-desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-post-cap .mk-link { align-self: flex-start; padding: 0; font-size: 14px; }
.mk-card-img { cursor: zoom-in; }

/* زر المساعد العائم */
.mk-fab { position: fixed; z-index: 45; bottom: 24px; inset-inline-end: 20px; height: 56px; min-width: 56px; padding: 0 18px 0 14px; border-radius: 999px; border: 0; cursor: pointer; display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 10px 28px rgba(15,42,33,.3); font: inherit; font-weight: 700; }
.mk-fab span { font-size: 24px; }
.mk-fab small { font-size: 14px; }
@media (max-width: 760px) { .mk-fab { bottom: calc(var(--bar) + 14px + env(safe-area-inset-bottom)); inset-inline-end: 14px; height: 50px; min-width: 50px; } }
body[data-view="chat"] .mk-fab, body[data-view="reels"] .mk-fab { display: none; }
@media (max-width: 760px) { .mk-fab { padding: 0; justify-content: center; } .mk-fab small { display: none; } .mk-sheet:not([hidden]) ~ .mk-fab { top: calc(66px + env(safe-area-inset-top)); bottom: auto; inset-inline-end: auto; inset-inline-start: 14px; } }
.mk-toast { z-index: 80; }
.mk-to-asalah { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(217,180,90,.55); color: var(--gold-2); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.mk-to-asalah:hover { background: rgba(217,180,90,.12); }
@media (min-width: 761px) { .mk-to-asalah { order: 4; } .mk-tabs .mk-home-link { display: none; } }
@media (max-width: 760px) { .mk-to-asalah { padding: 6px 12px; } }

/* تقييمات المنتجات والدخول بحساب Google */
.mk-rate-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; }
.mk-rate-line .mk-stars i svg { fill: #ddd; }
.mk-rate-line .mk-stars i.on svg { fill: #F5A623; }
.mk-p-b .mk-rate-line { margin: 2px 0 10px; font-size: 14px; }
.mk-rate-line .mk-link { padding: 0; font-size: 14px; }
.mk-card-r { font-size: 12px; font-weight: 700; color: #B7791F; } .mk-card-r small { color: var(--muted); font-weight: 500; }
.mk-cm-login { align-items: center; text-align: center; gap: 10px; }
.mk-cm-login p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.mk-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #1f1f1f; font-weight: 700; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.mk-google svg { width: 20px; height: 20px; }
.mk-cm-me { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.mk-cm-me img { width: 22px; height: 22px; border-radius: 50%; }
.mk-cm-row.me { grid-template-columns: 1fr auto; }

/* ---------- حساب الزبون ---------- */
.mk-me { order: 2; flex: none; position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; padding: 0; }
.mk-me img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mk-me i { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #E5484D; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
@media (min-width: 761px) { .mk-me { order: 6; } }
body[data-view="reels"] .mk-me { display: none; }
.mk-acc { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.mk-acc-hero { display: flex; align-items: center; gap: 16px; background: var(--forest); color: #fff; border-radius: 22px; padding: 20px; }
.mk-acc-hero h1 { margin: 0; font-size: 22px; }
.mk-acc-hero p { margin: 4px 0 0; color: #C9D8D1; font-size: 14px; }
.mk-acc-hero > div { flex: 1; min-width: 0; }
.mk-acc-hero .mk-btn { flex: none; color: #fff; border-color: rgba(255,255,255,.3); }
.mk-acc-av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--gold); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; flex: none; }
.mk-acc-box { background: var(--surface); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.mk-acc-box.row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.mk-acc-box h2 { margin: 0; font-size: 17px; }
.mk-acc-box p { margin: 0; }
.mk-google.big { align-self: flex-start; }
.mk-notes, .mk-mine { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mk-notes li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--soft); }
.mk-notes li:first-child, .mk-mine li:first-child { border-top: 0; }
.mk-notes li.new a { font-weight: 700; }
.mk-notes li.new::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; flex: none; margin-top: 8px; }
.mk-notes a { flex: 1; color: inherit; text-decoration: none; line-height: 1.5; }
.mk-notes small, .mk-mine small { color: #7A867F; font-size: 12px; white-space: nowrap; }
.mk-mine li { padding: 10px 0; border-top: 1px solid var(--soft); }
.mk-mine a { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.mk-mine p { margin: 0; }
.mk-watch-list { display: flex; flex-direction: column; gap: 10px; }
.mk-wl { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.mk-wl.off { opacity: .55; }
.mk-wl-img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; border: 0; padding: 0; background: var(--soft); cursor: pointer; font-size: 26px; }
.mk-wl-img img { width: 100%; height: 100%; object-fit: cover; }
.mk-wl b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-wl small { color: #7A867F; font-size: 12px; display: block; }
.mk-wl-p { font-weight: 700; color: var(--green, #0E6B4E); }
.mk-wl-p em { font-style: normal; font-size: 12px; background: var(--cream); color: var(--cream-ink); border-radius: 999px; padding: 2px 8px; margin-inline-start: 4px; }
.mk-btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.mk-ios { background: var(--ground); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.mk-p-more { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-p-more .mk-btn { flex: 1 1 200px; }
.mk-watch.on { background: var(--cream); border-color: #E8C873; color: var(--cream-ink); }
.mk-cm-reply { margin-top: 6px; padding: 8px 10px; border-radius: 12px; background: var(--mint); }
.mk-cm-reply b { font-size: 13px; color: var(--mint-ink); }
.mk-cm-reply b span { font-size: 11px; background: #0E6B4E; color: #fff; border-radius: 999px; padding: 1px 7px; margin-inline-start: 4px; }
.mk-cm-reply p { margin: 2px 0 0; font-size: 14px; }
.mk-install { position: fixed; z-index: 40; inset-inline: 12px; bottom: 16px; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; background: var(--pop); color: var(--pop-ink); border-radius: 18px; padding: 12px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.22); }
.mk-install img { border-radius: 10px; flex: none; }
.mk-install > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mk-install small { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .mk-install { bottom: calc(var(--bar) + 12px + env(safe-area-inset-bottom)); } }
body[data-view="reels"] .mk-install { display: none; }
.mk-acc-hero { flex-wrap: wrap; }
.mk-acc-hero h1 { overflow-wrap: anywhere; }
.mk-acc-hero .mk-btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); min-height: 38px; padding: 0 16px; font-size: 14px; }
@media (max-width: 520px) { .mk-acc-hero .mk-btn { margin-inline-start: 80px; } }
.mk-mine .mk-stars i svg { width: 14px; height: 14px; }

/* ---------- الوضع الليلي (الافتراضي) ---------- */
:root[data-theme="dark"] {
  --ground: #08130F; --surface: #11211B; --ink: #E9F1EC; --muted: #98ABA2; --line: #22382F;
  --green-tint: #15372B; --green-ink: #7ED6B0; --soft: #1A2E26; --cream: #2E2612; --cream-ink: #F0D58C;
  --mint: #15372B; --mint-ink: #9BE3C3; --body2: #C9D6D0; --glass: rgba(10,22,17,.78);
  --sk1: #13251E; --sk2: #1B3229; --pop: #15271F; --pop-ink: #E9F1EC; --forest: #0C1F18;
  color-scheme: dark;
}
:root[data-theme="dark"] .mk-card:hover { box-shadow: 0 14px 32px rgba(0,0,0,.45); }
:root[data-theme="dark"] .mk-msg.me { background: linear-gradient(135deg, #1D6B50, #0E4E39); }
:root[data-theme="dark"] .mk-reel-sort [aria-selected="true"] { background: var(--ink); color: var(--ground); }
:root[data-theme="dark"] .mk-link, :root[data-theme="dark"] .mk-p-m, :root[data-theme="dark"] .mk-card-m { color: var(--green-ink); }
:root[data-theme="dark"] .mk-btn.ghost-d { background: var(--soft); }
:root[data-theme="dark"] .mk-heart { color: #FF6B6B; }
.mk-theme { order: 2; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 17px; display: flex; align-items: center; justify-content: center; }
@media (min-width: 761px) { .mk-theme { order: 5; } }
body[data-view="reels"] .mk-theme { display: none; }
.mk-chat-pic[hidden] { display: none; }
@media (max-width: 420px) { .mk-brand small { display: none; } }
.mk-push-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.mk-push-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--soft); font-size: 14px; }
.mk-brand b { white-space: nowrap; }
@media (max-width: 420px) { .mk-to-asalah b { display: none; } .mk-top { gap: 8px; } }
