* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}


/* Main Navigation */
.main-nav {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #1f2937;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #f3f4f6;
}

.twitter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #1da1f2;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.twitter-btn:hover {
    background-color: rgba(29, 161, 242, 0.1);
    color: #0d8bd9;
    transform: translateY(-1px);
}

.twitter-btn svg {
    transition: transform 0.2s;
}

.twitter-btn:hover svg {
    transform: scale(1.1);
}

.login-link {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 15px;
}

.signup-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.signup-btn:hover {
    background-color: #2563eb;
}

/* Category Filters */
.category-filters {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 24px;
    overflow-x: auto;
}

.filter-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    padding: 8px 0;
    white-space: nowrap;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}

.filter-btn.active {
    color: #1f2937;
    border-bottom-color: #3b82f6;
}

.filter-btn:hover {
    color: #1f2937;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

/* Prediction Cards */
.prediction-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, transform 0.2s;
}

.prediction-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.prediction-card.large-card {
    grid-column: span 2;
}

.prediction-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.4;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.small-percentage {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Chart Styles */
.chart-container {
    margin: 20px 0;
    position: relative;
}

.chart {
    height: 120px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    transform: translateY(-50%);
}

.chart-dot {
    position: absolute;
    top: 50%;
    left: 30%;
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 3px white, 0 0 0 5px #3b82f6;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.current-chance {
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
    text-align: center;
    margin: 16px 0;
}

/* Circular Progress */
.circular-progress {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.progress-circle {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#e5e7eb 0deg, #e5e7eb 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#ef4444 0deg, #ef4444 calc(var(--progress) * 3.6deg), #e5e7eb calc(var(--progress) * 3.6deg), #e5e7eb 360deg);
}

.progress-fill.green {
    background: conic-gradient(#10b981 0deg, #10b981 calc(var(--progress) * 3.6deg), #e5e7eb calc(var(--progress) * 3.6deg), #e5e7eb 360deg);
}

.progress-text {
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

/* Company Options */
.company-options {
    margin: 20px 0;
}

.company-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.company-option:last-child {
    border-bottom: none;
}

.company-name {
    font-weight: 600;
    color: #1f2937;
}

.company-percentage {
    font-weight: 600;
    color: #6b7280;
}

.company-voting {
    display: flex;
    gap: 8px;
}

/* Countdown */
.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.clock-icon {
    font-size: 16px;
}

/* Voting Buttons */
.voting-buttons {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.vote-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.vote-btn.small {
    padding: 8px 12px;
    font-size: 13px;
}

.yes-btn {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.yes-btn:hover {
    background-color: #bbf7d0;
    transform: translateY(-1px);
}

.yes-btn:active {
    transform: translateY(0);
}

.no-btn {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.no-btn:hover {
    background-color: #fecaca;
    transform: translateY(-1px);
}

.no-btn:active {
    transform: translateY(0);
}

/* USDC Amount */
.usdc-amount {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-top: 16px;
}

/* Promotional Card */
.promotional-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
}

.promo-content {
    text-align: center;
    padding: 20px 0;
}

.bitcoin-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #f59e0b;
}

.promo-content h3 {
    color: #065f46;
    margin-bottom: 16px;
}

.promo-arrow {
    font-size: 24px;
    color: #10b981;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    
    .nav-actions {
        gap: 12px;
    }
    
    .predictions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .prediction-card.large-card {
        grid-column: span 1;
    }
    
    .filter-container {
        padding: 0 16px;
    }
    
    .main-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .prediction-card {
        padding: 16px;
    }
    
    .voting-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .company-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .company-voting {
        align-self: flex-end;
    }
}

/* Animation for voting */
.vote-btn.voted {
    transform: scale(0.95);
    opacity: 0.8;
}

.vote-btn.voted.yes-btn {
    background-color: #10b981;
    color: white;
}

.vote-btn.voted.no-btn {
    background-color: #ef4444;
    color: white;
}

/* Loading state */
.vote-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.vote-btn.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* User Profile Styles */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
}

.user-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.logout-btn {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background-color: #dc2626;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.modal-header h2 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
}

.modal-header p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.close-modal:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.modal-body {
    padding: 24px;
    text-align: center;
}

.login-info {
    margin-top: 24px;
    text-align: left;
}

.login-info p {
    margin: 8px 0;
    color: #6b7280;
    font-size: 14px;
}

.login-required-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 16px;
}

.login-required-btn:hover {
    background-color: #2563eb;
}

/* Login Options Styles */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.google-login-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    padding: 0 16px;
}

.create-profile-section {
    display: flex;
    justify-content: center;
}

.create-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.create-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.create-profile-btn svg {
    transition: transform 0.2s;
}

.create-profile-btn:hover svg {
    transform: scale(1.1);
}

/* Create Profile Modal Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.avatar-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.avatar-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.avatar-option:hover {
    border-color: #3b82f6;
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.avatar-icon {
    font-size: 24px;
}

.create-profile-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

.create-profile-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.create-profile-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Auth Options in Required Modal */
.auth-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.create-profile-required-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.create-profile-required-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.connect-wallet-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.connect-wallet-btn svg {
    transition: transform 0.2s;
}

.connect-wallet-btn:hover svg {
    transform: scale(1.1);
}

.connect-wallet-required-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.connect-wallet-required-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Google Sign-In Button Customization */
.g_id_signin {
    margin: 16px 0;
}

/* Modal Animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Authentication Required Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1500;
    display: none;
}

/* Disabled State for Unauthenticated Users */
.vote-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.prediction-card.unauthenticated {
    position: relative;
}

.prediction-card.unauthenticated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    z-index: 10;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 20px 20px 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .user-profile {
        flex-direction: column;
        gap: 8px;
    }
    
    .user-name {
        font-size: 12px;
    }
}

/* Markets Section Styles */
.markets-section {
    background-color: #f8fafc;
    padding: 40px 0;
    min-height: 100vh;
}

.markets-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.markets-header {
    text-align: center;
    margin-bottom: 40px;
}

.markets-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.markets-header p {
    font-size: 16px;
    color: #6b7280;
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.crypto-card {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.crypto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.crypto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.crypto-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.crypto-symbol {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.crypto-price {
    text-align: right;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    display: block;
}

.change {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

.change.positive {
    color: #10b981;
}

.change.negative {
    color: #ef4444;
}

.chart-container {
    height: 200px;
    position: relative;
}

/* Responsive Markets */
@media (max-width: 768px) {
    .crypto-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .crypto-card {
        padding: 16px;
    }
    
    .crypto-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .crypto-price {
        text-align: left;
    }
    
    .markets-header h2 {
        font-size: 24px;
    }
    
    .markets-container {
        padding: 0 16px;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 20px 0;
        margin-top: 40px;
    }
    
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-title {
        font-size: 18px;
    }
}
