/* =========================================================
   ExitScam â€” Shared Pages
   Store Â· Banned Â· Wheel Â· Lua Docs
   Tokens align with exitscam-landing.css (--p-*)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    --p-bg:             #000000;
    --p-bg-2:           #0A0A0A;
    --p-surface:        #111111;
    --p-surface-2:      #171717;
    --p-glass:          rgba(10, 10, 10, 0.65);
    --p-glass-raised:   rgba(23, 23, 23, 0.85);
    --p-border:         rgba(255, 255, 255, 0.08);
    --p-border-accent:  rgba(255, 255, 255, 0.28);
    --p-accent:         #FFFFFF;
    --p-accent-dim:     rgba(255, 255, 255, 0.08);
    --p-accent-glow:    rgba(255, 255, 255, 0.18);
    --p-text:           #FAFAFA;
    --p-muted:          #737373;
    --p-muted-2:        #525252;
    --p-wrap:           1120px;
    --p-radius:         8px;
    --p-radius-lg:      14px;
    --p-radius-xl:      20px;
    --p-ease:           cubic-bezier(0.16, 1, 0.3, 1);
    --p-font-display:   'Syne', system-ui, sans-serif;
    --p-font-body:      'DM Sans', system-ui, sans-serif;
}

/* â”€â”€ Shared page base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.es-page {
    font-family: var(--p-font-body);
    color: var(--p-text);
    background: var(--p-bg);
    -webkit-font-smoothing: antialiased;
}

.es-page-wrap {
    width: 100%;
    max-width: var(--p-wrap);
    margin: 0 auto;
    padding: 0 28px;
}

@keyframes es-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes es-pulse {
    0%, 100% { opacity: 0.45; }
    50%       { opacity: 1; }
}

@keyframes es-scroll-x {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   STORE â€” products.php (matches main pricing cards)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.p-store-page.p-pricing {
    padding-top: 120px;
    padding-bottom: 96px;
    min-height: 100vh;
}

.p-store-page .p-section__head {
    margin-bottom: 28px;
}

.p-store-page .p-price-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0f0f0f;
    overflow: hidden;
    border-bottom: 1px solid var(--p-border);
}

.p-store-page .p-price-card__img,
.p-store-page .p-price-card__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease, opacity 0.35s ease;
}

.p-store-page .p-price-card:hover .p-price-card__img {
    transform: scale(1.04);
}

.p-store-page .p-price-card__video {
    opacity: 0;
    z-index: 1;
}

.p-store-page .p-price-card__media-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
}

.p-store-page .p-price-card__stock,
.p-store-page .p-price-card__sale {
    position: absolute;
    z-index: 3;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 6px;
}

.p-store-page .p-price-card__stock {
    right: 12px;
    color: #e5e5e5;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
}

.p-store-page .p-price-card__stock-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.7);
}

.p-store-page .p-price-card__sale {
    left: 12px;
    color: #000;
    background: #fff;
}

.p-store-page .p-price-card__featured-badge {
    z-index: 4;
}

.p-store-page .p-price-card--featured .p-price-card__head {
    padding-top: 28px;
}

.p-store-empty {
    text-align: center;
    padding: 64px 24px;
    margin: 24px 0 40px;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-xl);
    background: var(--p-glass);
}

.p-store-empty h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.p-store-empty p {
    margin: 0 0 20px;
    color: var(--p-muted);
    font-size: 0.9rem;
}

.p-store-cats {
    padding: 8px 0 28px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.p-store-cats::-webkit-scrollbar { display: none; }

.p-store-cats__row {
    display: flex;
    gap: 8px;
    min-width: max-content;
    justify-content: center;
    flex-wrap: wrap;
    min-width: 0;
}

.p-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--p-border);
    color: var(--p-muted);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}

.p-cat-btn:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.05);
}

.p-cat-btn.is-active {
    color: #000;
    background: #fff;
    border-color: #fff;
}

.p-cat-btn.is-active .p-cat-btn__count {
    background: rgba(0,0,0,0.1);
    color: #000;
}

.p-cat-btn__count {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.65;
    background: rgba(255,255,255,0.08);
    padding: 1px 7px;
    border-radius: 4px;
}

/* legacy product-card rules kept inert; store uses p-price-card */
.p-store-hero {
    display: none;
}

