/* ========================================
   HEADER BUTTONS - UNIFIED STYLING
   ======================================== */

/* Base styles for all header buttons */
#newAdminBtn,
#newReferDropBtn, 
#newConnectWalletBtn,
#newPurchaseAccessNavBtn {
    /* Base structure */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    margin: 0;
    
    /* Typography */
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
    
    /* Appearance */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 
        0 4px 15px rgba(102, 126, 234, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
    
    /* Behavior */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    overflow: hidden;
    min-height: 42px;
    min-width: 100px;
    
    /* Ensure consistent sizing */
    box-sizing: border-box;
}

/* Hover effect for all header buttons */
#newAdminBtn:hover,
#newReferDropBtn:hover,
#newConnectWalletBtn:hover,
#newPurchaseAccessNavBtn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Active/pressed state */
#newAdminBtn:active,
#newReferDropBtn:active,
#newConnectWalletBtn:active,
#newPurchaseAccessNavBtn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(102, 126, 234, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Disabled state */
#newAdminBtn:disabled,
#newReferDropBtn:disabled,
#newConnectWalletBtn:disabled,
#newPurchaseAccessNavBtn:disabled {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Special styling for Connect Wallet button */
#newConnectWalletBtn {
    background: linear-gradient(135deg, #2C2E37 0%, #3A3C44 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

#newConnectWalletBtn:hover {
    background: linear-gradient(135deg, #3A3C44 0%, #4A4C54 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Connected state for wallet button */
#newConnectWalletBtn.connected {
    font-size: 0.85rem;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.08) 0%, rgba(0, 255, 135, 0.12) 100%);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 255, 135, 0.15);
}

#newConnectWalletBtn.connected:hover {
    background: linear-gradient(135deg, rgba(0, 255, 135, 0.12) 0%, rgba(0, 255, 135, 0.18) 100%);
    box-shadow: 0 4px 10px rgba(0, 255, 135, 0.25);
}

/* Special styling for Admin button */
#newAdminBtn {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
}

#newAdminBtn:hover {
    background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
}

/* Special styling for Purchase Access button */
#newPurchaseAccessNavBtn {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
}

#newPurchaseAccessNavBtn:hover {
    background: linear-gradient(135deg, #2f855a 0%, #276749 100%);
}

/* Special styling for RefDrop button */
#newReferDropBtn {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

#newReferDropBtn:hover {
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 255, 135, 0.8)) drop-shadow(0 0 8px rgba(0, 230, 118, 0.6));
    animation: logo-glow 3s infinite alternate;
}

/* Animation for logo glow */
@keyframes logo-glow {
    0% {
        filter: drop-shadow(0 0 4px rgba(0, 255, 135, 0.8)) drop-shadow(0 0 8px rgba(0, 230, 118, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(60, 255, 160, 0.9)) drop-shadow(0 0 12px rgba(0, 255, 135, 0.8)) drop-shadow(0 0 18px rgba(0, 200, 100, 0.5));
    }
    100% {
        filter: drop-shadow(0 0 4px rgba(0, 255, 135, 0.8)) drop-shadow(0 0 8px rgba(0, 230, 118, 0.6));
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #newAdminBtn,
    #newReferDropBtn,
    #newConnectWalletBtn,
    #newPurchaseAccessNavBtn {
        padding: 8px 14px;
        font-size: 0.85rem;
        min-height: 38px;
        min-width: 90px;
    }
}

@media (max-width: 480px) {
    #newAdminBtn,
    #newReferDropBtn,
    #newConnectWalletBtn,
    #newPurchaseAccessNavBtn {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-height: 36px;
        min-width: 80px;
    }
}