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

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #f7931a, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ticker-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ticker-symbol {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f7931a;
    background-color: #222222;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #444444;
}

.current-price {
    font-size: 1.5rem;
}

.market-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #888888;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #00ff88;
    border-radius: 50%;
    animation: blink 2s infinite;
}

.price-label {
    color: #cccccc;
}

#currentPrice {
    color: #f7931a;
    font-weight: bold;
    margin-left: 10px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
}

.chart-container {
    background-color: #111111;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(247, 147, 26, 0.1);
    border: 1px solid #333333;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(247, 147, 26, 0.02) 50%, transparent 51%);
    pointer-events: none;
}

.prediction-section {
    text-align: center;
    background-color: #111111;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(247, 147, 26, 0.1);
    border: 1px solid #333333;
    width: 100%;
    max-width: 600px;
}

.prediction-section h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #cccccc;
}

.prediction-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.prediction-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.up-btn {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000000;
}

.up-btn:hover {
    background: linear-gradient(45deg, #00cc6a, #00ff88);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.down-btn {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: #ffffff;
}

.down-btn:hover {
    background: linear-gradient(45deg, #ff3742, #ff4757);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}

.prediction-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.results-section {
    background-color: #222222;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.result-label {
    color: #cccccc;
}

#upPercentage {
    color: #00ff88;
    font-weight: bold;
}

#downPercentage {
    color: #ff4757;
    font-weight: bold;
}

.total-votes {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #444444;
    color: #f7931a;
    font-weight: bold;
}

/* Chat Section Styling */
.chat-section {
    text-align: center;
    background-color: #111111;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(247, 147, 26, 0.1);
    border: 1px solid #333333;
    width: 100%;
    max-width: 600px;
    margin-top: 30px;
}

.chat-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #cccccc;
}

.chat-messages {
    background-color: #222222;
    border-radius: 10px;
    padding: 15px;
    height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #444444;
    text-align: left;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: #333333;
    border-radius: 8px;
    border-left: 3px solid #f7931a;
}

.chat-message.ai-message {
    border-left-color: #00ff88;
    background-color: #2a2a2a;
}

.chat-message .username {
    color: #f7931a;
    font-weight: bold;
    font-size: 0.9rem;
}

.chat-message.ai-message .username {
    color: #00ff88;
}

.chat-message .message {
    color: #ffffff;
    margin-top: 3px;
    word-wrap: break-word;
}

.chat-message .timestamp {
    color: #888888;
    font-size: 0.7rem;
    margin-top: 3px;
}

.chat-input-container {
    display: flex;
    gap: 10px;
}

#chatInput {
    flex: 1;
    padding: 12px 15px;
    background-color: #222222;
    border: 1px solid #444444;
    border-radius: 25px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
}

#chatInput:focus {
    border-color: #f7931a;
    box-shadow: 0 0 10px rgba(247, 147, 26, 0.2);
}

#chatInput::placeholder {
    color: #888888;
}

.send-btn {
    padding: 12px 20px;
    background: linear-gradient(45deg, #f7931a, #ffb347);
    color: #000000;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: linear-gradient(45deg, #ffb347, #f7931a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(247, 147, 26, 0.3);
}

.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Chat scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #222222;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #f7931a;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #ffb347;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        align-items: stretch;
        padding: 10px;
    }
    
    .container {
        align-items: stretch;
        padding: 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .ticker-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .current-price {
        font-size: 1.2rem;
    }
    
    .chart-container {
        padding: 20px;
        max-width: none;
    }
    
    .prediction-section {
        max-width: none;
    }
    
    .chat-section {
        max-width: none;
        padding: 20px;
    }
    
    .chat-messages {
        height: 150px;
    }
    
    .prediction-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .prediction-btn {
        width: 200px;
    }
}

/* Loading animation */
.loading {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Stock-like price animations */
.price-up {
    animation: priceUp 0.5s ease-out;
}

.price-down {
    animation: priceDown 0.5s ease-out;
}

@keyframes priceUp {
    0% {
        background-color: rgba(0, 255, 136, 0.3);
        transform: scale(1);
    }
    50% {
        background-color: rgba(0, 255, 136, 0.1);
        transform: scale(1.02);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

@keyframes priceDown {
    0% {
        background-color: rgba(255, 71, 87, 0.3);
        transform: scale(1);
    }
    50% {
        background-color: rgba(255, 71, 87, 0.1);
        transform: scale(1.02);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* Real-time indicator */
.current-price::after {
    content: '●';
    color: #00ff88;
    margin-left: 8px;
    animation: blink 2s infinite;
    font-size: 0.8em;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0.3;
    }
}

/* Payment Modal Styles */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.payment-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #f7931a;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.payment-content h4 {
    color: #f7931a;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: bold;
}

.payment-content p {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.payment-details {
    background: rgba(247, 147, 26, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.payment-details p {
    color: #f7931a;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.payment-details small {
    color: #cccccc;
    font-size: 0.9em;
}

.coinbase-pay-btn {
    background: #0052ff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    transition: all 0.3s ease;
    min-width: 200px;
}

.coinbase-pay-btn:hover {
    background: #0041cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 82, 255, 0.3);
}

.coinbase-pay-btn:active {
    transform: translateY(0);
}

.close-modal-btn {
    background: transparent;
    color: #888888;
    border: 1px solid #555555;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    color: #ffffff;
    border-color: #888888;
}

.payment-instructions {
    margin-top: 15px;
}

.payment-instructions small {
    color: #888888;
    font-size: 0.8em;
}

/* Chat Interface Styles */
.chat-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Input styling for unpaid users */
.chat-input-container.unpaid #chatInput {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444444;
    color: #cccccc;
}

.chat-input-container.unpaid #chatInput::placeholder {
    color: #888888;
}
