/* Tarjeta Sorteo Rápido en el Feed (¿Suerte Hoy?) */
.shake-feed-card {
    position: relative;
    border-radius: 24px;
    padding: 1.5px;
    overflow: hidden;
    display: none; /* Controlado por JS */
    margin-bottom: 20px;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(9, 13, 22, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shake-feed-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.25), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Borde dinámico cónico */
.shake-feed-border-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        #06b6d4,
        #8b5cf6,
        #ec4899,
        #f59e0b,
        #06b6d4
    );
    animation: rotate-aurora 6s linear infinite;
    z-index: -3;
    pointer-events: none;
}

/* Contenedor de orbes aurora flotantes */
.shake-feed-aurora-blobs {
    position: absolute;
    inset: 2px;
    border-radius: 22.5px;
    overflow: hidden;
    z-index: -2;
    filter: blur(35px);
    opacity: 0.8;
}

.aurora-blob {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.aurora-blob.blob-1 {
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    top: -20px;
    left: -20px;
    animation: float-blob-1 12s ease-in-out infinite alternate;
}

.aurora-blob.blob-2 {
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    bottom: -30px;
    right: -20px;
    animation: float-blob-2 15s ease-in-out infinite alternate;
}

.aurora-blob.blob-3 {
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-blob-3 18s ease-in-out infinite alternate;
}


/* Modal Completo Sorteo WeChat Shake */
.shake-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15,23,42,0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.shake-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: var(--transition);
    outline: none;
}

.shake-modal-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

.shake-animation-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.shake-animation-phone {
    font-size: 80px;
    transition: transform 0.1s;
    animation: wobble-phone 0.3s ease infinite alternate;
    display: inline-block;
}

.shake-animation-title {
    font-size: 22px;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.5px;
    text-align: center;
}

.shake-animation-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    text-align: center;
}

/* Contenedor del Juego */
.scratch-game-container {
    display: none;
    position: relative;
    width: 90%;
    max-width: 320px;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.scratch-result-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 2px solid #FBBF24;
    border-radius: 24px;
    padding: 25px 20px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.scratch-glow-1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(245,158,11,0.06);
    filter: blur(30px);
    pointer-events: none;
}

.scratch-glow-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(245,158,11,0.06);
    filter: blur(30px);
    pointer-events: none;
}

.scratch-badge {
    font-size: 10px;
    font-weight: 800;
    background: rgba(245,158,11,0.15);
    color: #FBBF24;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(245,158,11,0.3);
    text-transform: uppercase;
}

.scratch-biz-logo-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 3px solid #F59E0B;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scratch-biz-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scratch-biz-name {
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 2px 0;
    color: #fff;
}

.scratch-biz-cat {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

.scratch-coupon-box {
    width: 100%;
    background: rgba(245,158,11,0.08);
    border: 2px dashed #FBBF24;
    border-radius: 16px;
    padding: 12px;
    box-sizing: border-box;
}

.scratch-coupon-box * {
    box-sizing: border-box;
}

.scratch-coupon-label {
    font-size: 9px;
    color: #FBBF24;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.scratch-coupon-code {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1.5px;
    font-family: monospace;
    margin-bottom: 4px;
}

.scratch-coupon-discount {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    font-weight: 700;
}

.scratch-btn-wa {
    width: 100%;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
    transition: var(--transition);
    box-sizing: border-box;
}

.scratch-btn-wa:hover {
    background: #20BA5A;
    box-shadow: 0 6px 16px rgba(37,211,102,0.45);
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    cursor: crosshair;
    touch-action: none;
    z-index: 10;
    transition: opacity 0.5s ease;
}


/* WeChat Shake Fragments Phase 13 */
/* Animación brillo de píldora de cupones */
.coupon-pill-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes rotate-aurora {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float-blob-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.3); }
}

@keyframes float-blob-2 {
    0% { transform: translate(0, 0) scale(1.2); }
    100% { transform: translate(-30px, -40px) scale(0.8); }
}

@keyframes float-blob-3 {
    0% { transform: translate(-50%, -50%) scale(0.9); }
    100% { transform: translate(-20%, -30%) scale(1.4); }
}

/* Contenido frontal de la tarjeta */
.shake-feed-content {
    position: relative;
    z-index: 2;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22.5px;
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: background 0.3s ease;
}

.shake-feed-card:hover .shake-feed-content {
    background: rgba(15, 23, 42, 0.84);
}

.shake-feed-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.shake-feed-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: rotate(90deg);
}

.shake-feed-icon {
    font-size: 44px;
    margin-bottom: 16px;
    animation: wobble-phone 0.8s ease infinite alternate;
    display: inline-block;
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.4));
}

.shake-feed-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: #fff;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 60%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shake-feed-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 0 20px 0;
    max-width: 240px;
    text-align: center;
}

.shake-feed-btn {
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 8px 24px;
    border-radius: 30px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shake-feed-card:hover .shake-feed-btn {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

