:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --secondary: #10b981;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #9ca3af;
    --danger: #ef4444;
    --success: #10b981;
    --gradient: linear-gradient(135deg, #7c3aed 0%, #10b981 100%);
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.navbar-brand {
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wallet-connected {
    background: var(--success);
    color: white;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-badge {
    background: var(--primary);
    color: white;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><polygon fill="%237C3AED" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.market-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    height: 100%;
}

.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.crypto-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.market-price {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0.5rem 0;
}

.price-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.price-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.countdown-timer {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.timer-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.pool-size {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.token-balance {
    background: rgba(124, 58, 237, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin: 3rem 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--success);
    color: white;
}

.notification.error {
    background: var(--danger);
    color: white;
}

.admin-section {
    background: rgba(124, 58, 237, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.prediction-item {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(249, 115, 22, 0.2);
    color: #f97316;
}

.status-won {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-lost {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.1;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

.btn-primary {
    background: var(--primary);
    border: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.btn-success {
    background: var(--success);
    border: none;
}

.btn-warning {
    background: #f59e0b;
    border: none;
}

.copy-id-section {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.copy-id-text {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    word-break: break-all;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}