/* ==========================================================
   CLIPRZ STORE SHOWCASE  (all classes prefixed .cs-)
   يعتمد على متغيرات الثيم: --acc1/2/3 و --acc1-rgb/2-rgb/3-rgb
   ========================================================== */
.cs-wrap {
    position: relative;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(var(--acc1-rgb),.55), rgba(255,255,255,.06) 40%, rgba(var(--acc3-rgb),.45));
    overflow: hidden;
}
.cs-wrap::before {            /* ضوء دوّار خلف الإطار */
    content: "";
    position: absolute; inset: -60%;
    background: conic-gradient(from 0deg, transparent 0 70%, rgba(var(--acc1-rgb),.35) 85%, transparent 100%);
    animation: csSpin 9s linear infinite;
    pointer-events: none;
}
@keyframes csSpin { to { transform: rotate(360deg); } }

.cs-inner {
    position: relative;
    border-radius: 27px;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(var(--acc2-rgb),.16), transparent 60%),
        radial-gradient(700px 400px at 0% 110%, rgba(var(--acc1-rgb),.12), transparent 60%),
        #060a17;
    display: grid;
    gap: 2.5rem;
    padding: 2rem 1.25rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .cs-inner { grid-template-columns: 1.05fr 1fr; padding: 3.25rem 3.25rem; }
}

.cs-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(var(--acc1-rgb),1);
    padding: .35rem .8rem; border-radius: 999px;
    border: 1px solid rgba(var(--acc1-rgb),.35);
    background: rgba(var(--acc1-rgb),.08);
}
.cs-eyebrow i {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgb(var(--acc1-rgb));
    animation: csPulse 2s ease-in-out infinite;
}
@keyframes csPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(var(--acc1-rgb),.6); }
    50%     { box-shadow: 0 0 0 7px rgba(var(--acc1-rgb),0); }
}

.cs-title { font-weight: 700; line-height: 1.15; font-size: clamp(1.9rem, 4.2vw, 3rem); margin-top: 1rem; }
.cs-lead  { color: #cbd5e1; max-width: 34rem; margin-top: 1rem; line-height: 1.75; }

.cs-points { margin-top: 1.5rem; display: grid; gap: .7rem; }
.cs-points li {
    display: flex; gap: .7rem; align-items: flex-start;
    font-size: .9rem; color: #cbd5e1;
}
.cs-points li b {
    flex: none; width: 1.5rem; height: 1.5rem; border-radius: 8px;
    display: grid; place-items: center; font-size: .8rem;
    background: rgba(var(--acc1-rgb),.14); border: 1px solid rgba(var(--acc1-rgb),.35);
    color: rgb(var(--acc1-rgb));
}

.cs-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.cs-visit {
    position: relative; display: inline-flex; align-items: center; gap: .6rem;
    padding: .9rem 1.6rem; border-radius: 16px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--acc1), var(--acc2));
    box-shadow: 0 10px 30px rgba(var(--acc1-rgb),.28);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
}
.cs-visit::after {            /* لمعة تمرّ على الزر */
    content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
    left: -60%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    animation: csShine 4.5s ease-in-out infinite;
}
@keyframes csShine { 0%,55% { left: -60%; } 100% { left: 130%; } }
.cs-visit:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(var(--acc1-rgb),.42); }
.cs-visit svg { transition: transform .25s ease; }
.cs-visit:hover svg { transform: translate(3px,-3px); }
html[dir="rtl"] .cs-visit svg { transform: scaleX(-1); }
html[dir="rtl"] .cs-visit:hover svg { transform: scaleX(-1) translate(3px,-3px); }

