/* ═══════════════════════════════════════════════════════════════
   Activity Store v2 (Oct 31 2026) — bright, friendly marketplace.
   Classes: sx-*  (js/tools/ActivityStoreManager.js).
   Loaded AFTER theme-override.css on purpose: the store has its own
   look in every theme, so headings/buttons are pinned here.
   ═══════════════════════════════════════════════════════════════ */

.sx-root {
    --sx-bg: #f4f4f9;
    --sx-surface: #ffffff;
    --sx-ink: #171a3b;
    --sx-ink-2: #474b6e;
    --sx-muted: #7d8099;
    --sx-line: #e7e7f0;
    --sx-line-2: #d9d9e7;
    --sx-primary: #4f46e5;
    --sx-primary-2: #7c3aed;
    --sx-sun: #fbbf24;
    --sx-sun-2: #f59e0b;
    --sx-rose: #f43f5e;
    --sx-shadow-sm: 0 1px 2px rgba(23, 26, 59, .05), 0 1px 6px rgba(23, 26, 59, .04);
    --sx-shadow: 0 10px 30px rgba(23, 26, 59, .08), 0 2px 6px rgba(23, 26, 59, .04);
    --sx-shadow-lg: 0 24px 60px rgba(23, 26, 59, .22);
    --sx-r: 16px;
    --sx-gap: 20px;
    --sx-cols: 4;
    font-family: 'Outfit', 'Cairo', 'Inter', system-ui, sans-serif;
    color: var(--sx-ink);
    -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] .sx-root, html[lang="ar"] .sx-root { font-family: 'Cairo', 'Outfit', system-ui, sans-serif; }
.sx-root *, .sx-root *::before, .sx-root *::after { box-sizing: border-box; }
.sx-root [hidden] { display: none !important; }
.sx-root h1, .sx-root h2, .sx-root h3, .sx-root b, .sx-root p, .sx-root span, .sx-root small, .sx-root label {
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none !important;
    letter-spacing: normal;
}
.sx-root h1, .sx-root h2, .sx-root h3 { color: var(--sx-ink) !important; margin: 0; font-family: inherit !important; background: none !important; letter-spacing: -.01em !important; }
.sx-root p { margin: 0; }
.sx-root button { font-family: inherit; cursor: pointer; }
.sx-root button:focus-visible, .sx-root .sx-card:focus-visible, .sx-root input:focus-visible, .sx-root select:focus-visible, .sx-root textarea:focus-visible {
    outline: 3px solid rgba(79, 70, 229, .4) !important; outline-offset: 2px;
}

/* ── Full-screen overlay ── */
.sx-overlay {
    position: fixed; top: 0; left: 0;
    width: var(--app-vw, 100vw); height: var(--app-vh, 100vh);
    z-index: var(--z-auth, 20000000);
    display: flex; flex-direction: column;
    background: var(--sx-bg) !important;
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
}
.sx-overlay.show { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .3s ease; }
.sx-overlay.sx-away, .sx-modal-wrap.sx-away { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* ── Top bar ── */
.sx-top {
    display: grid; grid-template-columns: 1fr minmax(0, 560px) 1fr; align-items: center; gap: 16px;
    padding: 12px clamp(16px, 3vw, 32px);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--sx-line);
    flex-shrink: 0; z-index: 2;
}
.sx-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sx-brand-ic {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--sx-sun), var(--sx-sun-2));
    color: #fff; font-size: 18px; box-shadow: 0 6px 14px rgba(245, 158, 11, .3);
}
.sx-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.sx-brand-txt b { font-size: 1.08rem; font-weight: 800; color: var(--sx-ink); }
.sx-brand-txt small { font-size: .74rem; color: var(--sx-muted); font-weight: 500; }

.sx-search {
    position: relative; display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 16px; border-radius: 999px;
    background: var(--sx-bg); border: 1.5px solid transparent;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.sx-search:focus-within { background: #fff; border-color: var(--sx-primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.sx-search > i { color: var(--sx-muted); }
.sx-search input {
    flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important;
    font-weight: 500; font-size: .95rem; font-family: inherit; color: var(--sx-ink) !important; padding: 0 !important; height: 100%;
}
.sx-search input::placeholder { color: var(--sx-muted); }
.sx-search input::-webkit-search-cancel-button { display: none; }
.sx-search-x { border: 0; background: var(--sx-line); color: var(--sx-ink-2); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }

.sx-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-shrink: 0; }

/* ── Buttons ── */
.sx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 42px; padding: 0 18px; border-radius: 999px; border: 0;
    font-weight: 700; font-size: .9rem; white-space: nowrap;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s;
    color: var(--sx-ink) !important; background: #fff;
}
.sx-btn:active { transform: translateY(1px) scale(.98); }
.sx-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; filter: grayscale(.3); }
.sx-btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; }
.sx-btn-primary { background: var(--sx-ink) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(23, 26, 59, .22); }
.sx-btn-primary:hover:not(:disabled) { background: #23275a !important; transform: translateY(-1px); }
.sx-btn-sun { background: var(--sx-sun) !important; color: #3b1d00 !important; box-shadow: 0 8px 20px rgba(245, 158, 11, .3); }
.sx-btn-sun:hover:not(:disabled) { transform: translateY(-1px); background: #fcc93d !important; }
.sx-btn-ghost { background: #fff !important; border: 1.5px solid var(--sx-line-2); color: var(--sx-ink) !important; }
.sx-btn-ghost:hover:not(:disabled) { border-color: var(--sx-ink); }
.sx-btn-glass { background: rgba(255, 255, 255, .14) !important; color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px); }
.sx-btn-glass:hover { background: rgba(255, 255, 255, .24) !important; }
.sx-btn-danger { background: #e11d48 !important; color: #fff !important; box-shadow: 0 8px 20px rgba(225, 29, 72, .25); }
.sx-icon-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--sx-line-2);
    background: #fff; color: var(--sx-ink-2) !important; display: grid; place-items: center; font-size: 16px;
    transition: background .2s, color .2s, transform .15s, border-color .2s; flex-shrink: 0;
}
.sx-icon-btn:hover:not(:disabled) { background: var(--sx-bg); color: var(--sx-ink) !important; border-color: var(--sx-ink); }
.sx-icon-btn:disabled { opacity: .35; cursor: default; }
.sx-link-btn { border: 0; background: none; color: var(--sx-primary) !important; font-weight: 700; font-size: .88rem; padding: 4px 2px; display: inline-flex; align-items: center; gap: 6px; }
.sx-link-btn:hover { text-decoration: underline; }

/* ── Scroll area: everything sits on one 1240px column ── */
.sx-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 24px clamp(16px, 3vw, 32px) 72px; overscroll-behavior: contain; }
.sx-scroll > div { max-width: 1240px; margin: 0 auto; }

/* ── Hero ── */
.sx-hero {
    position: relative; overflow: hidden; border-radius: 24px;
    padding: clamp(22px, 2.6vw, 30px) clamp(24px, 3vw, 36px);
    background:
        radial-gradient(640px 320px at 0% 0%, rgba(124, 58, 237, .55), transparent 70%),
        radial-gradient(520px 320px at 100% 100%, rgba(14, 165, 233, .35), transparent 70%),
        #1e1b4b;
    color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
    animation: sx-rise .5s ease both;
}
.sx-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .08; background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 22px 22px; }
.sx-hero-txt { position: relative; z-index: 1; }
.sx-root .sx-hero h1 { color: #fff !important; font-size: clamp(1.45rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.15; margin: 12px 0 8px; max-width: 26ch; }
.sx-root .sx-hero p { color: rgba(255, 255, 255, .8) !important; font-size: .95rem; line-height: 1.55; max-width: 56ch; }
.sx-hero-kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .8rem; color: #fff !important; }
.sx-hero-kicker i { color: var(--sx-sun); }
.sx-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* Mosaic: 3 × 2 tiles, aligned, not floating */
.sx-hero-art { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 66px); gap: 10px; justify-self: end; }
.sx-float {
    position: static; aspect-ratio: 1; display: grid; place-items: center; border-radius: 18px; font-size: 26px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px);
    transition: transform .3s ease, background .3s ease;
}
.sx-float i { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.sx-float:nth-child(2n) { background: rgba(255, 255, 255, .95); }
.sx-float:nth-child(2n) i { color: #1e1b4b !important; -webkit-text-fill-color: #1e1b4b !important; }
.sx-float:nth-child(4) { background: var(--sx-sun); }
.sx-float:nth-child(4) i { color: #3b1d00 !important; -webkit-text-fill-color: #3b1d00 !important; }
.sx-hero:hover .sx-float { transform: translateY(-3px); }
.sx-hero:hover .sx-float:nth-child(2n) { transform: translateY(3px); }
/* Stats: four equal cards under the hero */
.sx-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sx-gap); margin-top: var(--sx-gap); }
.sx-hero-stats:empty { display: none; }
.sx-hstat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--sx-r); background: var(--sx-surface); border: 1px solid var(--sx-line); box-shadow: var(--sx-shadow-sm); }
.sx-hstat i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; color: var(--sx-primary); background: #eef2ff; flex-shrink: 0; }
.sx-hstat b { font-size: 1.35rem; font-weight: 800; color: var(--sx-ink); line-height: 1; }
.sx-hstat span { display: block; font-size: .78rem; color: var(--sx-muted); margin-top: 3px; }
.sx-hstat b + span { display: block; }
.sx-hstat > div { display: flex; flex-direction: column; }

