/* CryptoVault Pro - Main Styles */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #111827;
    color: #ffffff;
    overflow-x: hidden;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Backgrounds */
.bg-gradient-crypto {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-dark {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

/* Crypto Card */
.crypto-card {
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 114, 128, 0.2);
    transition: all 0.3s ease;
}

.crypto-card:hover {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-5px);
}

/* Crypto Glow Effect */
.crypto-glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.crypto-glow:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
}

/* Pulse Glow Animation */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
    }
}

/* Call Pulse Animation */
.call-pulse {
    animation: call-pulse 1.5s ease-in-out infinite;
}

@keyframes call-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
}

/* Phone Button */
.phone-button {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.phone-button:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: scale(1.05);
}

/* Floating Animation */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Form Inputs */
.form-input {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(31, 41, 55, 1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder {
    color: rgba(156, 163, 175, 0.6);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    margin: auto;
    padding: 0;
    border: 1px solid rgba(107, 114, 128, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Success and Error Messages */
.success-message,
.error-message {
    display: none;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: 500;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.success-message.show,
.error-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky Contact Button */
.sticky-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.sticky-contact button {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.sticky-contact button:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.7);
}

/* Account Option Hover Effect */
.account-option {
    transition: all 0.3s ease;
}

.account-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Price Change Colors */
.price-up {
    color: #22c55e !important;
}

.price-down {
    color: #ef4444 !important;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .sticky-contact {
        bottom: 20px;
        right: 20px;
    }
    
    .sticky-contact button {
        padding: 12px;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Selection Color */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: #ffffff;
}

/* Button Disabled State */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Link Styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Focus Visible */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}