/* «طلباتي» — عرض الطلبات */
.mo-head { align-items: center; }
.mo-head .mo-sub { color: var(--ik-lav); font-weight: 700; }
#moOrders { display: grid; gap: 14px; }
.mo-order { position: relative; border-radius: 24px; background: linear-gradient(180deg, rgba(139,92,246,.10), transparent 60%), var(--ik-card); border: 1px solid var(--ik-line); overflow: hidden; transition: border-color .2s, box-shadow .2s; margin: 0; padding: 0; }
.mo-order[open] { border-color: var(--ik-line-strong); box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(139,92,246,.15) inset; }
.mo-order:hover { border-color: rgba(167,139,250,.45); }
.mo-o-head { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto 20px; align-items: center; gap: 14px; padding: 16px 20px; border: 0; margin: 0; }
.mo-o-head::-webkit-details-marker { display: none; }
.mo-o-id { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mo-o-id b { font-family: var(--font-heading); font-size: 1.05rem; letter-spacing: .02em; }
.mo-o-sum { color: var(--ik-muted); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mo-o-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mo-o-side strong { font-family: var(--font-heading); font-size: 1.25rem; color: var(--ik-cyan); }
.mo-o-side small, .mo-i-price small, .mo-o-foot small { font-size: .7em; opacity: .8; }
.mo-chev { width: 10px; height: 10px; border-inline-start: 2px solid var(--ik-faint); border-bottom: 2px solid var(--ik-faint); transform: rotate(-45deg); transition: transform .2s; justify-self: center; }
.mo-order[open] .mo-chev { transform: rotate(135deg); }
.mo-o-body { padding: 4px 20px 18px; border-top: 1px solid var(--ik-line); }
.mo-item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 0; }
.mo-item + .mo-item { border-top: 1px dashed var(--ik-line); margin: 0; }
.mo-thumb { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: #0b0920; border: 1px solid var(--ik-line); }
.mo-i-main { min-width: 0; }
.mo-i-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mo-i-top b { font-size: 1.02rem; line-height: 1.6; }
.mo-i-price { color: var(--ik-muted); font-weight: 700; white-space: nowrap; }
.mo-i-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mo-i-meta span { padding: 2px 10px; border-radius: 99px; background: rgba(139,92,246,.16); color: var(--ik-lav); font-size: .8rem; font-weight: 700; }
.mo-i-meta:empty { display: none; }
.mo-keys { margin-top: 12px; display: grid; gap: 8px; }
.mo-k-label { font-size: .82rem; font-weight: 800; color: var(--ik-faint); }
.mo-key { display: flex; align-items: stretch; border-radius: 14px; overflow: hidden; border: 1px solid rgba(34,211,238,.45); background: #05040f; box-shadow: 0 0 24px rgba(34,211,238,.12); }
.mo-key code { flex: 1; min-width: 0; padding: 13px 16px; color: var(--ik-cyan); font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; word-break: break-all; user-select: all; }
.mo-copy { border: 0; padding: 0 18px; cursor: pointer; font: inherit; font-weight: 800; color: #fff; background: linear-gradient(100deg, #22d3ee, #8b5cf6); }
.mo-copy.done { background: #16a34a; }
.mo-open { display: inline-flex; align-items: center; margin-top: 12px; min-height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 800; color: #fff; text-decoration: none; background: linear-gradient(100deg, #22d3ee, #8b5cf6); box-shadow: 0 8px 24px rgba(139,92,246,.35); }
.mo-o-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; padding-top: 14px; border-top: 1px solid var(--ik-line); color: var(--ik-muted); font-size: .9rem; }
.mo-o-foot b { color: #fff; }
@media (max-width: 640px) {
  .mo-o-head { grid-template-columns: 1fr auto 16px; padding: 14px 16px; }
  .mo-o-sum { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  .mo-o-body { padding: 4px 16px 16px; }
  .mo-item { grid-template-columns: 48px 1fr; }
  .mo-thumb { width: 48px; height: 48px; border-radius: 12px; }
  .mo-i-top { flex-direction: column; gap: 2px; }
}

/* ===== v2: شبكة طلبات + نافذة تفاصيل ===== */
.mo-wrap { max-width: 1100px; }
#moOrders { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.mo-tile { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 22px; background: linear-gradient(160deg, rgba(139,92,246,.14), transparent 55%), var(--ik-card); border: 1px solid var(--ik-line); transition: transform .18s, border-color .18s, box-shadow .18s; text-align: start; }
.mo-tile:hover, .mo-tile:focus-visible { transform: translateY(-3px); border-color: rgba(167,139,250,.55); box-shadow: 0 18px 50px rgba(0,0,0,.4), 0 0 30px rgba(139,92,246,.18); }
.mo-tile-img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: #0b0920; border: 1px solid var(--ik-line); }
.mo-tile-main { display: grid; gap: 6px; min-width: 0; }
.mo-tile-top { display: flex; gap: 6px; align-items: center; }
.mo-has { font-size: .74rem; font-weight: 800; color: var(--ik-cyan); background: rgba(34,211,238,.12); padding: 3px 9px; border-radius: 99px; }
.mo-tile-name { font-size: .98rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.mo-tile-name em { font-style: normal; color: var(--ik-lav); font-size: .85em; }
.mo-tile-foot { display: flex; gap: 10px; align-items: baseline; color: var(--ik-faint); font-size: .8rem; }
.mo-tile-foot strong { margin-inline-start: auto; font-family: var(--font-heading); font-size: 1.1rem; color: var(--ik-cyan); }
.mo-tile-foot strong small { font-size: .65em; }

.mo-dlg { position: fixed; inset: 0; margin: auto !important; height: fit-content; right: 0 !important; left: 0 !important; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--ik-line-strong); border-radius: 26px; background: radial-gradient(100% 50% at 50% 0%, rgba(139,92,246,.22), transparent 70%), #110f26; color: #f4f2ff; box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 60px rgba(139,92,246,.2); overflow: auto; }
.mo-dlg::backdrop { background: rgba(5,4,15,.7); backdrop-filter: blur(6px); }
.mo-dlg[open] { animation: moIn .22s ease-out; }
@keyframes moIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.mo-dlg-in { padding: 22px; }
.mo-d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ik-line); }
.mo-d-head h2 { margin: 8px 0 2px; font-family: var(--font-heading); font-size: 1.5rem; }
.mo-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ik-line); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; font-size: 1rem; }
.mo-x:hover { background: rgba(248,113,113,.2); }
.mo-d-body .mo-item { grid-template-columns: 56px 1fr; }
.mo-d-body .mo-thumb { width: 56px; height: 56px; }
.mo-tot b { font-size: 1.1rem; color: var(--ik-cyan); }

/* الأكواد: كل كود بطاقة لحاله */
.mo-keys { margin-top: 14px; display: grid; gap: 10px; }
.mo-keygrid { display: grid; gap: 10px; }
.mo-key { display: flex; align-items: stretch; gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(34,211,238,.4); background: linear-gradient(90deg, rgba(34,211,238,.08), rgba(139,92,246,.08)), #07061a; box-shadow: 0 0 28px rgba(34,211,238,.1); }
.mo-key-l { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 10px 16px; }
.mo-key-l span { font-size: .76rem; font-weight: 800; color: var(--ik-lav); }
.mo-key-l code { padding: 0; color: var(--ik-cyan); font-size: 1.15rem; font-weight: 800; letter-spacing: .06em; word-break: break-all; user-select: all; text-align: left; }
.mo-copy { min-width: 76px; }
.mo-guides { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-guide { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 14px; text-decoration: none; color: #fff; background: rgba(88,101,242,.16); border: 1px solid rgba(88,101,242,.5); font-size: .9rem; }
.mo-guide b { color: #a5b4fc; }
.mo-guide:hover { background: rgba(88,101,242,.3); }
@media (max-width: 640px) {
  #moOrders { grid-template-columns: 1fr; }
  .mo-dlg-in { padding: 16px; }
  .mo-key-l code { font-size: 1rem; }
}

/* ===== شاشة الدخول ===== */
.mo-auth { display: grid; grid-template-columns: 1.15fr .85fr; max-width: 900px; margin: 24px auto 0; border-radius: 30px; overflow: hidden; border: 1px solid var(--ik-line-strong); background: var(--ik-card2); box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 80px rgba(139,92,246,.12); }
.mo-auth-main { position: relative; padding: 44px 40px; background: radial-gradient(80% 70% at 100% 0%, rgba(139,92,246,.3), transparent 70%), radial-gradient(60% 60% at 0% 100%, rgba(34,211,238,.12), transparent 70%); }
.mo-eyebrow { display: inline-block; padding: 5px 14px; border-radius: 99px; font-size: .8rem; font-weight: 800; color: var(--ik-lav); background: rgba(139,92,246,.16); border: 1px solid rgba(167,139,250,.3); }
.mo-auth h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 14px 0 6px; background: linear-gradient(90deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mo-auth .mo-sub { margin: 0 0 26px; max-width: 42ch; }
.mo-auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; border: 0; border-radius: 18px; cursor: pointer; font: inherit; font-size: 1.08rem; font-weight: 800; color: #fff; background: linear-gradient(100deg, #22d3ee, #8b5cf6 60%, #a855f7); box-shadow: 0 14px 40px rgba(139,92,246,.45), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .15s, box-shadow .15s, filter .15s; }
.mo-auth-btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 20px 50px rgba(139,92,246,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.mo-auth-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.mo-auth-hint { margin: 12px 0 0; color: var(--ik-faint); font-size: .88rem; text-align: center; }
.mo-auth .mo-err { text-align: center; }
.mo-trust { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--ik-line); }
.mo-trust span { font-size: .8rem; font-weight: 700; color: var(--ik-muted); padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.04); border: 1px solid var(--ik-line); }
.mo-auth-side { list-style: none; margin: 0; padding: 40px 32px; display: grid; align-content: center; gap: 14px; background: linear-gradient(180deg, rgba(34,211,238,.06), rgba(139,92,246,.08)); border-inline-start: 1px solid var(--ik-line); }
.mo-auth-side li { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(5,4,15,.45); border: 1px solid var(--ik-line); }
.mo-auth-side li > b { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 1.3rem; background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(34,211,238,.2)); }
.mo-auth-side strong { display: block; font-size: .98rem; }
.mo-auth-side span { color: var(--ik-faint); font-size: .84rem; }
.mo-auth-side .mo-auth-alt { display: block; background: none; border: 0; padding: 4px 0 0; text-align: center; color: var(--ik-faint); font-size: .85rem; }
.mo-auth-alt a { color: var(--ik-cyan); }
@media (max-width: 760px) {
  .mo-auth { grid-template-columns: 1fr; }
  .mo-auth-main { padding: 32px 22px; }
  .mo-auth-side { padding: 22px; border-inline-start: 0; border-top: 1px solid var(--ik-line); }
}

/* ===== دخول v2: بدون إيموجي وبطاقات ===== */
.mo-trust { display: block; text-align: center; color: var(--ik-faint); font-size: .84rem; border-top: 1px solid var(--ik-line); padding-top: 18px; margin: 10px 0 0; }
.mo-trust i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--ik-lav); opacity: .6; vertical-align: middle; margin: 0 10px; }
.mo-auth-side { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; padding: 40px 34px; background: radial-gradient(70% 60% at 50% 40%, rgba(34,211,238,.12), transparent 70%), rgba(5,4,15,.35); border-inline-start: 1px solid var(--ik-line); }
.mo-ticket { width: 100%; max-width: 290px; transform: rotate(-4deg); border-radius: 20px; padding: 18px 20px; background: linear-gradient(160deg, #1c1840, #0d0b22); border: 1px solid rgba(167,139,250,.35); box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 40px rgba(139,92,246,.2); position: relative; }
.mo-ticket-top, .mo-ticket-foot { display: flex; justify-content: space-between; font-size: .76rem; color: var(--ik-faint); }
.mo-ticket-top span:first-child { font-family: var(--font-heading); font-weight: 800; color: #fff; letter-spacing: .02em; }
.mo-ticket-row { margin-top: 14px; display: grid; gap: 3px; }
.mo-ticket-row small { font-size: .72rem; color: var(--ik-lav); font-weight: 700; }
.mo-ticket-row code { direction: ltr; text-align: left; font-size: 1rem; font-weight: 800; letter-spacing: .08em; color: var(--ik-cyan); padding: 9px 12px; border-radius: 10px; background: rgba(34,211,238,.07); border: 1px dashed rgba(34,211,238,.35); }
.mo-ticket-cut { margin: 18px -20px 12px; border-top: 2px dashed rgba(167,139,250,.25); position: relative; }
.mo-ticket-cut::before, .mo-ticket-cut::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: #0f0d24; border: 1px solid rgba(167,139,250,.35); }
.mo-ticket-cut::before { right: -11px; } .mo-ticket-cut::after { left: -11px; }
.mo-ticket-foot span:last-child { color: #4ade80; font-weight: 800; }
.mo-auth-side .mo-auth-alt { margin: 0; color: var(--ik-faint); font-size: .85rem; text-align: center; }
.mo-has { background: none !important; padding: 0 !important; display: inline-flex; align-items: center; gap: 6px; }
.mo-has::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ik-cyan); box-shadow: 0 0 8px var(--ik-cyan); }

/* ===== بطاقة هولوغرام (بدل التذكرة) ===== */
@property --mo-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.mo-holo { --mo-a: 0deg; width: 100%; max-width: 300px; aspect-ratio: 1.58; padding: 1.5px; border-radius: 22px; background: conic-gradient(from var(--mo-a), #22d3ee, #8b5cf6, #ec4899, #22d3ee); animation: moSpin 6s linear infinite, moFloat 6s ease-in-out infinite; box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 60px rgba(139,92,246,.35); }
@keyframes moSpin { to { --mo-a: 360deg; } }
@keyframes moFloat { 0%,100% { transform: perspective(800px) rotateY(-14deg) rotateX(6deg) translateY(0); } 50% { transform: perspective(800px) rotateY(-8deg) rotateX(3deg) translateY(-8px); } }
.mo-holo-in { position: relative; height: 100%; border-radius: 21px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, rgba(139,92,246,.45), transparent 55%), radial-gradient(90% 80% at 100% 100%, rgba(34,211,238,.28), transparent 60%), #0c0a20; }
.mo-holo-in::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%); animation: moSheen 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes moSheen { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.mo-holo-top { display: flex; align-items: center; gap: 8px; }
.mo-holo-top span { font-family: var(--font-heading); font-weight: 800; letter-spacing: .02em; }
.mo-chip { margin-inline-start: auto; width: 34px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #fde68a, #b45309); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.mo-holo-lines { display: grid; gap: 8px; }
.mo-scr { direction: ltr; text-align: left; font-size: .95rem; font-weight: 800; letter-spacing: .14em; color: var(--ik-cyan); filter: blur(3.5px); opacity: .85; user-select: none; white-space: nowrap; overflow: hidden; }
.mo-holo-lock { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: #e9e5ff; }
.mo-holo-lock svg { color: var(--ik-lav); }
@media (prefers-reduced-motion: reduce) { .mo-holo, .mo-holo-in::after { animation: none; } }

.mo-paid { display: grid; gap: 4px; margin-bottom: 16px; padding: 16px 20px; border-radius: 18px; background: linear-gradient(100deg, rgba(74,222,128,.14), rgba(34,211,238,.08)); border: 1px solid rgba(74,222,128,.4); }
.mo-paid b { color: #4ade80; font-size: 1.05rem; }
.mo-paid span { color: var(--ik-muted); font-size: .9rem; }
