.phone { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.vhead { padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vlang { height: 34px; min-width: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--ground); font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
.vbrand { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.vlogo { width: 40px; height: 40px; border-radius: 10px; background: var(--green-tint); color: var(--green-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; }
.vlogo img { width: 100%; height: 100%; object-fit: cover; }
.vcard { margin: 20px 20px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.vcard h1 { font-size: 26px; }
.vcard h2 { font-size: 20px; }
.vcard p { margin: 0; }
.center { align-items: center; text-align: center; }
.result-ok { background: var(--forest); border-color: var(--forest); color: #fff; padding: 28px 22px; }
.result-ok .soft { color: var(--forest-ink); }
.result-bad { border: 2px solid var(--red); }
.result-bad h1 { color: var(--red-ink); }
.result-warn { border: 2px solid #C98A1B; }
.result-warn h1 { color: var(--amber-ink); }
.facts { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts div { background: var(--forest-2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.facts span { font-size: 12px; color: var(--forest-muted); }
.facts b { font-weight: 600; word-break: break-word; }
.ghost-gold { width: 100%; background: transparent; border-color: var(--gold); color: #F3D68C; }
.ghost-gold:hover { color: #fff; border-color: #fff; }
.big-btn { min-height: 52px; font-size: 16px; }
.vscan { text-align: center; margin: 18px 0 0; }
.vscan a { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line, #d9e3de); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.vfoot { margin-top: auto; padding: 24px 20px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); }
.vfoot b { color: var(--ink); }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--green); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.pop { animation: pop .5s ease-out; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pop { animation: none; } }
.product { position: relative; width: 168px; height: 168px; }
.product img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; border: 3px solid var(--gold); background: #fff; }
.product.is-logo img { object-fit: contain; padding: 14px; }
.product svg { position: absolute; bottom: -12px; inset-inline-start: -12px; }

/* شاشة المسح */
.scan-card { background: radial-gradient(120% 90% at 50% 0%, #1C4436 0%, #0F2A21 60%); border-color: var(--forest); color: #fff; align-items: center; text-align: center; padding: 34px 22px 26px; gap: 18px; overflow: hidden; }
.scan-stage { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.scan-orbit { position: absolute; inset: 0; animation: orbit 1.4s linear infinite; }
.scan-tag { width: 104px; height: 104px; filter: drop-shadow(0 8px 24px rgba(217,180,90,.35)); animation: tagpulse 1.4s ease-in-out infinite; }
.ring { position: absolute; width: 104px; height: 104px; border-radius: 50%; border: 2px solid rgba(243,214,140,.7); opacity: 0; animation: ring 2.1s ease-out infinite; }
.ring.r2 { animation-delay: .7s; } .ring.r3 { animation-delay: 1.4s; }
.scan-line { position: absolute; left: 18px; right: 18px; height: 3px; top: 30px; border-radius: 3px; background: linear-gradient(90deg, transparent, #F3D68C, transparent); box-shadow: 0 0 14px 2px rgba(243,214,140,.55); animation: scanline 1.6s ease-in-out infinite alternate; }
.scan-title { font-size: 20px; }
.scan-steps { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 280px; display: flex; flex-direction: column; gap: 10px; text-align: start; }
.scan-steps li { display: flex; align-items: center; gap: 10px; color: var(--forest-muted); font-size: 15px; opacity: .55; transition: opacity .3s, color .3s; }
.scan-steps i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #2D5C4B; flex: none; position: relative; transition: background .3s, border-color .3s; }
.scan-steps li.active { opacity: 1; color: #fff; }
.scan-steps li.active i { border-color: var(--gold); border-top-color: transparent; animation: orbit .8s linear infinite; }
.scan-steps li.done { opacity: 1; color: #fff; }
.scan-steps li.done i { background: var(--gold); border-color: var(--gold); animation: none; }
.scan-steps li.done i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 10px; border: solid var(--forest); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes tagpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes scanline { from { transform: translateY(0); } to { transform: translateY(140px); } }
/* ختم الأصلي ينطبع بعد المسح */
.result-ok.pop .product, .result-ok.pop #seal { animation: stamp .6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes stamp { from { transform: scale(1.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .scan-orbit, .scan-tag, .ring, .scan-line, .scan-steps li.active i, .result-ok.pop .product, .result-ok.pop #seal { animation: none !important; }
}

/* تاريخ الانتهاء، التفاصيل، المشاركة */
.expired { width: 100%; background: #FDECEA; color: var(--red-ink); border-radius: 12px; padding: 10px; font-weight: 600; }
.details { width: 100%; background: var(--forest-2); color: var(--forest-ink); border-radius: 12px; padding: 12px; text-align: start; white-space: pre-line; font-size: 14px; }
.ok-actions { width: 100%; display: flex; flex-direction: column; gap: 10px; }

/* النقاط والكاش باك */
.loyalty { border: 2px solid var(--gold); background: linear-gradient(180deg, #FFFBEF, var(--surface) 60%); }
.l-head { display: flex; gap: 12px; align-items: center; }
.l-head p { margin: 2px 0 0; }
.l-coin { width: 48px; height: 48px; flex: none; animation: coin 2.4s ease-in-out infinite; }
@keyframes coin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.l-form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.wallet { display: flex; flex-direction: column; gap: 12px; }
.w-balance { background: var(--forest); color: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.w-balance span { color: var(--forest-muted); font-size: 13px; }
.w-balance b { font-size: 30px; color: #F3D68C; }
.w-balance small { color: var(--forest-ink); }
.w-bar { height: 8px; background: var(--forest-2); border-radius: 8px; overflow: hidden; margin-top: 6px; }
.w-bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 8px; transition: width .8s ease-out; }
.w-msg { background: var(--green-tint); color: var(--green-ink); border-radius: 12px; padding: 10px; font-weight: 600; text-align: center; }
.w-code { border: 2px dashed var(--gold); border-radius: 16px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.w-code b { font-size: 28px; letter-spacing: 4px; color: var(--forest); }
.w-code span, .w-code small { color: var(--muted); font-size: 13px; }
.w-codes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.w-codes li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.w-codes .used { color: var(--muted); text-decoration: line-through; }
.linkish { background: none; border: 0; color: var(--green); font: inherit; cursor: pointer; padding: 0; align-self: flex-start; }
.add-pop { animation: pop .5s ease-out; }

/* التقييم */
.stars { display: flex; gap: 6px; direction: ltr; }
.stars button { font-size: 38px; line-height: 1; background: none; border: 0; color: #D8D2C2; cursor: pointer; padding: 2px; transition: transform .15s, color .15s; }
.stars button.on { color: var(--gold); }
.stars button:hover { transform: scale(1.12); }
.stars[aria-disabled="true"] button { cursor: default; transform: none; }
@media (prefers-reduced-motion: reduce) { .l-coin { animation: none; } }

/* بانر المكافأة داخل بطاقة الأصلي */
.reward { width: 100%; display: flex; align-items: center; gap: 12px; text-align: start; background: linear-gradient(135deg, #F3D68C, #D9B45A); color: #0F2A21; border-radius: 16px; padding: 14px 16px; animation: rewardIn .7s .5s cubic-bezier(.2,1.4,.4,1) both; box-shadow: 0 8px 24px rgba(217,180,90,.35); }
.reward b { display: block; font-size: 20px; }
.reward small { display: block; font-size: 13px; opacity: .85; }
.r-coin { font-size: 34px; line-height: 1; animation: coin 2.4s ease-in-out infinite; }
@keyframes rewardIn { from { transform: translateY(12px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .reward, .r-coin { animation: none; } }

/* اطلبه مرة ثانية */
.shop-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.shop-main { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; background: var(--ground); text-decoration: none; color: inherit; border: 1px solid var(--line); }
.shop-main img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; }
.shop-main div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-main b { font-size: 16px; }
.shop-main .price { color: var(--green-ink); font-weight: 700; }
.shop-main .go { flex: none; background: linear-gradient(135deg, #F0D58C, var(--gold)); color: var(--gold-ink); font-weight: 700; padding: 10px 16px; border-radius: 999px; font-size: 14px; }
.shop-coupon { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px dashed var(--gold); border-radius: 12px; background: #FFFBEF; font-size: 14px; }
.shop-coupon b { letter-spacing: 2px; font-size: 17px; }
.shop-coupon button { margin-inline-start: auto; }
.shop-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.shop-row::-webkit-scrollbar { display: none; }
.shop-reel { flex: none; width: 104px; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; position: relative; background: var(--forest); text-decoration: none; color: #fff; }
.shop-reel img { width: 100%; height: 100%; object-fit: cover; }
.shop-reel span { position: absolute; inset: auto 0 0; padding: 18px 8px 6px; font-size: 12px; font-weight: 600; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.shop-reel::before { content: "▶"; position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 10px; }
.shop-card { flex: none; width: 124px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.shop-card img, .shop-card .ph { width: 124px; height: 124px; border-radius: 14px; object-fit: cover; background: var(--ground); border: 1px solid var(--line); }
.shop-card b { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card .price { color: var(--green-ink); font-weight: 700; }
.shop-sub { font-size: 15px; margin: 6px 0 0; }

/* مستوى العميل */
.level { width: 100%; display: flex; align-items: center; gap: 12px; text-align: start; background: var(--forest-2); border-radius: 16px; padding: 12px 14px; }
.level > span { font-size: 30px; line-height: 1; }
.level > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.level small { color: var(--forest-muted); font-size: 12px; }
.lv-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 4px; }
.lv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #D9B45A, #F3D68C); border-radius: 3px; width: 0; transition: width 1s .4s ease-out; }
/* الرسالة الصوتية */
.voice-btn { width: 100%; display: flex; align-items: center; gap: 12px; text-align: start; border: 1px solid var(--gold); background: rgba(217,180,90,.1); color: #fff; border-radius: 16px; padding: 12px 14px; font: inherit; cursor: pointer; }
.voice-btn > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.voice-btn small { color: var(--forest-muted); font-size: 12px; }
.v-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.v-wave { display: flex; gap: 3px; align-items: center; height: 22px; }
.v-wave i { width: 3px; height: 6px; border-radius: 2px; background: #F3D68C; }
.voice-btn.playing .v-wave i { animation: vw .9s ease-in-out infinite; }
.voice-btn.playing .v-wave i:nth-child(2) { animation-delay: .15s; } .voice-btn.playing .v-wave i:nth-child(3) { animation-delay: .3s; } .voice-btn.playing .v-wave i:nth-child(4) { animation-delay: .45s; }
@keyframes vw { 50% { height: 22px; } }
@media (prefers-reduced-motion: reduce) { .voice-btn.playing .v-wave i { animation: none; height: 14px; } }
/* جواز سفر المنتج */
.pp-h, .g-h { display: flex; gap: 12px; align-items: flex-start; }
.pp-h > span, .g-ic { font-size: 30px; line-height: 1; }
.pp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pp-steps li { position: relative; display: flex; gap: 12px; padding: 0 0 18px; }
.pp-steps li:last-child { padding-bottom: 0; }
.pp-steps li::before { content: ''; position: absolute; inset-inline-start: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.pp-steps li:last-child::before { display: none; }
.pp-dot { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); display: flex; align-items: center; justify-content: center; font-size: 15px; z-index: 1; }
.pp-steps li.you .pp-dot { background: var(--gold); color: #0F2A21; }
.pp-steps b { display: block; }
.pp-steps small { color: var(--muted); font-size: 13px; }
/* ضمان أصالة */
.guarantee { border: 2px solid var(--gold); background: linear-gradient(180deg, rgba(217,180,90,.12), var(--surface) 60%); }
.guarantee .ghost-gold { color: var(--green-ink); border-color: var(--gold); }
.g-done { background: var(--green-tint); color: var(--green-ink); border-radius: 12px; padding: 12px; font-weight: 600; }
/* صورة البلاغ ورأي الذكاء */
.photo-field small { font-size: 12px; font-weight: 400; }
.ai-box { width: 100%; text-align: start; background: var(--ground); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ai-meter { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #12B76A, #F5B83D, #D92D20); position: relative; }
.ai-meter i { position: absolute; top: -4px; width: 4px; height: 18px; border-radius: 2px; background: var(--ink); inset-inline-start: 0; transition: inset-inline-start .8s ease-out; }

/* زر "اسمع النتيجة" لما المتصفح يمنع الصوت التلقائي */
.sound-chip { position: fixed; inset-inline: 0; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0 auto; width: max-content; max-width: calc(100% - 32px); z-index: 40; border: 0; border-radius: 999px; padding: 13px 22px; font: inherit; font-weight: 700; font-size: 16px; background: #D9B45A; color: #0F2A21; box-shadow: 0 10px 30px rgba(0,0,0,.25); cursor: pointer; animation: chip-in .4s ease-out, chip-pulse 1.6s ease-in-out .4s infinite; }
.sound-chip.warn { background: #C0392B; color: #fff; }
@keyframes chip-in { from { transform: translateY(30px); opacity: 0; } }
@keyframes chip-pulse { 50% { box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 0 0 8px rgba(217,180,90,.25); } }
@media (prefers-reduced-motion: reduce) { .sound-chip { animation: none; } }

/* شريط الصفحة التجريبية */
.demo-bar { display: block; text-align: center; padding: 10px 16px; background: #D9B45A; color: #0F2A21; font-weight: 700; font-size: 14px; text-decoration: none; }
