@font-face { font-family: "Noto Sans Arabic"; font-weight: 400; src: url("fonts/NotoSansArabic-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 600; src: url("fonts/NotoSansArabic-SemiBold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 700; src: url("fonts/NotoSansArabic-Bold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 800; src: url("fonts/NotoSansArabic-ExtraBold.ttf") format("truetype"); font-display: swap; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fdfbf8; font-family: "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.m2-shell { display: block; max-width: 1040px; margin: 0 auto; padding: 12px; }
@font-face { font-family: "Mora Kufi"; font-weight: 700 900; src: url("./kufi.woff") format("woff"); font-display: swap; }
html, body, #root { margin: 0; min-height: 100%; }
.m2 { --bg: #f6f3fb; --panel: #fff; --panel2: #f1ecfb; --ink: #1b1e2b; --ink2: #5b6173; --line: #e3dcf0; --accent: #6d28d9; --amber: #f5a623; border-radius: 22px; background: var(--bg); color: var(--ink); padding: 12px; font-family: inherit; line-height: 1.6; }
.m2-dark { --bg: #0d0f16; --panel: #171a24; --panel2: #1f2330; --ink: #eef0f6; --ink2: #a9afc0; --line: #2a2f3f; --accent: #a78bfa; }
.m2 * { box-sizing: border-box; }
.m2-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 12px; }
.m2-logo { display: flex; align-items: center; gap: 8px; }
.m2-word { font: 800 28px/1 system-ui, sans-serif; color: var(--accent); }
.m2-icon { position: relative; display: inline-flex; width: 32px; height: 32px; border-radius: 10px; background: #6d28d9; color: #fff; align-items: center; justify-content: center; font: 800 19px/1 system-ui, sans-serif; }
.m2-icon i { position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--amber); }
.m2-theme { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--panel); color: var(--accent); font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; }
.m2-hero { padding: 26px 18px 22px; border-radius: 20px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #8b5cf6 0%, #4c1d95 55%, #2a0f5e 100%); margin-bottom: 14px; }
.m2-hero h1 { margin: 0 0 8px; font-family: inherit; font-size: 28px; line-height: 1.4; font-weight: 800; color: #fff; }
.m2-hero p { margin: 0 0 16px; color: #e5d9ff; font-size: 15px; }
.m2-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.m2-steps li { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px 6px 12px; font-size: 13px; font-weight: 700; }
.m2-steps b { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #1e2a4a; align-items: center; justify-content: center; font-size: 12px; }
.m2-layout { display: grid; grid-template-columns: 1fr; gap: 14px; }
.m2-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.m2-tabs::-webkit-scrollbar { display: none; }
.m2-tab { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); font: 700 14px/1 inherit; font-family: inherit; cursor: pointer; }
.m2-tab b { color: var(--c); font-size: 16px; }
.m2-tab[aria-selected="true"] { background: var(--c); border-color: var(--c); color: #0d0f16; }
.m2-tab[aria-selected="true"] b { color: #0d0f16; }
.m2-dot { position: absolute; top: 4px; left: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); border: 2px solid var(--bg); }
.m2-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.m2-row { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: start; padding: 14px; border-radius: 16px; background: var(--panel); border: 1.5px solid var(--line); border-inline-start: 5px solid var(--c); }
.m2-row.m2-on { border-color: var(--c); background: var(--panel2); }
.m2-ico { display: inline-flex; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--c); color: #0d0f16; align-items: center; justify-content: center; font: 700 18px/1 system-ui, sans-serif; }
.m2-info h3 { margin: 0 0 4px; font-family: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); }
.m2-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.m2-tag { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--panel2); color: var(--accent); border: 1px solid var(--line); line-height: 1.6; }
.m2-tag-prop { background: #fff3d6; color: #8a5a00; border-color: #f0d9a2; }
.m2-dark .m2-tag-prop { background: #3a2c0c; color: #ffd98a; border-color: #5a4515; }
.m2-tag-ok { background: #e3f6ea; color: #14683a; border-color: #bfe6cd; }
.m2-dark .m2-tag-ok { background: #12301f; color: #7fe3a8; border-color: #1f5a3a; }
.m2-price { font-size: 14px; color: var(--ink2); }
.m2-price b { font-size: 26px; font-weight: 800; color: var(--ink); }
.m2-ask { font-size: 13px; background: var(--panel2); display: inline-block; padding: 4px 10px; border-radius: 8px; }
.m2-qty { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.m2-add { min-height: 44px; padding: 0 28px; border-radius: 12px; border: 0; background: var(--c); color: #0d0f16; font: 800 15px/1 inherit; font-family: inherit; cursor: pointer; }
.m2-step { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--c); background: transparent; color: var(--ink); font: 700 20px/1 system-ui, sans-serif; cursor: pointer; }
.m2-n { min-width: 92px; text-align: center; font-size: 14px; color: var(--ink2); }
.m2-n b { font-size: 20px; color: var(--ink); }
.m2-sub { margin-inline-start: auto; font-weight: 800; color: var(--ink); }
.m2-card { padding: 16px; border-radius: 16px; background: var(--panel); border: 1.5px solid var(--line); border-inline-start: 5px solid var(--c); display: flex; flex-direction: column; gap: 8px; }
.m2-card h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: inherit; font-size: 18px; color: var(--ink); }
.m2-card p { margin: 0; color: var(--ink); font-weight: 600; }
.m2-card ul { margin: 0; padding-inline-start: 18px; color: var(--ink2); font-size: 14px; }
.m2-sum { padding: 16px; border-radius: 18px; background: var(--panel); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.m2-sum h2, .m2-contact h2 { margin: 0; font-family: inherit; font-size: 20px; color: var(--ink); }
.m2-empty { margin: 0; color: var(--ink2); font-size: 14px; }
.m2-sumlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.m2-sumlist li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.m2-sumlist small { display: block; color: var(--ink2); font-size: 12px; }
.m2-sumlist em { font-style: normal; font-weight: 800; }
.m2-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink2); font-size: 18px; cursor: pointer; }
.m2-total { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; color: var(--ink2); }
.m2-total b { font-size: 28px; color: var(--ink); }
.m2-warn { margin: 0; font-size: 13px; color: #8a5a00; background: #fff3d6; border-radius: 8px; padding: 6px 10px; }
.m2-dark .m2-warn { background: #3a2c0c; color: #ffd98a; }
.m2-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 12px; font: 800 15px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.m2-btn-main { background: var(--amber); color: #1e2a4a; border: 1.5px solid var(--amber); }
.m2-btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.m2-disabled { opacity: .45; pointer-events: none; }
.m2-clear { align-self: center; background: none; border: 0; color: var(--ink2); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; min-height: 36px; }
.m2-fine { margin: 0; font-size: 12px; color: var(--ink2); }
.m2-contact { margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--panel2); border: 1.5px solid var(--line); }
.m2-num { margin: 6px 0 12px; font-size: 26px; font-weight: 800; color: var(--accent); }
.m2-links { display: flex; flex-wrap: wrap; gap: 8px; }
.m2-foot { text-align: center; margin: 18px 0 6px; font-size: 13px; color: var(--ink2); }
.m2 :focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (min-width: 900px) {
  .m2 { padding: 20px 24px; }
  .m2-hero { padding: 40px 36px; }
  .m2-hero h1 { font-size: 42px; }
  .m2-layout { grid-template-columns: 1fr 340px; align-items: start; }
  .m2-row { grid-template-columns: auto 1fr auto; align-items: center; }
  .m2-qty { grid-column: auto; justify-content: center; min-width: 200px; }
  .m2-sub { margin-inline-start: 0; flex-basis: 100%; text-align: center; }
  .m2-side { position: sticky; top: 12px; }
}

.m2-layout > * { min-width: 0; }
.m2-jump { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 10px; border-radius: 12px; background: var(--amber); color: #1e2a4a; font-weight: 800; text-decoration: none; }
@media (min-width: 900px) { .m2-jump { display: none; } }

.m2-total { flex-wrap: wrap; }
.m2-total b { white-space: nowrap; }

.m2-tab b { display: inline-flex; }
.m2-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.m2-soc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 84px; border-radius: 16px; color: #fff; text-decoration: none; font: 800 14px/1 inherit; font-family: inherit; }
.m2-soc-wa { background: #1faa59; } .m2-soc-tel { background: #3b4a6b; } .m2-soc-fb { background: #1877f2; }
.m2-soc-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.m2-btn svg { flex: none; }
.m2-fab { position: fixed; bottom: 16px; left: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #1faa59; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
@media (max-width: 420px) { .m2-links { gap: 6px; } .m2-soc { font-size: 12px; min-height: 76px; } }

/* v3: identity, type, motion, order bar */
.m2 { --disp: "Mora Kufi", "Noto Kufi Arabic", "Noto Sans Arabic", system-ui, sans-serif; --amber: #ffb02e; --ease: cubic-bezier(.2,.8,.2,1); padding-bottom: 96px; }
.m2-dark { --bg: #0b0a14; --panel: #15131f; --panel2: #1d1a2b; --line: #2b2740; }
.m2-hero h1, .m2-sum h2, .m2-contact h2, .m2-price b, .m2-total b, .m2-card h3, .m2-info h3 { font-family: var(--disp); }
.m2-word { font-family: var(--disp); font-size: 30px; letter-spacing: -.5px; }
.m2-hero { position: relative; overflow: hidden; padding: 30px 20px 24px; background: radial-gradient(90% 120% at 100% 0%, #7c3aed 0%, #3b1585 50%, #1a0b3d 100%); }
.m2-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(80% 90% at 0% 100%, #000, transparent); -webkit-mask-image: radial-gradient(80% 90% at 0% 100%, #000, transparent); }
.m2-hero::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; left: -70px; top: -80px; background: radial-gradient(circle, rgba(255,176,46,.45), transparent 70%); animation: m2-glow 7s ease-in-out infinite alternate; }
.m2-hero > * { position: relative; z-index: 1; }
.m2-hero h1 { font-size: 30px; line-height: 1.5; }
.m2-chips { display: flex; gap: 10px; margin: 0 0 18px; }
.m2-chip { display: inline-flex; width: 44px; height: 44px; border-radius: 14px; align-items: center; justify-content: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: var(--c); backdrop-filter: blur(6px); }
.m2-tab { transition: transform .18s var(--ease), background .2s, color .2s; }
.m2-tab:active, .m2-add:active, .m2-step:active, .m2-soc:active { transform: scale(.95); }
.m2-tab b svg { display: block; }
.m2-ico svg { display: block; }
.m2-panel-in { animation: m2-up .38s var(--ease) both; }
.m2-panel-in .m2-row, .m2-panel-in .m2-card { animation: m2-up .42s var(--ease) both; }
.m2-panel-in li:nth-child(2) { animation-delay: .04s; } .m2-panel-in li:nth-child(3) { animation-delay: .08s; } .m2-panel-in li:nth-child(4) { animation-delay: .12s; } .m2-panel-in li:nth-child(5) { animation-delay: .16s; } .m2-panel-in li:nth-child(6) { animation-delay: .2s; } .m2-panel-in li:nth-child(7) { animation-delay: .24s; }
.m2-row { transition: background .2s, border-color .2s, box-shadow .25s; }
.m2-row.m2-on { box-shadow: 0 0 0 1px var(--c), 0 8px 24px -12px var(--c); }
.m2-pop { display: inline-block; animation: m2-pop .35s var(--ease); }
.m2-bar { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; padding: 8px; border-radius: 20px; background: rgba(21,19,31,.92); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 34px rgba(0,0,0,.45); animation: m2-rise .4s var(--ease); max-width: 760px; margin: 0 auto; }
.m2-bar-info { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 10px; color: #cfd2e2; text-decoration: none; font-size: 13px; line-height: 1.3; }
.m2-bar-info b { font-family: var(--disp); font-size: 20px; color: #fff; }
.m2-bar-wa { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; min-height: 52px; border-radius: 14px; background: #25d366; color: #06361a; font: 800 16px/1 inherit; font-family: inherit; text-decoration: none; }
.m2-fab { bottom: 24px; animation: m2-pulse 3s ease-in-out 2; }
.m2:has(.m2-bar) .m2-fab { display: none; }
.m2-soc svg { display: block; }
.m2-btn-main svg { vertical-align: middle; }
@keyframes m2-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes m2-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes m2-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes m2-glow { to { transform: translate(30px, 24px) scale(1.15); } }
@keyframes m2-pulse { 0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 14px rgba(37,211,102,0); } }
@media (min-width: 900px) { .m2-bar { display: none; } .m2:has(.m2-bar) .m2-fab { display: flex; } .m2 { padding-bottom: 12px; } .m2-hero h1 { font-size: 38px; } }
@media (prefers-reduced-motion: reduce) { .m2 *, .m2 *::before, .m2 *::after { animation: none !important; transition: none !important; } }
.m2:not(.m2-dark) .m2-tab:not([aria-selected="true"]) b { filter: brightness(.68) saturate(1.4); }

/* v4: all sections visible, no hidden horizontal scroll */
.m2-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 2px 0 12px; }
.m2-tab { flex: none; width: 100%; justify-content: center; padding: 0 10px; min-height: 48px; font-size: 14px; }
@media (min-width: 700px) { .m2-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
