:root { --primary-gradient: linear-gradient(135deg, #6366F1, #4338CA); --bg-body: #F1F5F9; }
        body { background-color: #E2E8F0; }
        .app-container { width: 100%; max-width: 500px; margin: 0 auto; background: var(--bg-body); min-height: 100vh; padding-bottom: 100px; }
        .result-card { margin: 15px; background: white; border-radius: 35px; padding: 25px; text-align: center; border: 1px solid #e2e8f0; }
        .market-badge-main { display: inline-block; background: var(--primary-gradient); color: white; padding: 8px 30px; border-radius: 15px; font-weight: 900; margin-bottom: 20px; }
        .big-number-circle { width: 80px; height: 80px; border-radius: 50%; background: var(--primary-gradient); color: white; display: flex; justify-content: center; align-items: center; font-size: 32px; font-weight: 900; margin: 0 auto; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4); }
        .panel-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-radius: 18px; margin: 10px 0; }
        .panel-row.open { background: #F0F7FF; color: #3B82F6; }
        .panel-row.close { background: #F0FDF4; color: #10B981; }
        .panel-nums { display: flex; gap: 8px; }
        .panel-nums span { width: 32px; height: 38px; background: white; border-radius: 8px; display: flex; justify-content: center; align-items: center; font-size: 18px; font-weight: 900; color: #1e293b; }
        .ai-chat-card { margin: 20px 15px; background: #EEF2FF; border-radius: 30px; padding: 25px; border: 1px solid rgba(99, 102, 241, 0.1); }
        .table-custom { width: 100%; border-collapse: collapse; background: white; }
        .td-jodi { color: #4338CA; font-weight: 900; font-size: 16px; }

        /* Bong bóng AI thu gọn */
.ai-bubble-card {
    background: linear-gradient(165deg, #ffffff, #f8faff);
    border-radius: 20px;
    padding: 12px 18px;
    border-left: 4px solid #6366F1;
}

.ai-label {
    font-size: 11px;
    font-weight: 800;
    color: #6366F1;
    letter-spacing: 1px;
}

.ai-message {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn tối đa 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hiệu ứng đèn Pulse nhỏ */
.ai-status-pulse {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse-ai 2s infinite;
}

@keyframes pulse-ai {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Gợi ý hàng ngang */
.ai-quick-suggestion {
    border-top: 1px dashed rgba(99, 102, 241, 0.1);
    padding-top: 8px;
}

.badge-hint {
    background: #FEF3C7;
    color: #92400E;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.hint-text {
    font-size: 12px;
    color: #6366F1;
}

.num-slot {
    width: 35px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 900;
    color: #333;
    border: 1px solid #ddd;
}

.btn-spin {
    background: #4338CA;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-spin:active { transform: scale(0.9); }

.btn-reset {
    position: absolute;
    right: 0;
    background: #EF4444; /* Màu đỏ */
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}