* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent: #8b9bff;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('background.gif') center center;
    background-size: cover;
    opacity: 0.15;
    z-index: -2;
    animation: slowPan 60s ease-in-out infinite alternate, bgPulsate 4s ease-in-out infinite;
}

@keyframes slowPan {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

@keyframes bgPulsate {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, var(--bg-color) 70%);
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 120px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

/* Main Content */
main {
    flex: 1;
}

h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 48px;
    max-width: 700px;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.lead {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* Specs Grid */
.specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    padding: 32px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.spec-value {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Description */
.description {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Actions */
.actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Contract Info */
.contract-info {
    padding: 24px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contract-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    font-weight: 500;
}

.contract-address {
    color: var(--accent);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
    transition: color 0.2s ease;
}

.contract-address:hover {
    color: var(--text-primary);
}

/* Footer */
footer {
    margin-top: 120px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.footer-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

.links {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.links a:hover {
    color: var(--text-primary);
}

.separator {
    color: var(--border);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 32px 20px;
    }
    
    header {
        margin-bottom: 80px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .status {
        font-size: 13px;
    }
    
    h1 {
        font-size: 32px;
        margin-bottom: 32px;
    }
    
    .lead {
        font-size: 18px;
    }
    
    .specs {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    footer {
        margin-top: 80px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-color);
}

/* Focus States */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Mint Complete Container */
.mint-complete-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mint-complete-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,1), rgba(255,255,255,0.9));
    border-radius: 999px;
    animation: pulsateBar 2s ease-in-out infinite;
}

@keyframes pulsateBar {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.7), 0 0 60px rgba(255, 255, 255, 0.4);
    }
}

.mint-complete-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.complete-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-transform: uppercase;
    animation: textGlow 2s ease-in-out infinite;
}

.complete-count {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        opacity: 0.9;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

@media (max-width: 640px) {
    .mint-complete-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .complete-text {
        font-size: 12px;
    }
    
    .complete-count {
        font-size: 14px;
    }
}

/* Mint Token Button Pulsate */
.btn-mint-token {
    animation: btnPulsate 3s ease-in-out infinite;
}

@keyframes btnPulsate {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

