/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-cyan: #00ffcc;
    --neon-green: #00ff88;
    --dark-overlay: rgba(0, 0, 0, 0.45);
    --glass-bg: rgba(15, 15, 20, 0.6);
    --glass-border: rgba(0, 255, 204, 0.2);
}

body {
    font-family: 'Courier New', 'Monaco', monospace;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Background container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imdeeage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px);
    transform: scale(1.1); /* Prevent blur edges */
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-overlay);
    z-index: 1;
}

/* Animated grain texture */
.grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.15;
    animation: grain 8s steps(10) infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* Subtle scanlines (CRT effect) */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 3;
    pointer-events: none;
    opacity: 0.3;
}

/* Main card */
.card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 560px;
    min-width: 320px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 255, 204, 0.1) inset,
        0 0 20px rgba(0, 255, 204, 0.1);
    z-index: 10;
    transition: transform 0.1s ease-out;
    overflow: hidden;
}

/* Neon edge animation */
.neon-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(
        90deg,
        var(--neon-cyan),
        var(--neon-green),
        var(--neon-cyan)
    );
    background-size: 200% 100%;
    animation: neonFlow 3s linear infinite;
    z-index: -1;
    opacity: 0.6;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

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

.card-content {
    position: relative;
    z-index: 1;
}

/* Typography */
.token-name {
    font-size: 3rem;
    font-weight: bold;
    color: var(--neon-cyan);
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    letter-spacing: 2px;
}

.typing-line {
    font-size: 0.85rem;
    color: var(--neon-green);
    text-align: center;
    margin-bottom: 1rem;
    min-height: 1.2rem;
    font-family: 'Courier New', monospace;
}

.typing-line::after {
    content: '▊';
    animation: blink 1s infinite;
    color: var(--neon-green);
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Links section */
.links-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.link-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(255, 255, 255, 0.8),
        0 0 35px rgba(255, 255, 255, 0.6),
        0 0 45px rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.link-btn:hover::before {
    width: 300px;
    height: 300px;
}

.link-btn span {
    position: relative;
    z-index: 1;
}

/* Contract section */
.contract-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.contract-address {
    flex: 1;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    padding-right: 0.5rem;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(255, 255, 255, 0.8),
        0 0 35px rgba(255, 255, 255, 0.6),
        0 0 45px rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-icon {
    font-size: 1rem;
}

/* Lore section */
.lore-section {
    margin-top: 1.5rem;
}

.lore {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-style: italic;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 255, 204, 0.9);
    color: #000;
    padding: 0.875rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .card {
        width: 95%;
        padding: 2rem 1.5rem;
        max-width: none;
    }

    .token-name {
        font-size: 2.5rem;
    }

    .links-section {
        grid-template-columns: 1fr;
    }

    .contract-section {
        flex-direction: column;
        align-items: stretch;
    }

    .contract-address {
        text-align: center;
        padding-right: 0;
        margin-bottom: 0.75rem;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.5rem 1rem;
    }

    .token-name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .lore {
        font-size: 0.85rem;
    }
}