.cs-url { font-size: .8rem; color: #94a3b8; direction: ltr; unicode-bidi: isolate; }

/* ---------- المشهد البصري ---------- */
.cs-stage { position: relative; perspective: 1400px; min-height: 360px; }

.cs-browser {
    position: relative; border-radius: 18px; overflow: hidden;
    background: #0b1224; border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(var(--acc1-rgb),.12);
    transform: rotateY(-10deg) rotateX(4deg);
    transition: transform .6s cubic-bezier(.16,.8,.22,1);
    direction: ltr;
}
html[dir="rtl"] .cs-browser { transform: rotateY(10deg) rotateX(4deg); }
.cs-stage:hover .cs-browser,
html[dir="rtl"] .cs-stage:hover .cs-browser { transform: rotateY(0) rotateX(0) translateY(-4px); }

.cs-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .8rem; background: #0f172a; border-bottom: 1px solid rgba(255,255,255,.07); }
.cs-bar span { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.cs-bar span:nth-child(1) { background: #fb7185; } .cs-bar span:nth-child(2) { background: #fbbf24; } .cs-bar span:nth-child(3) { background: #4ade80; }
.cs-bar em {
    margin-inline-start: .6rem; flex: 1; font-style: normal; font-size: .68rem; color: #94a3b8;
    background: #060a17; padding: .22rem .7rem; border-radius: 999px;
}

.cs-shop { padding: 1rem; display: grid; gap: .8rem; }
.cs-shop-head { display: flex; justify-content: space-between; align-items: center; }
.cs-logo { font-weight: 700; font-size: .85rem; letter-spacing: .08em; }
.cs-search { width: 42%; height: 22px; border-radius: 999px; background: rgba(255,255,255,.06); }
.cs-hero-strip {
    height: 70px; border-radius: 12px;
    background: linear-gradient(120deg, rgba(var(--acc1-rgb),.5), rgba(var(--acc2-rgb),.45), rgba(var(--acc3-rgb),.4));
    background-size: 200% 200%; animation: gradientShift 7s ease-in-out infinite;
    display: flex; align-items: center; padding: 0 1rem; font-size: .8rem; font-weight: 600;
}
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.cs-prod { border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); padding: .5rem; }
.cs-prod .img {
    aspect-ratio: 1; border-radius: 8px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--acc1-rgb),.25), rgba(var(--acc2-rgb),.18));
}
.cs-prod:nth-child(2) .img { background: linear-gradient(135deg, rgba(var(--acc2-rgb),.3), rgba(var(--acc3-rgb),.2)); }
.cs-prod:nth-child(3) .img { background: linear-gradient(135deg, rgba(var(--acc3-rgb),.3), rgba(var(--acc1-rgb),.2)); }
.cs-prod .img::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
    transform: translateX(-100%); animation: csShimmer 3.6s ease-in-out infinite;
}
.cs-prod:nth-child(2) .img::after { animation-delay: .5s; } .cs-prod:nth-child(3) .img::after { animation-delay: 1s; }
@keyframes csShimmer { 60%,100% { transform: translateX(100%); } }
.cs-prod .l1 { height: 7px; width: 80%; margin-top: .5rem; border-radius: 4px; background: rgba(255,255,255,.14); }
.cs-prod .l2 { height: 7px; width: 45%; margin-top: .35rem; border-radius: 4px; background: rgba(var(--acc1-rgb),.6); }

/* شارات عائمة */
.cs-chip {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: .5rem;
    padding: .55rem .85rem; border-radius: 14px; font-size: .72rem; font-weight: 500; white-space: nowrap;
    background: rgba(8,12,26,.88); backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--acc1-rgb),.4); color: #e2e8f0;
    box-shadow: 0 14px 40px rgba(0,0,0,.5);
    animation: csFloat 6s ease-in-out infinite;
}
.cs-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulseDot 2s ease-in-out infinite; }
.cs-chip--a { top: -10px;  inset-inline-end: -6px; }
.cs-chip--b { bottom: 70px; inset-inline-end: 10px; animation-delay: -2s; }
.cs-chip--c { top: 235px; inset-inline-start: -18px; animation-delay: -4s; }
@keyframes csFloat { 50% { transform: translateY(-9px); } }

/* خط المزامنة: برنامج المحاسبة ← المتجر */
.cs-sync {
    margin-top: 1.6rem; display: flex; align-items: center; gap: .6rem;
    font-size: .7rem; color: #94a3b8; direction: ltr;
}
.cs-sync .node { padding: .35rem .7rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: #e2e8f0; }
.cs-sync .line { position: relative; flex: 1; height: 2px; background: rgba(255,255,255,.1); overflow: hidden; border-radius: 2px; }
.cs-sync .line::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 30%;
    background: linear-gradient(90deg, transparent, rgb(var(--acc1-rgb)), transparent);
    animation: csFlow 2.2s linear infinite;
}
@keyframes csFlow { from { left: -30%; } to { left: 100%; } }

@media (max-width: 640px) {
    .cs-stage { min-height: 0; }
    .cs-browser, html[dir="rtl"] .cs-browser { transform: none; }
    .cs-chip--c { inset-inline-start: 4px; }
    .cs-chip--a { inset-inline-end: 4px; }
}

.cs-stage a, .cs-visit, .cs-stage a:hover { text-decoration: none; color: inherit; }
.cs-visit { color: #fff !important; }
