/* ============================================
   Cases Page - CS:GO Style
   ============================================ */

.cases-page {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    background: var(--bg-primary);
    overflow: hidden;
}

.cases-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        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: 60px 60px;
    pointer-events: none;
}

.cases-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 45, 45, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cases-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* ─── Catalog View ─── */

.cases-header {
    margin-bottom: 48px;
    text-align: center;
}

.cases-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 800px;
    margin: 0 auto;
}

/* ─── Case Card - Premium Design ─── */

.case-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(165deg, #161616 0%, #0e0e0e 100%);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.45s ease;
}

.case-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 60px var(--accent-glow),
        0 0 120px var(--accent-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

/* Animated border glow on hover */
.case-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 19px;
    background: linear-gradient(
        135deg,
        transparent 30%,
        var(--accent) 50%,
        transparent 70%
    );
    background-size: 300% 300%;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 3s linear infinite;
}

.case-card:hover::before {
    opacity: 0.7;
}

/* Inner background to sit on top of border glow */
.case-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 17px;
    background: linear-gradient(165deg, #161616 0%, #0e0e0e 100%);
    z-index: 0;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Shimmer sweep - continuous diagonal shine */
.case-card-shimmer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.case-card-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.02) 45%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 55%,
        transparent 60%
    );
    transform: skewX(-15deg);
    animation: shimmerSweep 5s ease-in-out infinite;
}

.case-card:nth-child(2) .case-card-shimmer::before {
    animation-delay: -2.5s;
}

.case-card:nth-child(3) .case-card-shimmer::before {
    animation-delay: -1.2s;
}

.case-card:nth-child(4) .case-card-shimmer::before {
    animation-delay: -3.7s;
}

@keyframes shimmerSweep {
    0% { left: -120%; }
    40%, 100% { left: 160%; }
}

/* Visual area */
.case-card-visual {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* Reflective floor gradient */
.case-card-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 40%;
    background: radial-gradient(ellipse at center bottom, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.case-card:hover .case-card-visual::after {
    opacity: 0.6;
}

/* Case image with float animation */
.case-card-img {
    width: 190px;
    height: 190px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.5s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
    animation: caseFloat 4s ease-in-out infinite;
}

.case-card:nth-child(2) .case-card-img {
    animation-delay: -2s;
}

.case-card:nth-child(3) .case-card-img {
    animation-delay: -1s;
}

.case-card:nth-child(4) .case-card-img {
    animation-delay: -3s;
}

.case-card:hover .case-card-img {
    transform: scale(1.12) translateY(-4px);
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.7))
            drop-shadow(0 0 20px var(--accent-glow));
    animation-play-state: paused;
}

@keyframes caseFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Ambient glow behind image - breathing */
.case-card-glow {
    position: absolute;
    inset: -20px;
    opacity: 0.25;
    transition: opacity 0.5s ease;
    z-index: 0;
    animation: glowBreathe 3s ease-in-out infinite;
}

.case-card:nth-child(2) .case-card-glow {
    animation-delay: -1.5s;
}

.case-card:nth-child(3) .case-card-glow {
    animation-delay: -0.5s;
}

.case-card:nth-child(4) .case-card-glow {
    animation-delay: -2.5s;
}

.case-card:hover .case-card-glow {
    opacity: 0.7;
    animation-play-state: paused;
}

@keyframes glowBreathe {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

.case-card-info {
    position: relative;
    z-index: 1;
    padding: 18px 22px 22px;
}

/* Meta row: badge + best drop */
.case-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.case-card-badge {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.3px;
}

.case-card-best-drop {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
    text-align: right;
}

.case-card-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.case-card-desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Price row */
.case-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.case-card-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--red-primary);
}

.case-card-open-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
}

.case-card:hover .case-card-open-label {
    opacity: 1;
    transform: translateX(0);
}

/* Rarity distribution bar */
.case-card-rarity-bar {
    display: flex;
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
    gap: 2px;
    margin-bottom: 16px;
}

.rarity-bar-seg {
    height: 100%;
    border-radius: 2px;
    min-width: 3px;
    transition: filter 0.3s ease;
}

.case-card:hover .rarity-bar-seg {
    filter: brightness(1.3);
}

