/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: #2d2d3a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3d3d4a;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(18, 18, 26, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Encryption visual effect */
.encryption-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background: 
        linear-gradient(90deg, transparent 50%, #00d4ff 50%),
        linear-gradient(transparent 50%, #00d4ff 50%);
    background-size: 4px 4px;
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Input autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px #12121a inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Matrix rain effect for background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    font-family: monospace;
    font-size: 14px;
    overflow: hidden;
    color: #00d4ff;
}

/* Custom selection color */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: white;
}

/* Loading shimmer */
.shimmer {
    background: linear-gradient(90deg, #12121a 25%, #1a1a2e 50%, #12121a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: #1a1a2e;
    border: 1px solid #2d2d3a;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 4px;
}

.tooltip:hover::before {
    opacity: 1;
}

/* PGP Key styling */
.pgp-key {
    font-family: 'Courier New', monospace;
    line-height: 1.4;
    word-break: break-all;
}

/* Encrypted message styling */
.encrypted-msg {
    border-left: 3px solid #00d4ff;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.05) 0%, transparent 100%);
}

/* Vendor card hover effect */
.vendor-card {
    transition: all 0.3s ease;
}

.vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px -10px rgba(0, 212, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .encryption-rain {
        opacity: 0.02;
    }
    
    .glass {
        backdrop-filter: blur(8px);
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

/* Bitcoin address font */
.btc-address {
    font-family: 'Courier New', monospace;
    letter-spacing: -0.5px;
}