.kit-ribbon { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 7px 12px; background: #0d0d12; color: #e8e6f0; font: 500 13px/1.5 "IBM Plex Sans Arabic", system-ui, sans-serif; text-align: center; position: relative; z-index: 60; }
.kit-ribbon a { background: linear-gradient(135deg, #8b5cf6, #22d3ee); color: #fff; padding: 3px 12px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.kit-ribbon a.ghost { background: transparent; border: 1px solid rgba(255,255,255,.3); }
.kit-shade { position: fixed; inset: 0; background: rgba(10, 10, 15, .55); backdrop-filter: blur(3px); z-index: 80; animation: kitfade .2s; }
.kit-layer { position: fixed; z-index: 90; background: var(--kit-bg, #fff); color: var(--kit-fg, #111); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.kit-layer.center { inset: 0; margin: auto; width: min(560px, 94vw); height: fit-content; max-height: 90vh; border-radius: 22px; animation: kitpop .25s ease-out; }
.kit-layer.end { top: 0; bottom: 0; inset-inline-end: 0; width: min(460px, 100vw); animation: kitslide .28s ease-out; }
.kit-layer.bottom { inset-inline: 0; bottom: 0; margin: auto; max-width: 560px; max-height: 92vh; border-radius: 22px 22px 0 0; animation: kitup .25s ease-out; }
.kit-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.08); color: inherit; font-size: 16px; cursor: pointer; z-index: 2; }
.kit-toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 30px); opacity: 0; transition: .25s; background: #111; color: #fff; padding: 10px 18px; border-radius: 999px; font: 600 14px "IBM Plex Sans Arabic", sans-serif; z-index: 100; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.kit-toast.show { opacity: 1; transform: translate(-50%, 0); }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
[hidden] { display: none !important; }
@keyframes kitfade { from { opacity: 0; } }
@keyframes kitpop { from { opacity: 0; transform: scale(.96); } }
@keyframes kitslide { from { transform: translateX(-100%); } }
@keyframes kitup { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, [data-reveal] { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; } }
html, body { overflow-x: clip; max-width: 100%; }

.kit-ribbon a.lang { font-weight: 700; min-width: 46px; }
[dir=ltr] .kit-layer.end { animation-name: kitslide-ltr; }
@keyframes kitslide-ltr { from { transform: translateX(100%); } }

.kit-badge { position: fixed; bottom: 14px; inset-inline-start: 14px; z-index: 55; display: flex; gap: 6px; align-items: center; font: 500 12px/1 "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }
.kit-badge a { display: inline-flex; align-items: center; gap: 7px; background: rgba(13, 13, 18, .82); color: #f2f0f8; padding: 8px 12px; border-radius: 999px; text-decoration: none; backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.kit-badge .kit-made i { width: 14px; height: 14px; border-radius: 5px; background: linear-gradient(135deg, #8b5cf6, #22d3ee); }
.kit-badge .kit-lang { font-weight: 700; }
@media (max-width: 900px) { .kit-badge { bottom: 76px; } }