/* Item previews */
.case-card-previews {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.case-card-preview-item {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.case-card-preview-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rc);
    opacity: 0.6;
}

.case-card-preview-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.case-card:hover .case-card-preview-item {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* ─── Recent Openings ─── */

.recent-openings {
    margin-top: 56px;
}

.recent-openings-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

.recent-openings-table {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(165deg, #131313 0%, #0a0a0a 100%);
    overflow: hidden;
}

.recent-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.5fr 0.7fr;
    padding: 12px 20px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    transition: background 0.15s ease;
}

.recent-row:last-child {
    border-bottom: none;
}

.recent-row:not(.recent-header):hover {
    background: rgba(255, 255, 255, 0.02);
}

.recent-header {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.recent-user {
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.recent-case {
    font-weight: 500;
}

.recent-prize {
    font-weight: 700;
}

.recent-time {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

@media (max-width: 768px) {
    .recent-row {
        grid-template-columns: 1fr 0.6fr 1.2fr 0.6fr;
        padding: 10px 14px;
        font-size: 11px;
        gap: 8px;
    }

    .recent-user {
        font-size: 11px;
    }
}

/* ─── Detail View ─── */

.case-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    transition: color 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
}

.case-back:hover {
    color: var(--text-primary);
}

.case-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.case-detail-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.case-detail-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 45, 45, 0.15));
    animation: caseDetailFloat 4s ease-in-out infinite;
}

@keyframes caseDetailFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.case-detail-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(24px, 3vw, 36px);
    color: var(--text-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.case-detail-desc {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* ─── Spinner - CS:GO Style ─── */

.spinner-wrapper {
    margin-bottom: 40px;
}

.spinner-viewport {
    position: relative;
    height: 160px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #0d0d0d 0%, #080808 100%);
    overflow: hidden;
    box-shadow:
        inset 0 2px 30px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 0, 0, 0.5);
}

/* Edge fading - CS:GO style fog */
.spinner-viewport::before,
.spinner-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 5;
    pointer-events: none;
}

.spinner-viewport::before {
    left: 0;
    background: linear-gradient(to right, #080808 0%, #08080800 100%);
}

.spinner-viewport::after {
    right: 0;
    background: linear-gradient(to left, #080808 0%, #08080800 100%);
}

/* Center indicator - CS:GO triangle */
.spinner-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: var(--red-primary);
    box-shadow: 0 0 15px rgba(255, 45, 45, 0.7), 0 0 40px rgba(255, 45, 45, 0.3);
    z-index: 10;
}

.spinner-indicator::before,
.spinner-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    filter: drop-shadow(0 0 6px rgba(255, 45, 45, 0.8));
}

.spinner-indicator::before {
    top: -1px;
    border-top: 14px solid var(--red-primary);
}

.spinner-indicator::after {
    bottom: -1px;
    border-bottom: 14px solid var(--red-primary);
}

/* Strip */
.spinner-strip {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    will-change: transform;
}

/* Items */
.spinner-item {
    width: 150px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    padding: 14px 8px 18px;
    background: rgba(255, 255, 255, 0.01);
    transition: background 0.15s ease;
}

/* Subtle rarity glow from bottom */
.spinner-item-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--rarity-glow), transparent);
    opacity: 0.12;
    pointer-events: none;
}

/* Rarity bar at bottom */
.spinner-item-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
}

/* Product image */
.spinner-item-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
    flex-shrink: 0;
}

.spinner-item-name {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spinner-item-rarity {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Winner tile highlight */
.spinner-item.winner {
    background: rgba(255, 255, 255, 0.06);
    animation: winnerPulse 1.2s ease-in-out 3;
}

.spinner-item.winner .spinner-item-glow {
    opacity: 0.3;
}

@keyframes winnerPulse {
    0%, 100% { background: rgba(255, 255, 255, 0.04); }
    50% { background: rgba(255, 255, 255, 0.1); }
}

/* ─── Controls ─── */

.spinner-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.open-case-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red-primary), #e01e1e);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(255, 45, 45, 0.3);
    position: relative;
    overflow: hidden;
}

.open-case-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.open-case-btn:hover::before {
    left: 100%;
}

.open-case-btn:hover:not(:disabled) {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 45, 45, 0.4);
}

