/* COMPREHENSIVE BLACK HIGHLIGHT REMOVAL FOR ALL DEVICES */

/* Universal reset for all elements */
* {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    outline: none !important;
    outline-color: transparent !important;
    outline-width: 0 !important;
    outline-offset: 0 !important;
}

/* Target all interactive elements specifically */
a, button, input, textarea, select, label, 
div[onclick], span[onclick], i[onclick], 
.touch-manipulation, .btn, .button,
[role="button"], [tabindex] {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-touch-callout: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
}

/* Remove all focus states that could show black */
*:focus, *:active, *:hover, *:visited, *:target {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Force remove pseudo-elements */
*::before, *::after {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none !important;
}

/* Safari and WebKit specific fixes */
input, textarea, select, button {
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    border-radius: 0 !important;
    background-clip: padding-box !important;
}

/* Mobile Safari specific */
@supports (-webkit-touch-callout: none) {
    * {
        -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
    }
}

/* iOS specific */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    * {
        -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* FORCE ALL BUTTONS TO BE ROUNDED - OVERRIDE EVERYTHING */
button, .btn, .button, [role="button"], 
input[type="button"], input[type="submit"],
[onclick], .touch-manipulation {
    border-radius: 16px !important;
    -webkit-border-radius: 16px !important;
    -moz-border-radius: 16px !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}

/* Specific button classes - FORCE OVERRIDE */
.rounded-lg, .rounded-xl, .rounded {
    border-radius: 16px !important;
    -webkit-border-radius: 16px !important;
    -moz-border-radius: 16px !important;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}

/* Dashboard buttons specifically */
.bg-crypto-blue, .bg-crypto-green, .bg-crypto-purple, 
.bg-gray-600, .bg-gray-700, .bg-blue-600, .bg-green-600, .bg-purple-600 {
    border-radius: 16px !important;
    -webkit-border-radius: 16px !important;
    -moz-border-radius: 16px !important;
}

/* Header logo visibility */
.fas.fa-shield-alt {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    font-size: inherit !important;
}

/* Ensure header elements are visible */
header * {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}