.p-product-card--featured {
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .p-product-card--featured {
        display: grid;
        grid-template-columns: 1.15fr 1fr;
        align-items: stretch;
    }
    .p-product-card--featured .p-product-card__media {
        aspect-ratio: auto;
        min-height: 320px;
        height: 100%;
    }
    .p-product-card--featured .p-product-card__body {
        justify-content: center;
        padding: 36px 32px;
    }
    .p-product-card--featured .p-product-card__title {
        font-size: clamp(1.45rem, 2.2vw, 1.9rem);
        left: 22px;
        right: 22px;
        bottom: 20px;
    }
    .p-product-card--featured .p-product-card__desc {
        -webkit-line-clamp: 4;
        max-width: 42ch;
        font-size: 14px;
    }
}

.p-product-card {
    display: flex;
    flex-direction: column;
    background: #0A0A0A;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s var(--p-ease), transform 0.25s var(--p-ease), box-shadow 0.25s var(--p-ease);
}

.p-product-card:hover {
    border-color: rgba(255,255,255,0.22);
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
}

.p-product-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #111;
    overflow: hidden;
}

.p-product-card__img,
.p-product-card__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--p-ease), opacity 0.35s ease;
}

.p-product-card:hover .p-product-card__img { transform: scale(1.05); }

.p-product-card__video { opacity: 0; }

.p-product-card__media-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.25) 45%, transparent 70%);
    pointer-events: none;
}

.p-product-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.p-product-card__badge {
    font-size: 9px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.p-product-card__badge--sale {
    background: #fff;
    color: #000;
}

.p-product-card__badge--cat {
    background: rgba(0,0,0,0.65);
    color: rgba(255,255,255,0.8);
    border: 1px solid var(--p-border);
    backdrop-filter: blur(8px);
}

.p-product-card__stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 9px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #e5e5e5;
}

.p-product-card__stock-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    animation: es-pulse 2s infinite;
}

.p-product-card__title {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    margin: 0;
    font-family: var(--p-font-display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}

.p-product-card__body {
    padding: 16px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.p-product-card__cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--p-muted);
    margin-bottom: 6px;
}

.p-product-card__name {
    font-family: var(--p-font-display);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    line-height: 1.2;
}

.p-product-card__desc {
    font-size: 13px;
    color: var(--p-muted);
    line-height: 1.55;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-product-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--p-border);
}

.p-product-card__price-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.p-product-card__price-strike {
    font-size: 11px;
    color: var(--p-muted-2);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.p-product-card__price {
    font-family: var(--p-font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
}

.p-product-card__price--accent { color: #fff; }

.p-store-page .p-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border-radius: var(--p-radius-lg, 12px);
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.p-store-page .p-btn--sm {
    padding: 9px 16px;
}

.p-store-page .p-btn--primary {
    background: #fff;
    color: #000;
}

.p-store-page .p-btn--primary:hover {
    background: #e5e5e5;
}

.p-store-page .p-btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.18);
}

.p-store-page .p-btn--ghost:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.04);
}

.p-store-page .p-price-card__foot .p-btn {
    width: 100%;
    padding: 12px 18px;
}

.p-store-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 48px;
    padding-top: 8px;
}

@media (min-width: 768px) {
    .p-store-trust { grid-template-columns: repeat(3, 1fr); }
}

.p-store-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--p-glass);
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius-lg);
}

.p-store-trust-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--p-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p-store-trust-item__icon .bx {
    font-size: 20px;
    color: #fff;
}

.p-store-trust-item h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
}

.p-store-trust-item p {
    margin: 0;
    font-size: 12px;
    color: var(--p-muted);
}


/* =========================================================
   BANNED — banned.php (standalone)
   ========================================================= */
body.es-banned {
    margin: 0;
    min-height: 100vh;
    background: #000;
    color: var(--p-text);
    font-family: var(--p-font-body);
    -webkit-font-smoothing: antialiased;
}

.es-banned-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.es-banned-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,255,255,0.06), transparent 60%),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    pointer-events: none;
}

.es-banned-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: #0A0A0A;
    border: 1px solid var(--p-border);
    border-radius: 16px;
    padding: 40px 32px 32px;
    animation: es-fade-up 0.65s var(--p-ease) both;
}

.es-banned-brand {
    font-family: var(--p-font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: center;
    margin-bottom: 28px;
}

.es-banned-brand span:first-child { color: #fff; }
.es-banned-brand span:last-child { color: var(--p-muted); }

.es-banned-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.es-banned-icon .bx {
    font-size: 36px;
    color: #fff;
}

.es-banned-card h1 {
    font-family: var(--p-font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: center;
    margin: 0 0 8px;
    color: #fff;
}

.es-banned-lead {
    text-align: center;
    font-size: 14px;
    line-height: 1.55;
    color: var(--p-muted);
    margin: 0 0 28px;
}

.es-banned-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: -12px 0 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a3a3a3;
}

.es-banned-flag__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: es-pulse 1.8s infinite;
}

.es-banned-meta {
    border: 1px solid var(--p-border);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
    margin-bottom: 24px;
}

.es-banned-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--p-border);
}