.open-case-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.open-case-btn svg {
    width: 20px;
    height: 20px;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.demo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.demo-btn svg {
    width: 18px;
    height: 18px;
}

/* ─── Item Pool ─── */

.item-pool {
    margin-top: 48px;
}

.item-pool-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.item-pool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.pool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(165deg, #141414 0%, #0c0c0c 100%);
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pool-item:hover {
    border-color: var(--rarity-color);
    transform: translateY(-1px);
}

/* Left rarity bar */
.pool-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--rarity-color);
    opacity: 0.6;
}

.pool-item-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}

.pool-item-info {
    flex: 1;
    min-width: 0;
}

.pool-item-name {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pool-item-chance {
    font-family: var(--font-body);
    font-size: 11px;
    margin-top: 2px;
}

/* ─── Result Modal ─── */

.result-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.result-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.result-card {
    position: relative;
    padding: 48px 48px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, #1a1a1a 0%, #0e0e0e 100%);
    text-align: center;
    max-width: 440px;
    width: 90%;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.result-overlay.visible .result-card {
    transform: scale(1) translateY(0);
}

.result-glow {
    position: absolute;
    inset: -40px;
    opacity: 0.3;
    z-index: 0;
    filter: blur(40px);
    pointer-events: none;
}

.result-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.result-label {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.result-image {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 20px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
    animation: resultImageIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes resultImageIn {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Rarity-specific result animations */
.result-rarity-legendary .result-image {
    animation: resultImageLegendary 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes resultImageLegendary {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
        filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.8));
    }
    60% {
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
        filter: drop-shadow(0 4px 30px rgba(245, 158, 11, 0.4));
    }
}

.result-rarity-epic .result-image {
    filter: drop-shadow(0 4px 20px rgba(168, 85, 247, 0.4));
}

.result-rarity-legendary .result-image {
    filter: drop-shadow(0 4px 30px rgba(245, 158, 11, 0.5));
}

.result-rarity-legendary {
    border-color: rgba(245, 158, 11, 0.3);
}

.result-rarity-epic {
    border-color: rgba(168, 85, 247, 0.2);
}

.result-name {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.result-type {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Claim section */
.result-claim-section {
    position: relative;
    z-index: 1;
}

.result-claim {
    background: rgba(88, 101, 242, 0.06);
    border: 1px solid rgba(88, 101, 242, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.result-claim-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.result-claim-text {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.result-claim-text strong {
    color: var(--text-primary);
}

.result-order-id {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.result-order-id span {
    font-weight: 700;
    color: var(--text-primary);
    user-select: all;
}

.result-btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    background: #5865F2;
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.result-btn-discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.result-btn-discord svg {
    width: 18px;
    height: 18px;
}

.result-demo-notice {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 13px;
    color: #f59e0b;
    line-height: 1.5;
}

/* Result actions */
.result-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.result-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-btn-primary {
    background: var(--red-primary);
    color: #fff;
}

.result-btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.result-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.result-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* ─── Confetti Particles ─── */

.confetti-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--size, 5px);
    height: var(--size, 5px);
    border-radius: 2px;
    opacity: 0;
    animation: confettiBurst 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s) forwards;
}

@keyframes confettiBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.5);
    }
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
    .cases-page {
        padding: 120px 0 60px;
    }

    .cases-container {
        padding: 0 20px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .spinner-viewport {
        height: 130px;
    }

    .spinner-item {
        width: 115px !important;
    }

    .spinner-item-img {
        width: 48px;
        height: 48px;
    }

    .spinner-viewport::before,
    .spinner-viewport::after {
        width: 50px;
    }

    .spinner-controls {
        flex-direction: column;
        align-items: center;
    }

    .open-case-btn,
    .demo-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
        font-size: 15px;
    }

    .item-pool-grid {
        grid-template-columns: 1fr 1fr;
    }

    .result-card {
        padding: 36px 24px 32px;
    }

    .result-name {
        font-size: 24px;
    }

    .result-image {
        width: 96px;
        height: 96px;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .item-pool-grid {
        grid-template-columns: 1fr;
    }

    .pool-item-img {
        width: 32px;
        height: 32px;
    }
}
