/* --- ESTILO GLOBAL (Base para todas as páginas) --- */
body {
    background-color: #0a0e17;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    -webkit-font-smoothing: antialiased; /* Fontes mais nítidas em iPhone */
}

/* --- LAYOUT MOBILE (Index.html) --- */
.mobile-body { 
    display: flex; 
    flex-direction: column; 
    height: 100vh; 
    justify-content: space-between; 
}

.header { padding: 20px 20px 10px 20px; }

/* Preço Principal no Telemóvel */
.big-price { 
    font-size: 3.5rem; 
    font-weight: 700; 
    color: white; 
    text-shadow: 0 0 20px rgba(255,255,255,0.1); 
    font-variant-numeric: tabular-nums; /* Evita que os números "saltem" */
}

/* --- BOTÕES DE AÇÃO (Comprar/Vender) --- */
.controls { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    padding: 20px; 
    padding-bottom: 40px; /* Espaço extra no fundo para iPhone (Home bar) */
    flex-grow: 1; 
    justify-content: flex-end; 
}

.btn {
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:active { transform: scale(0.96); }

/* Cores dos Botões */
.buy { background: linear-gradient(135deg, #00ff88 0%, #008f4c 100%); color: #0a0e17; }
.sell { background: linear-gradient(135deg, #ff4444 0%, #b30000 100%); }
.hold { background: #333; color: #ccc; border: 1px solid #444; }

/* Botões Desativados (Cooldown) */
.btn:disabled {
    opacity: 0.4;
    filter: grayscale(100%);
    cursor: not-allowed;
    transform: none;
}

/* --- BARRAS DE ESTADO E NOTÍCIAS --- */
.status-paused { background: #ffaa00; color: black; padding: 8px; font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; }
.status-live { background: #00ff88; color: black; padding: 8px; font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; }

.news-ticker { 
    background: #222; 
    color: #fff; 
    padding: 10px; 
    font-weight: 600; 
    white-space: nowrap; 
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

/* --- POPUP DE FEEDBACK (Voto Enviado) --- */
.vote-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 255, 136, 0.95);
    color: #0a0e17;
    padding: 20px 30px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.2rem;
    z-index: 9999;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(0, 255, 136, 0.4);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

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