/* ── Category bar: one row of equal tabs ── */
.sx-cats {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 32px 0 0; padding: 6px; border-radius: 22px;
    background: var(--sx-surface); border: 1px solid var(--sx-line); box-shadow: var(--sx-shadow-sm);
    scrollbar-width: none; scroll-margin-top: 8px;
}
.sx-cats::-webkit-scrollbar { display: none; }
.sx-cat {
    min-width: 0; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 46px; padding: 0 12px; border-radius: 16px; border: 0; background: transparent !important;
    transition: background .2s, color .2s;
}
.sx-cat:hover { background: var(--sx-bg) !important; }
.sx-cat-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--a) 16%, #fff); color: var(--b); font-size: 12px; }
.sx-cat-txt { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 1; }
.sx-cat-txt b { font-size: .86rem; font-weight: 700; color: var(--sx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-cat-txt small { font-size: .72rem; color: var(--sx-muted); font-weight: 600; white-space: nowrap; }
.sx-cat.active { background: var(--sx-ink) !important; }
.sx-cat.active .sx-cat-ic { background: rgba(255, 255, 255, .16); color: #fff; }
.sx-cat.active .sx-cat-txt b { color: #fff !important; }
.sx-cat.active .sx-cat-txt small { color: rgba(255, 255, 255, .65) !important; }
.sx-new {
    display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: .6rem; font-weight: 800; letter-spacing: .04em !important;
    background: var(--sx-sun); color: #3b1d00 !important;
}
.sx-cat .sx-new { position: absolute; top: -6px; inset-inline-end: 8px; }

/* ── Chips (shared by filters) ── */
.sx-chip {
    --c: var(--sx-primary);
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px;
    border-radius: 999px; border: 1.5px solid var(--sx-line); background: #fff !important;
    color: var(--sx-ink-2) !important; font-weight: 600; font-size: .84rem; transition: all .18s; white-space: nowrap;
}
.sx-chip i { color: var(--c); font-size: .8rem; }
.sx-chip:hover { border-color: var(--c); color: var(--sx-ink) !important; }
.sx-chip.active { background: var(--sx-ink) !important; border-color: var(--sx-ink); color: #fff !important; }
.sx-chip.active i { color: #fff; }

/* ── Section headings ── */
.sx-section-head { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.sx-section-head h2 { font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.sx-section-head p { font-size: .86rem; color: var(--sx-muted) !important; margin-top: 3px; }
.sx-section-head > div { flex: 1; min-width: 0; }
.sx-count { font-size: .8rem; color: var(--sx-ink-2); font-weight: 700; background: #fff; border: 1px solid var(--sx-line); padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
.sx-sort { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--sx-line); color: var(--sx-ink-2); flex-shrink: 0; }
.sx-sort select { border: 0 !important; background: transparent !important; color: var(--sx-ink) !important; font-weight: 600; font-size: .86rem; font-family: inherit; outline: 0; padding: 0 6px !important; height: 100%; cursor: pointer; box-shadow: none !important; }
.sx-shelf-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.sx-tone-teal .sx-shelf-ic { background: #0d9488; }
.sx-tone-rose .sx-shelf-ic { background: #e11d48; }
.sx-tone-sun .sx-shelf-ic { background: var(--sx-sun-2); }
.sx-tone-violet .sx-shelf-ic { background: var(--sx-primary); }
.sx-see-all { margin-inline-start: auto; flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--sx-line); background: #fff; }
.sx-see-all:hover { text-decoration: none; border-color: var(--sx-primary); }
html[dir="rtl"] .sx-see-all i, html[dir="rtl"] .sx-d-teacher > i { transform: scaleX(-1); }

/* Sections and shelves: one rhythm, and a shelf shows exactly one full row */
#sx-home > section, .sx-shelf { margin-top: 44px; }
.sx-shelf-row { display: grid; grid-template-columns: repeat(var(--sx-cols), minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: 0; row-gap: 0; column-gap: var(--sx-gap); overflow: hidden; padding: 0; }
.sx-shelf-row > * { min-width: 0; }
#sx-grid-head { margin-top: 44px; }

/* Promo for interactive lessons */
.sx-promo {
    display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 20px;
    background: #fff; border: 1px solid var(--sx-line); box-shadow: var(--sx-shadow-sm);
}
.sx-promo-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; color: #fff; background: #0d9488; flex-shrink: 0; }
.sx-promo-txt { flex: 1; min-width: 0; }
.sx-promo-txt h3 { font-size: 1.1rem; font-weight: 800; margin: 6px 0 4px; }
.sx-promo-txt p { color: var(--sx-ink-2) !important; font-size: .9rem; line-height: 1.5; }

/* ── Grid + cards ── */
.sx-grid { display: grid; grid-template-columns: repeat(var(--sx-cols), minmax(0, 1fr)); gap: var(--sx-gap); }
.sx-card {
    position: relative; display: flex; flex-direction: column; border-radius: var(--sx-r); overflow: hidden; min-width: 0;
    background: var(--sx-surface); border: 1px solid var(--sx-line); box-shadow: var(--sx-shadow-sm);
    cursor: pointer; transition: transform .2s ease, box-shadow .25s ease, border-color .2s;
    animation: sx-rise .4s ease both;
}
.sx-card:hover { transform: translateY(-3px); box-shadow: var(--sx-shadow); border-color: var(--sx-line-2); }
.sx-card.frozen { opacity: .65; filter: grayscale(.4); }
.sx-card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--sx-line); }
.sx-cover { position: absolute; inset: 0; background: color-mix(in srgb, var(--a) 12%, #fff); display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; overflow: hidden; }
.sx-cover.has-img { padding: 0; background: #f4f1fb; }
.sx-cover.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sx-card:hover .sx-cover.has-img img { transform: scale(1.04); }
.sx-cover::before { content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none; color: var(--b); }
.sx-pat-0::before { background-image: radial-gradient(currentColor 1px, transparent 1.3px); background-size: 14px 14px; opacity: .18; }
.sx-pat-1::before { background-image: repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 12px); opacity: .12; }
.sx-pat-2::before { background-image: radial-gradient(circle at 0 0, transparent 12px, currentColor 13px, transparent 14px); background-size: 28px 28px; opacity: .12; }
.sx-pat-3::before { background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 18px 18px; opacity: .1; }
.sx-blob { display: none; }
.sx-cover-ic {
    position: absolute; top: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%);
    width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 26px;
    color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 10px 24px color-mix(in srgb, var(--b) 35%, transparent);
    transition: transform .3s ease;
}
html[dir="rtl"] .sx-cover-ic { transform: translate(50%, -50%); }
.sx-card:hover .sx-cover-ic { transform: translate(-50%, -50%) scale(1.06) rotate(-4deg); }
html[dir="rtl"] .sx-card:hover .sx-cover-ic { transform: translate(50%, -50%) scale(1.06) rotate(4deg); }
.sx-card .sx-cover-title { display: none; }
.sx-cover-title { position: relative; color: var(--sx-ink) !important; font-weight: 800; font-size: 1.05rem; line-height: 1.2; max-width: 70%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sx-type-pill {
    position: absolute; top: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
    background: #fff; color: var(--b) !important; box-shadow: var(--sx-shadow-sm);
}
.sx-type-pill.solid { position: static; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff !important; box-shadow: none; }
.sx-fresh { position: absolute; top: 10px; inset-inline-end: 10px; padding: 4px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; background: var(--sx-sun); color: #3b1d00 !important; }
.sx-frozen-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: #e0f2fe; color: #075985 !important; }
.sx-card .sx-frozen-pill { position: absolute; bottom: 10px; inset-inline-start: 10px; }
.sx-card-play {
    position: absolute; bottom: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0;
    background: var(--sx-ink); color: #fff !important; font-size: 14px; display: grid; place-items: center;
    box-shadow: 0 8px 18px rgba(23, 26, 59, .3); transition: transform .2s ease;
}
.sx-card-play i { margin-inline-start: 2px; }
.sx-card-play:hover { transform: scale(1.1); }
.sx-card-play::after { display: none; }
.sx-card-body { padding: 14px 16px 4px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.sx-card-meta { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.sx-card-meta:empty { display: none; }
.sx-subj { --c: var(--sx-primary); display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: var(--c) !important; background: color-mix(in srgb, var(--c) 10%, #fff); }
.sx-games { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: #0f766e !important; background: #ccfbf1; }
.sx-gr { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: var(--sx-ink-2) !important; background: var(--sx-bg); }
.sx-card-title { font-size: 1rem !important; font-weight: 700 !important; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.sx-card-desc { font-size: .84rem; color: var(--sx-muted) !important; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 14px; }
.sx-card-teacher { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 3px 10px 3px 3px; margin-inline-start: -3px; border-radius: 999px; transition: background .2s; }
html[dir="rtl"] .sx-card-teacher { padding: 3px 3px 3px 10px; }
.sx-card-teacher:hover { background: var(--sx-bg); }
.sx-card-teacher > span:last-child { font-size: .8rem; font-weight: 600; color: var(--sx-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.sx-card-stats { display: inline-flex; gap: 10px; font-size: .78rem; font-weight: 700; color: var(--sx-muted); flex-shrink: 0; }
.sx-card-stats span { display: inline-flex; align-items: center; gap: 4px; }
.sx-card-stats .fa-heart { color: #f43f5e; }
.sx-card-stats .fa-download { color: var(--sx-primary); }

/* ── Skeletons + empty ── */
.sx-skel { border-radius: var(--sx-r); background: #fff; border: 1px solid var(--sx-line); overflow: hidden; padding-bottom: 16px; }
.sx-skel-cover { aspect-ratio: 16 / 9; }
.sx-skel-line { height: 12px; border-radius: 6px; margin: 14px 16px 0; }
.sx-skel-line.w70 { width: 70%; } .sx-skel-line.w40 { width: 40%; }
.sx-skel-cover, .sx-skel-line { background: linear-gradient(90deg, #ededf4 25%, #f7f7fb 50%, #ededf4 75%); background-size: 200% 100%; animation: sx-shimmer 1.3s linear infinite; }
.sx-empty { grid-column: 1 / -1; text-align: center; padding: 56px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; border: 1px dashed var(--sx-line-2); border-radius: 20px; }
.sx-empty-ic { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-size: 34px; color: var(--sx-primary); background: #eef2ff; margin-bottom: 6px; }
.sx-empty h3 { font-size: 1.15rem; font-weight: 800; }
.sx-empty p { color: var(--sx-muted) !important; max-width: 46ch; line-height: 1.5; }
.sx-empty .sx-btn { margin-top: 8px; }

/* ── Teacher page ── */
.sx-prof-head {
    position: relative; display: flex; align-items: center; gap: 22px; padding: 28px; border-radius: 24px;
    background: #fff; border: 1px solid var(--sx-line); box-shadow: var(--sx-shadow-sm);
}
.sx-back { position: absolute; top: 14px; inset-inline-start: 14px; }
html[dir="rtl"] .sx-back i { transform: scaleX(-1); }
.sx-prof-avatar { margin-inline-start: 40px; border-radius: 50%; padding: 4px; background: var(--sx-bg); flex-shrink: 0; }
.sx-prof-info { min-width: 0; }
.sx-prof-info h2 { font-size: 1.6rem; font-weight: 800; }
.sx-prof-info p { color: var(--sx-ink-2) !important; margin-top: 4px; max-width: 60ch; line-height: 1.5; }
.sx-prof-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sx-pstat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: var(--sx-bg); font-size: .86rem; color: var(--sx-ink-2); }
.sx-pstat b { font-size: 1.05rem; color: var(--sx-ink); }
.sx-pstat .fa-heart { color: #f43f5e; } .sx-pstat .fa-download, .sx-pstat .fa-layer-group { color: var(--sx-primary); }
#sx-profile > .sx-section-head { margin-top: 36px; }

/* ── Modals ── */
.sx-modal-wrap {
    position: fixed; top: 0; left: 0; width: var(--app-vw, 100vw); height: var(--app-vh, 100vh);
    z-index: calc(var(--z-auth, 20000000) + 10);
    background: rgba(30, 27, 75, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility 0s linear .25s;
}
.sx-modal-wrap.show { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease; }
.sx-modal {
    position: relative; background: #fff; border-radius: 26px; box-shadow: var(--sx-shadow-lg);
    width: 100%; max-height: calc(var(--app-vh, 100vh) - 40px); overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
}
.sx-modal-wrap.show .sx-modal { transform: none; }

/* Detail */
.sx-detail { max-width: 980px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); overflow: hidden; }
.sx-detail-x { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; background: rgba(255, 255, 255, .92); }
.sx-detail-cover { position: relative; min-height: 320px; }
.sx-detail-cover .sx-cover { padding: 26px; }
.sx-detail-cover .sx-cover-ic { width: 104px; height: 104px; border-radius: 30px; font-size: 42px; transform: translate(-50%, -72%); }
html[dir="rtl"] .sx-detail-cover .sx-cover-ic { transform: translate(50%, -72%); }
.sx-detail-cover .sx-cover-title { font-size: 1.35rem; max-width: calc(100% - 80px); }
.sx-detail-cover .sx-cover.has-img img { object-fit: cover; }
.sx-big-play { width: 60px !important; height: 60px !important; font-size: 22px !important; bottom: 22px !important; inset-inline-end: 22px !important; }
.sx-big-play:hover { transform: scale(1.08); }
.sx-detail-body { padding: 30px 30px 26px; overflow-y: auto; max-height: calc(var(--app-vh, 100vh) - 40px); display: flex; flex-direction: column; gap: 14px; }
.sx-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-inline-end: 44px; }
.sx-d-title { font-size: 1.65rem !important; font-weight: 800 !important; line-height: 1.2; }
.sx-d-desc { color: var(--sx-ink-2) !important; line-height: 1.6; font-size: .98rem; white-space: pre-line; }
.sx-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-tags:empty { display: none; }
.sx-tags span { font-size: .8rem; font-weight: 600; color: var(--sx-primary) !important; background: #f3f0ff; padding: 3px 10px; border-radius: 999px; }
.sx-d-teacher { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 16px; border: 1.5px solid var(--sx-line); background: #faf9ff; text-align: start; transition: border-color .2s, background .2s; }
.sx-d-teacher:hover { border-color: var(--sx-primary); background: #f3f0ff; }
.sx-d-teacher-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sx-d-teacher-txt b { font-weight: 700; color: var(--sx-ink); }
.sx-d-teacher-txt small { font-size: .8rem; color: var(--sx-muted); }
.sx-d-teacher > i { color: var(--sx-muted); }
.sx-d-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sx-d-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: #faf8ff; border: 1px solid var(--sx-line); }
.sx-d-stats i { font-size: 14px; color: var(--sx-primary); }
.sx-d-stats .fa-heart { color: #f43f5e; }
.sx-d-stats b { font-size: 1.02rem; font-weight: 800; color: var(--sx-ink); }
.sx-d-stats small { font-size: .72rem; color: var(--sx-muted); }
.sx-d-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sx-d-actions .sx-btn { flex: 1 1 auto; }
.sx-like { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid #fecdd3; background: #fff1f2; color: #f43f5e !important; font-size: 20px; display: grid; place-items: center; flex-shrink: 0; transition: transform .2s, background .2s; }
.sx-like:hover { transform: scale(1.06); }
.sx-like.liked { background: #f43f5e; color: #fff !important; border-color: #f43f5e; }
.sx-like.pop { animation: sx-pop .45s ease; }
.sx-d-more { display: flex; justify-content: flex-end; }
.sx-d-more .sx-link-btn { color: var(--sx-muted) !important; font-weight: 600; font-size: .82rem; }
.sx-report { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: #fff1f2; border: 1px solid #fecdd3; }
.sx-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 16px; background: #fefce8; border: 1px dashed #facc15; }
.sx-admin > span { font-weight: 800; font-size: .82rem; color: #854d0e; margin-inline-end: auto; }

/* Preview box */
.sx-preview { border: 1.5px solid var(--sx-line); border-radius: 18px; overflow: hidden; }
.sx-preview-head { padding: 10px 14px; background: #faf8ff; border-bottom: 1px solid var(--sx-line); font-weight: 700; font-size: .85rem; color: var(--sx-ink-2); display: flex; align-items: center; gap: 8px; }
.sx-preview-head i { color: var(--sx-primary); }
.sx-preview-body { padding: 14px; max-height: 340px; overflow-y: auto; }
.sx-p-loading, .sx-p-empty { color: var(--sx-muted); font-size: .88rem; text-align: center; padding: 16px; }
.sx-p-info { font-size: .82rem; font-weight: 700; color: var(--sx-ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.sx-p-info i { color: var(--sx-primary); }
.sx-p-pic { width: 100%; border-radius: 12px; display: block; margin-bottom: 10px; }
.sx-slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.sx-slide { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--sx-line); background: #f6f4fd; display: grid; place-items: center; color: var(--sx-muted); padding: 0; transition: transform .15s, box-shadow .2s; }
.sx-slide:hover { transform: translateY(-2px); box-shadow: var(--sx-shadow); }
.sx-slide img { width: 100%; height: 100%; object-fit: cover; }
.sx-slide span { position: absolute; bottom: 4px; inset-inline-start: 4px; background: rgba(30, 27, 75, .7); color: #fff !important; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.sx-qs { display: flex; flex-direction: column; gap: 8px; }
.sx-q { padding: 10px 12px; border-radius: 12px; background: #faf9ff; border: 1px solid var(--sx-line); }
.sx-q-head { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 600; color: var(--sx-ink); line-height: 1.4; }
.sx-q-head small { margin-inline-start: auto; color: var(--sx-muted); white-space: nowrap; }
.sx-q-n { flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: .74rem; font-weight: 800; color: #fff !important; background: linear-gradient(135deg, var(--a, #6d5efc), var(--b, #a855f7)); }
.sx-q-img { max-width: 100%; max-height: 140px; border-radius: 8px; margin-top: 8px; display: block; }
.sx-q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.sx-q-opts span { font-size: .82rem; padding: 6px 9px; border-radius: 9px; background: #fff; border: 1px solid var(--sx-line); color: var(--sx-ink-2); display: flex; gap: 6px; align-items: center; }
.sx-q-opts span i { color: var(--sx-muted); }
.sx-q-opts span.right { background: #dcfce7; border-color: #86efac; color: #166534 !important; font-weight: 700; }
.sx-q-opts span.right i { color: #16a34a; }
.sx-pairs { display: flex; flex-direction: column; gap: 6px; }
.sx-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.sx-pair > span { padding: 8px 10px; border-radius: 10px; background: #eff6ff; border: 1px solid #bfdbfe; font-size: .85rem; color: var(--sx-ink); display: flex; align-items: center; gap: 6px; }
.sx-pair > span:last-child { background: #fdf4ff; border-color: #f5d0fe; }
.sx-pair img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.sx-pair > i { color: var(--sx-muted); }
.sx-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sx-feats > div { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #f0fdfa; border: 1px solid #99f6e4; font-size: .85rem; font-weight: 600; color: #134e4a; }
.sx-feats i { color: #0d9488; width: 16px; text-align: center; }
.sx-try-wide { margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; border: 0; text-align: start; background: linear-gradient(120deg, #14b8a6, #0ea5e9); color: #fff; box-shadow: 0 10px 24px rgba(14, 165, 233, .3); transition: transform .15s, box-shadow .2s; }
.sx-try-wide:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(14, 165, 233, .4); }
.sx-try-wide b { display: block; color: #fff !important; font-size: .98rem; }
.sx-try-wide small { color: rgba(255, 255, 255, .9) !important; font-size: .78rem; }
.sx-try-ic { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #0d9488 !important; display: grid; place-items: center; flex-shrink: 0; }
.sx-try-ic i { margin-inline-start: 3px; }

/* Publish */
.sx-publish { max-width: 1040px; display: flex; flex-direction: column; overflow: hidden; }
.sx-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 26px 16px; border-bottom: 1px solid var(--sx-line); background: linear-gradient(120deg, #f5f3ff, #fff7ed); flex-shrink: 0; }
.sx-modal-head h2 { font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.sx-modal-head h2 i { color: var(--sx-primary); }
.sx-modal-head p { color: var(--sx-muted) !important; font-size: .88rem; margin-top: 4px; }
.sx-pub-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 26px; padding: 22px 26px; overflow-y: auto; flex: 1; min-height: 0; }
.sx-pub-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sx-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sx-label { font-weight: 700; font-size: .88rem; color: var(--sx-ink) !important; display: flex; align-items: center; gap: 8px; }
.sx-label em { font-style: normal; font-weight: 500; color: var(--sx-muted); font-size: .8rem; }
.sx-step { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff !important; background: linear-gradient(135deg, var(--sx-primary), var(--sx-primary-2)); }
.sx-hint { color: var(--sx-muted); font-size: .8rem; }
.sx-input {
    width: 100%; padding: 11px 14px !important; border-radius: 13px !important; border: 1.5px solid var(--sx-line-2) !important;
    background: #fff !important; color: var(--sx-ink) !important; font-weight: 500; font-size: .95rem; font-family: inherit !important;
    outline: none; transition: border-color .2s, box-shadow .2s; box-shadow: none !important; resize: vertical;
}
.sx-input:focus { border-color: var(--sx-primary) !important; box-shadow: 0 0 0 4px rgba(109, 94, 252, .12) !important; }
.sx-input::placeholder { color: #b3b0c9; }
.sx-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.sx-type { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px; border-radius: 16px; border: 1.5px solid var(--sx-line); background: #fff; transition: all .18s; text-align: center; }
.sx-type b { font-size: .8rem; font-weight: 700; color: var(--sx-ink-2); line-height: 1.2; }
.sx-type-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 16px; background: linear-gradient(135deg, var(--a), var(--b)); }
.sx-type:hover { border-color: var(--a); transform: translateY(-1px); }
.sx-type.selected { border-color: var(--a); background: color-mix(in srgb, var(--a) 10%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 22%, transparent); }
.sx-type.selected b { color: var(--sx-ink); }
.sx-thumb-row { display: flex; align-items: center; gap: 14px; }
.sx-thumb { width: 128px; aspect-ratio: 16 / 10; border-radius: 14px; border: 2px dashed var(--sx-line-2); background: #faf8ff; color: var(--sx-muted); font-size: 24px; display: grid; place-items: center; overflow: hidden; padding: 0; flex-shrink: 0; transition: border-color .2s; }
.sx-thumb:hover { border-color: var(--sx-primary); color: var(--sx-primary); }
.sx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sx-thumb-info { display: flex; flex-direction: column; gap: 4px; font-size: .84rem; color: var(--sx-muted); }
.sx-thumb-info .sx-link-btn { align-self: flex-start; color: #e11d48 !important; }
.sx-pub-preview { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 0; align-self: start; }
.sx-pub-preview .sx-card { animation: none; cursor: default; }
.sx-pub-preview .sx-card:hover { transform: none; }
.sx-pub-note { display: flex; gap: 10px; font-size: .8rem; line-height: 1.45; color: #4b5563; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 10px 12px; border-radius: 14px; }
.sx-pub-note i { color: #16a34a; margin-top: 2px; }
.sx-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 26px 18px; border-top: 1px solid var(--sx-line); background: #fff; flex-shrink: 0; }

/* Lightbox */
.sx-lightbox { position: fixed; inset: 0; z-index: calc(var(--z-auth, 20000000) + 20); background: rgba(15, 12, 41, .92); display: flex; flex-direction: column; animation: sx-fade .2s ease; }
.sx-lb-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; color: #fff; font-weight: 700; }
.sx-lb-head span { color: #fff !important; }
.sx-lb-body { flex: 1; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 16px 24px; min-height: 0; }
.sx-lb-img { flex: 1; max-width: 1100px; height: 100%; display: grid; place-items: center; color: #fff; font-size: 48px; }
.sx-lb-img img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
html[dir="rtl"] .sx-lb-body .fa-chevron-left, html[dir="rtl"] .sx-lb-body .fa-chevron-right { transform: scaleX(-1); }

/* Confetti */
.sx-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2147483640; overflow: hidden; }
.sx-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: sx-fall linear forwards; }

/* ── Motion ── */
@keyframes sx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sx-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes sx-wiggle { 0%, 86%, 100% { rotate: 0deg; } 90% { rotate: -8deg; } 95% { rotate: 8deg; } }
@keyframes sx-ping { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes sx-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes sx-shimmer { to { background-position: -200% 0; } }
@keyframes sx-fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
    .sx-root *, .sx-root *::before, .sx-root *::after { animation: none !important; transition: none !important; }
}

/* ═══ Full preview (sx-viewer) — every item can be seen and tried ═══ */
.sx-card-play.sx-eye { color: var(--b) !important; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.sx-card-play.sx-eye i { margin: 0; }
.sx-card-play.sx-eye::after { display: none; }
.sx-card:hover .sx-card-play.sx-eye, .sx-card:focus-within .sx-card-play.sx-eye { opacity: 1; transform: none; }
@media (hover: none) { .sx-card-play.sx-eye { opacity: 1; transform: none; width: 38px; height: 38px; font-size: 14px; } }
.sx-big-play.sx-eye { opacity: 1 !important; }
.sx-p-more { margin-top: 8px; font-size: .8rem; font-weight: 600; color: var(--sx-primary); text-align: center; }

.sx-viewer {
    position: fixed; top: 0; left: 0; width: var(--app-vw, 100vw); height: var(--app-vh, 100vh);
    z-index: calc(var(--z-auth, 20000000) + 30);
    display: flex; flex-direction: column;
    background: radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--a) 14%, transparent), transparent 60%), #f8f6ff;
    animation: sx-fade .2s ease;
}
.sx-v-head { display: flex; align-items: center; gap: 14px; padding: 12px clamp(14px, 3vw, 28px); background: rgba(255,255,255,.9); border-bottom: 1px solid var(--sx-line); flex-shrink: 0; }
.sx-v-head h2 { font-size: 1.15rem; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.sx-v-head .sx-type-pill { flex-shrink: 0; }
.sx-v-count { font-size: .85rem; font-weight: 700; color: var(--sx-ink-2); background: #fff; border: 1.5px solid var(--sx-line); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.sx-v-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.sx-v-body { flex: 1; min-height: 0; overflow: auto; padding: clamp(14px, 3vw, 28px); display: flex; }
.sx-v-body > * { margin: auto; }
.sx-v-loading { color: var(--sx-muted); font-weight: 600; display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 1rem; margin: auto; }
.sx-v-note { text-align: center; font-size: .78rem; color: var(--sx-muted); padding: 6px 0 10px; flex-shrink: 0; }
.sx-v-hint { text-align: center; color: var(--sx-ink-2) !important; font-weight: 600; margin-bottom: 16px; }
.sx-v-hint i { color: var(--b); }

/* Lesson */
.sx-v-lesson { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 14px; }
.sx-v-stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 14px; }
.sx-v-body > .sx-v-lesson { margin: 0; }
.sx-v-slide { flex: 1; align-self: stretch; position: relative; min-height: 0; display: grid; place-items: center; touch-action: pan-y; }
.sx-v-slide img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(30,27,75,.18); user-select: none; -webkit-user-drag: none; }
.sx-v-nav { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--sx-ink) !important; font-size: 18px; box-shadow: var(--sx-shadow); flex-shrink: 0; transition: transform .15s, opacity .2s; }
.sx-v-nav:hover:not(:disabled) { transform: scale(1.08); color: var(--b) !important; }
.sx-v-nav:disabled { opacity: .3; cursor: default; }
html[dir="rtl"] .sx-v-nav i { transform: scaleX(-1); }
.sx-v-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 8px; flex-shrink: 0; justify-content: safe center; }
.sx-v-thumb { position: relative; flex-shrink: 0; width: 120px; aspect-ratio: 1123 / 794; border-radius: 10px; border: 2px solid transparent; background: #fff; overflow: hidden; display: grid; place-items: center; color: var(--sx-muted); padding: 0; box-shadow: var(--sx-shadow-sm); transition: border-color .2s, transform .15s; }
.sx-v-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sx-v-thumb span { position: absolute; bottom: 3px; inset-inline-start: 3px; background: rgba(30,27,75,.75); color: #fff !important; font-size: .66rem; font-weight: 700; padding: 0 6px; border-radius: 999px; }
.sx-v-thumb.active { border-color: var(--b); transform: translateY(-2px); }

/* Quiz */
.sx-v-quiz { width: 100%; max-width: 900px; display: flex; flex-direction: column; gap: 18px; }
.sx-v-progress { height: 8px; border-radius: 8px; background: #e9e5fb; overflow: hidden; }
.sx-v-progress span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--a), var(--b)); transition: width .4s ease; }
.sx-v-qcard { position: relative; background: #fff; border-radius: 22px; padding: 30px 26px; box-shadow: var(--sx-shadow); text-align: center; }
.sx-v-qtext { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700; color: var(--sx-ink); line-height: 1.4; }
.sx-v-qimg { max-width: 100%; max-height: 260px; border-radius: 12px; margin-top: 16px; }
.sx-v-time { position: absolute; top: 12px; inset-inline-end: 14px; font-size: .8rem; font-weight: 700; color: var(--sx-muted); }
.sx-v-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sx-v-opt { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px; border-radius: 18px; border: 0; background: var(--c); color: #fff !important; font-size: 1.08rem; font-weight: 700; text-align: start; box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 70%, #000); transition: transform .12s, opacity .2s, filter .2s; }
.sx-v-opt span { color: #fff !important; }
.sx-v-opt > i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.22); display: grid; place-items: center; flex-shrink: 0; font-size: 15px; }
.sx-v-opt:hover:not(:disabled) { transform: translateY(-2px); }
.sx-v-opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 70%, #000); }
.sx-v-opt:disabled { cursor: default; }
.sx-v-opt.dim { opacity: .35; filter: grayscale(.6); }
.sx-v-opt.right { outline: 4px solid #22c55e; outline-offset: 3px; }
.sx-v-opt.right > i::before { content: "\f00c"; }
.sx-v-opt.wrong { opacity: .6; }
.sx-v-opt.wrong > i::before { content: "\f00d"; }
.sx-v-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; padding: 12px 16px; border-radius: 18px; box-shadow: var(--sx-shadow-sm); animation: sx-rise .25s ease; }
.sx-v-next .ok { color: #16a34a; font-weight: 800; font-size: 1.05rem; }
.sx-v-next .no { color: #dc2626; font-weight: 800; font-size: 1.05rem; }
.sx-v-end { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; background: #fff; padding: 36px 40px; border-radius: 26px; box-shadow: var(--sx-shadow); }
.sx-v-end h3 { font-size: 1.4rem; font-weight: 800; }
.sx-v-end p { color: var(--sx-muted) !important; }
.sx-v-ring { --p: 0; width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--b) calc(var(--p) * 1%), #ede9fe 0); }
.sx-v-ring b { width: 100px; height: 100px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: var(--sx-ink); }

/* Worksheet */
.sx-v-sheet-wrap { width: 100%; max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.sx-v-switch { align-self: flex-end; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--sx-ink-2); cursor: pointer; background: #fff; padding: 8px 14px; border-radius: 999px; box-shadow: var(--sx-shadow-sm); }
.sx-v-switch input { display: none; }
.sx-v-switch span { width: 38px; height: 22px; border-radius: 22px; background: #d4d0e8; position: relative; transition: background .2s; }
.sx-v-switch span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.sx-v-switch input:checked + span { background: #22c55e; }
.sx-v-switch input:checked + span::after { inset-inline-start: 19px; }
.sx-v-sheet { background: #fff; border-radius: 6px; padding: clamp(24px, 5vw, 56px); box-shadow: 0 18px 50px rgba(30,27,75,.14); color: #111827; font-family: 'Inter', 'Cairo', sans-serif; }
.sx-v-sheet header { border-bottom: 2px solid #111827; padding-bottom: 12px; margin-bottom: 18px; }
.sx-v-sheet h3 { font-size: 1.5rem; font-weight: 800; color: #111827 !important; }
.sx-v-sheet-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: .9rem; color: #374151; }
.sx-v-sheet ol { margin: 0; padding-inline-start: 24px; display: flex; flex-direction: column; gap: 18px; }
.sx-v-sheet li { font-size: 1rem; line-height: 1.5; }
.sx-v-sheet li img { max-width: 60%; max-height: 220px; display: block; margin: 8px 0; border-radius: 6px; }
.sx-v-sq { font-weight: 600; }
.sx-v-sopts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin-top: 8px; }
.sx-v-sopts span { padding: 4px 8px; border-radius: 8px; transition: background .2s; }
.sx-v-line { border-bottom: 1px solid #9ca3af; height: 28px; }
.sx-v-sans { display: none; margin-top: 6px; color: #15803d; font-weight: 700; }
.sx-v-sheet.show-ans .sx-v-sopts .ans { background: #dcfce7; color: #166534; font-weight: 700; }
.sx-v-sheet.show-ans .sx-v-sans { display: block; }

/* Match */
.sx-v-match { width: 100%; max-width: 860px; }
.sx-v-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 4vw, 48px); }
.sx-v-cols > div { display: flex; flex-direction: column; gap: 10px; }
.sx-v-mcard { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 16px; border-radius: 16px; border: 2px solid var(--sx-line); background: #fff; font-size: 1rem; font-weight: 600; color: var(--sx-ink) !important; text-align: start; box-shadow: var(--sx-shadow-sm); transition: border-color .2s, background .2s, transform .15s; }
.sx-v-mcard[data-side="a"] { border-inline-start: 6px solid var(--a); }
.sx-v-mcard[data-side="b"] { border-inline-end: 6px solid var(--b); }
.sx-v-mcard img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.sx-v-mcard:hover:not(.done) { transform: translateY(-1px); border-color: var(--a); }
.sx-v-mcard.picked { background: color-mix(in srgb, var(--a) 14%, #fff); border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 22%, transparent); }
.sx-v-mcard.done { background: #dcfce7; border-color: #86efac; color: #166534 !important; cursor: default; animation: sx-pop .35s ease; }
.sx-v-mcard.shake { animation: sx-shake .35s ease; border-color: #f87171; }
@keyframes sx-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }

/* Insight wall */
.sx-v-wall { width: 100%; max-width: 980px; padding: 28px; border-radius: 22px; background: #d6a86b radial-gradient(rgba(0,0,0,.08) 1px, transparent 1.5px) 0 0 / 7px 7px; box-shadow: inset 0 0 0 10px #a16207, var(--sx-shadow); }
.sx-v-prompt { background: #fff; border-radius: 14px; padding: 20px 24px; font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 700; color: var(--sx-ink); text-align: center; box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.sx-v-prompt img { max-width: 100%; max-height: 220px; border-radius: 10px; margin-bottom: 12px; }
.sx-v-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin-top: 24px; }
.sx-v-note-card { aspect-ratio: 1; background: var(--c); border-radius: 4px; transform: rotate(var(--r)); box-shadow: 0 8px 16px rgba(0,0,0,.18); padding: 14px; font-weight: 600; color: #57534e; font-size: .9rem; font-family: 'Patrick Hand', 'Cairo', cursive; display: flex; align-items: center; gap: 6px; }

/* Jigsaw */
.sx-v-jig { display: grid; grid-template-columns: minmax(0, 560px) 200px; gap: 22px; align-items: start; width: 100%; max-width: 820px; }
.sx-v-jig .sx-v-hint { grid-column: 1 / -1; margin: 0; }
.sx-v-board { display: grid; gap: 3px; aspect-ratio: 1; background: #fff; padding: 3px; border-radius: 12px; box-shadow: var(--sx-shadow); }
.sx-v-piece { border: 0; padding: 0; border-radius: 4px; background-repeat: no-repeat; transition: transform .15s, outline-color .2s; outline: 3px solid transparent; outline-offset: -3px; }
.sx-v-piece:hover { transform: scale(.97); }
.sx-v-piece.picked { outline-color: var(--b); transform: scale(.94); }
.sx-v-jig-side { display: flex; flex-direction: column; gap: 10px; }
.sx-v-jig-side img { width: 100%; border-radius: 12px; box-shadow: var(--sx-shadow-sm); opacity: .9; }

/* Sketch */
.sx-v-sketch { width: 100%; max-width: 1100px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: stretch; }
.sx-v-task { background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--sx-shadow); display: flex; flex-direction: column; gap: 14px; }
.sx-v-task .sx-v-qtext { text-align: start; font-size: 1.2rem; }
.sx-v-task img { max-width: 100%; border-radius: 12px; }
.sx-v-pad { background: #fff; border-radius: 20px; box-shadow: var(--sx-shadow); overflow: hidden; display: flex; flex-direction: column; min-height: 420px; }
.sx-v-pad-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--sx-line); }
.sx-v-pad-bar > span { margin-inline-start: auto; font-size: .8rem; color: var(--sx-muted); }
.sx-v-ink { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1.5px var(--sx-line-2); padding: 0; }
.sx-v-ink.on { box-shadow: 0 0 0 3px var(--c); }
.sx-v-canvas { flex: 1; position: relative; background: #fff radial-gradient(#d4d0e8 1px, transparent 1.4px) 0 0 / 22px 22px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.sx-v-canvas:not([style]) { background: #fff radial-gradient(#d4d0e8 1px, transparent 1.4px) 0 0 / 22px 22px; }
.sx-v-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }

@media (max-width: 720px) {
    .sx-v-head { flex-wrap: wrap; gap: 8px; }
    .sx-v-head h2 { order: 3; flex-basis: 100%; font-size: 1rem; }
    .sx-v-actions { margin-inline-start: auto; }
    .sx-v-actions .sx-btn span { display: none; }
    .sx-v-actions .sx-btn { width: 42px; padding: 0; }
    .sx-v-nav { display: none; }
    .sx-v-thumb { width: 84px; }
    .sx-v-opts, .sx-v-sopts, .sx-v-sketch, .sx-v-jig { grid-template-columns: 1fr; }
    .sx-v-opt { min-height: 60px; font-size: 1rem; }
    .sx-v-jig-side { display: none; }
    .sx-v-body { padding: 12px; }
}

/* ═══ Collections (detail window) ═══ */
.sx-coll { border-radius: 18px; padding: 16px; background: linear-gradient(135deg, #f5f3ff, #fdf2f8); border: 1.5px solid #e9d5ff; display: flex; flex-direction: column; gap: 12px; }
.sx-coll-head { display: flex; gap: 12px; align-items: center; }
.sx-coll-head b { display: block; font-size: 1rem; font-weight: 800; color: var(--sx-ink); }
.sx-coll-head small { font-size: .82rem; color: var(--sx-ink-2); }
.sx-coll-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--sx-primary), #ec4899); flex-shrink: 0; box-shadow: 0 6px 14px rgba(168, 85, 247, .35); }
.sx-coll-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.sx-coll-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--sx-line); cursor: pointer; transition: border-color .2s; }
.sx-coll-row:hover { border-color: var(--a); }
.sx-coll-row.self { cursor: default; background: #faf8ff; }
.sx-coll-row input { width: 18px; height: 18px; accent-color: var(--sx-primary); flex-shrink: 0; margin: 0; }
.sx-coll-tic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 13px; background: linear-gradient(135deg, var(--a), var(--b)); flex-shrink: 0; }
.sx-coll-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sx-coll-txt b { font-size: .88rem; font-weight: 700; color: var(--sx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-coll-txt small { font-size: .74rem; color: var(--sx-muted); }
.sx-coll-eye { border: 0; background: #f3f0ff; color: var(--sx-primary) !important; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.sx-coll-eye:hover { background: var(--sx-primary); color: #fff !important; }
.sx-coll-btn { width: 100%; background: linear-gradient(135deg, var(--sx-primary), #ec4899) !important; }

/* ═══ Filters, grades, complete units, subject tiles ═══ */
.sx-filters {
    position: relative; z-index: 1; margin: var(--sx-gap) 0 0; padding: 6px 18px;
    background: var(--sx-surface); border: 1px solid var(--sx-line); border-radius: 20px; box-shadow: var(--sx-shadow-sm);
    display: flex; flex-direction: column; scroll-margin-top: 0;
}
.sx-frow { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 8px 0; }
.sx-frow + .sx-frow { border-top: 1px solid var(--sx-line); }
.sx-flabel {
    flex: 0 0 84px; display: inline-flex; align-items: center; gap: 8px;
    font-size: .74rem; font-weight: 800; color: var(--sx-muted) !important; text-transform: uppercase; letter-spacing: .06em !important;
}
.sx-flabel i { color: var(--sx-primary); width: 14px; text-align: center; }
/* One line each; the row scrolls sideways and fades at the end instead of wrapping */
.sx-filters .sx-subjects {
    flex: 1; min-width: 0; display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 2px 24px 2px 2px; margin-inline-end: -24px;
    scrollbar-width: none; mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
html[dir="rtl"] .sx-filters .sx-subjects { mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent); -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 36px), transparent); padding: 2px 2px 2px 24px; }
.sx-filters .sx-subjects::-webkit-scrollbar { display: none; }
.sx-chip em {
    font-style: normal; font-size: .68rem; font-weight: 800; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px;
    display: inline-grid; place-items: center; margin-inline-start: 2px;
    background: var(--sx-bg); color: var(--sx-ink-2);
}
.sx-chip.active em { background: rgba(255, 255, 255, .18); color: #fff; }
/* Grades: a segmented strip of equal cells */
.sx-filters .sx-grades { display: flex; gap: 0; padding: 0; margin: 0; mask-image: none; -webkit-mask-image: none; border: 1.5px solid var(--sx-line); border-radius: 999px; overflow: hidden; }
.sx-grades .sx-chip { flex: 1 1 0; min-width: 0; height: 34px; border: 0; border-radius: 0; padding: 0 6px; gap: 5px; font-size: .82rem; justify-content: center; }
.sx-grades .sx-chip + .sx-chip { border-inline-start: 1px solid var(--sx-line); }
.sx-grades .sx-chip em { display: none; }
.sx-grades .sx-chip.active { border-color: var(--sx-ink); }
.sx-factive { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0 8px; border-top: 1px solid var(--sx-line); }
.sx-fpill {
    display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 0;
    background: #eef2ff; color: #3730a3 !important; font-weight: 700; font-size: .8rem;
}
.sx-fpill i { font-size: .72rem; opacity: .7; }
.sx-fpill:hover { background: #e0e7ff; }

.sx-unit-link {
    display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; border: 0;
    background: #fef3c7; color: #92400e !important; font-weight: 800; font-size: .76rem;
}
.sx-unit-link:hover { filter: brightness(.97); }
html[dir="rtl"] .sx-unit-link .fa-arrow-right, html[dir="rtl"] .sx-unit-back i { transform: scaleX(-1); }

.sx-more { display: flex; justify-content: center; margin-top: 28px; }

/* Unit card: the subject colour fills the cover; the title lives on it */
.sx-unit-cover {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden; padding: 14px 16px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 80%, #171a3b));
}
.sx-unit-cover::before { content: ''; position: absolute; inset: 0; opacity: .14; pointer-events: none; background-image: radial-gradient(#fff 1px, transparent 1.3px); background-size: 14px 14px; }
.sx-unit-big { position: absolute; inset-inline-end: 14px; top: 12px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; color: var(--c); background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); transition: transform .3s ease; }
.sx-unit:hover .sx-unit-big { transform: rotate(-6deg) scale(1.06); }
.sx-unit-tags { position: relative; display: flex; flex-wrap: wrap; gap: 6px; padding-inline-end: 56px; }
.sx-unit-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; background: rgba(255, 255, 255, .22); color: #fff !important; border: 1px solid rgba(255, 255, 255, .3); }
.sx-unit-chip.light { background: rgba(0, 0, 0, .18); border-color: transparent; }
.sx-unit-title { position: relative; color: #fff !important; font-size: 1.1rem !important; font-weight: 800 !important; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0, 0, 0, .2) !important; }
.sx-unit-body { padding: 12px 16px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'a b' 'c c'; align-items: center; gap: 10px 10px; }
.sx-unit-body > .sx-subj { grid-area: a; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-unit-body small { grid-area: b; color: var(--sx-muted); font-size: .76rem; font-weight: 600; white-space: nowrap; unicode-bidi: plaintext; }
.sx-unit-types { grid-area: c; display: flex; gap: 4px; }
.sx-unit-types span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); }

/* Open unit: header */
.sx-unit-head {
    position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 24px; margin-bottom: 28px;
    background: var(--sx-surface); border: 1px solid var(--sx-line); box-shadow: var(--sx-shadow-sm); animation: sx-rise .4s ease both;
}
.sx-unit-head::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--c); }
html[dir="rtl"] .sx-unit-head::before { inset: 0 0 0 auto; }
.sx-unit-ic { width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0; display: grid; place-items: center; font-size: 26px; color: #fff; background: var(--c); }
.sx-unit-head-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sx-unit-head-txt h2 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 800; line-height: 1.2; }
.sx-unit-kicker { font-size: .78rem; font-weight: 800; color: var(--c) !important; text-transform: uppercase; letter-spacing: .05em !important; }
.sx-unit-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-unit-kinds span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--b) !important; background: color-mix(in srgb, var(--a) 14%, #fff); }

/* Browse by subject: 12 tiles → 6 / 4 / 3 / 2 columns, always full rows */
.sx-subj-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sx-subj-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 18px; text-align: start; min-width: 0;
    border: 1px solid var(--sx-line); background: var(--sx-surface) !important; box-shadow: var(--sx-shadow-sm);
    transition: transform .18s ease, box-shadow .2s, border-color .2s;
}
.sx-subj-tile:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: var(--sx-shadow); }
.sx-subj-tile-ic { width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--c); }
.sx-subj-tile-txt { display: flex; flex-direction: column; min-width: 0; width: 100%; line-height: 1.25; }
.sx-subj-tile-txt b { font-size: .92rem; font-weight: 800; color: var(--sx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-subj-tile-txt small { font-size: .74rem; color: var(--sx-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Columns per width (cards, shelves, subject tiles share them) ── */
@media (max-width: 1100px) { .sx-root { --sx-cols: 3; } .sx-subj-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sx-hero-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .sx-root { --sx-cols: 2; --sx-gap: 14px; } .sx-subj-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sx-root { --sx-cols: 1; } .sx-subj-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 980px) {
    .sx-hero { grid-template-columns: 1fr; }
    .sx-hero-art { display: none; }
    .sx-detail { grid-template-columns: 1fr; overflow-y: auto; }
    .sx-detail-cover { min-height: 220px; aspect-ratio: 16 / 9; }
    .sx-detail-body { max-height: none; overflow: visible; }
    .sx-pub-body { grid-template-columns: 1fr; }
    .sx-pub-preview { position: static; order: -1; max-width: 320px; }
    .sx-pub-preview .sx-pub-note { display: none; }
}
@media (max-width: 720px) {
    .sx-top { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 16px; }
    .sx-brand-txt small { display: none; }
    .sx-brand-ic { width: 36px; height: 36px; font-size: 16px; }
    .sx-search { order: 3; flex-basis: 100%; max-width: none; height: 42px; }
    .sx-top-actions { margin-inline-start: auto; }
    .sx-top-actions .sx-btn span { display: none; }
    .sx-top-actions .sx-btn { width: 42px; padding: 0; }
    .sx-scroll { padding: 14px 16px 48px; }
    .sx-hero { border-radius: 20px; padding: 24px 20px; }
    .sx-hero-cta .sx-btn { flex: 1 1 auto; }
    .sx-cats { margin-top: 20px; border-radius: 18px; display: flex; overflow-x: auto; }
    .sx-cat { flex: 0 0 auto; }
    #sx-home > section, .sx-shelf, #sx-grid-head { margin-top: 32px; }
    .sx-filters { padding: 2px 12px; border-radius: 16px; }
    .sx-frow { flex-wrap: wrap; gap: 6px; }
    .sx-flabel { flex-basis: 100%; }
    .sx-filters .sx-grades { overflow-x: auto; }
    .sx-grades .sx-chip { flex: 0 0 auto; padding: 0 12px; }
    .sx-card-desc, .sx-card-teacher > span:last-child { display: none; }
    .sx-promo { flex-direction: column; text-align: center; }
    .sx-sort { margin-inline-start: 0; }
    #store-detail-clone { flex-basis: 100%; }
    .sx-modal-wrap { padding: 0; align-items: flex-end; }
    .sx-modal { border-radius: 24px 24px 0 0; max-height: calc(var(--app-vh, 100vh) - 24px); }
    .sx-detail-body { padding: 22px 18px; }
    .sx-d-stats { grid-template-columns: repeat(2, 1fr); }
    .sx-row2, .sx-feats, .sx-q-opts { grid-template-columns: 1fr; }
    .sx-pub-body { padding: 16px 18px; }
    .sx-modal-head { padding: 18px 18px 12px; }
    .sx-modal-foot { padding: 12px 18px 16px; }
    .sx-prof-head { flex-direction: column; text-align: center; padding: 56px 18px 22px; }
    .sx-prof-avatar { margin: 0; }
    .sx-prof-stats { justify-content: center; }
    .sx-unit-head { flex-direction: column; align-items: flex-start; padding: 56px 18px 20px; }
    .sx-unit-head .sx-unit-back { position: absolute; top: 12px; inset-inline-start: 12px; }
    .sx-unit-head .sx-btn { width: 100%; }
}
@media (max-width: 480px) {
    .sx-card-desc { display: -webkit-box; }
    .sx-hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .sx-hstat { padding: 12px 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   Play-Store look (Nov 10 2026): clean white page, featured carousel,
   side-scrolling rows with arrows, a green Add button on every card,
   and an app-page detail window (icon, stats row, big Add, pictures row).
   ═══════════════════════════════════════════════════════════════ */
.sx-root { --sx-get: #01875f; --sx-get-2: #016d4d; --sx-get-soft: #e6f4ea; }
.sx-overlay { background: #fff !important; }
.sx-top { background: rgba(255, 255, 255, .96); }

/* Categories → simple outlined pills like Phone / Tablet / TV */
.sx-cats { display: flex; gap: 10px; flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 4px 2px 8px; background: none; border: 0; box-shadow: none; border-radius: 0; }
.sx-cat { flex: 0 0 auto; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--sx-line-2) !important; background: #fff !important; gap: 8px; }
.sx-cat:hover { background: #f6f6f9 !important; }
.sx-cat-ic { width: auto; height: auto; background: none !important; color: var(--sx-ink-2); font-size: 14px; }
.sx-cat-txt b { font-weight: 600; font-size: .9rem; }
.sx-cat-txt small { display: none; }
.sx-cat.active { background: var(--sx-get-soft) !important; border-color: transparent !important; }
.sx-cat.active .sx-cat-ic { background: none !important; color: var(--sx-get); }
.sx-cat.active .sx-cat-txt b { color: var(--sx-get-2) !important; }
.sx-cat .sx-new { top: -7px; }

/* ── Featured carousel ── */
.sx-feature { position: relative; margin: 14px 0 0; }
.sx-feature + .sx-hero-stats + .sx-filters, .sx-feature ~ .sx-filters { margin-top: 22px; }
.sx-feature.sx-feat-empty { display: none; }
.sx-rail { display: grid; grid-auto-flow: column; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.sx-rail::-webkit-scrollbar { display: none; }
.sx-rail > * { scroll-snap-align: start; }
.sx-feat-track { grid-auto-columns: calc((100% - 16px) / 2); gap: 16px; padding: 4px 2px 10px; }
.sx-feat { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; cursor: pointer; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 1px 3px rgba(23, 26, 59, .12), 0 6px 18px rgba(23, 26, 59, .1); transition: box-shadow .25s; }
.sx-feat:hover { box-shadow: 0 2px 6px rgba(23, 26, 59, .14), 0 14px 32px rgba(23, 26, 59, .16); }
.sx-feat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sx-feat:hover .sx-feat-img { transform: scale(1.03); }
.sx-feat-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 12, 30, .55) 62%, rgba(10, 12, 30, .88)); }
.sx-feat-txt { position: absolute; inset-inline: 22px; bottom: 82px; }
.sx-root .sx-feat-txt h3 { color: #fff !important; font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 800; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sx-root .sx-feat-txt p { color: rgba(255, 255, 255, .82) !important; font-size: .9rem; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sx-feat-bar { position: absolute; inset-inline: 16px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: 18px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sx-feat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: #fff; font-size: 18px; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.sx-feat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sx-root .sx-feat-who b { color: #fff !important; font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-root .sx-feat-who small { color: rgba(255, 255, 255, .78) !important; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-feat-btns { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sx-feat-try { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--sx-ink) !important; display: grid; place-items: center; font-size: 14px; }
.sx-feat-try:hover { background: #fff; }
.sx-feat-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.sx-feat-dots i { width: 7px; height: 7px; border-radius: 999px; background: var(--sx-line-2); transition: width .25s, background .25s; }
.sx-feat-dots i.on { width: 20px; background: var(--sx-get); }

/* Round arrow buttons beside a row (hidden on touch screens; swipe instead) */
.sx-rail-wrap { position: relative; }
.sx-rail-btn { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 0; background: #fff; color: var(--sx-ink) !important; display: grid; place-items: center; font-size: 15px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2), 0 4px 12px rgba(0, 0, 0, .14); opacity: 0; transition: opacity .2s, transform .2s; }
.sx-rail-btn.prev { inset-inline-start: -14px; }
.sx-rail-btn.next { inset-inline-end: -14px; }
.sx-feature .sx-rail-btn { margin-top: -36px; }
.sx-feature .sx-rail-btn.prev { inset-inline-start: 8px; }
.sx-feature .sx-rail-btn.next { inset-inline-end: 8px; }
.sx-rail-wrap:hover > .sx-rail-btn:not(:disabled), .sx-feature:hover > .sx-rail-btn:not(:disabled), .sx-rail-btn:focus-visible { opacity: 1; }
.sx-rail-btn:hover { transform: scale(1.06); }
.sx-rail-btn:disabled { opacity: 0 !important; pointer-events: none; }
html[dir="rtl"] .sx-rail-btn i { transform: scaleX(-1); }
@media (hover: none) { .sx-rail-btn { display: none; } }

/* ── Shelves = one sideways row each ── */
#sx-home > section, .sx-shelf { margin-top: 36px; }
.sx-shelf .sx-section-head { margin-bottom: 12px; }
.sx-shelf .sx-section-head h2, #sx-grid-head h2 { font-size: 1.3rem; font-weight: 700 !important; }
.sx-shelf .sx-section-head p { font-size: .84rem; }
.sx-see-all { border: 0; background: none; height: auto; padding: 6px 4px; color: var(--sx-get) !important; }
.sx-see-all:hover { text-decoration: underline; }
.sx-shelf-row.sx-rail { grid-template-columns: none; grid-template-rows: none; grid-auto-rows: auto; grid-auto-columns: calc((100% - 3 * 16px) / 4); column-gap: 16px; gap: 16px; padding: 4px 2px 14px; overflow-x: auto; }
.sx-shelf-row.sx-rail > .sx-unit { min-width: 0; }

/* ── Cards: cleaner, with the Add button in the corner ── */
.sx-card { border-radius: 18px; box-shadow: none; border-color: #ececf2; }
.sx-card:hover { transform: none; box-shadow: 0 2px 6px rgba(23, 26, 59, .06), 0 10px 24px rgba(23, 26, 59, .08); }
.sx-card-cover { border-radius: 14px; margin: 8px 8px 0; border: 0; }
.sx-card-body { padding: 10px 12px 2px; gap: 5px; }
.sx-card-title { font-size: .96rem !important; font-weight: 600 !important; min-height: 0; }
.sx-card-desc { display: none; }
.sx-card .sx-card-teacher { align-self: flex-start; padding: 2px 8px 2px 2px; margin-inline-start: -2px; }
.sx-card .sx-card-teacher > span:last-child { font-size: .78rem; font-weight: 500; color: var(--sx-muted); max-width: 170px; }
.sx-card-foot { padding: 8px 12px 12px; }
.sx-card-stats { font-weight: 600; font-size: .76rem; }

/* The Add / Play / Open button — always green, always in the same spot */
.sx-get { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--sx-get) !important; color: #fff !important; font-weight: 700; font-size: .84rem; white-space: nowrap; flex-shrink: 0; transition: background .2s, transform .15s; }
.sx-get:hover { background: var(--sx-get-2) !important; }
.sx-get:active { transform: scale(.96); }
.sx-get i { font-size: .78rem; }
.sx-get.big { height: 44px; padding: 0 22px; font-size: .95rem; }
.sx-get-mine { background: var(--sx-get-soft) !important; color: var(--sx-get-2) !important; }
.sx-get-mine:hover { background: #d3ecdc !important; }
.sx-feat .sx-get { height: 40px; padding: 0 20px; font-size: .9rem; }

/* ── Detail = app page ── */
.sx-detail { display: block; max-width: 860px; overflow: hidden; }
.sx-detail .sx-detail-body { padding: 30px 32px 28px; max-height: calc(var(--app-vh, 100vh) - 40px); overflow-y: auto; gap: 18px; }
.sx-d-head { display: flex; gap: 20px; align-items: flex-start; padding-inline-end: 44px; }
.sx-d-icon { width: 96px; height: 96px; border-radius: 22px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; color: #fff; font-size: 38px; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 1px 3px rgba(0, 0, 0, .15), 0 6px 16px rgba(0, 0, 0, .1); }
.sx-d-icon.has-img { background: #f1f1f6; }
.sx-d-icon img { width: 100%; height: 100%; object-fit: cover; }
.sx-d-headtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sx-d-title { font-size: 1.6rem !important; font-weight: 700 !important; }
.sx-detail .sx-d-teacher { display: inline-flex; width: auto; align-self: flex-start; gap: 8px; padding: 2px 10px 2px 2px; border: 0; border-radius: 999px; background: none; }
.sx-detail .sx-d-teacher:hover { background: var(--sx-get-soft); }
.sx-detail .sx-d-teacher b { color: var(--sx-get) !important; font-weight: 600; font-size: .95rem; }
.sx-detail .sx-pills { padding-inline-end: 0; gap: 6px; }
.sx-detail .sx-d-stats { display: flex; gap: 0; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.sx-detail .sx-d-stats > div { flex: 1 1 0; min-width: 90px; background: none; border: 0; border-radius: 0; padding: 4px 10px; position: relative; }
.sx-detail .sx-d-stats > div + div::before { content: ''; position: absolute; inset-inline-start: 0; top: 20%; height: 60%; width: 1px; background: var(--sx-line-2); }
.sx-detail .sx-d-stats b { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.sx-detail .sx-d-stats b i { font-size: 13px; color: var(--sx-ink-2); }
.sx-detail .sx-d-stats b .fa-heart { color: #f43f5e; }
.sx-detail .sx-d-stats small { font-size: .76rem; }
.sx-detail .sx-d-actions { gap: 10px; }
.sx-detail .sx-d-actions .sx-btn { flex: 0 1 auto; height: 46px; border-radius: 12px; }
.sx-detail .sx-d-actions #store-detail-clone { flex: 1 1 260px; max-width: 420px; }
.sx-btn-get.sx-btn-primary { background: var(--sx-get) !important; box-shadow: none; }
.sx-btn-get.sx-btn-primary:hover:not(:disabled) { background: var(--sx-get-2) !important; transform: none; }
.sx-detail .sx-like { width: 46px; height: 46px; }

/* Pictures row */
.sx-shots { grid-auto-columns: min(78%, 480px); gap: 12px; padding: 2px 2px 6px; }
.sx-shot { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--sx-line); background: #f4f4f8; min-height: 0; }
.sx-shots .sx-detail-cover { min-height: 0; }
.sx-shots .sx-detail-cover .sx-cover-ic { width: 76px; height: 76px; border-radius: 22px; font-size: 30px; }
.sx-shots .sx-slide { display: grid; place-items: center; padding: 0; color: var(--sx-muted); cursor: zoom-in; }
.sx-shots .sx-slide img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sx-shots .sx-slide span { bottom: 8px; inset-inline-start: 8px; font-size: .72rem; }
.sx-shots-wrap .sx-rail-btn { margin-top: -26px; }
.sx-shots-wrap .sx-rail-btn.prev { inset-inline-start: 6px; }
.sx-shots-wrap .sx-rail-btn.next { inset-inline-end: 6px; }
.sx-d-about h3 { font-size: 1.1rem; font-weight: 700 !important; margin-bottom: 8px; }
.sx-d-about .sx-tags { margin-top: 12px; }

/* Sizes */
@media (max-width: 1100px) {
    .sx-shelf-row.sx-rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
    .sx-feat-track { grid-auto-columns: calc((100% - 16px) / 1.3); }
}
@media (max-width: 980px) {
    .sx-detail { grid-template-columns: none; display: block; overflow-y: auto; }
    .sx-detail .sx-detail-body { max-height: none; overflow: visible; }
    .sx-shots .sx-detail-cover { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
    .sx-shelf-row.sx-rail { grid-auto-columns: 62%; gap: 12px; }
    .sx-feat-track { grid-auto-columns: 88%; gap: 12px; }
    .sx-feat { border-radius: 18px; aspect-ratio: 4 / 3.2; }
    .sx-feat-txt { inset-inline: 16px; bottom: 76px; }
    .sx-feat-bar { inset-inline: 10px; bottom: 10px; gap: 10px; }
    .sx-feat-ic { width: 38px; height: 38px; font-size: 15px; }
    .sx-feat .sx-get { height: 36px; padding: 0 14px; }
    .sx-feat-try { display: none; }
    .sx-cats { margin-top: 0; }
    .sx-card .sx-card-teacher > span:last-child { display: inline; max-width: 120px; }
    .sx-detail .sx-detail-body { padding: 22px 18px; }
    .sx-d-head { gap: 14px; padding-inline-end: 40px; }
    .sx-d-icon { width: 72px; height: 72px; border-radius: 18px; font-size: 28px; }
    .sx-d-title { font-size: 1.25rem !important; }
    .sx-detail .sx-d-stats { display: flex; }
    .sx-detail .sx-d-actions #store-detail-clone { flex-basis: 100%; max-width: none; }
    .sx-detail .sx-d-actions .sx-btn:not(#store-detail-clone) { flex: 1 1 0; }
    .sx-shots { grid-auto-columns: 86%; }
}
@media (max-width: 480px) {
    .sx-shelf-row.sx-rail { grid-auto-columns: 74%; }
    .sx-card-desc { display: none; }
}
.sx-detail .sx-detail-body > * { flex-shrink: 0; }
.sx-shots .sx-slide img { position: absolute; inset: 0; }
.sx-shots .sx-detail-cover .sx-cover.has-img { padding: 0; }
@media (max-width: 720px) {
    .sx-subj-tiles { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
    .sx-subj-tiles::-webkit-scrollbar { display: none; }
    .sx-subj-tiles > * { scroll-snap-align: start; }
}
@media (max-width: 720px) {
    .sx-detail .sx-d-stats > div { min-width: 0; padding: 4px 6px; }
    .sx-detail #sx-d-date { font-size: .82rem; white-space: normal; text-align: center; line-height: 1.2; }
}

/* ═══ Store button on the board (top bar): a polished gold pill with the app icon in gold + "Store"
   (like a gold award plaque). Lives here, after theme-override.css, so every theme keeps it. */
#btn-activity-store.sx-launch {
    width: auto !important; min-width: 0 !important; padding: 0 13px 0 7px !important; gap: 7px !important;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px !important; border: 1px solid rgba(170, 130, 40, .22) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 60%),
        linear-gradient(120deg, #f6e3b0 0%, #fbf0d2 35%, #fdf6e2 50%, #f5e2ad 75%, #eed59a 100%) !important;
    color: #6b4e12 !important; font-family: 'Outfit', 'Cairo', system-ui, sans-serif !important;
    font-weight: 800 !important; font-size: .9rem !important; letter-spacing: .02em;
    box-shadow: 0 1px 2px rgba(30, 41, 59, .06), 0 6px 20px rgba(160, 120, 30, .12), inset 0 1px 0 rgba(255, 255, 255, .8) !important;
    position: relative; overflow: hidden; isolation: isolate;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}
html[dir="rtl"] #btn-activity-store.sx-launch { padding: 0 7px 0 13px !important; }
#btn-activity-store.sx-launch .sx-launch-ic { width: 26px; height: 23px; flex-shrink: 0; filter: drop-shadow(0 1px 1px rgba(90, 55, 0, .18)); }
#btn-activity-store.sx-launch .sx-launch-txt {
    color: #6b4e12 !important; -webkit-text-fill-color: #6b4e12 !important; white-space: nowrap; line-height: 1;
    text-shadow: 0 1px 0 rgba(255, 248, 210, .7) !important;
}
/* A soft shine glides across the gold every few seconds */
#btn-activity-store.sx-launch::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-18deg); animation: sx-launch-shine 6s ease-in-out infinite;
}
#btn-activity-store.sx-launch:hover { transform: translateY(-1px) !important; filter: brightness(1.04); box-shadow: 0 2px 4px rgba(30, 41, 59, .08), 0 10px 24px rgba(160, 120, 30, .18), inset 0 1px 0 rgba(255, 255, 255, .85) !important; }
#btn-activity-store.sx-launch:active { transform: scale(.97) !important; }
#btn-activity-store.sx-launch:hover .sx-launch-ic { animation: sx-launch-bounce .5s ease; }
@keyframes sx-launch-shine { 0%, 66% { left: -60%; } 86%, 100% { left: 130%; } }
@keyframes sx-launch-bounce { 0%, 100% { transform: none; } 40% { transform: translateY(-2px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { #btn-activity-store.sx-launch::after { animation: none; } }
/* Small screens: just the gold icon */
@media (max-width: 600px) { #btn-activity-store.sx-launch .sx-launch-txt { display: none; } #btn-activity-store.sx-launch { padding: 0 !important; aspect-ratio: 1; } }