.es-banned-row:last-child { border-bottom: none; }

.es-banned-row__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--p-muted-2);
    padding-top: 2px;
}

.es-banned-row__value {
    font-size: 13px;
    font-weight: 600;
    color: #e5e5e5;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

.es-banned-row__value--mono {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.es-banned-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.es-banned-btn {
    display: block;
    text-align: center;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.es-banned-btn--primary {
    background: #fff;
    color: #000;
}

.es-banned-btn--primary:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.es-banned-btn--ghost {
    background: transparent;
    color: var(--p-muted);
    border: 1px solid var(--p-border);
}

.es-banned-btn--ghost:hover {
    color: #fff;
    border-color: var(--p-border-accent);
}

.es-banned-foot {
    margin-top: 22px;
    text-align: center;
    font-size: 12px;
    color: var(--p-muted-2);
    line-height: 1.5;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   WHEEL â€” wheel.php
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.es-wheel-page {
    padding-top: 88px;
    padding-bottom: 64px;
    min-height: 100vh;
    background: var(--p-bg);
    font-family: var(--p-font-body);
    color: var(--p-text);
    position: relative;
    overflow-x: hidden;
}

.es-wheel-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}

.es-wheel-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.es-wheel-head {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    animation: es-fade-up 0.6s var(--p-ease) both;
}

@media (min-width: 768px) {
    .es-wheel-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.es-wheel-brand {
    font-family: var(--p-font-display);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--p-muted);
    margin: 0 0 10px;
}

.es-wheel-brand span { color: #fff; }

.es-wheel-head h1 {
    font-family: var(--p-font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1;
}

.es-wheel-head p {
    margin: 0;
    font-size: 14px;
    color: var(--p-muted);
    max-width: 42ch;
}

.es-wheel-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.es-wheel-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--p-border);
    background: rgba(255,255,255,0.03);
    font-size: 13px;
    color: var(--p-muted);
}

.es-wheel-pill strong {
    color: #fff;
    font-weight: 700;
}

.es-wheel-pill .bx { color: #a3a3a3; }

.es-wheel-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-bottom: 56px;
}

/* Case / reel â€” IDs preserved for JS */
.case-window {
    position: relative;
    width: 100%;
    max-width: 920px;
    height: 220px;
    margin: 0 auto;
    background: linear-gradient(135deg, #111, #0A0A0A);
    border: 1px solid var(--p-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        inset 0 0 80px rgba(0, 0, 0, 0.8),
        0 20px 60px rgba(0, 0, 0, 0.45);
}

.case-needle {
    position: absolute;
    left: 50%;
    top: -10px;
    bottom: -10px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #fff 20%, #fff 80%, transparent);
    z-index: 20;
    transform: translateX(-50%);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
}

.case-needle::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #fff;
}

.case-reel {
    display: flex;
    height: 100%;
    align-items: center;
    position: relative;
    left: 0;
    will-change: transform;
}

.case-item {
    width: 160px;
    height: 170px;
    margin: 0 5px;
    background: #0A0A0A;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 3px solid transparent;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.case-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--item-glow, rgba(255,255,255,0.03)), transparent);
    pointer-events: none;
}

.case-item .item-icon { font-size: 2.25rem; margin-bottom: 12px; }
.case-item span {
    font-family: var(--p-font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #d4d4d4;
}

/* Grayscale rarity ladder */
.rarity-ultimate       { --item-glow: rgba(255,255,255,0.14); border-bottom-color: #fff; }
.rarity-legendary-plus { --item-glow: rgba(255,255,255,0.11); border-bottom-color: #e5e5e5; }
.rarity-legendary      { --item-glow: rgba(255,255,255,0.09); border-bottom-color: #d4d4d4; }
.rarity-mythical       { --item-glow: rgba(255,255,255,0.07); border-bottom-color: #a3a3a3; }
.rarity-rare           { --item-glow: rgba(255,255,255,0.06); border-bottom-color: #737373; }
.rarity-uncommon       { --item-glow: rgba(255,255,255,0.05); border-bottom-color: #525252; }
.rarity-common         { --item-glow: rgba(255,255,255,0.04); border-bottom-color: #404040; }
.rarity-miss           { --item-glow: transparent; border-bottom-color: #262626; }

.rarity-ultimate .item-icon       { color: #fff; }
.rarity-legendary-plus .item-icon { color: #e5e5e5; }
.rarity-legendary .item-icon      { color: #d4d4d4; }
.rarity-mythical .item-icon       { color: #a3a3a3; }
.rarity-rare .item-icon           { color: #737373; }
.rarity-uncommon .item-icon       { color: #525252; }
.rarity-common .item-icon         { color: #737373; }
.rarity-miss .item-icon           { color: #404040; }

.case-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 220px;
    z-index: 10;
    pointer-events: none;
}

.overlay-left  { left: 0;  background: linear-gradient(to right, #000 10%, transparent); }
.overlay-right { right: 0; background: linear-gradient(to left, #000 10%, transparent); }

.btn-spin {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    border-radius: 8px;
    background: #fff;
    color: #000;
    border: none;
    font-family: var(--p-font-body);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 32px rgba(255,255,255,0.12);
}

.btn-spin:hover:not(:disabled) {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.btn-spin:active:not(:disabled) { transform: scale(0.97); }

.btn-spin:disabled {
    background: #171717;
    color: #525252;
    cursor: not-allowed;
    box-shadow: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.es-wheel-hint {
    font-size: 12px;
    color: var(--p-muted-2);
    margin: 0;
    text-align: center;
}

.countdown-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.countdown-wrap > p {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--p-muted-2);
    margin: 0;
}

#countdown {
    font-family: var(--p-font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.06em;
    font-variant-numeric: tabular-nums;
}

@keyframes es-spin-glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 0 36px rgba(255,255,255,0.08); }
    50%       { box-shadow: 0 0 0 1px rgba(255,255,255,0.28), 0 0 64px rgba(255,255,255,0.16); }
}

.spinning .case-window {
    animation: es-spin-glow 1s ease-in-out infinite;
}

.es-wheel-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--p-border);
}

.es-wheel-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--p-muted);
}

.es-wheel-label::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #fff;
}

.es-wheel-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: es-pulse 1.6s infinite;
}

.drops-mask {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.drops-track {
    display: flex;
    gap: 12px;
    animation: es-scroll-x 40s linear infinite;
    width: max-content;
}

.drops-track:hover { animation-play-state: paused; }

.drop-card {
    min-width: 190px;
    max-width: 190px;
    background: #0A0A0A;
    border: 1px solid var(--p-border);
    border-left: 2px solid var(--drop-color, #404040);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    transition: transform 0.2s, border-color 0.2s;
}

.drop-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.14);
}

.drop-card__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--p-border);
    background: rgba(255,255,255,0.04);
}

.drop-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drop-card__title {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drop-card__user {
    display: block;
    font-size: 10px;
    color: var(--p-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.es-reward-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px)  { .es-reward-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .es-reward-grid { grid-template-columns: repeat(4, 1fr); } }

.reward-card {
    background: #0A0A0A;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    padding: 22px 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
}

.reward-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rarity-color, transparent);
    opacity: 0.7;
}

.reward-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.14);
}

.reward-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--p-border);
    background: rgba(255,255,255,0.04);
}

.reward-card__icon .bx {
    font-size: 20px;
    color: var(--rarity-color, #a3a3a3);
}

.reward-card__tier {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rarity-color, #737373);
    margin-bottom: 4px;
}

.reward-card__val {
    font-family: var(--p-font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.reward-card__prob {
    font-size: 10px;
    color: var(--p-muted-2);
    margin-top: 4px;
}

.reward-card--wide {
    grid-column: span 2;
}

@media (min-width: 640px) and (max-width: 1023px) {
    .reward-card--wide { grid-column: span 1; }
}

@media (min-width: 1024px) {
    .reward-card--wide { grid-column: span 2; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LUA DOCS â€” lua_docs.php
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.docs-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 60px);
    max-width: 1400px;
    margin: 0 auto;
    font-family: var(--p-font-body);
    color: var(--p-text);
    background: var(--p-bg);
}

@media (max-width: 1024px) {
    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar { display: none; }
}

.docs-sidebar {
    background: rgba(10, 10, 10, 0.72);
    border-right: 1px solid var(--p-border);
    backdrop-filter: blur(20px);
    padding: 24px 12px;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.docs-sidebar::-webkit-scrollbar { width: 0; }

.s-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--p-muted);
    padding: 0 12px;
    margin: 16px 0 6px;
}

.s-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--p-muted);
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.s-item .bx { color: #a3a3a3; }

.s-item:hover {
    background: rgba(255,255,255,0.04);
    color: #e5e5e5;
}

.s-item.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.s-item.active .bx { color: #fff; }

.docs-sidebar__divider {
    height: 1px;
    background: var(--p-border);
    margin: 16px 8px;
}

.docs-copy-api {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s;
}

.docs-copy-api:hover { background: rgba(255,255,255,0.1); }

.docs-gh-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    margin-top: 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--p-border);
    color: var(--p-muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
}

.docs-gh-link:hover {
    color: #fff;
    border-color: var(--p-border-accent);
}

.docs-main {
    padding: 32px 40px 80px;
    min-width: 0;
}

@media (max-width: 640px) {
    .docs-main { padding: 24px 16px 60px; }
}

.docs-search-wrap {
    position: relative;
    margin-bottom: 32px;
}

.docs-search-wrap .bx-search {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--p-muted);
    font-size: 16px;
    pointer-events: none;
}

.docs-search {
    width: 100%;
    background: #0A0A0A;
    border: 1px solid var(--p-border);
    border-radius: 10px;
    padding: 12px 16px 12px 42px;
    color: #fff;
    font-size: 14px;
    font-family: var(--p-font-body);
    outline: none;
    transition: border-color 0.15s;
}

.docs-search:focus { border-color: rgba(255,255,255,0.28); }
.docs-search::placeholder { color: var(--p-muted); }

.module-section { display: none; }
.module-section.active { display: block; animation: es-fade-up 0.4s var(--p-ease) both; }

.module-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
}

.module-header h1 {
    font-family: var(--p-font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    margin: 0;
}

.module-header p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--p-muted);
}

.lua-code {
    background: #070707;
    border: 1px solid var(--p-border);
    border-radius: 10px;
    padding: 16px 18px;
    font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.65;
    color: #d4d4d4;
    overflow-x: auto;
    white-space: pre;
    margin: 0;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--p-border);
    color: var(--p-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.copy-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.example-card {
    background: #0A0A0A;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.example-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--p-border);
    background: rgba(255,255,255,0.02);
}

.example-header__title {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    margin: 0 0 2px;
}

.example-header__desc {
    font-size: 12px;
    color: var(--p-muted);
}

.example-body { padding: 18px; }
.example-body .relative { position: relative; }

.func-table-wrap {
    background: #0A0A0A;
    border: 1px solid var(--p-border);
    border-radius: 12px;
    overflow: hidden;
}

.func-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.func-table thead th {
    text-align: left;
    padding: 10px 14px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--p-muted);
    border-bottom: 1px solid var(--p-border);
}

.func-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.15s;
}

.func-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.func-table tbody td { padding: 11px 14px; vertical-align: top; }

.func-name {
    font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.func-params {
    font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
    font-size: 11px;
    color: #737373;
}

.func-desc {
    color: #a3a3a3;
    font-size: 12px;
}

.ret-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    color: #d4d4d4;
    border: 1px solid rgba(255,255,255,0.12);
}

.section-label-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--p-muted);
    margin: 32px 0 12px;
}

.section-label-pill::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #fff;
    flex-shrink: 0;
}

.docs-prose h2,
.docs-prose h3 { scroll-margin-top: 80px; }

.docs-prose {
    color: #a3a3a3;
    font-size: 14px;
    line-height: 1.65;
    margin-top: 24px;
}

.docs-layout .hidden { display: none !important; }

.docs-search-hit {
    background: #0A0A0A;
    border: 1px solid var(--p-border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.docs-search-hit__fn {
    font-family: monospace;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.docs-search-hit__mod {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    color: #a3a3a3;
    border: 1px solid rgba(255,255,255,0.1);
}

.docs-search-hit__params {
    font-family: monospace;
    font-size: 11px;
    color: #737373;
    margin: 4px 0;
}

.docs-search-hit__desc {
    font-size: 12px;
    color: #a3a3a3;
}

.docs-empty {
    text-align: center;
    padding: 64px 16px;
}

.docs-empty .bx {
    font-size: 2.25rem;
    color: #262626;
    display: block;
    margin-bottom: 12px;
}

.docs-empty p {
    color: var(--p-muted);
    font-size: 14px;
    margin: 0;
}

#toast.docs-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #0A0A0A;
    border: 1px solid rgba(255,255,255,0.18);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    font-family: var(--p-font-body);
}
