/* ============================================================
   FLOATING WHEEL BUTTON
   ============================================================ */
.wheel-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c0d10 0%, #161a1f 100%);
    border: 2px solid rgba(0,255,135,0.4);
    box-shadow: 0 0 18px rgba(0,255,135,0.25), 0 4px 16px rgba(0,0,0,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}
.wheel-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 0 28px rgba(0,255,135,0.4), 0 6px 20px rgba(0,0,0,0.6);
}
.wheel-fab:active {
    transform: scale(0.95);
}
.wheel-fab-icon {
    width: 38px;
    height: 38px;
    animation: wheel-spin 6s linear infinite;
    display: block;
}

/* Fixed needle on FAB — sits on top, does NOT rotate */
.wheel-fab-needle {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 13px solid #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
    z-index: 10;
}
.wheel-fab-needle::after {
    content: '';
    position: absolute;
    top: 4px;
    left: -3px;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-bottom: 8px solid #ff3333;
}
.wheel-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00ff87;
    border: 2px solid #0c0d10;
    animation: wheel-badge-pulse 2s ease-in-out infinite;
}

@keyframes wheel-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes wheel-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,135,0.6); }
    50%       { box-shadow: 0 0 0 5px rgba(0,255,135,0); }
}

/* ============================================================
   POPUP
   ============================================================ */
.wheel-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9100;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 0 90px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.wheel-popup-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.wheel-popup {
    background: #111316;
    border: 1px solid rgba(0,255,135,0.2);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    width: 280px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 30px rgba(0,255,135,0.08);
    transform: translateY(12px);
    transition: transform 0.25s ease;
    position: relative;
}
.wheel-popup-overlay.open .wheel-popup {
    transform: translateY(0);
}

.wheel-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}
.wheel-popup-close:hover { color: white; }

.wheel-popup-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}
/* Wrapper keeps needle on top of spinning wheel */
.wheel-popup-wheel-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}
.wheel-popup-header-icon {
    width: 80px;
    height: 80px;
    display: block;
    animation: wheel-spin 5s linear infinite;
}

/* Fixed needle on popup wheel */
.wheel-popup-needle {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 18px solid #ffffff;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.9));
    z-index: 10;
}
.wheel-popup-needle::after {
    content: '';
    position: absolute;
    top: 5px;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 11px solid #ff3333;
}
.wheel-popup-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.wheel-popup-desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.wheel-popup-desc strong {
    color: #00ff87;
    font-weight: 700;
}
.wheel-popup-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    color: #00ff87;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wheel-popup-rules {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.6rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.wheel-popup-rule {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
}
.wheel-popup-rule-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00ff87;
    flex-shrink: 0;
}
.wheel-popup-rule strong {
    color: white;
    font-weight: 700;
}

.wheel-popup-btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.65rem;
    background: #00ff87;
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0,255,135,0.25);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.wheel-popup-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    animation: wheel-btn-shine 2.5s ease-in-out infinite;
}
.wheel-popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 35px rgba(0,255,135,0.4);
}

@keyframes wheel-btn-shine {
    0%       { transform: translateX(-100%) rotate(45deg); }
    30%, 100%{ transform: translateX( 100%) rotate(45deg); }
}
