﻿/* Quick System — المميزات الاحترافية: وضع غامق، فقاعة واتساب، الباقات، حجز الديمو، المقارنة، المقالات، 404 */

/* ===== الوضع الغامق ===== */
.theme-tg { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 30px; height: 26px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.theme-tg .fa-sun { display: none; }
html[data-theme="dark"] .theme-tg .fa-sun { display: inline; } html[data-theme="dark"] .theme-tg .fa-moon { display: none; }
html[data-theme="dark"] { --ink: #e2e8f0; --muted: #94a3b8; --line: #1e293b; --bg: #0b1220; --soft: #0f172a; --blue-l: #13213f; --blue-m: #1e3a8a; --orange-l: #2a1a0e; color-scheme: dark; }
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] header.site, html[data-theme="dark"] header.site.scrolled { background: rgba(11,18,32,.92); border-color: var(--line); }
html[data-theme="dark"] nav.main a { color: var(--ink); }
html[data-theme="dark"] nav.main { background: #0b1220; }
html[data-theme="dark"] .pcard, html[data-theme="dark"] .prod, html[data-theme="dark"] .card, html[data-theme="dark"] .why, html[data-theme="dark"] .tst, html[data-theme="dark"] .fx-count, html[data-theme="dark"] .side, html[data-theme="dark"] details.faq, html[data-theme="dark"] .shot, html[data-theme="dark"] .fx-marquee, html[data-theme="dark"] .plan, html[data-theme="dark"] .blog-card, html[data-theme="dark"] .cmp-pick, html[data-theme="dark"] .slot-day, html[data-theme="dark"] .bk-card { background: #111a2e; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .fx-marquee a { background: #0f172a; color: var(--ink); }
html[data-theme="dark"] .inp, html[data-theme="dark"] input.inp, html[data-theme="dark"] select.inp, html[data-theme="dark"] textarea.inp { background: #0f172a; color: var(--ink); border-color: #273449; }
html[data-theme="dark"] .btn:not(.primary):not(.orange):not(.white):not(.ghost-w):not(.wa-go) { background: #111a2e; color: #93c5fd; border-color: #2a4a8f; }
html[data-theme="dark"] .logo img { background: #fff; border-radius: 12px; padding: 2px 8px; }
html[data-theme="dark"] .fx-wave path { fill: var(--bg); }
html[data-theme="dark"] .fx-dots { background-image: radial-gradient(#1e293b 1.2px, transparent 1.2px); }
html[data-theme="dark"] table.t th { background: #0f172a; }
html[data-theme="dark"] .prod .ph, html[data-theme="dark"] .gal .main { background: #f1f5f9; }
html[data-theme="dark"] .fx-count b { background: linear-gradient(135deg, #93c5fd, #60a5fa); -webkit-background-clip: text; background-clip: text; }
html[data-theme="dark"] .msg.ok { background: #052e16; color: #86efac; } html[data-theme="dark"] .msg.err { background: #450a0a; color: #fca5a5; }

/* ===== الفوتر ===== */
footer.site { position: relative; padding-top: 70px; background: linear-gradient(180deg, #0b1220, #0f172a); }
.foot-wave { position: absolute; top: -1px; left: 0; width: 100%; height: 50px; }
.foot-wave path { fill: var(--bg); }
.foot-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 14px; margin-bottom: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.foot-logo img { height: 66px; width: auto; }

/* ===== فقاعة واتساب ===== */
.wa-box { position: fixed; bottom: 20px; inset-inline-start: 20px; z-index: 60; }
.wa-box .wa-float { position: relative; inset: auto; bottom: auto; }
.wa-badge { position: absolute; top: -3px; inset-inline-end: -3px; background: #ef4444; color: #fff; font-size: .45em; width: 20px; height: 20px; border-radius: 50%; display: none; align-items: center; justify-content: center; font-weight: 700; font-family: inherit; }
.wa-box.has-msg .wa-badge { display: flex; }
.wa-box .wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: waRing 2.4s ease-out infinite; }
@keyframes waRing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }
.wa-bubble { position: absolute; bottom: 72px; inset-inline-start: 0; width: 300px; background: #fff; color: #0f172a; border-radius: 18px; box-shadow: 0 20px 50px rgba(15,23,42,.3); overflow: hidden; transform: translateY(16px) scale(.96); opacity: 0; pointer-events: none; transition: .3s cubic-bezier(.2,.8,.2,1.2); transform-origin: bottom left; }
[dir=rtl] .wa-bubble { transform-origin: bottom right; }
.wa-box.open .wa-bubble { transform: none; opacity: 1; pointer-events: auto; }
.wa-head { display: flex; gap: 10px; align-items: center; background: #075e54; color: #fff; padding: 12px 14px; }
.wa-head img { width: 38px; height: 38px; border-radius: 50%; background: #fff; padding: 3px; }
.wa-head b { display: block; } .wa-head small { opacity: .85; font-size: .8em; }
.wa-head .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.wa-msg { margin: 14px; background: #f0fdf4; border-radius: 0 14px 14px 14px; padding: 10px 12px; font-size: .93em; position: relative; }
[dir=rtl] .wa-msg { border-radius: 14px 0 14px 14px; }
.wa-go { display: flex !important; margin: 0 14px 14px; background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; }
.wa-bubble .x { position: absolute; top: 8px; inset-inline-end: 10px; background: none; border: 0; color: #fff; font-size: 1.4em; cursor: pointer; line-height: 1; }

/* ===== رأس الصفحات الاحترافي ===== */
.pro-head { position: relative; overflow: hidden; color: #fff; padding: 64px 0 90px; text-align: center; background: radial-gradient(800px 400px at 80% -20%, #3b82f6, transparent 60%), radial-gradient(600px 300px at 10% 120%, #f97316, transparent 60%), linear-gradient(135deg, #0b1f5c, #1d4ed8); }
.pro-head h1 { font-size: clamp(1.8em, 4vw, 2.8em); font-weight: 800; margin: 10px 0 8px; }
.pro-head p { color: #dbeafe; max-width: 640px; margin: 0 auto; font-size: 1.08em; }
.pro-head .wrap { position: relative; z-index: 1; }
.pro-head .fx-wave { height: 70px; }

/* ===== الباقات ===== */
.bill-tg { display: inline-flex; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 99px; padding: 4px; margin-top: 22px; gap: 4px; }
.bill-tg button { font: inherit; font-weight: 700; border: 0; background: transparent; color: #fff; padding: 8px 20px; border-radius: 99px; cursor: pointer; transition: .25s; }
.bill-tg button.on { background: #fff; color: var(--blue); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -60px; position: relative; z-index: 4; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; position: relative; box-shadow: 0 10px 40px rgba(15,23,42,.08); transition: transform .3s, box-shadow .3s; }
.plan:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(15,23,42,.14); }
.plan.pop { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #f97316, #1d4ed8) border-box; transform: scale(1.04); }
html[data-theme="dark"] .plan.pop { background: linear-gradient(#111a2e, #111a2e) padding-box, linear-gradient(135deg, #f97316, #1d4ed8) border-box; }
.plan.pop:hover { transform: scale(1.04) translateY(-8px); }
.plan .ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, #f97316, #ea580c); color: #fff; padding: 4px 18px; border-radius: 99px; font-size: .82em; font-weight: 800; box-shadow: 0 8px 20px rgba(249,115,22,.4); white-space: nowrap; }
.plan .p-ic { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4em; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-d)); }
.plan.pop .p-ic { background: linear-gradient(135deg, #f97316, #ea580c); }
.plan h3 { margin: 0; font-size: 1.35em; }
.plan .tag { color: var(--muted); margin: 0; font-size: .93em; min-height: 2.6em; }
.plan .price { font-size: 2.4em; font-weight: 800; line-height: 1.1; color: var(--blue); }
.plan .price small { font-size: .38em; color: var(--muted); font-weight: 600; }
.plan .price .alt { display: none; }
.plans.monthly .price .once { display: none; } .plans.monthly .price .alt { display: inline; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .95em; }
.plan li i { margin-top: 5px; color: #16a34a; }
.plan li.no { color: var(--muted); text-decoration: line-through; opacity: .7; }
.plan li.no i { color: #cbd5e1; }
.cmp-tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
html[data-theme="dark"] .cmp-tbl { background: #111a2e; }
.cmp-tbl th, .cmp-tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp-tbl th:first-child, .cmp-tbl td:first-child { text-align: start; font-weight: 600; }
.cmp-tbl thead th { background: var(--soft); font-size: 1.02em; }
.cmp-tbl thead th.pop { background: var(--orange-l); color: var(--orange-d); }
.cmp-tbl td i.fa-circle-check { color: #16a34a; font-size: 1.15em; } .cmp-tbl td i.fa-xmark { color: #cbd5e1; }
.cmp-tbl tr:hover td { background: var(--blue-l); }
.cmp-wrap { overflow-x: auto; }

/* ===== حجز الديمو ===== */
.bk-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; margin-top: -60px; position: relative; z-index: 4; align-items: start; }
.bk-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: 0 10px 40px rgba(15,23,42,.08); }
.bk-card h3 { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; font-size: 1.15em; }
.bk-card h3 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8em; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.days label { flex: none; scroll-snap-align: start; cursor: pointer; }
.days input, .times input, .modes input { position: absolute; opacity: 0; pointer-events: none; }
.slot-day { display: flex; flex-direction: column; align-items: center; width: 74px; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: .2s; }
.slot-day small { color: var(--muted); font-size: .78em; }
.slot-day b { font-size: 1.5em; line-height: 1.2; }
.days input:checked + .slot-day { border-color: var(--blue); background: linear-gradient(135deg, var(--blue), var(--blue-d)); color: #fff; box-shadow: 0 10px 22px -8px rgba(29,78,216,.6); }
.days input:checked + .slot-day small { color: #dbeafe; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.times label span { display: block; text-align: center; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; cursor: pointer; transition: .2s; }
.times label span:hover { border-color: var(--blue); }
.times input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 8px 18px -6px rgba(249,115,22,.6); }
.times input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.times .day-times { display: contents; }
.times .day-times.hide { display: none; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modes span { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; }
.modes input:checked + span { border-color: var(--blue); background: var(--blue-l); color: var(--blue); }
.bk-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.bk-side li { display: flex; gap: 12px; align-items: flex-start; }
.bk-side li i { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-l); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.bk-done { text-align: center; padding: 30px 10px; }
.bk-done .ok { width: 90px; height: 90px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: flex; align-items: center; justify-content: center; font-size: 2.6em; margin: 0 auto 14px; animation: pop .6s cubic-bezier(.2,.8,.2,1.4); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ===== قارن البرامج ===== */
.cmp-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -50px; position: relative; z-index: 4; }
.cmp-pick { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 10px 30px rgba(15,23,42,.1); border: 1px solid var(--line); }
.cmp-pick label { font-weight: 700; display: block; margin-bottom: 6px; color: var(--muted); font-size: .88em; }
.cmp-head-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cmp-head-cell .ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3em; }
.cmp-tbl .grp td { background: var(--soft); font-weight: 800; color: var(--blue); text-align: start; }

/* ===== المقالات ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -50px; position: relative; z-index: 4; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); box-shadow: 0 10px 30px rgba(15,23,42,.08); transition: transform .3s, box-shadow .3s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(15,23,42,.14); color: var(--ink); }
.blog-card .cv { aspect-ratio: 1200/630; overflow: hidden; }
.blog-card .cv img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.blog-card:hover .cv img { transform: scale(1.06); }
.blog-card .bd { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card .meta { color: var(--muted); font-size: .85em; display: flex; gap: 14px; }
.blog-card h3 { margin: 0; font-size: 1.15em; line-height: 1.5; }
.blog-card p { color: var(--muted); margin: 0; font-size: .95em; flex: 1; }
.blog-card .more { color: var(--orange-d); font-weight: 700; }
.art { max-width: 820px; margin: -60px auto 50px; position: relative; z-index: 4; background: #fff; border-radius: 22px; box-shadow: 0 10px 40px rgba(15,23,42,.08); overflow: hidden; }
html[data-theme="dark"] .art { background: #111a2e; }
.art .cv img { width: 100%; display: block; }
.art .body { padding: 30px clamp(18px, 4vw, 44px) 36px; font-size: 1.08em; line-height: 2; }
.art .body h2 { font-size: 1.35em; margin: 26px 0 8px; color: var(--blue); position: relative; padding-inline-start: 14px; }
.art .body h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .25em; bottom: .25em; width: 4px; border-radius: 2px; background: var(--orange); }
html[data-theme="dark"] .art .body h2 { color: #93c5fd; }
.art .body ul { padding-inline-start: 22px; }
.art .body li::marker { color: var(--orange); }
.art .share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding: 18px clamp(18px, 4vw, 44px); }
.art .share a { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.art-cta { margin: 0 clamp(18px, 4vw, 44px) 30px; }

/* ===== 404 ===== */
.nf { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 16px; position: relative; overflow: hidden; }
.nf .big { font-size: clamp(6em, 20vw, 12em); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--blue), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: floatY 5s ease-in-out infinite; }
.nf p { color: var(--muted); font-size: 1.1em; }

@media (max-width: 980px) {
    .plans, .blog-grid { grid-template-columns: 1fr 1fr; }
    .plan.pop { transform: none; } .plan.pop:hover { transform: translateY(-8px); }
    .bk-grid { grid-template-columns: 1fr; }
    .cmp-picks { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
}
@media (max-width: 600px) {
    .plans, .blog-grid { grid-template-columns: 1fr; }
    .times { grid-template-columns: repeat(3, 1fr); }
    .cmp-picks { grid-template-columns: 1fr; margin-top: -40px; }
    .wa-bubble { width: calc(100vw - 40px); }
    .pro-head { padding: 46px 0 80px; }
}

.bk-grid > *, .cart-grid > *, .fx-pane > * { min-width: 0; }

/* قايمة اللغات (عربي / English / Deutsch / Русский) */
.lang-dd { position: relative; display: inline-block; }
.lang-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.lang-menu { display: none; position: absolute; top: calc(100% + 6px); inset-inline-end: 0; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px; z-index: 1000; min-width: 130px; }
.lang-dd.open .lang-menu, .lang-dd:focus-within .lang-menu { display: block; }
.lang-menu a { display: block; padding: 7px 12px; border-radius: 7px; color: #0f172a !important; text-decoration: none; white-space: nowrap; }
.lang-menu a:hover { background: #eef2ff; }
.lang-menu a.on { background: #2563eb; color: #fff !important; }
html[data-theme="dark"] .lang-menu { background: #1e293b; }
html[data-theme="dark"] .lang-menu a { color: #e2e8f0 !important; }
html[data-theme="dark"] .lang-menu a:hover { background: #334155; }
html[lang="ru"] body, html[lang="de"] body { font-family: 'Segoe UI', 'Cairo', Tahoma, Arial, sans-serif; }

/* صور الأجهزة الحقيقية (Pexels) تملا الكارت بدل ما تتصغّر */
.prod .ph img[src*="img/devices/"], .gal .main img[src*="img/devices/"], .gal .th img[src*="img/devices/"] { object-fit: cover; }
.prod .ph:has(img[src*="img/devices/"]) { padding: 0; overflow: hidden; }