:root {
    --primary-color: #fcd535;
    --primary-hover: #f0b90b;
    --secondary-color: #f0b90b;
    --success-color: #0ecb81;
    --error-color: #f6465d;
    --warning-color: #f0b90b;
    --bg-color: #0b0e11;
    --bg-secondary: #181a20;
    --bg-tertiary: #2b3139;
    --text-primary: #eaecef;
    --text-secondary: #b7bdc6;
    --text-muted: #848e9c;
    --border-color: #2b3139;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    justify-content: center;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-vote {
    background: var(--primary-color);
    color: var(--bg-color);
    font-size: 1rem;
    padding: 0.75rem 2rem;
    flex: 1;
    font-weight: 700;
}

.btn-vote:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-social {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-social:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-wallet {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.btn-wallet:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
}

/* Hero Section */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.reward-pool {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(252, 213, 53, 0.1), rgba(240, 185, 11, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    max-width: 500px;
    margin: 0 auto;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(252, 213, 53, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(252, 213, 53, 0);
    }
}

.reward-pool-icon {
    font-size: 2rem;
}

.reward-pool-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.reward-pool-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reward-pool-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Tokens Section */
.tokens-section {
    padding: 2rem 0 4rem;
}

.tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.token-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.token-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.token-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
}

.token-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.token-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.token-symbol {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.vote-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.vote-count svg {
    color: var(--primary-color);
}

.vote-number {
    font-weight: 700;
    color: var(--text-primary);
}

.token-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.token-reward {
    background: linear-gradient(135deg, rgba(252, 213, 53, 0.1), rgba(240, 185, 11, 0.05));
    border: 1px solid rgba(252, 213, 53, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
}

.token-reward-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.token-reward-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.token-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* Notification */
.notification {
    position: fixed;
    top: 5rem;
    right: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--error-color);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .reward-pool {
        padding: 1.25rem 1.5rem;
        gap: 0.75rem;
    }

    .reward-pool-icon {
        font-size: 1.5rem;
    }

    .reward-pool-amount {
        font-size: 1.5rem;
    }

    .tokens-grid {
        grid-template-columns: 1fr;
    }

    .token-actions {
        flex-direction: column;
    }

    .btn-vote {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: row;
        gap: 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-img {
        height: 32px;
    }

    .logo-text {
        font-size: 1rem;
    }

    #connectWallet {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    .hero {
        padding: 2rem 0 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .reward-pool {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .reward-pool-content {
        align-items: center;
    }

    .reward-pool-amount {
        font-size: 1.25rem;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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