/* =========================================================================
   COMPONENTS: FLOATING GLASS NAVIGATION, WIDGETS & BUTTONS (60FPS)
   ========================================================================= */

/* --- DEDICATED APP TOP BAR --- */
.app-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    padding: 8px 12px 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 850;
    box-sizing: border-box;
    pointer-events: none;
}

/* --- LIVE WIN TICKER --- */
.live-win-ticker {
    position: relative;
    height: 32px;
    max-width: 165px;
    background: rgba(14, 20, 42, 0.88);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(168, 85, 247, 0.45);
    border-radius: 20px;
    padding: 2px 10px 2px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    pointer-events: auto;
    flex-shrink: 1;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    color: #f1f5f9;
    transform: translateY(0);
    transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.22s ease;
    will-change: transform, opacity;
}

.ticker-content.ticker-slide-out {
    transform: translateY(-16px);
    opacity: 0;
}

.ticker-content.ticker-slide-in {
    transform: translateY(16px);
    opacity: 0;
}

.ticker-badge {
    font-size: 8px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.ticker-badge.badge-mines { 
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(99, 102, 241, 0.35)); 
    color: #e9d5ff; 
    border: 1px solid rgba(192, 132, 252, 0.7); 
}

/* --- TOP BAR RIGHT ACTIONS --- */
.top-bar-right-group {
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    flex-shrink: 0;
}

/* --- NEON SOUND TOGGLE BUTTON --- */
.sound-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(14, 20, 42, 0.88);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(0, 210, 255, 0.45);
    color: #00d2ff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0;
    line-height: 1;
    pointer-events: auto;
    user-select: none;
}

.sound-toggle-btn:active {
    transform: scale(0.9);
}

.sound-toggle-btn.muted {
    border-color: rgba(148, 163, 184, 0.3);
    color: #64748b;
    filter: grayscale(1);
    opacity: 0.7;
    box-shadow: none;
}

/* --- STAR BALANCE WIDGET --- */
#starBalanceWidget {
    position: relative;
    background: rgba(14, 20, 42, 0.88);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 215, 0, 0.45);
    border-radius: 22px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 240, 150, 0.25);
    pointer-events: auto;
}

/* --- BOTTOM TAB NAVIGATION --- */
.tab-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 76px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0;
    z-index: 900;
    pointer-events: none;
}

.nav-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 74px;
    background: rgba(10, 14, 30, 0.88);
    backdrop-filter: blur(10px);
    border-top: 1.5px solid rgba(0, 210, 255, 0.35);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    pointer-events: auto;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.nav-buttons {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 72px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 2;
    pointer-events: auto;
}

/* --- GLOWING LIQUID DROP INDICATOR --- */
.nav-indicator-drop {
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 80px;
    height: 62px;
    background: radial-gradient(circle at 50% 25%, rgba(0, 210, 255, 0.35) 0%, rgba(14, 22, 54, 0.95) 75%, rgba(4, 8, 24, 0.98) 100%);
    border: 1.8px solid #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.65), inset 0 0 12px rgba(0, 210, 255, 0.3);
    border-radius: 22px;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transform-origin: center center;
}

/* --- TAB BUTTONS --- */
.tab-btn {
    background: none;
    border: none;
    color: #8a9bbd;
    font-family: 'GameFont', 'Rajdhani', sans-serif;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 80px;
    height: 70px;
    z-index: 2;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 0.4px;
    will-change: transform, color;
    transform: translateZ(0);
}

.tab-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #8a9bbd;
    stroke-width: 2;
    transition: stroke 0.2s ease, filter 0.2s ease;
}

.tab-btn.active {
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.95);
    transform: translateY(-8px) scale(1.03);
}

.tab-btn.active svg {
    stroke: #ffffff;
    filter: drop-shadow(0 0 8px #00d2ff);
}

/* SVG Animations in Buttons */
.mini-roulette-wrapper {
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mini-roulette-icon {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.mini-roulette-wheel {
    transform-origin: 50px 50px;
    animation: mini-wheel-rotate 6s linear infinite;
    will-change: transform;
}

.tab-btn.active .mini-roulette-wheel {
    animation-duration: 2.5s;
    filter: drop-shadow(0 0 6px #00d2ff);
}

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

.gamepad-animated-icon {
    width: 28px;
    height: 28px;
    overflow: visible;
    filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.5));
}

.tab-btn.active .gamepad-btn-glow {
    fill: #00d2ff;
    filter: drop-shadow(0 0 6px #00d2ff);
}

.tasks-animated-icon {
    width: 24px;
    height: 24px;
    overflow: visible;
}

.tab-btn.active .tasks-checkmark {
    stroke: #ffffff !important;
    filter: drop-shadow(0 0 8px #00d2ff) !important;
}

/* --- ACTION BUTTONS --- */
.action-btn {
    position: relative;
    z-index: 10;
    cursor: pointer;
    border: none;
    background: linear-gradient(45deg, #00d2ff, #0055ff);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    font-family: 'GameFont', 'Orbitron', sans-serif;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.5px;
    transition: transform 0.15s, box-shadow 0.2s;
    will-change: transform;
    transform: translateZ(0);
}

.action-btn:active {
    transform: scale(0.96);
}

.action-btn-main {
    padding: 14px 24px;
    font-size: 14px;
    background: linear-gradient(45deg, #00d2ff, #0055ff);
    box-shadow: 0 0 22px rgba(0, 210, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-btn-sub {
    padding: 11px 18px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.4);
    box-shadow: none;
    color: #d1d5db;
}

.spring-click,
.action-btn:disabled:active {
    animation: spring-bounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes spring-bounce {
    0% { transform: scale(1); }
    30% { transform: scale(0.92); }
    60% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.btn-subtext {
    display: block;
    font-size: 10px;
    opacity: 0.85;
    margin-top: 2px;
    font-weight: normal;
}
