/* New Mobile Footer Design - Glass Effect & Gold Theme */
.bottom-nav-container {
    box-sizing: border-box !important;
    position: fixed !important;
    bottom: 20px !important; /* Float slightly above bottom */
    left: 50% !important;
    transform: translateX(-50%) translateZ(0) !important;
    width: 85% !important; /* Slightly reduced width for better fit on narrow screens */
    max-width: 380px !important; /* Slightly reduced max-width */
    height: 65px !important; /* Reduced height to save space */
    background: rgba(15, 15, 20, 0.7) !important; /* Glass effect background */
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 35px !important; /* Highly rounded pill shape */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    z-index: 10000 !important;
    padding: 0 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.bottom-nav-container .nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.6) !important; /* Muted white like iOS gray */
    transition: all 0.3s ease !important;
    flex: 1 !important;
}

.bottom-nav-container .nav-item.active {
    color: #c9a961 !important; /* Gold for active */
}

.bottom-nav-container .nav-item svg {
    width: 26px !important;
    height: 26px !important;
    margin-bottom: 4px !important;
}

.bottom-nav-container .nav-item span {
    font-size: 10px !important;
    font-weight: 600 !important;
}

/* Central Elevated Button */
.central-menu-btn {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #c9a961 0%, #a68b4c 100%) !important; /* Theme gold gradient */
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.4) !important;
    border: 4px solid rgba(15, 15, 20, 0.8) !important;
    margin-top: -40px !important; /* Elevate it */
    cursor: pointer !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.central-menu-btn:active {
    transform: scale(0.9) !important;
}

.central-menu-btn svg {
    width: 24px !important;
    height: 24px !important;
    color: #ffffff !important;
}

/* Quick Menu Popup styling - Glass Effect */
.quick-menu-popup {
    box-sizing: border-box !important;
    position: fixed !important;
    bottom: 90px !important; /* Slightly closer to bottom */
    left: 50% !important;
    transform: translateX(-50%) translateY(20px) scale(0.95) !important;
    width: 80% !important; /* Slightly reduced width */
    max-width: 320px !important; /* Slightly reduced max-width */
    background: rgba(15, 15, 20, 0.8) !important; /* Darker glass for the popup */
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border-radius: 24px !important;
    z-index: 10001 !important;
    padding: 20px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.quick-menu-popup.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
}

/* Balance Card in Popup - Theme Gold Gradient */
.balance-card {
    background: linear-gradient(135deg, #c9a961 0%, #a68b4c 100%) !important;
    border-radius: 18px !important;
    padding: 20px !important;
    color: white !important;
    margin-bottom: 15px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 5px 15px rgba(201, 169, 97, 0.3) !important;
}

.balance-card h4 {
    font-size: 12px !important;
    opacity: 0.9 !important;
    margin-bottom: 5px !important;
    font-weight: 500 !important;
    color: white !important;
}

.balance-card .balance-amount {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: white !important;
}

/* Escrow Section */
.escrow-section {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 14px !important;
    padding: 15px !important;
    margin-bottom: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.escrow-section .section-label {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 8px !important;
}

.escrow-details {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.escrow-details .bank-info {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.4 !important;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
}

.action-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    color: white !important;
}

.action-icon-circle {
    width: 45px !important;
    height: 45px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    transition: background 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.action-item:active .action-icon-circle {
    background: rgba(201, 169, 97, 0.3) !important;
}

.action-icon-circle svg {
    width: 22px !important;
    height: 22px !important;
    color: #c9a961 !important; /* Gold icons */
}

.action-item span {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-align: center !important;
}

/* Hide old desktop menu and standard footer bottom padding on mobile */
@media (max-width: 767px) {
    .bottom-nav { display: none !important; }
    .desktop-menu { display: none !important; }
    body { padding-bottom: 110px !important; }
}

@media (min-width: 768px) {
    .bottom-nav-container, .quick-menu-popup { display: none !important; }
}
