/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    background: #000;
}

/* Space Background Effects */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    overflow: hidden;
}

.stars, .shooting-stars, .nebula, .planets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.nebula {
    background: linear-gradient(125deg, rgba(33, 5, 77, 0.3), rgba(0, 64, 128, 0.3));
    filter: blur(30px);
    animation: nebula-move 120s infinite alternate;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #FFF, rgba(255, 255, 255, 0));
    transform: rotate(-45deg);
    animation: shooting 5s linear infinite;
    opacity: 0;
}

/* Planet Styling */
.planet {
    position: absolute;
    border-radius: 50%;
    box-shadow: inset -25px -5px 40px 3px rgba(0, 0, 0, 0.9);
    animation: planet-rotate 120s infinite linear;
}

.planet-1 {
    background: radial-gradient(circle at 30% 30%, #6B93D6, #1B2735);
    width: 150px;
    height: 150px;
    top: 10%;
    right: 15%;
    opacity: 0.6;
}

.planet-2 {
    background: radial-gradient(circle at 30% 30%, #FFB347, #FFCC33);
    width: 80px;
    height: 80px;
    bottom: 15%;
    left: 10%;
    opacity: 0.4;
    animation-duration: 150s;
}

/* Main Container */
.container {
    background-color: rgba(13, 17, 23, 0.8);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(97, 218, 251, 0.3), 0 10px 25px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    animation: container-glow 4s infinite alternate;
}

footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Crypto Card Elements */
.crypto-card {
    margin-top: 3%;
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid;
    transition: transform 0.3s ease;
}

.crypto-card:hover {
    transform: translateY(-5px);
}

.sol { border-color: #9945FF; }
.btc { border-color: #F7931A; }
.eth { border-color: #627EEA; }

.crypto-title {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.crypto-title h2 {
    margin: 0;
    margin-left: 15px;
    font-size: 1.5rem;
}

.crypto-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.sol-icon { background-color: #9945FF; }
.btc-icon { background-color: #F7931A; }
.eth-icon { background-color: #627EEA; }

/* Address Elements */
.address-container {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.address {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 6px 0 0 6px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-grow: 1;
}

.copy-btn {
    background-color: rgba(97, 218, 251, 0.2);
    border: 1px solid rgba(97, 218, 251, 0.5);
    border-left: none;
    color: white;
    padding: 0 15px;
    height: 42px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background-color: rgba(97, 218, 251, 0.4);
}

.copy-msg {
    font-size: 0.8rem;
    color: #61dafb;
    margin-top: 8px;
    text-align: right;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Animations */
@keyframes nebula-move {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    50% { transform: scale(1.2) translate(5%, 2%); opacity: 0.5; }
    100% { transform: scale(1) translate(0, 0); opacity: 0.3; }
}

@keyframes planet-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    50% { opacity: 1; }
    100% { opacity: 0.2; }
}

@keyframes shooting {
    0% {
        transform: translateX(-100px) translateY(-100px) rotate(-45deg);
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    30% {
        transform: translateX(300px) translateY(300px) rotate(-45deg);
        opacity: 0;
    }
    100% {
        transform: translateX(300px) translateY(300px) rotate(-45deg);
        opacity: 0;
    }
}

@keyframes container-glow {
    0% { box-shadow: 0 0 30px rgba(97, 218, 251, 0.3), 0 10px 25px rgba(0, 0, 0, 0.5); }
    100% { box-shadow: 0 0 50px rgba(97, 218, 251, 0.5), 0 10px 25px rgba(0, 0, 0, 0.5); }
}