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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a1628;
    background-image: 
        linear-gradient(180deg, #0a1628 0%, #1a2332 50%, #0f1b2e 100%);
    background-size: 100% 300%;
    animation: gradientShift 15s ease infinite;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    background: 
        radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 400%;
    height: 400%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    background: 
        radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 40%);
    animation: backgroundRotate 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes backgroundRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.logo-dot {
    color: #a855f7;
}

.logo-subtitle {
    font-size: 12px;
    color: #6b7280;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 60px 0;
    align-items: center;
}

.token-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.token-circle {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 70%);
    border: 2px solid rgba(168, 85, 247, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 80px rgba(168, 85, 247, 0.4);
}

.token-circle img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    background: #1a2332;
}

.token-badge {
    position: absolute;
    top: 30px;
    right: 60px;
    background: rgba(168, 85, 247, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 18px;
}

.token-info h1 {
    font-size: 48px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.token-info h1.loading {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ticker {
    font-size: 24px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.blockchain {
    margin-bottom: 20px;
}

.blockchain-badge {
    display: inline-block;
    background: linear-gradient(135deg, #9945FF 0%, #14F195 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.voting-status {
    color: #d1d5db;
    margin-bottom: 25px;
    font-size: 15px;
}

.highlight {
    color: #a855f7;
    font-weight: 600;
}

.contract-info {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.contract-address {
    font-family: 'Courier New', monospace;
    color: #a855f7;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn, .share-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    transition: transform 0.2s ease;
}

.copy-btn:hover, .share-btn:hover {
    transform: scale(1.2);
}

.copy-btn:active, .share-btn:active {
    transform: scale(0.95);
}

.progress-section {
    margin-bottom: 30px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.yes-votes {
    color: #a855f7;
}

.no-votes {
    color: #ef4444;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7 0%, #ec4899 100%);
    border-radius: 20px;
    transition: width 0.5s ease;
    width: 0%;
}

.vote-meta {
    text-align: right;
    color: #9ca3af;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-vote, .btn-skip {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-vote {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-vote:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-skip {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-skip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.vote-disclaimer {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-title {
    height: 56px;
    width: 60%;
    margin-bottom: 10px;
}

.skeleton-subtitle {
    height: 32px;
    width: 40%;
    margin-bottom: 15px;
}

.skeleton-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(168,85,247,0.1) 25%, rgba(168,85,247,0.3) 50%, rgba(168,85,247,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

.activity-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 80px 0;
}

.recent-activity, .why-vote {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.recent-activity h3, .why-vote h3 {
    font-size: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 10px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.7);
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    font-size: 14px;
}

.activity-voter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vote-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.vote-indicator.yes {
    background: #10b981;
}

.vote-indicator.no {
    background: #ef4444;
}

.activity-time {
    color: #6b7280;
    font-size: 12px;
}

.why-vote ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-vote li {
    padding-left: 20px;
    position: relative;
    color: #d1d5db;
    line-height: 1.6;
}

.why-vote li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #a855f7;
    font-size: 24px;
    line-height: 1;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-text h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-text p {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    max-width: 600px;
}

.app-badges {
    display: flex;
    gap: 15px;
}

.badge {
    height: 50px;
    width: auto;
}

.footer-legal {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .token-circle {
        width: 300px;
        height: 300px;
    }
    
    .token-circle img {
        width: 150px;
        height: 150px;
    }
    
    .activity-section {
        grid-template-columns: 1fr;
    }
    
    .activity-list {
        max-height: 400px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-text p {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .token-info h1 {
        font-size: 36px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .activity-list {
        max-height: 300px;
    }
    
    .recent-activity, .why-vote {
        padding: 20px;
    }
}

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